mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-25 08:30:55 +00:00
4d4ee214b3
The GUI program's project is not checked in. It was compiled and tested with CodeWarrior Pro 4. The GUI program allows users to create new synchronization projects, select folders to synchronize, and save and open projects. The code is probably broken and buggy, and probably dereferences NULL pointers here and there, but the basic shell is there.
57 lines
1.4 KiB
R
57 lines
1.4 KiB
R
#include "Menus.r"
|
|
|
|
#include "resources.h"
|
|
|
|
resource 'MBAR' (rMBAR_Main) {{
|
|
rMENU_Apple,
|
|
rMENU_File,
|
|
rMENU_Edit,
|
|
}};
|
|
|
|
resource 'MENU' (rMENU_Apple, preload) {
|
|
rMENU_Apple,
|
|
textMenuProc,
|
|
0b01111111111111111111111111111101,
|
|
enabled,
|
|
apple,
|
|
{
|
|
"About " APPNAME "…", noIcon, noKey, noMark, plain,
|
|
"-", noIcon, noKey, noMark, plain,
|
|
}
|
|
};
|
|
|
|
resource 'MENU' (rMENU_File, preload) {
|
|
rMENU_File,
|
|
textMenuProc,
|
|
0b01111111111111111111111101111011,
|
|
enabled,
|
|
"File",
|
|
{
|
|
"New", noIcon, "N", noMark, plain,
|
|
"Open…", noIcon, "O", noMark, plain,
|
|
"-", noIcon, noKey, noMark, plain,
|
|
"Close", noIcon, "W", noMark, plain,
|
|
"Save", noIcon, "S", noMark, plain,
|
|
"Save As…", noIcon, noKey, noMark, plain,
|
|
"Revert", noIcon, noKey, noMark, plain,
|
|
"-", noIcon, noKey, noMark, plain,
|
|
"Quit", noIcon, "Q", noMark, plain,
|
|
}
|
|
};
|
|
|
|
resource 'MENU' (rMENU_Edit, preload) {
|
|
rMENU_Edit,
|
|
textMenuProc,
|
|
0b01111111111111111111111111111101,
|
|
enabled,
|
|
"Edit",
|
|
{
|
|
"Undo", noIcon, "Z", noMark, plain,
|
|
"-", noIcon, noKey, noMark, plain,
|
|
"Cut", noIcon, "X", noMark, plain,
|
|
"Copy", noIcon, "C", noMark, plain,
|
|
"Paste", noIcon, "V", noMark, plain,
|
|
"Clear", noIcon, noKey, noMark, plain,
|
|
}
|
|
};
|