projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MainWindow: Remember directory of last file that was opened/saved.
[pulseview.git]
/
pv
/
prop
/
property.h
diff --git
a/pv/prop/property.h
b/pv/prop/property.h
index 6ab83193963c3d0a8f6b470c2bd551c41ad625ac..e5a523f93758ac6612f87637a06b7cad5770bd5e 100644
(file)
--- a/
pv/prop/property.h
+++ b/
pv/prop/property.h
@@
-21,9
+21,7
@@
#ifndef PULSEVIEW_PV_PROP_PROPERTY_H
#define PULSEVIEW_PV_PROP_PROPERTY_H
#ifndef PULSEVIEW_PV_PROP_PROPERTY_H
#define PULSEVIEW_PV_PROP_PROPERTY_H
-#include <glib-2.0/glib.h>
-
-#include <boost/function.hpp>
+#include <glib.h>
#include <QString>
#include <QWidget>
#include <QString>
#include <QWidget>
@@
-33,11
+31,13
@@
class QWidget;
namespace pv {
namespace prop {
namespace pv {
namespace prop {
-class Property
+class Property
: public QObject
{
{
+ Q_OBJECT;
+
public:
public:
- typedef
boost
::function<GVariant* ()> Getter;
- typedef
boost
::function<void (GVariant*)> Setter;
+ typedef
std
::function<GVariant* ()> Getter;
+ typedef
std
::function<void (GVariant*)> Setter;
protected:
Property(QString name, Getter getter, Setter setter);
protected:
Property(QString name, Getter getter, Setter setter);
@@
-45,7
+45,9
@@
protected:
public:
const QString& name() const;
public:
const QString& name() const;
- virtual QWidget* get_widget(QWidget *parent) = 0;
+ virtual QWidget* get_widget(QWidget *parent,
+ bool auto_commit = false) = 0;
+ virtual bool labeled_widget() const;
virtual void commit() = 0;
virtual void commit() = 0;