mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 05:10:52 +01:00
Implemented the common and custom title block templates collections.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1433 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#define TITLEBLOCK_SLASH_LOCATION_CHOOSER_H
|
||||
#include <QtGui>
|
||||
#include "templatelocation.h"
|
||||
class TitleBlockTemplateCollection;
|
||||
|
||||
/**
|
||||
This class is a widget that allows the user to choose a target title block
|
||||
template.
|
||||
@@ -35,7 +37,7 @@ class TitleBlockTemplateLocationChooser : public QWidget {
|
||||
// methods
|
||||
public:
|
||||
TitleBlockTemplateLocation location() const;
|
||||
QETProject *project() const;
|
||||
TitleBlockTemplatesCollection *collection() const;
|
||||
QString name() const;
|
||||
void setLocation(const TitleBlockTemplateLocation &);
|
||||
private:
|
||||
@@ -43,12 +45,16 @@ class TitleBlockTemplateLocationChooser : public QWidget {
|
||||
|
||||
// slots
|
||||
private slots:
|
||||
void updateCollections();
|
||||
void updateTemplates();
|
||||
void updateNewName();
|
||||
|
||||
// attributes
|
||||
private:
|
||||
QComboBox *projects_; ///< Projects combo box
|
||||
QComboBox *templates_; ///< Existing templates combo box
|
||||
QLineEdit *new_name_; ///< New template name textfield
|
||||
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