mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-28 14:50:52 +01:00
Dock properties editor : when selection change dock try to stay in the same tab with the new selection (if possible)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3990 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#ifndef ELEMENTPROPERTIESWIDGET_H
|
||||
#define ELEMENTPROPERTIESWIDGET_H
|
||||
|
||||
#include "PropertiesEditor/propertieseditorwidget.h"
|
||||
#include "abstractelementpropertieseditorwidget.h"
|
||||
|
||||
class Element;
|
||||
class Diagram;
|
||||
@@ -26,12 +26,13 @@ class QTabWidget;
|
||||
class ElementsLocation;
|
||||
|
||||
|
||||
class ElementPropertiesWidget : public PropertiesEditorWidget
|
||||
class ElementPropertiesWidget : public AbstractElementPropertiesEditorWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ElementPropertiesWidget(Element *elmt, QWidget *parent = 0);
|
||||
void setElement(Element *element);
|
||||
void apply();
|
||||
void reset();
|
||||
|
||||
@@ -41,6 +42,8 @@ class ElementPropertiesWidget : public PropertiesEditorWidget
|
||||
|
||||
private:
|
||||
void buildGui();
|
||||
void updateUi();
|
||||
void addGeneralWidget();
|
||||
QWidget *generalWidget();
|
||||
|
||||
signals:
|
||||
@@ -50,10 +53,10 @@ class ElementPropertiesWidget : public PropertiesEditorWidget
|
||||
void editElementRequired(const ElementsLocation &);
|
||||
|
||||
private:
|
||||
Element *m_element;
|
||||
Diagram *m_diagram;
|
||||
QTabWidget *m_tab;
|
||||
QList <PropertiesEditorWidget *> m_list_editor;
|
||||
QList <AbstractElementPropertiesEditorWidget *> m_list_editor;
|
||||
QWidget *m_general_widget;
|
||||
};
|
||||
|
||||
#endif // ELEMENTPROPERTIESWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user