Finalised the classes for panels
[situare] / src / ui / panelcommon.h
index 51e1d31..71fef7b 100644 (file)
@@ -25,6 +25,9 @@
 #include <QtCore>
 #include "map/mapcommon.h"
 
+
+enum Side{LEFT, RIGHT};  ///< Enumerator for panel sideness
+
 const int PANEL_PEEK_AMOUNT = 25; ///< Amount of pixels shown when panel is closed
 
 const int FRIENDPANEL_WIDTH  = 420; ///< Width of the friends list panel
@@ -37,6 +40,7 @@ const int MARGIN_CORRECTION = 1; ///< Amount of correction to make panels touch
 const int MARGIN_CORRECTION2 = 2; ///< Amount of correction to make panels touch the window borders
 
 const int PANEL_TOP_Y = 0; ///< Y coordinate for top of both panels
+const int TOP_CORNER_X = 0;  ///< X coordinate for top left corner
 
 const int FRIENDPANEL_CLOSED_X =
         DEFAULT_SCREEN_WIDTH-PANEL_PEEK_AMOUNT; ///< X location of the friend list panel when closed
@@ -44,9 +48,10 @@ const int FRIENDPANEL_OPENED_X =
         DEFAULT_SCREEN_WIDTH-FRIENDPANEL_WIDTH; ///< X location of the friend list panel when opened
 
 const int USERPANEL_CLOSED_X =
-        0 - USERPANEL_WIDTH + PANEL_PEEK_AMOUNT;  ///< X location of the user panel when closed
+        2 - USERPANEL_WIDTH + PANEL_PEEK_AMOUNT;  ///< X location of the user panel when closed
 const int USERPANEL_OPENED_X = 0;     ///< X location of the user panel when opened
 
+
 const int SIDEBAR_WIDTH = 23;
 const int SIDEBAR_HEIGHT = 424;