The Gnome Chemistry Utils  0.15.1
Public Member Functions | List of all members
gcp::NewFileDlg Class Reference

#include <gcp/newfiledlg.h>

Inheritance diagram for gcp::NewFileDlg:
gcugtk::Dialog gcu::Object gcugtk::UIBuilder gcu::Dialog gcu::UIBuilder

Public Member Functions

 NewFileDlg (Application *App)
 
virtual ~NewFileDlg ()
 
bool Apply ()
 
void OnThemeNamesChanged ()
 
void SetTheme (Theme *val)
 
ThemeGetTheme (void) const
 
Theme *& GetRefTheme (void)
 
- Public Member Functions inherited from gcugtk::Dialog
 Dialog (Application *App, char const *filename, const char *windowname, char const *domainname, gcu::DialogOwner *owner=NULL, void(*extra_destroy)(gpointer)=NULL, gpointer data=NULL) throw (std::runtime_error)
 
virtual ~Dialog ()
 
virtual void Destroy ()
 
virtual void Closed ()
 
GtkWindow * GetWindow ()
 
void Present ()
 
void SetTransientFor (GtkWindow *window)
 
- Public Member Functions inherited from gcugtk::UIBuilder
 UIBuilder ()
 
 UIBuilder (char const *filename, char const *domain) throw (std::runtime_error)
 
virtual ~UIBuilder ()
 
GtkWidget * GetWidget (char const *wname)
 
GtkWidget * GetRefdWidget (char const *wname)
 
GObject * GetObject (char const *name)
 
void ActivateActionWidget (char const *path, bool activate)
 
GtkBuilder * GetBuilder (void) const
 
- Public Member Functions inherited from gcu::UIBuilder
 UIBuilder ()
 
- Public Member Functions inherited from gcu::Dialog
 Dialog (Application *App, const char *windowname, DialogOwner *owner=NULL) throw (std::runtime_error)
 
void SetRealName (char const *name, DialogOwner *owner) throw (std::runtime_error)
 
std::string & GetWindowName ()
 
ApplicationGetApp (void)
 

Additional Inherited Members

- Protected Member Functions inherited from gcugtk::Dialog
bool GetNumber (GtkEntry *Entry, double *x, CheckType c=NoCheck, double min=0, double max=0)
 
- Protected Attributes inherited from gcugtk::Dialog
GtkWindow * dialog
 
- Protected Attributes inherited from gcu::Dialog
Applicationm_App
 

Detailed Description

The dialog class for creating new files with a given theme.

Definition at line 40 of file newfiledlg.h.

Constructor & Destructor Documentation

gcp::NewFileDlg::NewFileDlg ( Application App)
Parameters
Appthe application which will own the new file.
virtual gcp::NewFileDlg::~NewFileDlg ( )
virtual

The destructor.

Member Function Documentation

bool gcp::NewFileDlg::Apply ( )
virtual

Called by the framework when the user validates its choice, and creates the new file.

Reimplemented from gcugtk::Dialog.

gcp::NewFileDlg::GetRefTheme ( void  )
inline
Returns
the currently selected theme as a reference.

Definition at line 80 of file newfiledlg.h.

gcp::NewFileDlg::GetTheme ( void  ) const
inline
Returns
the currently selected theme.

Definition at line 80 of file newfiledlg.h.

void gcp::NewFileDlg::OnThemeNamesChanged ( )

Called by the framework when the theme names have changed, which might happen if the user edits the preference when this dialog is opened.

gcp::NewFileDlg::SetTheme ( Theme theme)
inline
Parameters
themethe newly selected theme.

Sets the selected theme when the selection in the list has changed. This method should not be called from elsewhere.

Definition at line 80 of file newfiledlg.h.


The documentation for this class was generated from the following file: