Windows launcher: Difference between revisions
From FreeMind
Jump to navigationJump to search
(→Files) |
|||
Line 47: | Line 47: | ||
|- | |- | ||
| FreeMind.ico | | FreeMind.ico | ||
| | | Application icon file, with light bulb. | ||
|- | |||
| FreeMind-document.ico | |||
| Document icon file, with light bulb. | |||
|- | |- | ||
| FreeMind-butterfly.ico | | FreeMind-butterfly.ico | ||
| Icon file, with butterfly icon, instead of light bulb icon | | Icon file, with butterfly icon, instead of light bulb icon. There is no document icon for butterfly. | ||
|- | |- | ||
| Icon1.rc | | Icon1.rc | ||
Line 57: | Line 60: | ||
#include <windows.h> | #include <windows.h> | ||
100 ICON "FreeMind-butterfly.ico" | //100 ICON "FreeMind-butterfly.ico" | ||
100 ICON "FreeMind.ico" | |||
101 ICON "FreeMind-document.ico" | 101 ICON "FreeMind-document.ico" | ||
</pre> | </pre> | ||
Line 71: | Line 74: | ||
| Executable built from Freemind.o and Icon1.o | | Executable built from Freemind.o and Icon1.o | ||
|} | |} | ||
Not all of these files are present in CVS; some are only present in the patches. | |||
==Gotchas== | ==Gotchas== |
Revision as of 11:34, 1 March 2008
There is a Microsoft Windows launcher for FreeMind, written in C.
Function
This launcher provides the following.
Feature | Detail |
---|---|
Icon | Has an icon. |
Dropping a file | When a file is dragged and dropped over the launcher, it is passed to Java application as a parameter. |
Argument passing | When the launcher is run from a DOS console and given multiple arguments, all are passed to the Java application. |
Changing to directory | The launcher has to reside in a directory relative to the application directory. However, it can be run from any other directory. Therefore, if you assign the launcher to a file type, the application is run correctly with the file passed as an argument. |
Compilation
This launcher for Microsoft Windows was compiled using Dev-C++.
To download Dev-C++, go to project page at SourceForge.
To recompile it, open the project Freemind.dev with Dev-C++, and compile the project.
The underlying compiler of Dev-C++ was MinGW.
Files
File | Note |
---|---|
Freemind.dev | Project file, to be opened in Dev-C++ |
Freemind.c | The source code |
Makefile.win | Automatically generated filr by Dev-C++ |
FreeMind.ico | Application icon file, with light bulb. |
FreeMind-document.ico | Document icon file, with light bulb. |
FreeMind-butterfly.ico | Icon file, with butterfly icon, instead of light bulb icon. There is no document icon for butterfly. |
Icon1.rc | Plain text, resource file, describing the location of icons. Contains:
#include <windows.h> //100 ICON "FreeMind-butterfly.ico" 100 ICON "FreeMind.ico" 101 ICON "FreeMind-document.ico" |
Icon1.o | Object file compiled from Icon1.rc and FreeMind.ico (or FreeMind-buttefly.ico) |
Freemind.o | Object file compiled from Freemind.c |
Freemind.exe | Executable built from Freemind.o and Icon1.o |
Not all of these files are present in CVS; some are only present in the patches.
Gotchas
Things to watch
- FreeMind.ico must be a real icon, not an icon created by changing the extension of a file from bmp to ico.