Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GDocApp Class Reference

A base for a document processing application. More...

#include <GDocApp.h>

Inheritance diagram for GDocApp:

GWindow GView GTarget GEvent GFlags List of all members.

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.

Detailed Description

A base for a document processing application.


Constructor & Destructor Documentation

GDocApp::GDocApp char *  appname = 0,
char *  icon = 0
 

Creates the class.

Parameters:
appname  The name of the application
icon  [Optional] The icon resource for the window.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:46:58 2005 for Lgi by  doxygen 1.4.1