Continuing spliting subwindow into different categories

This commit is contained in:
jfmcarreira committed 2014-12-09 20:15:37 +00:00
1 parent 1af504d56f
commit 007f3ed67f
9 files changed
+71 -58

No files matched your search

+37 -1
View File
@@ -51,8 +51,44 @@ public:
MODULE_SUBWINDOW,
PLOT_SUBWINDOW,
}
SubWindowHandle( QWidget * parent, UInt category );
SubWindowHandle( QWidget *, UInt );
~SubWindowHandle();
/**
* Show the image at its original size
*/
virtual Void normalSize() {};
/**
* Scale the image (zoomed in or out) to fit on the window.
*/
virtual Void zoomToFit() {};
/**
* Scale the image by a given factor
* @param factor factor of scale. Ex: 1.2 scale the image up by 20% and
* 0.8 scale the image down by 25%
*/
virtual Void scaleView( Double scale ) {};
/**
* The current image size is scaled to a rectangle as large as possible
* inside (@p width, @p height ) preserving the aspect ratio.
*/
virtual Void scaleView( Int width, Int height ) {};
/**
* This is an overloaded member function, provided for convenience.
* Scales the image to a rectangle with the given size, preserving the
* aspect ratio.
*/
Void scaleView( const QSize & size ) {};
virtual QString getWindowName();
virtual Bool mayClose();
UInt getCategory()
{
return m_uiCategory;
}
};
} // NAMESPACE