2013-11-01 10:54:24 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtGui/QMainWindow>
|
|
|
|
#include <QAbstractItemModel>
|
|
|
|
#include <QItemSelection>
|
|
|
|
|
|
|
|
class DemoPdmObject;
|
2018-01-11 06:50:22 -06:00
|
|
|
class DemoPdmObjectGroup;
|
2013-11-01 10:54:24 -05:00
|
|
|
class QTreeView;
|
2015-07-29 07:19:43 -05:00
|
|
|
class QUndoView;
|
2017-09-08 09:32:45 -05:00
|
|
|
class QLabel;
|
2013-11-01 10:54:24 -05:00
|
|
|
|
|
|
|
namespace caf
|
|
|
|
{
|
2015-08-13 07:16:41 -05:00
|
|
|
class PdmObjectCollection;
|
2015-07-29 07:19:43 -05:00
|
|
|
class PdmObjectHandle;
|
2013-11-01 10:54:24 -05:00
|
|
|
class UiTreeModelPdm;
|
|
|
|
class PdmUiPropertyView;
|
2015-07-29 07:19:43 -05:00
|
|
|
class PdmUiTreeView;
|
|
|
|
class PdmUiTableView;
|
2017-09-08 07:43:14 -05:00
|
|
|
class CustomObjectEditor;
|
2013-11-01 10:54:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow();
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
static MainWindow* instance();
|
2015-07-29 07:19:43 -05:00
|
|
|
void setPdmRoot(caf::PdmObjectHandle* pdmRoot);
|
2013-11-01 10:54:24 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void createActions();
|
|
|
|
void createDockPanels();
|
|
|
|
|
|
|
|
void buildTestModel();
|
|
|
|
void releaseTestData();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void slotInsert();
|
|
|
|
void slotRemove();
|
|
|
|
void slotRemoveAll();
|
2015-07-29 07:19:43 -05:00
|
|
|
|
|
|
|
void slotSimpleSelectionChanged();
|
|
|
|
void slotShowTableView();
|
2013-11-01 10:54:24 -05:00
|
|
|
|
2018-01-11 06:50:22 -06:00
|
|
|
void slotLoadProject();
|
|
|
|
void slotSaveProject();
|
2013-11-01 10:54:24 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
static MainWindow* sm_mainWindowInstance;
|
|
|
|
|
|
|
|
private:
|
2015-07-29 07:19:43 -05:00
|
|
|
QUndoView* undoView;
|
|
|
|
|
|
|
|
caf::PdmUiTreeView* m_pdmUiTreeView;
|
|
|
|
caf::PdmUiTreeView* m_pdmUiTreeView2;
|
2013-11-01 10:54:24 -05:00
|
|
|
caf::PdmUiPropertyView* m_pdmUiPropertyView;
|
2015-07-29 07:19:43 -05:00
|
|
|
caf::PdmUiTableView* m_pdmUiTableView;
|
2018-01-11 06:50:22 -06:00
|
|
|
DemoPdmObjectGroup* m_testRoot;
|
2017-09-08 07:43:14 -05:00
|
|
|
|
|
|
|
caf::CustomObjectEditor* m_customObjectEditor;
|
2017-09-08 09:32:45 -05:00
|
|
|
|
|
|
|
QLabel* m_plotLabel;
|
|
|
|
QLabel* m_smallPlotLabel;
|
2013-11-01 10:54:24 -05:00
|
|
|
};
|
|
|
|
|