mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk tests. Added rotation to locator. Caf::FrameAnimationControl : Set current frame to 0 if a framecount change makes the current frame invalid
57 lines
1.0 KiB
C++
57 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <QtGui/QMainWindow>
|
|
#include <QAbstractItemModel>
|
|
#include <QItemSelection>
|
|
|
|
class DemoPdmObject;
|
|
class QTreeView;
|
|
|
|
namespace caf
|
|
{
|
|
class PdmObjectGroup;
|
|
class PdmObject;
|
|
class UiTreeModelPdm;
|
|
class PdmUiPropertyView;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow();
|
|
~MainWindow();
|
|
|
|
static MainWindow* instance();
|
|
void setPdmRoot(caf::PdmObject* pdmRoot);
|
|
|
|
private:
|
|
void createActions();
|
|
void createMenus();
|
|
void createToolBars();
|
|
void createDockPanels();
|
|
|
|
|
|
void buildTestModel();
|
|
void releaseTestData();
|
|
|
|
private slots:
|
|
void slotInsert();
|
|
void slotRemove();
|
|
void slotRemoveAll();
|
|
void slotSelectionChanged(const QItemSelection &, const QItemSelection & );
|
|
|
|
|
|
private:
|
|
static MainWindow* sm_mainWindowInstance;
|
|
|
|
private:
|
|
QTreeView* m_treeView;
|
|
caf::UiTreeModelPdm* m_treeModelPdm;
|
|
caf::PdmUiPropertyView* m_pdmUiPropertyView;
|
|
caf::PdmObjectGroup* m_testRoot;
|
|
|
|
};
|
|
|