gre/dlgdatatip.h

Go to the documentation of this file.
00001 /**
00002  * \file gre/dlgdatatip.h
00003  * \brief GRE::DLG_DATATIPSETTINGS
00004  *
00005  * \if NODOC
00006  * $Id: dlgdatatip.h_v 1.2 2006/10/06 18:00:28 mju Exp $
00007  *
00008  * $Log
00009 **/
00010 
00011 #ifndef  INC_GRE_DLGDATATIPSETTINGS
00012 #define  INC_GRE_DLGDATATIPSETTINGS
00013 
00014 #ifndef  INC_GRE_BASE_H
00015 #include <gre/base.h>
00016 #endif
00017 
00018 #ifndef  INC_GRE_UIDATATIP_H
00019 #include <gre/uidatatip.h>
00020 #endif
00021 
00022 #ifndef  INC_MGUI_DLGSHELL_H
00023 #include <mgui/dlgshell.h>
00024 #endif
00025 
00026 #ifndef  INC_MGUI_CTRL_H
00027 #include <mgui/ctrl.h>
00028 #endif
00029 
00030 #ifndef  INC_MGUI_EDIT_H
00031 #include <mgui/edit.h>
00032 #endif
00033 
00034 #ifndef  GENERATING_DOXYGEN_OUTPUT
00035 namespace RVC {
00036    class OBJITEM;
00037    }
00038 #endif
00039 
00040 
00041 namespace GRE {
00042 
00043 //! Dialog to specify DataTip settings for layer.
00044 class DLG_DATATIPSETTINGS : public MGUI::DLGSHELL {
00045    public:
00046 
00047       DLG_DATATIPSETTINGS (
00048          GRE::LAYER *layer
00049          );
00050 
00051       ~DLG_DATATIPSETTINGS ();
00052 
00053    private:
00054 
00055       #ifndef GENERATING_DOXYGEN_OUTPUT
00056 
00057       class PAGE_GENERAL : public MGUI::LAYOUT_PAGE {
00058          public:
00059             PAGE_GENERAL ();
00060             ~PAGE_GENERAL ();
00061             void SaveSettings();
00062          private:
00063             MGUI::FORM_EDIT_NUMBER m_EditDelay;
00064             MGUI::CTRL_LABEL m_UnitDelay;
00065             MGUI::FORM_EDIT_NUMBER m_EditDistance;
00066             MGUI::CTRL_LABEL m_UnitDistance;
00067             virtual void OnInitPage ();
00068          };
00069 
00070       class PAGE_ELEMTYPE : public MGUI::LAYOUT_PAGE {
00071          public:
00072             PAGE_ELEMTYPE ();
00073             ~PAGE_ELEMTYPE ();
00074 
00075             const GRE::DATATIPPARMS& GetValues (
00076                ) const;
00077 
00078             //! Set object and element type DataTip is for.
00079             ERRVALUE SetValues (
00080                const RVC::OBJITEM& ObjItem,           //!< Object item reference
00081                ELEMTYPE ElemType,                     //!< Element type
00082                const GRE::DATATIPPARMS &DataTipParms
00083                );
00084          private:
00085             GRE::DATATIPPARMS::FORM m_FormParms;
00086             virtual void OnInitPage ();
00087          };
00088 
00089       GRE::LAYER *m_layer;
00090       MGUI::LAYOUT_BOOK m_Book;
00091       PAGE_GENERAL m_PageGeneral;
00092       PAGE_ELEMTYPE *m_PageElemTypes;
00093 
00094       virtual ERRVALUE v_CreateContent ();
00095       virtual void v_OnOK ();
00096 
00097       DLG_DATATIPSETTINGS (const DLG_DATATIPSETTINGS&);
00098       DLG_DATATIPSETTINGS& operator= (const DLG_DATATIPSETTINGS&);
00099 
00100       #endif   // GENERATING_DOXYGEN_OUTPUT
00101    };
00102 
00103 }  // End namespace GRE
00104 
00105 #endif   // INC_GRE_DLGDATATIPSETTINGS

Generated on Thu Apr 26 04:03:31 2007 for TNTsdk by  doxygen 1.5.2