GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
gtk_manager Class Reference

#include "graphics.h"

Collaboration diagram for gtk_manager:
Collaboration graph
[legend]

Static Public Member Functions

static Cell available_toolkits_list (void)
 
static Cell available_toolkits_list (void)
 
static std::string default_toolkit (void)
 
static std::string default_toolkit (void)
 
static graphics_toolkit find_toolkit (const std::string &name)
 
static graphics_toolkit find_toolkit (const std::string &name)
 
static graphics_toolkit get_toolkit (void)
 
static graphics_toolkit get_toolkit (void)
 
static void load_toolkit (const graphics_toolkit &tk)
 
static void load_toolkit (const graphics_toolkit &tk)
 
static Cell loaded_toolkits_list (void)
 
static Cell loaded_toolkits_list (void)
 
static void register_toolkit (const std::string &name)
 
static void register_toolkit (const std::string &name)
 
static void unload_all_toolkits (void)
 
static void unload_all_toolkits (void)
 
static void unload_toolkit (const std::string &name)
 
static void unload_toolkit (const std::string &name)
 
static void unregister_toolkit (const std::string &name)
 
static void unregister_toolkit (const std::string &name)
 

Private Types

typedef std::set< std::string >
::iterator 
available_toolkits_iterator
 
typedef std::set< std::string >
::iterator 
available_toolkits_iterator
 
typedef std::set< std::string >
::const_iterator 
const_available_toolkits_iterator
 
typedef std::set< std::string >
::const_iterator 
const_available_toolkits_iterator
 
typedef std::map< std::string,
graphics_toolkit >
::const_iterator 
const_loaded_toolkits_iterator
 
typedef std::map< std::string,
graphics_toolkit >
::const_iterator 
const_loaded_toolkits_iterator
 
typedef std::map< std::string,
graphics_toolkit >::iterator 
loaded_toolkits_iterator
 
typedef std::map< std::string,
graphics_toolkit >::iterator 
loaded_toolkits_iterator
 

Private Member Functions

 gtk_manager (void)
 
 gtk_manager (void)
 
 ~gtk_manager (void)
 
 ~gtk_manager (void)
 
Cell do_available_toolkits_list (void) const
 
Cell do_available_toolkits_list (void) const
 
std::string do_default_toolkit (void)
 
std::string do_default_toolkit (void)
 
graphics_toolkit do_find_toolkit (const std::string &name) const
 
graphics_toolkit do_find_toolkit (const std::string &name) const
 
graphics_toolkit do_get_toolkit (void) const
 
graphics_toolkit do_get_toolkit (void) const
 
void do_load_toolkit (const graphics_toolkit &tk)
 
void do_load_toolkit (const graphics_toolkit &tk)
 
Cell do_loaded_toolkits_list (void) const
 
Cell do_loaded_toolkits_list (void) const
 
void do_register_toolkit (const std::string &name)
 
void do_register_toolkit (const std::string &name)
 
void do_unload_all_toolkits (void)
 
void do_unload_all_toolkits (void)
 
void do_unload_toolkit (const std::string &name)
 
void do_unload_toolkit (const std::string &name)
 
void do_unregister_toolkit (const std::string &name)
 
void do_unregister_toolkit (const std::string &name)
 

Static Private Member Functions

static void cleanup_instance (void)
 
static void cleanup_instance (void)
 
static OCTINTERP_API void create_instance (void)
 
static OCTINTERP_API void create_instance (void)
 
static bool instance_ok (void)
 
static bool instance_ok (void)
 

Private Attributes

std::set< std::string > available_toolkits
 
std::string dtk
 
std::map< std::string,
graphics_toolkit
loaded_toolkits
 

Static Private Attributes

static OCTINTERP_API gtk_managerinstance = 0
 

Detailed Description

Definition at line 2292 of file graphics.h.

Member Typedef Documentation

typedef std::set<std::string>::iterator gtk_manager::available_toolkits_iterator
private

Definition at line 2388 of file graphics.in.h.

typedef std::set<std::string>::iterator gtk_manager::available_toolkits_iterator
private

Definition at line 2390 of file graphics.h.

typedef std::set<std::string>::const_iterator gtk_manager::const_available_toolkits_iterator
private

Definition at line 2391 of file graphics.in.h.

typedef std::set<std::string>::const_iterator gtk_manager::const_available_toolkits_iterator
private

Definition at line 2393 of file graphics.h.

typedef std::map<std::string, graphics_toolkit>::const_iterator gtk_manager::const_loaded_toolkits_iterator
private

Definition at line 2397 of file graphics.in.h.

typedef std::map<std::string, graphics_toolkit>::const_iterator gtk_manager::const_loaded_toolkits_iterator
private

Definition at line 2399 of file graphics.h.

typedef std::map<std::string, graphics_toolkit>::iterator gtk_manager::loaded_toolkits_iterator
private

Definition at line 2394 of file graphics.in.h.

typedef std::map<std::string, graphics_toolkit>::iterator gtk_manager::loaded_toolkits_iterator
private

Definition at line 2396 of file graphics.h.

Constructor & Destructor Documentation

gtk_manager::gtk_manager ( void  )
inlineprivate

Definition at line 2354 of file graphics.h.

Referenced by create_instance().

gtk_manager::~gtk_manager ( void  )
inlineprivate

Definition at line 2356 of file graphics.h.

gtk_manager::gtk_manager ( void  )
inlineprivate

Definition at line 2352 of file graphics.in.h.

gtk_manager::~gtk_manager ( void  )
inlineprivate

Definition at line 2354 of file graphics.in.h.

Member Function Documentation

static Cell gtk_manager::available_toolkits_list ( void  )
inlinestatic

Definition at line 2329 of file graphics.in.h.

References do_available_toolkits_list(), instance, and instance_ok().

static Cell gtk_manager::available_toolkits_list ( void  )
inlinestatic

Definition at line 2331 of file graphics.h.

References do_available_toolkits_list(), instance, and instance_ok().

Referenced by Favailable_graphics_toolkits().

static void gtk_manager::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 2375 of file graphics.in.h.

References instance.

static void gtk_manager::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 2377 of file graphics.h.

References instance.

Referenced by create_instance().

static OCTINTERP_API void gtk_manager::create_instance ( void  )
staticprivate
void gtk_manager::create_instance ( void  )
staticprivate

Definition at line 11027 of file graphics.cc.

References singleton_cleanup_list::add(), cleanup_instance(), gtk_manager(), and instance.

Referenced by instance_ok().

static std::string gtk_manager::default_toolkit ( void  )
inlinestatic

Definition at line 2345 of file graphics.in.h.

References do_default_toolkit(), instance, and instance_ok().

static std::string gtk_manager::default_toolkit ( void  )
inlinestatic
Cell gtk_manager::do_available_toolkits_list ( void  ) const
inlineprivate

Definition at line 2425 of file graphics.in.h.

Cell gtk_manager::do_available_toolkits_list ( void  ) const
inlineprivate

Definition at line 2427 of file graphics.h.

Referenced by available_toolkits_list().

std::string gtk_manager::do_default_toolkit ( void  )
inlineprivate

Definition at line 2466 of file graphics.in.h.

References dtk.

std::string gtk_manager::do_default_toolkit ( void  )
inlineprivate

Definition at line 2468 of file graphics.h.

References dtk.

Referenced by default_toolkit().

graphics_toolkit gtk_manager::do_find_toolkit ( const std::string &  name) const
inlineprivate

Definition at line 2415 of file graphics.in.h.

graphics_toolkit gtk_manager::do_find_toolkit ( const std::string &  name) const
inlineprivate

Definition at line 2417 of file graphics.h.

Referenced by find_toolkit().

graphics_toolkit gtk_manager::do_get_toolkit ( void  ) const
private
graphics_toolkit gtk_manager::do_get_toolkit ( void  ) const
private

Definition at line 11036 of file graphics.cc.

References available_toolkits, dtk, error(), error_state, feval(), and loaded_toolkits.

Referenced by get_toolkit().

void gtk_manager::do_load_toolkit ( const graphics_toolkit tk)
inlineprivate

Definition at line 2405 of file graphics.in.h.

References graphics_toolkit::get_name().

void gtk_manager::do_load_toolkit ( const graphics_toolkit tk)
inlineprivate

Definition at line 2407 of file graphics.h.

References graphics_toolkit::get_name().

Referenced by load_toolkit().

Cell gtk_manager::do_loaded_toolkits_list ( void  ) const
inlineprivate

Definition at line 2437 of file graphics.in.h.

Cell gtk_manager::do_loaded_toolkits_list ( void  ) const
inlineprivate

Definition at line 2439 of file graphics.h.

Referenced by loaded_toolkits_list().

void gtk_manager::do_register_toolkit ( const std::string &  name)
private
void gtk_manager::do_register_toolkit ( const std::string &  name)
private

Definition at line 11076 of file graphics.cc.

References available_toolkits, and dtk.

Referenced by register_toolkit().

void gtk_manager::do_unload_all_toolkits ( void  )
inlineprivate

Definition at line 2449 of file graphics.in.h.

References unload_toolkit().

void gtk_manager::do_unload_all_toolkits ( void  )
inlineprivate

Definition at line 2451 of file graphics.h.

References unload_toolkit().

Referenced by unload_all_toolkits().

void gtk_manager::do_unload_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2410 of file graphics.in.h.

void gtk_manager::do_unload_toolkit ( const std::string &  name)
inlineprivate

Definition at line 2412 of file graphics.h.

Referenced by unload_toolkit().

void gtk_manager::do_unregister_toolkit ( const std::string &  name)
private
void gtk_manager::do_unregister_toolkit ( const std::string &  name)
private

Definition at line 11087 of file graphics.cc.

References available_toolkits, and dtk.

Referenced by unregister_toolkit().

static graphics_toolkit gtk_manager::find_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2323 of file graphics.in.h.

References do_find_toolkit(), instance, and instance_ok().

static graphics_toolkit gtk_manager::find_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2325 of file graphics.h.

References do_find_toolkit(), instance, and instance_ok().

Referenced by figure::properties::set___graphics_toolkit__().

static graphics_toolkit gtk_manager::get_toolkit ( void  )
inlinestatic

Definition at line 2294 of file graphics.in.h.

References do_get_toolkit(), instance, and instance_ok().

static graphics_toolkit gtk_manager::get_toolkit ( void  )
inlinestatic

Definition at line 2296 of file graphics.h.

References do_get_toolkit(), instance, and instance_ok().

Referenced by figure::properties::get_toolkit().

static bool gtk_manager::instance_ok ( void  )
inlinestaticprivate

Definition at line 2358 of file graphics.in.h.

References create_instance(), error(), and instance.

static bool gtk_manager::instance_ok ( void  )
inlinestaticprivate
static void gtk_manager::load_toolkit ( const graphics_toolkit tk)
inlinestatic

Definition at line 2311 of file graphics.in.h.

References do_load_toolkit(), instance, and instance_ok().

static void gtk_manager::load_toolkit ( const graphics_toolkit tk)
inlinestatic

Definition at line 2313 of file graphics.h.

References do_load_toolkit(), instance, and instance_ok().

Referenced by QtHandles::__init__(), G__init_fltk__(), and G__init_gnuplot__().

static Cell gtk_manager::loaded_toolkits_list ( void  )
inlinestatic

Definition at line 2334 of file graphics.in.h.

References do_loaded_toolkits_list(), instance, and instance_ok().

static Cell gtk_manager::loaded_toolkits_list ( void  )
inlinestatic

Definition at line 2336 of file graphics.h.

References do_loaded_toolkits_list(), instance, and instance_ok().

Referenced by Floaded_graphics_toolkits().

static void gtk_manager::register_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2299 of file graphics.in.h.

References do_register_toolkit(), instance, and instance_ok().

static void gtk_manager::register_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2301 of file graphics.h.

References do_register_toolkit(), instance, and instance_ok().

Referenced by Fregister_graphics_toolkit().

static void gtk_manager::unload_all_toolkits ( void  )
inlinestatic

Definition at line 2339 of file graphics.in.h.

References do_unload_all_toolkits(), instance, and instance_ok().

static void gtk_manager::unload_all_toolkits ( void  )
inlinestatic

Definition at line 2341 of file graphics.h.

References do_unload_all_toolkits(), instance, and instance_ok().

Referenced by do_octave_atexit().

static void gtk_manager::unload_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2317 of file graphics.in.h.

References do_unload_toolkit(), instance, and instance_ok().

static void gtk_manager::unload_toolkit ( const std::string &  name)
inlinestatic
static void gtk_manager::unregister_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2305 of file graphics.in.h.

References do_unregister_toolkit(), instance, and instance_ok().

static void gtk_manager::unregister_toolkit ( const std::string &  name)
inlinestatic

Definition at line 2307 of file graphics.h.

References do_unregister_toolkit(), instance, and instance_ok().

Member Data Documentation

std::set< std::string > gtk_manager::available_toolkits
private

Definition at line 2385 of file graphics.h.

Referenced by do_get_toolkit(), do_register_toolkit(), and do_unregister_toolkit().

std::string gtk_manager::dtk
private
static OCTINTERP_API gtk_manager * gtk_manager::instance = 0
staticprivate
std::map< std::string, graphics_toolkit > gtk_manager::loaded_toolkits
private

Definition at line 2388 of file graphics.h.

Referenced by do_get_toolkit().


The documentation for this class was generated from the following files: