~ubuntu-sdk-team/qtcreator-plugin-remotelinux/trunk

« back to all changes in this revision

Viewing changes to src/qnx/bardescriptoreditorabstractpanelwidget.h

  • Committer: CI bot
  • Author(s): Benjamin Zeller
  • Date: 2014-06-16 10:28:43 UTC
  • mfrom: (4.2.4 remotelinux)
  • Revision ID: ps-jenkins@lists.canonical.com-20140616102843-8juvmjvzwlzsboyw
Migrating to Qt5.3 and QtC 3.1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#include <QWidget>
36
36
 
37
 
namespace Utils {
38
 
class PathChooser;
39
 
}
 
37
#include "bardescriptordocument.h"
 
38
 
 
39
namespace Utils { class PathChooser; }
40
40
 
41
41
QT_BEGIN_NAMESPACE
42
42
class QCheckBox;
43
43
class QComboBox;
44
44
class QLineEdit;
 
45
class QSignalMapper;
 
46
class QStringListModel;
45
47
class QTextEdit;
46
48
QT_END_NAMESPACE
47
49
 
54
56
public:
55
57
    explicit BarDescriptorEditorAbstractPanelWidget(QWidget *parent = 0);
56
58
 
57
 
    virtual void clear() = 0;
 
59
public slots:
 
60
    void setValue(BarDescriptorDocument::Tag tag, const QVariant &value);
58
61
 
59
62
signals:
60
 
    void changed();
 
63
    void changed(BarDescriptorDocument::Tag tag, const QVariant &value);
61
64
 
62
65
protected:
63
 
    void setComboBoxBlocked(QComboBox *comboBox, int index);
64
 
    void setCheckBoxBlocked(QCheckBox *checkBox, bool checked);
65
 
    void setLineEditBlocked(QLineEdit *lineEdit, const QString &text);
66
 
    void setTextEditBlocked(QTextEdit *textEdit, const QString &text);
67
 
    void setPathChooserBlocked(Utils::PathChooser *pathChooser, const QString &path);
 
66
    virtual void updateWidgetValue(BarDescriptorDocument::Tag tag, const QVariant &value);
 
67
    virtual void emitChanged(BarDescriptorDocument::Tag tag);
 
68
 
 
69
    void addSignalMapping(BarDescriptorDocument::Tag tag, QObject *object, const char *signal);
 
70
    void blockSignalMapping(BarDescriptorDocument::Tag tag);
 
71
    void unblockSignalMapping(BarDescriptorDocument::Tag tag);
 
72
 
 
73
private slots:
 
74
    void handleSignalMapped(int id);
 
75
 
 
76
private:
 
77
    QSignalMapper *m_signalMapper;
 
78
    QList<BarDescriptorDocument::Tag> m_blockedSignals;
68
79
};
69
80
 
70
81
} // namespace Internal