|
The Gnome Chemistry Utils
0.13.6
|
#include <tools.h>
Public Member Functions | |
| Tools (Application *App) | |
| virtual | ~Tools () |
| void | Show (bool visible) |
| void | AddToolbar (std::string &name) |
| void | SetUIManager (gcugtk::UIManager *manager) |
| void | SetPage (Tool *tool, int i) |
| void | OnSelectTool (Tool *tool) |
| void | RegisterTool (GtkWidget *w) |
| void | OnElementChanged (int Z) |
| void | SetElement (int Z) |
| void | OnHelp () |
class Tools gcp/tools.h The GChemPaint tools box. Only one instance should be created.
| gcp::Tools::Tools | ( | Application * | App | ) |
| App | the GChemPaint Application. |
Builds the tools box for the application.
| virtual gcp::Tools::~Tools | ( | ) | [virtual] |
The destructor.
| void gcp::Tools::AddToolbar | ( | std::string & | name | ) |
| name | the new toolbar name. |
Addsa new toolbar.
| void gcp::Tools::OnElementChanged | ( | int | Z | ) |
| Z | the new current atomic number. |
Called by the framework when the current atomic number has changed.
| void gcp::Tools::OnHelp | ( | ) |
Called by the framework when the Help button is clicked.
| void gcp::Tools::OnSelectTool | ( | Tool * | tool | ) |
| void gcp::Tools::RegisterTool | ( | GtkWidget * | w | ) |
| w | the tool widget, generally a button. |
Registers the Tool corresponding to the widget. The widget name is used to retrieve the Tool from the application using gcp::Application::GetTool().
| void gcp::Tools::SetElement | ( | int | Z | ) |
| Z | the new current atomic number. |
Called by the framework when the user choose a new current atomic number using the Mendeleiev table widget.
| void gcp::Tools::SetPage | ( | Tool * | tool, |
| int | i | ||
| ) |
| tool | the Tool for which an options page has been added. |
| i | the rank of the page in the notebook. |
Registers the new option box for the tool, so that the widget is created only once when the tool is first selected.
| void gcp::Tools::SetUIManager | ( | gcugtk::UIManager * | manager | ) |
| manager | a gcu::UIManager. |
Sets the gcugtk::UIManager associated to the user interface of the tools box.
| void gcp::Tools::Show | ( | bool | visible | ) |
| visible | whether the tools box should be visible. |
Shows or hides the tools box.
1.7.6.1