Added the TitleBlockTemplateLocationSaver class.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1447 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-01-10 07:07:48 +00:00
parent 8208bdef6b
commit 69302638be
5 changed files with 163 additions and 41 deletions

View File

@@ -36,27 +36,26 @@ class TitleBlockTemplateLocationChooser : public QWidget {
// methods
public:
TitleBlockTemplateLocation location() const;
TitleBlockTemplatesCollection *collection() const;
QString name() const;
void setLocation(const TitleBlockTemplateLocation &);
virtual TitleBlockTemplateLocation location() const;
virtual TitleBlockTemplatesCollection *collection() const;
virtual QString name() const;
virtual void setLocation(const TitleBlockTemplateLocation &);
private:
protected:
void init();
int indexForCollection(TitleBlockTemplatesCollection *) const;
virtual int indexForCollection(TitleBlockTemplatesCollection *) const;
// slots
private slots:
void updateCollections();
void updateTemplates();
void updateNewName();
protected slots:
virtual void updateCollections();
virtual void updateTemplates();
// attributes
private:
protected:
QFormLayout *form_layout_;
QComboBox *collections_; ///< Collections combo box
/// Collections index within the combo box
QHash<int, TitleBlockTemplatesCollection *> collections_index_;
QComboBox *templates_; ///< Existing templates combo box
QLineEdit *new_name_; ///< New template name textfield
};
#endif