(svn r18321) -Fix [FS#3331]: make the toolbars also calculate their top location based on the main toolbar's height instead of hardcoding that

This commit is contained in:
rubidium
2009-11-28 14:36:43 +00:00
parent 6a367fda8a
commit b58b058e2b
7 changed files with 14 additions and 22 deletions

View File

@@ -159,11 +159,10 @@ enum WindowDefaultFlag {
* Special values for 'left' and 'top' to cause a specific placement
*/
enum WindowDefaultPosition {
WDP_MANUAL, ///< Manually align the window (so no automatic location finding)
WDP_AUTO = -1, ///< Find a place automatically
WDP_CENTER = -2, ///< Center the window (left/right or top/bottom)
WDP_ALIGN_TBR = -3, ///< Align the right side of the window with the right side of the main toolbar
WDP_ALIGN_TBL = -4, ///< Align the left side of the window with the left side of the main toolbar
WDP_MANUAL, ///< Manually align the window (so no automatic location finding)
WDP_AUTO = -1, ///< Find a place automatically
WDP_CENTER = -2, ///< Center the window (left/right or top/bottom)
WDP_ALIGN_TOOLBAR = -3, ///< Align to the main toolbar
};
Point GetToolbarAlignedWindowPosition(int window_width);