1 #ifndef fomTreeAndTableWidget_h__
2 #define fomTreeAndTableWidget_h__
12 #include <QtGui/QWidget>
13 #include <QModelIndex>
23 class QAbstractItemModel;
55 virtual QSize sizeHint()
const;
70 unsigned addTree(
const QString& name, QAbstractItemModel* model,
71 DtRowNameLoc rowNameLoc,
bool decorateRoot,
bool hideHeader,
bool alternateRowColor);
72 void addTreeAndTable(
const QString& treeName, QAbstractItemModel* treeModel,
73 DtRowNameLoc treeRowNameLoc,
74 const QString& TableName, QAbstractItemModel* tableModel,
75 DtRowNameLoc tableRowNameLoc);
86 void saveGuiConfiguration(QFile& configFile);
90 void loadGuiConfiguration(QFile& configFile);
93 void setFederateId(
const QString& federateId) { myFederateId = federateId; }
95 void updateTreeLabel(
const QString& name);
97 const QModelIndex getCurrentSelection()
const;
99 void expandTree()
const;
101 void collapseItem(QStandardItem * item);
103 void setSelectionBehaviorRow();
105 void refresh()
const;
112 void connectSignals();
115 void getRowAndColNames(DtTreeAndModelIndex modelIndex, QString& rowName,
127 void writeTreeToStream(
const QTreeView* tree, QTextStream& fileStrm,
128 TableFileFormat format);
131 void treeItemSelected(
const QModelIndex& index);
138 void processItemSelection(
const QModelIndex& index);
141 void processItemSelectionChange();
144 void processCurrentChanged(
const QModelIndex&,
const QModelIndex&);
148 void updateSortingEnable();
201 #endif // fomTreeAndTableWidget_h__