Main Page   Class Hierarchy   Compound List   File List   Compound Members  

statusb.h

00001 /*
00002 Program STATUSB.H
00003 Purpose Controls the statusbar of the application (header)
00004                 This statusbar is a typical Windows statusbar
00005                 For porting to another platform there must be a StatusBar class
00006                 derived from this.
00007                 User interface element (See documentation for more details
00008                 about the functions needed in this class)
00009 */
00010 
00011 #ifndef STATUSB_H
00012 #define STATUSB_H
00013 
00014 #ifdef __GNUG__
00015 #pragma interface
00016 #endif
00017 
00018 #include <time.h>
00019 #include <wx/string.h>
00020 
00021 // abstract base class for own statusbar inherite from it
00022 class StatusBar
00023 {
00024         public:
00025                 // constructor & destructor
00026                 StatusBar(){};
00027                 virtual ~StatusBar();
00028 
00029                 virtual void    SetXY(double = 0.0, double = 0.0)=0;
00030                 virtual void    ResetCoord()=0;
00031                 virtual void    SetFile(char* = 0)=0;
00032                 virtual void    SetFile(const wxString&)=0;
00033                 virtual void    SetProcess(char* = 0)=0;
00034                 virtual void    SetTime(time_t seconds = 0)=0;
00035                 virtual void    SetRecording(int status = 0)=0;
00036                 virtual void  SetInsertLayer(const char* insertlayer)=0;
00037                 virtual void    SetZoom(float factor = 1)=0;
00038                 virtual void    Reset()=0;
00039                 void                            StartDTimer();
00040                 void                            EndDTimer();
00041                 int                             GetDTimerOn();
00042                 time_t                  GetDTimer();
00043 
00044         protected:
00045                 int                             timer;
00046                 time_t                  oldtime;
00047                 time_t                  curtime;
00048 };
00049 
00050 #endif
statusb.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page