diff options
author | Sergey Pisarchik <pisarchik@mapswithme.com> | 2014-06-12 09:26:39 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:17:01 +0300 |
commit | 7ff76c755da0670333463e77e64c579dd2e083db (patch) | |
tree | eb7eaf70623321ac1a331c221832e641d45294ca /tizen/MapsWithMe | |
parent | 72a9bf3d36c2adaa3e1cd45f6162c8fe429bddb9 (diff) |
[Tizen] Add constants.
Diffstat (limited to 'tizen/MapsWithMe')
-rw-r--r-- | tizen/MapsWithMe/inc/Constants.hpp | 51 | ||||
-rw-r--r-- | tizen/MapsWithMe/src/Constants.cpp | 48 |
2 files changed, 99 insertions, 0 deletions
diff --git a/tizen/MapsWithMe/inc/Constants.hpp b/tizen/MapsWithMe/inc/Constants.hpp new file mode 100644 index 0000000000..e58fad1d45 --- /dev/null +++ b/tizen/MapsWithMe/inc/Constants.hpp @@ -0,0 +1,51 @@ +#pragma once + +#include <FGraphics.h> + +namespace consts +{ +extern Tizen::Graphics::Color const white; +extern Tizen::Graphics::Color const gray; +extern Tizen::Graphics::Color const green; +extern Tizen::Graphics::Color const black; +extern Tizen::Graphics::Color const red; +extern Tizen::Graphics::Color const mainMenuGray; +//search +extern int const topHght; //margin from top to text +extern int const btwWdth; //margin between texts +extern int const imgWdth; //left img width +extern int const imgHght; //left img height +extern int const lstItmHght; //list item height +extern int const backWdth; //back txt width +extern int const mainFontSz; //big font +extern int const mediumFontSz; //medium font +extern int const minorFontSz ; //small font + +//bookmark panel +extern int const markPanelHeight; +extern int const btnSz; + +//bookmark split panel +extern int const editBtnSz; +extern int const headerItemHeight; +extern int const settingsItemHeight; +extern int const groupItemHeight; +extern int const messageItemHeight; +extern int const headerSettingsHeight; +extern int const allItemsHeight; + + +extern const char * BM_COLOR_RED; +extern const char * BM_COLOR_YELLOW; +extern const char * BM_COLOR_BLUE; +extern const char * BM_COLOR_GREEN; +extern const char * BM_COLOR_PURPLE; +extern const char * BM_COLOR_ORANGE; +extern const char * BM_COLOR_BROWN; +extern const char * BM_COLOR_PINK; + +extern int const distanceWidth; +// bookmark categories +extern int const deleteWidth; + +}//consts diff --git a/tizen/MapsWithMe/src/Constants.cpp b/tizen/MapsWithMe/src/Constants.cpp new file mode 100644 index 0000000000..43aff5b40b --- /dev/null +++ b/tizen/MapsWithMe/src/Constants.cpp @@ -0,0 +1,48 @@ +#include "Constants.hpp" + +using namespace Tizen::Graphics; + +namespace consts +{ +Color const white = Color(0xFF,0xFF,0xFF); +Color const gray = Color(0xB0,0xB0,0xB0); +Color const green = Color(21, 199, 131); +Color const blue = Color(0, 186, 255); +Color const black = Color(0x00,0x00,0x00); +Color const red = Color(0xFF,0x00,0x00); +Color const mainMenuGray = Color(65,68,81); + +int const topHght = 27; //margin from top to text +int const btwWdth = 20; //margin between texts +int const imgWdth = 60; //left img width +int const imgHght = 60; //left img height +int const lstItmHght = 120; //list item height +int const backWdth = 150; //back txt width +int const mainFontSz = 45; //big font +int const mediumFontSz = 33; //medium font +int const minorFontSz = 25; //small font + +int const markPanelHeight = 1.5 * lstItmHght; +int const btnSz = 55; + +int const editBtnSz = btnSz - 15; +int const headerItemHeight = markPanelHeight; +int const settingsItemHeight = 2 * lstItmHght; +int const groupItemHeight = lstItmHght; +int const messageItemHeight = 2 * lstItmHght; +int const headerSettingsHeight = headerItemHeight + settingsItemHeight; +int const allItemsHeight = headerItemHeight + settingsItemHeight + groupItemHeight + messageItemHeight; + +const char * BM_COLOR_RED = "placemark-red"; +const char * BM_COLOR_YELLOW = "placemark-yellow"; +const char * BM_COLOR_BLUE = "placemark-blue"; +const char * BM_COLOR_GREEN = "placemark-green"; +const char * BM_COLOR_PURPLE = "placemark-purple"; +const char * BM_COLOR_ORANGE = "placemark-orange"; +const char * BM_COLOR_BROWN = "placemark-brown"; +const char * BM_COLOR_PINK = "placemark-pink"; + +int const distanceWidth = 200; +// bookmark categories +int const deleteWidth = 200; +} |