mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 05:10:52 +01:00
Element info widget : enable the use of live edit mode
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3996 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#define ELEMENTINFOWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "diagramcontext.h"
|
||||
#include "abstractelementpropertieseditorwidget.h"
|
||||
|
||||
class Element;
|
||||
@@ -48,13 +47,16 @@ class ElementInfoWidget : public AbstractElementPropertiesEditorWidget
|
||||
void apply();
|
||||
QUndoCommand *associatedUndo () const;
|
||||
QString title() const {return tr("Informations");}
|
||||
bool setLiveEdit(bool live_edit);
|
||||
virtual void updateUi();
|
||||
|
||||
protected:
|
||||
virtual bool event(QEvent *event);
|
||||
virtual void enableLiveEdit();
|
||||
virtual void disableLiveEdit();
|
||||
|
||||
private:
|
||||
void buildInterface();
|
||||
void fillInfo();
|
||||
|
||||
private slots:
|
||||
void firstActivated();
|
||||
@@ -62,8 +64,7 @@ class ElementInfoWidget : public AbstractElementPropertiesEditorWidget
|
||||
//ATTRIBUTES
|
||||
private:
|
||||
Ui::ElementInfoWidget *ui;
|
||||
DiagramContext m_element_info;
|
||||
QList <ElementInfoPartWidget *> eipw_list;
|
||||
QList <ElementInfoPartWidget *> m_eipw_list;
|
||||
bool m_first_activation;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user