2016-08-08 23:11:27 +03:00
|
|
|
/************************************************************************
|
|
|
|
* file name : globals.cpp
|
|
|
|
* ----------------- :
|
|
|
|
* creation time : 2016/08/03
|
|
|
|
* copyright : (c) 2016 Victor Zarubkin
|
|
|
|
* author : Victor Zarubkin
|
|
|
|
* email : v.s.zarubkin@gmail.com
|
|
|
|
* ----------------- :
|
|
|
|
* description : The file contains implementation of global constants and variables for profiler gui.
|
|
|
|
* ----------------- :
|
|
|
|
* change log : * 2016/08/03 Victor Zarubkin: initial commit.
|
|
|
|
* :
|
|
|
|
* : *
|
|
|
|
* ----------------- :
|
|
|
|
* license : TODO: add license text
|
2016-08-03 23:00:04 +03:00
|
|
|
************************************************************************/
|
|
|
|
|
2016-08-08 22:45:57 +03:00
|
|
|
#define IGNORE_GLOBALS_DECLARATION
|
2016-08-03 23:00:04 +03:00
|
|
|
#include "globals.h"
|
2016-08-08 22:45:57 +03:00
|
|
|
#undef IGNORE_GLOBALS_DECLARATION
|
2016-08-03 23:00:04 +03:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
namespace profiler_gui {
|
|
|
|
|
2016-08-18 23:26:41 +03:00
|
|
|
EasyGlobals& EasyGlobals::instance()
|
2016-08-03 23:00:04 +03:00
|
|
|
{
|
2016-08-18 23:26:41 +03:00
|
|
|
static EasyGlobals globals;
|
2016-08-03 23:00:04 +03:00
|
|
|
return globals;
|
|
|
|
}
|
|
|
|
|
2016-08-18 23:26:41 +03:00
|
|
|
EasyGlobals::EasyGlobals()
|
2016-08-03 23:00:04 +03:00
|
|
|
: selected_thread(0)
|
2016-08-08 22:17:56 +03:00
|
|
|
, selected_block(-1)
|
2016-08-04 23:35:38 +03:00
|
|
|
, draw_graphics_items_borders(true)
|
2016-08-09 00:14:58 +03:00
|
|
|
, display_only_relevant_stats(true)
|
2016-08-23 22:44:04 +03:00
|
|
|
, collapse_items_on_tree_close(false)
|
|
|
|
, all_items_expanded_by_default(true)
|
2016-08-03 23:00:04 +03:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} // END of namespace profiler_gui.
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|