mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1107 Moved showWindow field to RimViewWindow and removed showWindow field from derived classes
This commit is contained in:
@@ -60,29 +60,36 @@ public:
|
||||
virtual QImage snapshotWindowContent() = 0;
|
||||
virtual void zoomAll() = 0;
|
||||
|
||||
protected:
|
||||
|
||||
// Derived classes are not supposed to override this function. The intention is to always use m_showWindow
|
||||
// as the objectToggleField for this class. This way the visibility of a widget being part of a composite widget
|
||||
// can be controlled from the project tree using check box toggles
|
||||
virtual caf::PdmFieldHandle* objectToggleField() override final;
|
||||
|
||||
protected:
|
||||
void removeMdiWindowFromMdiArea();
|
||||
void updateMdiWindowVisibility();
|
||||
|
||||
///////// Interface for the Window controller
|
||||
friend class RimMdiWindowController;
|
||||
|
||||
virtual caf::PdmField<bool>* getShowWindowField() = 0;
|
||||
virtual QWidget* createViewWidget(QWidget* mainWindowParent) = 0;
|
||||
virtual void updateViewWidgetAfterCreation() {};
|
||||
virtual void updateMdiWindowTitle(); // Has real default implementation
|
||||
virtual void deleteViewWidget() = 0;
|
||||
virtual void deleteViewWidget() = 0;
|
||||
virtual void loadDataAndUpdate() = 0;
|
||||
//////////
|
||||
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
virtual void initAfterRead() override;
|
||||
|
||||
caf::PdmField<bool> m_showWindow;
|
||||
|
||||
private:
|
||||
void setAsMdiWindow(int mainWindowID);
|
||||
|
||||
caf::PdmChildField<RimMdiWindowController*> m_windowController;
|
||||
|
||||
|
||||
// Obsoleted field
|
||||
caf::PdmField< std::vector<int> > obsoleteField_windowGeometry;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user