6 #ifndef treesAndGraphWidget_H_
7 #define treesAndGraphWidget_H_
10 #include <QtGui/QWidget>
11 #include <QModelIndex>
21 class QAbstractItemModel;
49 virtual QSize sizeHint()
const;
65 unsigned addTree(
const QString& name,
const QString& description,
66 QAbstractItemModel* model, DtRowNameLoc rowNameLoc,
bool hideHeaders =
false);
76 void enableValueGraphing(
unsigned treeIndex,
unsigned column,
77 const QString& units);
81 void enableRateGraphing(
unsigned treeIndex,
unsigned column,
82 const QString& units);
95 void updateGraphs(
double currentTime);
98 void updateGraphsForTree(
unsigned treeIndex,
double currentTime);
102 void saveGuiConfiguration(QFile& configFile);
106 void loadGuiConfiguration(QFile& configFile);
109 void setFederateId(
const QString& federateId) { myFederateId = federateId; }
120 void connectSignals();
123 void getRowAndColNames(DtTreeAndModelIndex modelIndex, QString& rowName,
127 void enableDisableGraphOptions();
137 void writeTreeToStream(
const QTreeView* tree, QTextStream& fileStrm,
138 TableFileFormat format);
143 void deleteDialog(
QWidget* graphDialog);
147 void processItemSelection(
const QModelIndex& index);
150 void showContextMenu(
const QPoint& point);
153 void graphSelectedItem();
156 void graphSelectedItemRate();
159 void updateSortingEnable();
162 void saveTreesToFile();
241 #endif // treesAndGraphWidget_H_