Merge branch 'master' of https://vcs.maemo.org/git/situare into list_panel
[situare] / src / ui / panelcommon.h
1  /*
2     Situare - A location system for Facebook
3     Copyright (C) 2010  Ixonos Plc. Authors:
4
5         Kaj Wallin - kaj.wallin@ixonos.com
6
7     Situare is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License
9     version 2 as published by the Free Software Foundation.
10
11     Situare is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with Situare; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
19     USA.
20  */
21
22 #ifndef PANELCOMMON_H
23 #define PANELCOMMON_H
24
25 #include <QtCore>
26 #include "map/mapcommon.h"
27
28
29 enum Side{LEFT, RIGHT};  ///< Enumerator for panel sideness
30
31 const int PANEL_PEEK_AMOUNT = 25; ///< Amount of pixels shown when panel is closed
32
33 const int FRIENDPANEL_WIDTH  = 430; ///< Width of the friends list panel
34 const int FRIENDPANEL_HEIGHT = DEFAULT_SCREEN_HEIGHT; ///< Height of the friends list panel
35
36 const int USERPANEL_WIDTH  = 300; ///< Width of the user panel
37 const int USERPANEL_HEIGHT = DEFAULT_SCREEN_HEIGHT; ///< Height of the user panetl
38
39 const int MARGIN_CORRECTION = 1; ///< Amount of correction to make panels touch the window borders
40 const int MARGIN_CORRECTION2 = 2; ///< Amount of correction to make panels touch the window borders
41
42 const int PANEL_TOP_Y = 0; ///< Y coordinate for top of both panels
43 const int TOP_CORNER_X = 0;  ///< X coordinate for top left corner
44
45 const int FRIENDPANEL_CLOSED_X =
46         DEFAULT_SCREEN_WIDTH-PANEL_PEEK_AMOUNT; ///< X location of the friend list panel when closed
47 const int FRIENDPANEL_OPENED_X =
48         DEFAULT_SCREEN_WIDTH-FRIENDPANEL_WIDTH; ///< X location of the friend list panel when opened
49
50 const int USERPANEL_CLOSED_X =
51         2 - USERPANEL_WIDTH + PANEL_PEEK_AMOUNT;  ///< X location of the user panel when closed
52 const int USERPANEL_OPENED_X = 0;     ///< X location of the user panel when opened
53
54
55 const int SIDEBAR_WIDTH = 23;
56 const int SIDEBAR_HEIGHT = 424;
57
58 const int SLIDINGBAR_WIDTH = 24;
59 const int SLIDINGBAR_HEIGHT = 424;
60
61 #endif // PANELCOMMON_H