VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
makVrf::DtPaletteInformationManager Class Reference

The DtPaletteInformationManager is a class that is used to initially setup the palette for display. More...

Inheritance diagram for makVrf::DtPaletteInformationManager:
Inheritance graph
[legend]

Public Member Functions

 DtPaletteInformationManager (makVrv::DtDe &)
 
virtual ~DtPaletteInformationManager ()
 
virtual int forceButtonWidth () const
 Accessor for force button width (and height). Default is 20. More...
 
virtual void setForceButtonWidth (int)
 
virtual QSize topLevelTagIconSize () const
 Size of tag button. Based on tag button width. Default is 20. More...
 
virtual void setTopLevelTagIconWidth (int)
 Sets the tag button width (which will effect size and height). Default is 24. More...
 
virtual int topLevelTagIconWidth () const
 
virtual int topLevelTagIconHeight () const
 
virtual void setClearTagsButtonWidth (int)
 Width of the clear button used to clear tags. Default is 24. More...
 
virtual int clearTagsButtonWidth () const
 
virtual void setTagButtonHeight (int)
 Height of the text used to contain the tags. Default is 24. More...
 
virtual int tagButtonHeight () const
 
virtual QSize clearTagsButtonSize () const
 Size of the clear button. This is the clear button width - 2 to give a buffer for the frame. More...
 
virtual int numberOfTagLines () const
 Number of tag lines to show. This will include the top level tag category icon line. Minimum is one, default is 3. More...
 
virtual void setNumberOfTagLines (int)
 
virtual void setShowTopCategories (int)
 Number of categories in total that can be shown (except for top level) More...
 
virtual int showTopCategories () const
 
virtual void setShowFavoritesCategory (bool)
 Whether or not to show the favorites category star on the top line. Default is true. More...
 
virtual bool showFavoritesCategory () const
 
virtual void setShowAllCategory (bool)
 Whether or not to show the all category on the top line. Default is true. More...
 
virtual bool showAllCategory () const
 
virtual void setShowRecentCategory (bool)
 Whether or not to show the recent category on the top line. Default is true. More...
 
virtual bool showRecentCategory () const
 
virtual void setNoBorderStylesheet (const std::string &)
 Stylesheet for button with no border. More...
 
virtual const std::string & noBorderStylesheet () const
 
void setBorderStylesheet (const std::string &)
 Stylesheet for button with border. More...
 
const std::string & borderStylesheet () const
 
virtual void loadDefaults (bool fromFactory=false)
 Loads default or factory record. More...
 
virtual void saveAsDefaults ()
 Saves record as default record. More...
 
virtual void setAutoSave (bool b)
 
bool autoSave () const
 
virtual void getRecord (DtPaletteInformationSettingsRecord &rec) const
 
virtual void setFromRecord (const DtPaletteInformationSettingsRecord &rec)
 
virtual void getSplitRecord (std::vector< DtPaletteInformationSettingsRecord > &rec, std::vector< std::string > &fileNames)
 To support writing element definitions in folders as multiple files not implemented. More...
 
virtual void addRecords (DtPaletteInformationSettingsRecord &recs, DtPaletteInformationSettingsRecord &combinedRec)
 To support writing element definitions in folders as multiple files not implemented. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Static Public Member Functions

static
DtPaletteInformationManager
instance (makVrv::DtDe &de)
 Returns instance of the messager. More...
 
static void registerInstance (makVrv::DtDe &, DtPaletteInformationManager *)
 

Protected Attributes

makVrv::DtDemyDe
 
DtPaletteInformationSettingsRecord myRecord
 

Detailed Description

The DtPaletteInformationManager is a class that is used to initially setup the palette for display.

Any information here must be set before the palette is displayed. Any changes made after the palette has been displayed will only be taken into account on the next start of the front-end

Constructor & Destructor Documentation

makVrf::DtPaletteInformationManager::DtPaletteInformationManager ( makVrv::DtDe )
virtual makVrf::DtPaletteInformationManager::~DtPaletteInformationManager ( )
virtual

Member Function Documentation

static DtPaletteInformationManager& makVrf::DtPaletteInformationManager::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

static void makVrf::DtPaletteInformationManager::registerInstance ( makVrv::DtDe ,
DtPaletteInformationManager  
)
static
virtual int makVrf::DtPaletteInformationManager::forceButtonWidth ( ) const
virtual

Accessor for force button width (and height). Default is 20.

virtual void makVrf::DtPaletteInformationManager::setForceButtonWidth ( int  )
virtual
virtual QSize makVrf::DtPaletteInformationManager::topLevelTagIconSize ( ) const
virtual

Size of tag button. Based on tag button width. Default is 20.

virtual void makVrf::DtPaletteInformationManager::setTopLevelTagIconWidth ( int  )
virtual

Sets the tag button width (which will effect size and height). Default is 24.

virtual int makVrf::DtPaletteInformationManager::topLevelTagIconWidth ( ) const
virtual
virtual int makVrf::DtPaletteInformationManager::topLevelTagIconHeight ( ) const
virtual
virtual void makVrf::DtPaletteInformationManager::setClearTagsButtonWidth ( int  )
virtual

Width of the clear button used to clear tags. Default is 24.

virtual int makVrf::DtPaletteInformationManager::clearTagsButtonWidth ( ) const
virtual
virtual void makVrf::DtPaletteInformationManager::setTagButtonHeight ( int  )
virtual

Height of the text used to contain the tags. Default is 24.

virtual int makVrf::DtPaletteInformationManager::tagButtonHeight ( ) const
virtual
virtual QSize makVrf::DtPaletteInformationManager::clearTagsButtonSize ( ) const
virtual

Size of the clear button. This is the clear button width - 2 to give a buffer for the frame.

virtual int makVrf::DtPaletteInformationManager::numberOfTagLines ( ) const
virtual

Number of tag lines to show. This will include the top level tag category icon line. Minimum is one, default is 3.

virtual void makVrf::DtPaletteInformationManager::setNumberOfTagLines ( int  )
virtual
virtual void makVrf::DtPaletteInformationManager::setShowTopCategories ( int  )
virtual

Number of categories in total that can be shown (except for top level)

virtual int makVrf::DtPaletteInformationManager::showTopCategories ( ) const
virtual
virtual void makVrf::DtPaletteInformationManager::setShowFavoritesCategory ( bool  )
virtual

Whether or not to show the favorites category star on the top line. Default is true.

virtual bool makVrf::DtPaletteInformationManager::showFavoritesCategory ( ) const
virtual
virtual void makVrf::DtPaletteInformationManager::setShowAllCategory ( bool  )
virtual

Whether or not to show the all category on the top line. Default is true.

virtual bool makVrf::DtPaletteInformationManager::showAllCategory ( ) const
virtual
virtual void makVrf::DtPaletteInformationManager::setShowRecentCategory ( bool  )
virtual

Whether or not to show the recent category on the top line. Default is true.

virtual bool makVrf::DtPaletteInformationManager::showRecentCategory ( ) const
virtual
virtual void makVrf::DtPaletteInformationManager::setNoBorderStylesheet ( const std::string &  )
virtual

Stylesheet for button with no border.

Default is: QToolButton:!hover { background-color: palette(button); border: 0px solid #8f8f91; }

virtual const std::string& makVrf::DtPaletteInformationManager::noBorderStylesheet ( ) const
virtual
void makVrf::DtPaletteInformationManager::setBorderStylesheet ( const std::string &  )

Stylesheet for button with border.

Default is: QToolButton:!hover QToolButton { background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #f0f0f0, stop: 1.0 #f0f0f0); border: 2px solid #8f8f91; }

const std::string& makVrf::DtPaletteInformationManager::borderStylesheet ( ) const
virtual void makVrf::DtPaletteInformationManager::loadDefaults ( bool  fromFactory = false)
virtual

Loads default or factory record.

virtual void makVrf::DtPaletteInformationManager::saveAsDefaults ( )
virtual

Saves record as default record.

virtual void makVrf::DtPaletteInformationManager::setAutoSave ( bool  b)
virtual
bool makVrf::DtPaletteInformationManager::autoSave ( ) const
virtual void makVrf::DtPaletteInformationManager::getRecord ( DtPaletteInformationSettingsRecord rec) const
virtual
virtual void makVrf::DtPaletteInformationManager::setFromRecord ( const DtPaletteInformationSettingsRecord rec)
virtual
virtual void makVrf::DtPaletteInformationManager::getSplitRecord ( std::vector< DtPaletteInformationSettingsRecord > &  rec,
std::vector< std::string > &  fileNames 
)
inlinevirtual

To support writing element definitions in folders as multiple files not implemented.

virtual void makVrf::DtPaletteInformationManager::addRecords ( DtPaletteInformationSettingsRecord recs,
DtPaletteInformationSettingsRecord combinedRec 
)
inlinevirtual

To support writing element definitions in folders as multiple files not implemented.

Member Data Documentation

makVrv::DtDe& makVrf::DtPaletteInformationManager::myDe
protected
DtPaletteInformationSettingsRecord makVrf::DtPaletteInformationManager::myRecord
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)