12 #include <QModelIndex>
22 class QAbstractItemModel;
54 virtual QSize sizeHint()
const;
69 unsigned addTree(
const QString& name, QAbstractItemModel* model,
70 DtRowNameLoc rowNameLoc,
bool decorateRoot,
bool hideHeader,
bool alternateRowColor);
71 void addTreeAndTable(
const QString& treeName, QAbstractItemModel* treeModel,
72 DtRowNameLoc treeRowNameLoc,
73 const QString& TableName, QAbstractItemModel* tableModel,
74 DtRowNameLoc tableRowNameLoc);
85 void saveGuiConfiguration(QFile& configFile);
89 void loadGuiConfiguration(QFile& configFile);
92 void setFederateId(
const QString& federateId) { myFederateId = federateId; }
94 void updateTreeLabel(
const QString& name);
96 const QModelIndex getCurrentSelection()
const;
98 void expandTree()
const;
100 void collapseItem(QStandardItem * item);
102 void setSelectionBehaviorRow();
104 void refresh()
const;
111 void connectSignals();
114 void getRowAndColNames(DtTreeAndModelIndex modelIndex, QString& rowName,
126 void writeTreeToStream(
const QTreeView* tree, QTextStream& fileStrm,
127 TableFileFormat format);
130 void treeItemSelected(
const QModelIndex& index);
137 void processItemSelection(
const QModelIndex& index);
140 void processItemSelectionChange();
143 void processCurrentChanged(
const QModelIndex&,
const QModelIndex&);
147 void updateSortingEnable();