mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-08 06:42:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user