summaryrefslogtreecommitdiffstats
path: root/mappingtreewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'mappingtreewidget.h')
-rw-r--r--mappingtreewidget.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/mappingtreewidget.h b/mappingtreewidget.h
index d5c431f..99f7c17 100644
--- a/mappingtreewidget.h
+++ b/mappingtreewidget.h
@@ -77,89 +77,5 @@ class MappingTreeWidget : public QWidget {
-class MappingTreeResultView : public SmTreeView {
- Q_OBJECT
- public:
- explicit MappingTreeResultView(QWidget *parent = 0);
-
- signals:
- void shiftFocus();
- void removeMapping();
-
- protected:
- virtual void keyPressEvent(QKeyEvent *e);
-};
-
-class MappingEditWidget : public QWidget {
- Q_OBJECT
- public:
- explicit MappingEditWidget(QWidget *parent = 0);
- MappingTreeResultModel *model() const { return mResultModel; }
- MappingTreeWidget *treeWidget() const { return mMappingTree; }
-
- public slots:
- void addMapping();
- void addTree();
- void removeMapping();
- void clearMapping();
- void setMappings(const QList<MappingData> &mappings);
- void expandAllResults();
- void shiftFocusResult();
- void shiftFocusMappings();
- void saveMappings(QString where);
- void loadMappings(QString from);
- void resultSelectionChanged(const QModelIndex &current, const QModelIndex &previous);
-
- private:
- MappingTreeWidget *mMappingTree;
- MappingTreeResultView *mMappingResult;
- MappingTreeResultModel *mResultModel;
- QPushButton *mAddMapping;
- QPushButton *mRemoveMapping;
- QPushButton *mClearMapping;
- QPushButton *mAddTree;
-};
-
-class MappingInputDialog : public QDialog {
- Q_OBJECT
- public:
- explicit MappingInputDialog(QWidget *parent, Qt::WindowFlags f = 0);
- QString mappingName() const;
- bool createRoot() const;
-
- private:
- QPushButton *mOk;
- QPushButton *mCancel;
- QLineEdit *mEditor;
- QCheckBox *mIsRoot;
-
-};
-
-class MappingEditDialog : public QDialog {
- Q_OBJECT
- public:
- explicit MappingEditDialog(QWidget *parent, Qt::WindowFlags f = 0);
- MappingEditWidget *editWidget() const { return mEditWidget; }
-
- private:
- MappingEditWidget *mEditWidget;
- QPushButton *mOk;
- QPushButton *mCancel;
-};
-
-class MappingTreeProxy : public QSortFilterProxyModel {
- Q_OBJECT
- public:
- explicit MappingTreeProxy(QObject *parent = 0);
-
- public slots:
- void setFilter(const QString &filter);
-
- protected:
- virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
-
- private:
- QRegExp mFilter;
-};
#endif // MAPPINGTREEWIDGET_H