#include <GDocApp.h>
Inheritance diagram for GDocApp:
Public Member Functions | |
GDocApp (char *appname=0, char *icon=0) | |
Creates the class. | |
void | SetCurFile (char *f) |
Sets the current file name. | |
char * | GetCurFile () |
Gets the current file name. | |
bool | SetDirty (bool Dirty) |
Sets the dirty state. If the doc is clean you are not asked to save it when you close the window. | |
bool | GetDirty () |
Gets the dirty state. | |
ObjProperties * | GetOptions () |
Gets the options list. | |
char * | GetAppName () |
Gets the application name. | |
virtual void | Empty () |
Implement this to clear your docment from memory, i.e. "Close". | |
virtual bool | SerializeOptions (ObjProperties *Options, bool Write) |
Implement this to read/write your application specific options. | |
virtual void | OnDirty (bool NewValue) |
This is called when the dirty state changes. | |
void | OnReceiveFiles (List< char > &Files) |
Called when files are dropped on the window. | |
bool | OnRequestClose (bool OsShuttingDown) |
Called on a top level window when something requests to close the window. | |
int | OnCommand (int Cmd, int Event, OsView Window) |
Called when a menu command is activated by the user. | |
int | OnEvent (GMessage *m) |
Called to process every message received by this window. | |
Protected Member Functions | |
bool | _LoadMenu (char *Resource=0) |
Loads the given menu. | |
bool | _Create () |
Call this to create the window, usually in the constructor of your main window class. | |
bool | _Destroy () |
Call this to destroy the window, usually in the destuctor of your main window class. | |
bool | _OpenFile (char *File) |
Use the open file dialog to select a docuement to open. | |
bool | _SaveFile (char *File) |
Save the current document. |
|
Creates the class.
|