tools.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCHEMPAINT_TOOLS_H
00026 #define GCHEMPAINT_TOOLS_H
00027
00028 #include <gcu/dialog.h>
00029 #include <gcu/gcucomboperiodic.h>
00030 #include <map>
00031
00033 namespace gcp {
00034
00038 class Tools: public gcu::Dialog
00039 {
00040 public:
00046 Tools (Application *App);
00050 virtual ~Tools ();
00051
00057 void Show (bool visible);
00063 void AddToolbar (std::string &name);
00069 void SetUIManager (GtkUIManager *manager);
00077 void SetPage (Tool *tool, int i);
00084 void OnSelectTool (Tool *tool);
00091 void RegisterTool (GtkWidget *w);
00097 void OnElementChanged (int Z);
00104 void SetElement (int Z);
00108 void OnHelp ();
00109
00110 private:
00111 GtkUIManager *m_UIManager;
00112 GtkBox *m_ButtonsBox;
00113 std::map<Tool*, int> m_Pages;
00114 GtkNotebook *m_Book;
00115 Tool *m_Tool;
00116 GcuComboPeriodic *m_Mendeleiev;
00117 };
00118
00119 }
00120
00121 #endif // GCHEMPAINT_TOOLS_H