The Gnome Chemistry Utils
0.13.7
|
#include <gcr/window.h>
Inherits gcugtk::Window.
Public Member Functions | |
Window (gcu::Application *app, Document *doc, char const *extra_ui=NULL) | |
virtual | ~Window () |
virtual void | Destroy () |
void | ClearStatus () |
void | SetStatusText (const char *text) |
gcr::Application * | GetApplication (void) |
View * | GetView (void) const |
Protected Member Functions | |
virtual void | OnSave () |
Protected Attributes | |
Document * | m_Document |
gcr::Application * | m_Application |
Window class.
This class wraps the window used to display a view.
Definition at line 45 of file gcr/window.h.
gcr::Window::Window | ( | gcu::Application * | app, |
Document * | doc, | ||
char const * | extra_ui = NULL |
||
) |
app | the application. |
doc | the document. |
extra_ui | a string describing the menu items to add. |
Contructs the new window. Default menus do not have a File/Quit item or a Windows menu. extra_ui can be used to add them. GCrystal uses:
"<ui>" " <menubar name='MainMenu'>" " <menu action='FileMenu'>" " <placeholder name='file1'>" " <menuitem action='Quit'/>" " </placeholder>" " </menu>" " <placeholder name='menu1'>" " <menu action='WindowsMenu'>" " <menuitem action='NewView'/>" " <menuitem action='CloseView'/>" " </menu>" " </placeholder>" " </menubar>" "</ui>";
virtual gcr::Window::~Window | ( | ) | [virtual] |
The destructor.
Reimplemented from gcu::Window.
void gcr::Window::ClearStatus | ( | ) |
Clears the status bar message.
virtual void gcr::Window::Destroy | ( | ) | [virtual] |
Destroys the window.
Reimplemented from gcu::Window.
gcr::Window::GetApplication | ( | void | ) | [inline] |
Definition at line 121 of file gcr/window.h.
gcr::Window::GetView | ( | void | ) | const [inline] |
Definition at line 125 of file gcr/window.h.
virtual void gcr::Window::OnSave | ( | ) | [protected, virtual] |
Saves the document.
void gcr::Window::SetStatusText | ( | const char * | text | ) |
text | the text to display in the status bar. |
Sets the status bar message.
gcr::Window::m_Application [protected] |
The gcu::Application owning this window.
Definition at line 121 of file gcr/window.h.
gcr::Window::m_Document [protected] |
The gcr::Document displayed in this window.
Definition at line 114 of file gcr/window.h.