Updated list_item images with new ones.
[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 const int PANEL_PEEK_AMOUNT = 60; ///< Amount of pixels shown when panel is closed
29
30 const int FRIENDPANEL_WIDTH  = 420; ///< Width of the friends list panel
31 const int FRIENDPANEL_HEIGHT = DEFAULT_SCREEN_HEIGHT; ///< Height of the friends list panel
32
33 const int USERPANEL_WIDTH  = 300; ///< Width of the user panel
34 const int USERPANEL_HEIGHT = DEFAULT_SCREEN_HEIGHT; ///< Height of the user panetl
35
36 const int MARGIN_CORRECTION = 1; ///< Amount of correction to make panels touch the widnow borders
37
38 const int PANEL_TOP_Y = 0; ///< Y coordinate for top of both panels
39
40 const int FRIENDPANEL_CLOSED_X =
41         DEFAULT_SCREEN_WIDTH-PANEL_PEEK_AMOUNT; ///< X location of the friend list panel when closed
42 const int FRIENDPANEL_OPENED_X =
43         DEFAULT_SCREEN_WIDTH-FRIENDPANEL_WIDTH; ///< X location of the friend list panel when opened
44
45 const int USERPANEL_CLOSED_X =
46         0 - USERPANEL_WIDTH + PANEL_PEEK_AMOUNT;  ///< X location of the user panel when closed
47 const int USERPANEL_OPENED_X = 0;     ///< X location of the user panel when opened
48
49
50 #endif // PANELCOMMON_H