The Gnome Chemistry Utils  0.14.0
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

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 bool Apply ()
virtual void Closed ()
GtkWindow * GetWindow ()
void Present ()
void SetTransientFor (GtkWindow *window)
- Public Member Functions inherited from gcugtk::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)
GtkBuilder * GetBuilder (void) const
- 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
- Private Member Functions inherited from gcu::Object
 Object (TypeId Id=OtherType)
virtual ~Object ()
TypeId GetType () const
void SetId (gchar const *Id)
char const * GetId () const
virtual void AddChild (Object *object)
ObjectGetMolecule () const
ObjectGetReaction () const
ObjectGetGroup () const
DocumentGetDocument () const
ApplicationGetApplication () const
ObjectGetParentOfType (TypeId Id) const
ObjectGetChild (const gchar *Id) const
ObjectGetFirstChild (std::map< std::string, Object * >::iterator &i)
ObjectGetNextChild (std::map< std::string, Object * >::iterator &i)
ObjectGetDescendant (const char *Id) const
ObjectGetParent () const
void SetParent (Object *Parent)
virtual xmlNodePtr Save (xmlDocPtr xml) const
virtual bool Load (xmlNodePtr node)
virtual bool GetCoords (double *x, double *y, double *z=NULL) const
virtual void Move (double x, double y, double z=0.)
virtual void Transform2D (Matrix2D &m, double x, double y)
bool SaveChildren (xmlDocPtr xml, xmlNodePtr node) const
void SaveId (xmlNodePtr node) const
xmlNodePtr GetNodeByProp (xmlNodePtr node, char const *Property, char const *Id)
xmlNodePtr GetNextNodeByProp (xmlNodePtr node, char const *Property, char const *Id)
xmlNodePtr GetNodeByName (xmlNodePtr node, char const *Name)
xmlNodePtr GetNextNodeByName (xmlNodePtr node, char const *Name)
bool HasChildren () const
unsigned GetChildrenNumber () const
virtual ObjectGetAtomAt (double x, double y, double z=0.)
virtual bool Build (std::set< Object * > const &Children) throw (std::invalid_argument)
virtual double GetYAlign ()
virtual bool BuildContextualMenu (UIManager *uim, Object *object, double x, double y)
void EmitSignal (SignalId Signal)
virtual bool OnSignal (SignalId Signal, Object *Child)
void Lock (bool state=true)
bool IsLocked ()
ObjectGetFirstLink (std::set< Object * >::iterator &i)
ObjectGetNextLink (std::set< Object * >::iterator &i)
void Link (Object *object)
void Unlink (Object *object)
virtual void OnUnlink (Object *object)
void GetPossibleAncestorTypes (std::set< TypeId > &types) const
virtual bool SetProperty (unsigned property, char const *value)
virtual std::string GetProperty (unsigned property) const
virtual void OnLoaded ()
void SetDirty (bool dirty=true)
virtual void Clear ()
virtual std::string Name ()
std::string Identity ()
virtual char const * HasPropertiesDialog () const
virtual bool CanSelect () const
virtual void NotifyEmpty ()
void ShowPropertiesDialog ()
bool GetDirty (void) const
virtual DialogBuildPropertiesDialog ()
- Static Private Member Functions inherited from gcu::Object
static TypeId AddType (std::string TypeName, Object *(*CreateFunc)(), TypeId id=OtherType)
static void AddAlias (TypeId id, std::string TypeName)
static ObjectCreateObject (const std::string &TypeName, Object *parent=NULL)
static TypeId GetTypeId (const std::string &Name)
static std::string GetTypeName (TypeId Id)
static void AddMenuCallback (TypeId Id, BuildMenuCb cb)
static void AddRule (TypeId type1, RuleId rule, TypeId type2)
static void AddRule (const std::string &type1, RuleId rule, const std::string &type2)
static const std::set< TypeId > & GetRules (TypeId type, RuleId rule)
static const std::set< TypeId > & GetRules (const std::string &type, RuleId rule)
static void SetCreationLabel (TypeId Id, std::string Label)
static const std::string & GetCreationLabel (TypeId Id)
static const std::string & GetCreationLabel (const std::string &TypeName)
static SignalId CreateNewSignalId ()

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 ( )

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

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: