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 <map>
00030
00032 namespace gcp {
00033
00037 class Tools: public gcu::Dialog
00038 {
00039 public:
00045 Tools (Application *App);
00049 virtual ~Tools ();
00050
00056 void Show (bool visible);
00062 void AddToolbar (std::string &name);
00068 void SetUIManager (GtkUIManager *manager);
00076 void SetPage (Tool *tool, int i);
00083 void OnSelectTool (Tool *tool);
00090 void RegisterTool (GtkWidget *w);
00096 void OnElementChanged (int Z);
00103 void SetElement (int Z);
00107 void OnHelp ();
00108
00109 private:
00110 GtkUIManager *m_UIManager;
00111 GtkBox *m_ButtonsBox;
00112 std::map<Tool*, int> m_Pages;
00113 GtkNotebook *m_Book;
00114 Tool *m_Tool;
00115 };
00116
00117 }
00118
00119 #endif // GCHEMPAINT_TOOLS_H