1 #ifndef PTREE_VIEW_H_INCLUDED
2 #define PTREE_VIEW_H_INCLUDED
64 bool IsOnlyEditData()
const;
66 void SetOnlyEditData(
bool);
74 QAction* GetUndoAction()
const;
75 QAction* GetRedoAction()
const;
76 QAction* GetCutAction()
const;
77 QAction* GetCopyAction()
const;
78 QAction* GetPasteAction()
const;
79 QAction* GetMoveUpAction()
const;
80 QAction* GetMoveDownAction()
const;
81 QAction* GetInsertBeforeAction()
const;
82 QAction* GetInsertChildAction()
const;
83 QAction* GetRemoveAction()
const;
84 QAction* GetFindDialogAction()
const;
85 QAction* GetClearHighlightAction()
const;
86 QAction* GetExpandAllAction()
const;
87 QAction* GetExpandNoneAction()
const;
147 void ClearHighlight();
153 void FindNext(QString
const &,
bool match_case);
159 void SetClipboardChanged();
165 void SetSelectionChanged(QItemSelection
const &, QItemSelection
const &);
199 QUndoStack m_undo_stack;
201 bool m_only_edit_data;
203 Qt::MatchFlags m_flags;
205 QModelIndexList m_results;
208 QAction* m_action_undo;
209 QAction* m_action_redo;
210 QAction* m_action_cut;
211 QAction* m_action_copy;
212 QAction* m_action_paste;
213 QAction* m_action_move_up;
214 QAction* m_action_move_down;
215 QAction* m_action_insert;
216 QAction* m_action_insert_child;
217 QAction* m_action_remove;
218 QAction* m_action_find_dialog;
219 QAction* m_action_clear_highlight;
220 QAction* m_action_expand_all;
221 QAction* m_action_expand_none;
227 #endif // end_of_inclde_guard
see the online Qt documentation
Interface for MyTreeView.
PTreeView(QWidget *parent=0)
Constructor.
Dialog window for searching strings.
void StatusChanged(QString const &message)
Emitted when view has some message to share with, for example, a statusbar.
see the online C++11 documentation
bool IsClean() const
Test whether the view's internal undo stack is in a clean state.
virtual void setModel(QAbstractItemModel *model)
Reimplemented from QTreeView, also enables/disables certain actions.
virtual void contextMenuEvent(QContextMenuEvent *)
Reimplemented from QWidget.
void SetClean()
Set the view's internal undo stack's current state to be the clean state.
TreeView widget that presents an editable ptree to the user.
QTreeView with methods to import/export widget layout (x,y,width, ...) in ptree format.
see the online Qt documentation
virtual ~PTreeView()
Virtual Destructor.
void CleanChanged(bool clean)
Emitted whenever the view's internal undo stack state changes from clean to non-clean, or from non-clean to clean.
Namespace for generic graphical shell for simulators.
void Edited()
Emitted whenever the data contained in the model changes.