wxArt2D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
a2dTemplateFlag Class Reference

Template flags. More...

#include <docviewref.h>

Public Member Functions

 a2dTemplateFlag (a2dTemplateFlagMask newmask=NON)
 
bool CheckMask (a2dTemplateFlagMask mask)
 Check if given mask matches (flags in mask, or at least set)
 
void SetFlags (a2dTemplateFlagMask which)
 
a2dTemplateFlagMask GetFlags () const
 
bool GetFlag (a2dTemplateFlagMask which) const
 

Public Attributes

bool m_visible: 1
 template is visible
 
bool m_mark: 1
 template is marked
 
bool m_load: 1
 template is for loading documents
 
bool m_save: 1
 template is for saving documents
 
bool m_import: 1
 template is for importing documents
 
bool m_export: 1
 template is for exporting documents
 

Static Public Attributes

static const a2dTemplateFlagMask NON = 0x00000000
 
static const a2dTemplateFlagMask VISIBLE = 0x00000001
 
static const a2dTemplateFlagMask MARK = 0x00000002
 
static const a2dTemplateFlagMask LOAD = 0x00000004
 
static const a2dTemplateFlagMask SAVE = 0x00000008
 
static const a2dTemplateFlagMask IMPORTING = 0x00000010
 
static const a2dTemplateFlagMask EXPORTING = 0x00000020
 
static const a2dTemplateFlagMask ALL = 0x00000040
 
static const a2dTemplateFlagMask DEFAULT
 
static const a2dTemplateFlagMask LOAD_IMPORT
 
static const a2dTemplateFlagMask SAVE_EXPORT
 

Detailed Description

Template flags.

Used to test if a template is visble and for what purpose it is should be. Mostly used to select appropriate templates from a list of templates. The a2dDocumentTemplate and the a2dViewTemplate are both using this flags mask.

Definition at line 216 of file docviewref.h.

Member Data Documentation

const a2dTemplateFlagMask a2dTemplateFlag::ALL = 0x00000040
static

all flags set

Definition at line 226 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::DEFAULT
static
const a2dTemplateFlagMask a2dTemplateFlag::EXPORTING = 0x00000020
static

a template for exporting files

Definition at line 225 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::IMPORTING = 0x00000010
static

a template for importing files

Definition at line 224 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::LOAD = 0x00000004
static

a template for loading files

Definition at line 222 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::LOAD_IMPORT
static
Initial value:

for load + import

Definition at line 228 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::MARK = 0x00000002
static

for general use to temporary mark a template

Definition at line 221 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::NON = 0x00000000
static

no flags set

Definition at line 219 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::SAVE = 0x00000008
static

a template for saving files

Definition at line 223 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::SAVE_EXPORT
static
Initial value:

for save + export

Definition at line 229 of file docviewref.h.

const a2dTemplateFlagMask a2dTemplateFlag::VISIBLE = 0x00000001
static

is the template visible

Definition at line 220 of file docviewref.h.


The documentation for this class was generated from the following files:
a2dTemplateFlag Class Reference -- Sun Oct 12 2014 17:04:50 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation