33 #include <QModelIndex>
34 #include <QItemSelection>
37 #pragma warning( disable:4251 )
41 class QAbstractItemDelegate;
61 QAbstractItemDelegate* itemDelegate()
const;
62 void setItemDelegate( QAbstractItemDelegate* );
64 bool rootIsDecorated()
const;
65 void setRootIsDecorated(
const bool );
67 bool sortMenuEnabled()
const;
68 void setSortMenuEnabled(
const bool );
71 bool isSearchToolEnabled()
const;
72 void setSearchToolEnabled(
const bool );
74 int autoOpenLevel()
const;
75 void setAutoOpenLevel(
const int );
76 void openLevels(
const int = -1 );
81 int numberOfSelected()
const;
82 QModelIndexList selectedIndexes()
const;
83 const QItemSelection selection()
const;
85 virtual void select(
const QModelIndex&,
const bool,
const bool =
true );
86 virtual void select(
const QModelIndexList&,
const bool,
const bool =
true );
88 bool isOpen(
const QModelIndex& )
const;
89 virtual void setOpen(
const QModelIndex& theObject,
const bool theOpen =
true );
92 void adjustFirstColumnWidth();
93 void adjustColumnsWidth();
106 unsigned long getModifiedTime()
const;
115 QByteArray getOpenStates(
int theColumn )
const;
116 void setOpenStates(
const QByteArray&,
int theColumn );
119 void openStates(
bool isGet,
MapOfOpenStates&,
const QModelIndex& theIndex,
int theColumn );
128 void onCollapseAll();
138 virtual void contextMenuEvent( QContextMenuEvent* );
139 virtual void createPopupMenu(
QMenu* );
148 bool hasCollased(
const QModelIndex& )
const;
149 bool hasExpanded(
const QModelIndex& )
const;
#define OB_EXPORT
Definition: OB.h:33
Object browser widget which can be used to handle tree-like data model.
Definition: OB_Browser.h:48
void selectionChanged()
Emitted when selection is changed in the Object Browser.
QtxSearchTool * mySearchTool
Definition: OB_Browser.h:175
virtual void onExpanded(const QModelIndex &)
Definition: OB_Browser.h:129
unsigned long myModifiedTime
Definition: OB_Browser.h:182
QMap< QString, bool > MapOfOpenStates
Definition: OB_Browser.h:118
int myAutoOpenLevel
Definition: OB_Browser.h:181
QtxTreeView * myView
Definition: OB_Browser.h:174
Tree view class with possibility to display columns popup menu.
Definition: QtxTreeView.h:35