mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-17 06:39:59 +02:00
Use PropertiesEditorWidget instead of QWidget for some widget (widget used to edit propertie of element)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3932 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -15,31 +15,28 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef ELEMENTPROPERTIESWIDGET_H
|
||||
#define ELEMENTPROPERTIESWIDGET_H
|
||||
#ifndef ELEMENTPROPERTIESDIALOG_H
|
||||
#define ELEMENTPROPERTIESDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
class Diagram;
|
||||
class Element;
|
||||
class ElementsLocation;
|
||||
class ElementInfoWidget;
|
||||
class MasterPropertiesWidget;
|
||||
class LinkSingleElementWidget;
|
||||
class QAbstractButton;
|
||||
class QDialogButtonBox;
|
||||
class QTabWidget;
|
||||
class ElementPropertiesWidget;
|
||||
|
||||
class ElementPropertiesDialog : public QDialog {
|
||||
/**
|
||||
* @brief The ElementPropertiesDialog class
|
||||
* Display the element properties widget in a QDialog
|
||||
*/
|
||||
class ElementPropertiesDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ElementPropertiesDialog(Element *elmt, QWidget *parent = 0);
|
||||
|
||||
private:
|
||||
QWidget* generalWidget();
|
||||
void buildInterface();
|
||||
|
||||
signals:
|
||||
/// Signal emitted when users wish to locate an element from the diagram within elements collection
|
||||
void findElementRequired(const ElementsLocation &);
|
||||
@@ -48,19 +45,13 @@ class ElementPropertiesDialog : public QDialog {
|
||||
|
||||
public slots:
|
||||
void standardButtonClicked (QAbstractButton *);
|
||||
void findInPanel ();
|
||||
void editElement ();
|
||||
void findInPanel (const ElementsLocation &);
|
||||
void editElement (const ElementsLocation &);
|
||||
|
||||
private:
|
||||
Element *element_;
|
||||
Diagram *diagram_;
|
||||
QTabWidget *tab_;
|
||||
QPushButton *find_in_panel,
|
||||
*edit_element;
|
||||
QDialogButtonBox *dbb;
|
||||
ElementInfoWidget *eiw_;
|
||||
MasterPropertiesWidget *mpw_;
|
||||
LinkSingleElementWidget *lsew_;
|
||||
ElementPropertiesWidget *m_editor;
|
||||
};
|
||||
|
||||
#endif // ELEMENTPROPERTIESWIDGET_H
|
||||
#endif // ELEMENTPROPERTIESDIALOG_H
|
||||
|
||||
Reference in New Issue
Block a user