[qet] [3993] forget file from previous comit |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3993
Author: blacksun
Date: 2015-05-27 09:37:19 +0200 (Wed, 27 May 2015)
Log Message:
-----------
forget file from previous comit
Modified Paths:
--------------
trunk/sources/PropertiesEditor/propertieseditorwidget.cpp
trunk/sources/PropertiesEditor/propertieseditorwidget.h
Modified: trunk/sources/PropertiesEditor/propertieseditorwidget.cpp
===================================================================
--- trunk/sources/PropertiesEditor/propertieseditorwidget.cpp 2015-05-27 07:22:50 UTC (rev 3992)
+++ trunk/sources/PropertiesEditor/propertieseditorwidget.cpp 2015-05-27 07:37:19 UTC (rev 3993)
@@ -24,7 +24,8 @@
* @param parent : parent widget
*/
PropertiesEditorWidget::PropertiesEditorWidget(QWidget *parent) :
- QWidget(parent)
+ QWidget(parent),
+ m_live_edit(false)
{}
/**
@@ -40,7 +41,30 @@
* @brief PropertiesEditorWidget::title
* @return the title of this editor
*/
-QString PropertiesEditorWidget::title() const
-{
+QString PropertiesEditorWidget::title() const {
return QString();
}
+
+/**
+ * @brief PropertiesEditorWidget::setLiveEdit
+ * Set the editor in live edit mode.
+ * When an editor is in live edit mode, every change is applied immediately (no need to call apply).
+ * If live edit can be enable, return true, else false.
+ * By default this method do nothing and return false (live edit is disable).
+ * Herited class of PropertiesEditorWidget must reimplemente this methode to manage the live edit mode.
+ * @param live_edit true to enable live edit
+ * @return true if live edit is enable, else false.
+ */
+bool PropertiesEditorWidget::setLiveEdit(bool live_edit) {
+ Q_UNUSED(live_edit);
+ return false;
+}
+
+/**
+ * @brief PropertiesEditorWidget::isLiveEdit
+ * @return true if this editor is in live edit mode
+ * else return fasle.
+ */
+bool PropertiesEditorWidget::isLiveEdit() const {
+ return m_live_edit;
+}
Modified: trunk/sources/PropertiesEditor/propertieseditorwidget.h
===================================================================
--- trunk/sources/PropertiesEditor/propertieseditorwidget.h 2015-05-27 07:22:50 UTC (rev 3992)
+++ trunk/sources/PropertiesEditor/propertieseditorwidget.h 2015-05-27 07:37:19 UTC (rev 3993)
@@ -38,6 +38,16 @@
virtual QUndoCommand *associatedUndo () const;
virtual QString title() const;
virtual void updateUi() {}
+
+ virtual bool setLiveEdit (bool live_edit);
+ bool isLiveEdit() const;
+
+ private:
+ virtual void enableLiveEdit() {}
+ virtual void disableLiveEdit() {}
+
+ protected:
+ bool m_live_edit;
};
#endif // PROPERTIESEDITORWIDGET_H
- Messages sorted by: [ date | thread ]
- Prev by Date:
[qet] [3992] Link single element widget, set live edit enable.
- Next by Date:
[qet] Soumission d'element sur le depot
- Previous by thread:
[qet] [3992] Link single element widget, set live edit enable.
- Next by thread:
[qet] [3994] Add new symbols, thanks cbh41600, Angelescu, eb3pas, Baboune, mathdabomb, titus, Yes, Julkien