mirror of
https://github.com/depp/syncfiles.git
synced 2024-06-14 11:29:28 +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.
29 lines
890 B
C
29 lines
890 B
C
// project.h - Synchronization projects.
|
|
#ifndef MACOS_PROJECT_H
|
|
#define MACOS_PROJECT_H
|
|
|
|
// Handle to a synchronization project.
|
|
typedef struct Project **ProjectHandle;
|
|
|
|
// Create a new empty synchronization project.
|
|
void ProjectNew(void);
|
|
|
|
// Adjust menus before selecting a menu item.
|
|
void ProjectAdjustMenus(ProjectHandle project, MenuHandle fileMenu);
|
|
|
|
// Handle a menu command or equivalent.
|
|
void ProjectCommand(WindowRef window, ProjectHandle project, int menuID,
|
|
int item);
|
|
|
|
// Handle an update event for a project window.
|
|
void ProjectUpdate(WindowRef window, ProjectHandle project);
|
|
|
|
// Set whether a project window is active.
|
|
void ProjectActivate(WindowRef window, ProjectHandle project, int isActive);
|
|
|
|
// Handle a mouse down event in a window.
|
|
void ProjectMouseDown(WindowRef window, ProjectHandle project,
|
|
EventRecord *event);
|
|
|
|
#endif
|