Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SceneStatusBar.h

Go to the documentation of this file.
00001 #ifndef SceneStatusBarH
00002 #define SceneStatusBarH
00003 
00004 /*******************************************************************************
00005 Copyright 2001,2002,2003 Petr Kulhanek
00006 
00007     This file is part of Core plugin.
00008 
00009     Core plugin is free software; you can redistribute it and/or modify
00010     it under the terms of the GNU General Public License as published by
00011     the Free Software Foundation; either version 2 of the License, or
00012     (at your option) any later version.
00013 
00014     Core plugin is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017     GNU General Public License for more details.
00018 
00019     You should have received a copy of the GNU General Public License
00020     along with Core plugin; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 *******************************************************************************/
00023 /*******************************************************************************
00024 ** PROJECT:             Project NEMESIS
00025 ** FILE:                SceneStatusBar
00026 ** FUNCTION:            show status of project in bottom line
00027 ** VERSION:             2.0
00028 ** LANGUAGE:            CBuilder C++
00029 ** TARGET COMPUTER:     IBM PC
00030 ** PROGRAMMER:          Petr Kulhánek
00031 ** HISTORY:
00032 VERSION DATE        NOTE
00033 2.0     2001-12-29  recreate version of same class from revision 4
00034 *******************************************************************************/
00035 
00039 /* HEADER FILES ***************************************************************/
00040 
00041 #include "CoreMainHeader.h"
00042 #include "Selection.h"
00043 #include "SmallString.h"
00044 #include <comctrls.hpp>
00045 
00046 /* HEDER FILES END ************************************************************/
00047 
00048 
00049 /* CLASS DECLARATION ***********************************************************/
00050 
00052 
00055 class NEMESIS_CORE_PACKAGE CSceneStatusBar{
00056  // User data ------------------------------------------------------------------
00057     public:
00058         __fastcall CSceneStatusBar(void);
00059         __fastcall ~CSceneStatusBar(void);
00060 
00061 
00062     void __fastcall SetStatusBar(TStatusBar* statusbar);
00063 
00064     void __fastcall ActivateScene(void);
00065     void __fastcall ChangeWorkPanel(const CSmallString& name);
00066     void __fastcall SetCtrlMode(const CSmallString& text);
00067     void __fastcall UnsetCtrlMode(void);
00068 
00069     void __fastcall SetClaim(EObject claim);
00070     void __fastcall SetChangedStatus(bool changed);
00071     void __fastcall SetMasterLockMode(bool lock);
00072     void __fastcall DeactivateScene(void);
00073 
00074     void __fastcall SetCalculationMode(bool online);
00075     void __fastcall SetCalculationText(const CSmallString& f1,const CSmallString& f2,const CSmallString& f3);
00076     void __fastcall ResetCalculationMode(void);
00077 
00078     void __fastcall SetError(const CSmallString& errortext,int time=5000);
00079 
00080  // Private data ---------------------------------------------------------------
00081     private:
00082     enum EMode{NORMAL,CALCULATION,DEACTIVATE,};
00083     EMode                       Mode;
00084     TStatusBar*                 StatusBar;
00085     CSmallString                WorkPanelName;
00086     bool                        IsInControlMode;
00087     CSmallString                ControlText;
00088     EObject                     Claim;
00089     bool                        Change;
00090     bool                        MasterLockMode;
00091     bool                        OnLineCalculation;
00092     bool                        SceneIsActive;
00093     bool                        ErrorIsActive;
00094     bool                        ReadOnly;
00095     TTimer*                     Timer;
00096 
00097     void __fastcall Update(void);
00098     void __fastcall SetNewMode(EMode newmode);
00099     void __fastcall ErrorModeOnEndTime(TObject* sender);
00100     void __fastcall UpdateNormalMode(void);
00101     void __fastcall UpdateCalculationMode(void);
00102     void __fastcall UpdateDeactivateMode(void);
00103     void __fastcall MakeNewModePanels(EMode newmode);
00104     };
00105 
00106 /* CLASS DECLARATION END *******************************************************/
00107 
00108 
00109 #endif

Generated on Sun Feb 9 12:53:51 2003 for NemesisCore by doxygen1.3-rc2