Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSLAF Class Reference

#include <CSLAF.h>


Public Member Functions

 CSLAF ()
virtual ~CSLAF ()
virtual int getBackgroundColorEnabled (const std::string &classType)
virtual int getBackgroundColorDisabled (const std::string &classType)
virtual int getTextColorEnabled (const std::string &classType)
virtual int getTextColorDisabled (const std::string &classType)
virtual int getHorizontalElementSpacing (const std::string &classType)
virtual int getVerticalElementSpacing (const std::string &classType)
virtual int getBorderDefaultBrightestColor ()
virtual int getComboboxItemsShown ()
virtual int getMenuOpenXOffset ()
virtual int getMenuOpenYOffset ()
virtual int getWindowSizingOffset ()
virtual CSBordergetBorder (const std::string &classType, int state=0)
virtual CSAreagetArea (const std::string &classType, int state=0)
virtual CSIcongetIcon (int iconType)
CSMouseCursorgetMouseCursor (int type)
CSFontgetFont (std::string classType)
virtual int getTextAreaCursorColor ()
virtual void reset (void)
virtual std::string getType ()
virtual int getCursorRate ()
virtual int getCheckBoxSize ()

Static Public Member Functions

void addElement (CSGrafikElement *element)
void removeElement (CSGrafikElement *element)
void lafChanged ()
void setCurrentLAF (CSLAF &laf)
CSLAFgetCurrentLAF ()

Data Fields

int tooltipThreshold
std::string mDefaultMouseCursor
std::string mSizingMouseCursor
std::string proportionalFontName
std::string monoSpacedFontName
std::string closeIconFileEnabled
std::string closeIconFileDisabled
std::string warnIconFileEnabled
std::string warnIconFileDisabled
std::string errorIconFileEnabled
std::string errorIconFileDisabled
std::string infoIconFileEnabled
std::string infoIconFileDisabled
std::string questionIconFileEnabled
std::string questionIconFileDisabled
std::string upIconFileEnabled
std::string upIconFileDisabled
std::string downIconFileEnabled
std::string downIconFileDisabled
std::string leftIconFileEnabled
std::string leftIconFileDisabled
std::string rightIconFileEnabled
std::string rightIconFileDisabled

Static Public Attributes

const char * CLASS = "CSLAF"

Protected Member Functions

void destroyMouseCursors ()
int getBackgroundColorEnabledInternal (const std::string &classType)
int getBackgroundColorDisabledInternal (const std::string &classType)
int getTextColorEnabledInternal (const std::string &classType)
int getTextColorDisabledInternal (const std::string &classType)
int getHorizontalElementSpacingInternal (const std::string &classType)
int getVerticalElementSpacingInternal (const std::string &classType)
CSAreagetAreaInternal (const std::string &classType, int state=0)
CSFontgetFontInternal (const std::string &classType)
CSBordergetBorderInternal (const std::string &classType, int state)
CSIcongetIconInternal (int iconType)
CSMouseCursorgetMouseCursorInternal (int type)

Protected Attributes

int cursorRate
int windowTitleInterIconOffset
int windowTitleIconBorderVerticalOffset
int windowTitleIconBorderHorizontalOffset
int windowSizingOffset
int borderDefaultBrightestColor
int windowBackColorEnabled
int windowBackColorDisabled
int windowTextColorEnabled
int windowTextColorDisabled
int buttonBackColorEnabled
int buttonBackColorDisabled
int scrollbarBackColor
int menuBarBackColorEnabled
int menuBarBackColorDisabled
int menuBackColorEnabled
int menuBackColorDisabled
int titleTextColorEnabled
int titleTextColorDisabled
int titleColorEnabled
int titleColorDisabled
int checkBoxColorEnabled
int checkBoxColorDisabled
int listboxColorEnabled
int listboxColorDisabled
int listboxTextColorEnabled
int listboxTextColorDisabled
int menuTextColorEnabled
int menuTextColorDisabled
int textfieldColorDisabled
int textfieldColorEnabled
int textfieldTextColorEnabled
int textfieldTextColorDisabled
int textAreaTextColorEnabled
int textAreaTextColorDisabled
int textAreaColorEnabled
int textAreaColorDisabled
int textAreaCursorColor
int listboxVerticalLineSpacing
int listboxHorizontalLineSpacing
int textAreaVerticalLineSpacing
int textAreaHorizontalLineSpacing
 space between border

int textfieldHorizontalSpacing
int textfieldVerticalSpacing
int labelHorizontalSpacing
int labelVerticalSpacing
int buttonHorizontalSpacing
int buttonVerticalSpacing
int menuBarHorizontalSpacing
int menuBarVerticalSpacing
int menuItemHorzintalSpacing
int menuItemVerticalSpacing
int elementHorizontalSpacing
int elementVerticalSpacing
int comboboxItemsShown
int checkBoxSize
int menuOpenXOffset
int menuOpenYOffset


Constructor & Destructor Documentation

CSLAF::CSLAF  ) 
 

Definition at line 61 of file CSLAF.cpp.

References reset().

Referenced by getCurrentLAF().

00062 {
00063     mSizingMouseCursorInstance = 0;
00064     mDefaultMouseCursorInstance = 0;
00065     reset();
00066 }

Here is the call graph for this function:

CSLAF::~CSLAF  )  [virtual]
 

Definition at line 68 of file CSLAF.cpp.

References destroyMouseCursors().

00069 {
00070     destroyMouseCursors();
00071 }

Here is the call graph for this function:


Member Function Documentation

void CSLAF::destroyMouseCursors  )  [protected]
 

Definition at line 850 of file CSLAF.cpp.

Referenced by lafChanged(), and ~CSLAF().

00851 {
00852     if (mSizingMouseCursorInstance)
00853     {
00854         delete (mSizingMouseCursorInstance);
00855         mSizingMouseCursorInstance = 0;
00856     }
00857     if (mDefaultMouseCursorInstance)
00858     {
00859         delete (mDefaultMouseCursorInstance);
00860         mDefaultMouseCursorInstance = 0;
00861     }
00862 }

int CSLAF::getBackgroundColorEnabledInternal const std::string &  classType  )  [protected]
 

Definition at line 366 of file CSLAF.cpp.

References buttonBackColorEnabled, checkBoxColorEnabled, CSTextarea::CLASS, CSTextfield::CLASS, CSCombobox::CLASS, CSListbox::CLASS, CSScrollbar::CLASS, CSCheckBox::CLASS, CSMenuItem::CLASS, CSMenu::CLASS, CSMenuBar::CLASS, CSWindow::CLASS, CSButton::CLASS, CSDragButton::CLASS, CSPanel::CLASS, listboxColorEnabled, menuBackColorEnabled, menuBarBackColorEnabled, scrollbarBackColor, textAreaColorEnabled, textfieldColorEnabled, titleColorEnabled, and windowBackColorEnabled.

Referenced by getAreaInternal(), and getBackgroundColorEnabled().

00367 {
00368     if (classType.compare(CSPanel::CLASS) == 0)
00369     {
00370         return windowBackColorEnabled;
00371     }
00372     if (classType.compare(CSDragButton::CLASS) == 0)
00373     {
00374         return buttonBackColorEnabled;
00375     }
00376     if (classType.compare(CSButton::CLASS) == 0)
00377     {
00378         return buttonBackColorEnabled;
00379     }
00380     if (classType.compare(CSWindow::CLASS) == 0)
00381     {
00382         return windowBackColorEnabled;
00383     }
00384     if (classType.compare("Title") == 0)
00385     {
00386         return titleColorEnabled;
00387     }
00388     if (classType.compare(CSMenuBar::CLASS) == 0)
00389     {
00390         return menuBarBackColorEnabled;
00391     }
00392     if (classType.compare(CSMenu::CLASS) == 0)
00393     {
00394         return menuBarBackColorEnabled;
00395     }
00396     if (classType.compare("MenuWindow") == 0)
00397     {
00398         return menuBackColorEnabled;
00399     }
00400     if (classType.compare("Menu") == 0)
00401     {
00402         return menuBackColorEnabled;
00403     }
00404     if (classType.compare(CSMenuItem::CLASS) == 0)
00405     {
00406         return menuBackColorEnabled;
00407     }
00408     if (classType.compare(CSCheckBox::CLASS) == 0)
00409     {
00410         return checkBoxColorEnabled;
00411     }
00412     if (classType.compare(CSScrollbar::CLASS) == 0)
00413     {
00414         return scrollbarBackColor;
00415     }
00416     if (classType.compare(CSListbox::CLASS) == 0)
00417     {
00418         return listboxColorEnabled;
00419     }
00420     if (classType.compare(CSCombobox::CLASS) == 0)
00421     {
00422         return textfieldColorEnabled;
00423     }
00424     if (classType.compare(CSTextfield::CLASS) == 0)
00425     {
00426         return textfieldColorEnabled;
00427     }
00428     if (classType.compare(CSTextarea::CLASS) == 0)
00429     {
00430         return textAreaColorEnabled;
00431     }
00432     return -1;
00433 }

int CSLAF::getBackgroundColorDisabledInternal const std::string &  classType  )  [protected]
 

Definition at line 435 of file CSLAF.cpp.

References buttonBackColorDisabled, checkBoxColorDisabled, CSTextarea::CLASS, CSTextfield::CLASS, CSCombobox::CLASS, CSListbox::CLASS, CSCheckBox::CLASS, CSWindow::CLASS, CSButton::CLASS, CSDragButton::CLASS, CSPanel::CLASS, listboxColorDisabled, textAreaColorDisabled, textfieldColorDisabled, titleColorDisabled, and windowBackColorDisabled.

Referenced by getBackgroundColorDisabled().

00436 {
00437     if (classType.compare(CSPanel::CLASS) == 0)
00438     {
00439         return windowBackColorDisabled;
00440     }
00441     if (classType.compare(CSDragButton::CLASS) == 0)
00442     {
00443         return buttonBackColorDisabled;
00444     }
00445     if (classType.compare(CSButton::CLASS) == 0)
00446     {
00447         return buttonBackColorDisabled;
00448     }
00449     if (classType.compare(CSWindow::CLASS) == 0)
00450     {
00451         return windowBackColorDisabled;
00452     }
00453     if (classType.compare("Title") == 0)
00454     {
00455         return titleColorDisabled;
00456     }
00457     if (classType.compare(CSCheckBox::CLASS) == 0)
00458     {
00459         return checkBoxColorDisabled;
00460     }
00461     if (classType.compare(CSListbox::CLASS) == 0)
00462     {
00463         return listboxColorDisabled;
00464     }
00465     if (classType.compare(CSCombobox::CLASS) == 0)
00466     {
00467         return textfieldColorDisabled;
00468     }
00469     if (classType.compare(CSTextfield::CLASS) == 0)
00470     {
00471         return textfieldColorDisabled;
00472     }
00473     if (classType.compare(CSTextarea::CLASS) == 0)
00474     {
00475         return textAreaColorDisabled;
00476     }
00477     return -1;
00478 }

int CSLAF::getTextColorEnabledInternal const std::string &  classType  )  [protected]
 

Definition at line 480 of file CSLAF.cpp.

References CSTextarea::CLASS, CSListbox::CLASS, CSMenuItem::CLASS, CSMenu::CLASS, CSWindow::CLASS, CSPanel::CLASS, listboxTextColorEnabled, menuTextColorEnabled, textAreaTextColorEnabled, titleTextColorEnabled, and windowTextColorEnabled.

Referenced by getTextColorEnabled().

00481 {
00482     if (classType.compare(CSPanel::CLASS) == 0)
00483     {
00484         return windowTextColorEnabled;
00485     }
00486     if (classType.compare(CSWindow::CLASS) == 0)
00487     {
00488         return windowTextColorEnabled;
00489     }
00490     if (classType.compare("Title") == 0)
00491     {
00492         return titleTextColorEnabled;
00493     }
00494     if (classType.compare(CSMenu::CLASS) == 0)
00495     {
00496         return menuTextColorEnabled;
00497     }
00498     if (classType.compare("MenuWindow") == 0)
00499     {
00500         return menuTextColorEnabled;
00501     }
00502     if (classType.compare("Menu") == 0)
00503     {
00504         return menuTextColorEnabled;
00505     }
00506     if (classType.compare(CSMenuItem::CLASS) == 0)
00507     {
00508         return menuTextColorEnabled;
00509     }
00510     if (classType.compare(CSListbox::CLASS) == 0)
00511     {
00512         return listboxTextColorEnabled;
00513     }
00514     if (classType.compare(CSTextarea::CLASS) == 0)
00515     {
00516         return textAreaTextColorEnabled;
00517     }
00518     return -1;
00519 }

int CSLAF::getTextColorDisabledInternal const std::string &  classType  )  [protected]
 

Definition at line 521 of file CSLAF.cpp.

References CSTextarea::CLASS, CSTextfield::CLASS, CSCombobox::CLASS, CSListbox::CLASS, CSMenuItem::CLASS, CSMenu::CLASS, CSWindow::CLASS, CSPanel::CLASS, listboxTextColorDisabled, menuTextColorDisabled, textAreaTextColorDisabled, textfieldTextColorDisabled, titleTextColorDisabled, and windowTextColorDisabled.

Referenced by getTextColorDisabled().

00522 {
00523     if (classType.compare(CSPanel::CLASS) == 0)
00524     {
00525         return windowTextColorDisabled;
00526     }
00527     if (classType.compare(CSWindow::CLASS) == 0)
00528     {
00529         return windowTextColorDisabled;
00530     }
00531     if (classType.compare("Title") == 0)
00532     {
00533         return titleTextColorDisabled;
00534     }
00535     if (classType.compare(CSMenu::CLASS) == 0)
00536     {
00537         return menuTextColorDisabled;
00538     }
00539     if (classType.compare("MenuWindow") == 0)
00540     {
00541         return menuTextColorDisabled;
00542     }
00543     if (classType.compare("Menu") == 0)
00544     {
00545         return menuTextColorDisabled;
00546     }
00547     if (classType.compare(CSMenuItem::CLASS) == 0)
00548     {
00549         return menuTextColorDisabled;
00550     }
00551     if (classType.compare(CSListbox::CLASS) == 0)
00552     {
00553         return listboxTextColorDisabled;
00554     }
00555     if (classType.compare(CSCombobox::CLASS) == 0)
00556     {
00557         return textfieldTextColorDisabled;
00558     }
00559     if (classType.compare(CSTextfield::CLASS) == 0)
00560     {
00561         return textfieldTextColorDisabled;
00562     }
00563     if (classType.compare(CSTextarea::CLASS) == 0)
00564     {
00565         return textAreaTextColorDisabled;
00566     }
00567     return -1;
00568 }

int CSLAF::getHorizontalElementSpacingInternal const std::string &  classType  )  [protected]
 

Definition at line 133 of file CSLAF.cpp.

References buttonHorizontalSpacing, CSTextarea::CLASS, CSTextfield::CLASS, CSListbox::CLASS, CSCheckBox::CLASS, CSMenuItem::CLASS, CSMenu::CLASS, CSMenuBar::CLASS, CSDragButton::CLASS, CSButton::CLASS, elementHorizontalSpacing, listboxHorizontalLineSpacing, menuBarHorizontalSpacing, menuItemHorzintalSpacing, textAreaHorizontalLineSpacing, textfieldHorizontalSpacing, and windowTitleInterIconOffset.

Referenced by getHorizontalElementSpacing().

00134 {
00135     if (classType.compare(CSButton::CLASS) == 0)
00136     {
00137         return buttonHorizontalSpacing;
00138     }
00139     if (classType.compare(CSDragButton::CLASS) == 0)
00140     {
00141         return buttonHorizontalSpacing;
00142     }
00143     if (classType.compare("Title") == 0)
00144     {
00145         return windowTitleInterIconOffset;
00146     }
00147     if (classType.compare(CSMenuBar::CLASS) == 0)
00148     {
00149         return menuBarHorizontalSpacing;
00150     }
00151     if (classType.compare(CSMenu::CLASS) == 0)
00152     {
00153         return menuItemHorzintalSpacing;
00154     }
00155     if (classType.compare("Menu") == 0)
00156     {
00157         return menuItemHorzintalSpacing;
00158     }
00159     if (classType.compare("MenuWindow") == 0)
00160     {
00161         return menuItemHorzintalSpacing;
00162     }
00163     if (classType.compare(CSMenuItem::CLASS) == 0)
00164     {
00165         return menuItemHorzintalSpacing;
00166     }
00167     if ( (classType.compare("CSIcon") == 0) || (classType.compare("CSPictureIcon") == 0)  || (classType.compare("CSTextIcon") == 0) )
00168     {
00169         return 0;
00170     }
00171     if (classType.compare(CSCheckBox::CLASS) == 0)
00172     {
00173         return buttonHorizontalSpacing;
00174     }
00175     if (classType.compare(CSListbox::CLASS) == 0)
00176     {
00177         return listboxHorizontalLineSpacing;
00178     }
00179     if (classType.compare(CSTextfield::CLASS) == 0)
00180     {
00181         return textfieldHorizontalSpacing;
00182     }
00183     if (classType.compare(CSTextarea::CLASS) == 0)
00184     {
00185         return textAreaHorizontalLineSpacing;
00186     }
00187     return elementHorizontalSpacing;
00188 }

int CSLAF::getVerticalElementSpacingInternal const std::string &  classType  )  [protected]
 

Definition at line 190 of file CSLAF.cpp.

References buttonVerticalSpacing, CSTextarea::CLASS, CSTextfield::CLASS, CSListbox::CLASS, CSCheckBox::CLASS, CSMenuItem::CLASS, CSMenu::CLASS, CSMenuBar::CLASS, CSDragButton::CLASS, CSButton::CLASS, elementVerticalSpacing, listboxVerticalLineSpacing, menuBarVerticalSpacing, menuItemVerticalSpacing, textAreaVerticalLineSpacing, textfieldVerticalSpacing, and windowTitleInterIconOffset.

Referenced by getVerticalElementSpacing().

00191 {
00192     if (classType.compare(CSButton::CLASS) == 0)
00193     {
00194         return buttonVerticalSpacing;
00195     }
00196     if (classType.compare(CSDragButton::CLASS) == 0)
00197     {
00198         return buttonVerticalSpacing;
00199     }
00200     if (classType.compare("Title") == 0)
00201     {
00202         return windowTitleInterIconOffset;
00203     }
00204     if (classType.compare(CSMenuBar::CLASS) == 0)
00205     {
00206         return menuBarVerticalSpacing;
00207     }
00208     if (classType.compare(CSMenu::CLASS) == 0)
00209     {
00210         return menuItemVerticalSpacing;
00211     }
00212     if (classType.compare("MenuWindow") == 0)
00213     {
00214         return menuItemVerticalSpacing;
00215     }
00216     if (classType.compare("Menu") == 0)
00217     {
00218         return menuItemVerticalSpacing;
00219     }
00220     if (classType.compare(CSMenuItem::CLASS) == 0)
00221     {
00222         return menuItemVerticalSpacing;
00223     }
00224     if ( (classType.compare("CSIcon") == 0) || (classType.compare("CSPictureIcon") == 0)  || (classType.compare("CSTextIcon") == 0) )
00225     {
00226         return 0;
00227     }
00228     if (classType.compare(CSCheckBox::CLASS) == 0)
00229     {
00230         return buttonVerticalSpacing;
00231     }
00232     if (classType.compare(CSListbox::CLASS) == 0)
00233     {
00234         return listboxVerticalLineSpacing;
00235     }
00236     if (classType.compare(CSTextfield::CLASS) == 0)
00237     {
00238         return textfieldVerticalSpacing;
00239     }
00240     if (classType.compare(CSTextarea::CLASS) == 0)
00241     {
00242         return textAreaVerticalLineSpacing;
00243     }
00244     return elementVerticalSpacing;
00245 }

CSArea * CSLAF::getAreaInternal const std::string &  classType,
int  state = 0
[protected]
 

Definition at line 247 of file CSLAF.cpp.

References CSTextarea::CLASS, CSBar::CLASS, CSTextfield::CLASS, CSMenuBar::CLASS, CSWindow::CLASS, CSDragButton::CLASS, CSButton::CLASS, CSPanel::CLASS, CSLabel::CLASS, getBackgroundColorEnabledInternal(), CSArea::setColor(), CSRoundedArea::setCorner(), CSGradientArea::setSecondColor(), CSGradientArea::setType(), and TYPE_VERTICAL.

Referenced by getArea().

00248 {
00249     static CSArea *area = new CSArea();
00250     if (classType.compare(CSLabel::CLASS) == 0)
00251     {
00252         static CSArea *area = new CSArea();
00253         return 0;
00254         //return area;
00255     }
00256     if (classType.compare(CSPanel::CLASS) == 0)
00257     {
00258         static CSArea *area = new CSArea();
00259         return 0;
00260         //return area;
00261     }
00262     if (classType.compare(CSButton::CLASS) == 0)
00263     {
00264         static CSRoundedArea *area = new CSRoundedArea();
00265         area->setCorner(3);
00266         return area;
00267     }
00268     if (classType.compare(CSDragButton::CLASS) == 0)
00269     {
00270         static CSRoundedArea *area = new CSRoundedArea();
00271         area->setCorner(4);
00272         return area;
00273     }
00274     if (classType.compare(CSWindow::CLASS) == 0)
00275     {
00276         static CSRoundedArea *area = new CSRoundedArea();
00277         area->setCorner(3);
00278 //      static CSPictureArea *area = new CSPictureArea();
00279 //      area->setPicture(CSPictureDirectLoader::INSTANCE.load("PAC_MAN.bmp"));
00280         return area;
00281     }
00282 
00283     if (classType.compare(CSMenuBar::CLASS) == 0)
00284     {
00285         static CSGradientArea *area = new CSGradientArea();
00286         area->setColor(CSHelper::colorPercent(getBackgroundColorEnabledInternal(classType), 50));
00287         area->setColor(CSHelper::colorPercent(0xffffff, 50));
00288         area->setSecondColor(CSHelper::colorPercent(getBackgroundColorEnabledInternal(classType), 50));
00289         area->setSecondColor(CSHelper::colorPercent(00000000, 50));
00290         area->setType(TYPE_VERTICAL);
00291         return area;
00292     }
00293     if (classType.compare(CSTextfield::CLASS) == 0)
00294     {
00295         static CSRoundedArea *area = new CSRoundedArea();
00296         area->setCorner(6);
00297         return area;
00298     }
00299     if (classType.compare(CSBar::CLASS) == 0)
00300     {
00301         static CSGradientArea *area = new CSGradientArea();
00302         area->setColor(CSHelper::colorPercent(getBackgroundColorEnabledInternal(classType), 50));
00303         area->setSecondColor(CSHelper::colorPercent(getBackgroundColorEnabledInternal(classType), 50));
00304         return area;
00305     }
00306     if (classType.compare(CSTextarea::CLASS) == 0)
00307     {
00308         static CSRoundedArea *area = new CSRoundedArea();
00309         area->setCorner(6);
00310         return area;
00311     }
00312     return area;
00313 }

Here is the call graph for this function:

CSFont * CSLAF::getFontInternal const std::string &  classType  )  [protected]
 

Definition at line 315 of file CSLAF.cpp.

References CSTextarea::CLASS, Loadable< CSFont >::load(), monoSpacedFontName, proportionalFontName, and CSFont::setSolid().

Referenced by getFont().

00316 {
00317     static char *functionName="getProportionalFont";
00318     if (classType.compare("MonoSpaced"))
00319     {
00320         static CSFont *font = CSFontLoader::INSTANCE.load(monoSpacedFontName);
00321         font->setSolid(false);
00322         return font;
00323     }
00324     else if (classType.compare(CSTextarea::CLASS))
00325     {
00326         static CSFont *font = CSFontLoader::INSTANCE.load(monoSpacedFontName);
00327         font->setSolid(false);
00328         return font;
00329     }
00330     static CSFont *font = CSFontLoader::INSTANCE.load(proportionalFontName);
00331     font->setSolid(false);
00332     return font;
00333 }

Here is the call graph for this function:

CSBorder * CSLAF::getBorderInternal const std::string &  classType,
int  state
[protected]
 

Definition at line 570 of file CSLAF.cpp.

References BORDER_TYPE_BUTTON, BORDER_TYPE_CHECK_BUTTON, BORDER_TYPE_MENU, BORDER_TYPE_NONE, BORDER_TYPE_TEXTFIELD, BORDER_TYPE_UP, BORDER_TYPE_WINDOW, CSLabel::CLASS, CSHTMLPanel::CLASS, CSTextarea::CLASS, CSTextfield::CLASS, CSCombobox::CLASS, CSListbox::CLASS, CSCheckBox::CLASS, CSMenuItem::CLASS, CSMenuBar::CLASS, CSMenu::CLASS, CSBar::CLASS, CSWindow::CLASS, CSDragButton::CLASS, CSButton::CLASS, CSPanel::CLASS, CSRoundedBorder::getBorder(), CSBorder::getBorder(), CSRoundedBorder::setCorner(), and CSBorder::setState().

Referenced by getBorder().

00571 {
00572     static CSBorder *theBorder = CSBorder::getBorder(BORDER_TYPE_NONE);
00573 
00574     // default
00575     int type = -1;
00576     if (classType.compare(CSPanel::CLASS) == 0)
00577     {
00578         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_NONE);
00579 //      static CSRoundedBorder *border = CSRoundedBorder::getBorder(BORDER_TYPE_WINDOW);
00580 //      border->setState(state);
00581 //      border->setCorner(3);
00582         return border;
00583     }
00584     if (classType.compare(CSButton::CLASS) == 0)
00585     {
00586 //      static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_BUTTON);
00587 //      border->setState(state);
00588         static CSRoundedBorder *border = CSRoundedBorder::getBorder(BORDER_TYPE_BUTTON);
00589         border->setState(state);
00590         border->setCorner(4);
00591         return border;
00592     }
00593     if (classType.compare(CSDragButton::CLASS) == 0)
00594     {
00595 //      static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_BUTTON);
00596 //      border->setState(state);
00597         static CSRoundedBorder *border = CSRoundedBorder::getBorder(BORDER_TYPE_BUTTON);
00598         border->setState(state);
00599         border->setCorner(6);
00600         return border;
00601     }
00602     if (classType.compare(CSWindow::CLASS) == 0)
00603     {
00604 //      static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_WINDOW);
00605 //      border->setState(state);
00606         static CSRoundedBorder *border = CSRoundedBorder::getBorder(BORDER_TYPE_WINDOW);
00607         border->setState(state);
00608         border->setCorner(3);
00609         return border;
00610     }
00611     if (classType.compare(CSBar::CLASS) == 0)
00612     {
00613         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_UP);
00614         border->setState(state);
00615         return border;
00616     }
00617     if (classType.compare("Title") == 0)
00618     {
00619         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_UP);
00620         border->setState(state);
00621         return border;
00622     }
00623     if (classType.compare(CSMenu::CLASS) == 0)
00624     {
00625         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_MENU);
00626         border->setState(state);
00627         return border;
00628     }
00629     if (classType.compare("Menu") == 0)
00630     {
00631         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_MENU);
00632         border->setState(state);
00633         return border;
00634     }
00635     if (classType.compare(CSMenuBar::CLASS) == 0)
00636     {
00637         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_UP);
00638         border->setState(state);
00639         return border;
00640     }
00641     if (classType.compare("MenuWindow") == 0)
00642     {
00643         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_WINDOW);
00644         border->setState(state);
00645         return border;
00646     }
00647     if (classType.compare(CSMenuItem::CLASS) == 0)
00648     {
00649         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_MENU);
00650         border->setState(state);
00651         return border;
00652     }
00653     if (classType.compare(CSCheckBox::CLASS) == 0)
00654     {
00655         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_CHECK_BUTTON);
00656         border->setState(state);
00657         return border;
00658     }
00659     if (classType.compare(CSListbox::CLASS) == 0)
00660     {
00661         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_TEXTFIELD);
00662         border->setState(state);
00663         return border;
00664     }
00665     if (classType.compare(CSCombobox::CLASS) == 0)
00666     {
00667         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_TEXTFIELD);
00668         border->setState(state);
00669         return border;
00670     }
00671     if (classType.compare(CSTextfield::CLASS) == 0)
00672     {
00673 //      static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_TEXTFIELD);
00674 //      border->setState(state);
00675         static CSRoundedBorder *border = CSRoundedBorder::getBorder(BORDER_TYPE_TEXTFIELD);
00676         border->setState(state);
00677         border->setCorner(6);
00678         return border;
00679     }
00680     if (classType.compare(CSTextarea::CLASS) == 0)
00681     {
00682         static CSRoundedBorder *border = CSRoundedBorder::getBorder(BORDER_TYPE_TEXTFIELD);
00683         border->setState(state);
00684         border->setCorner(6);
00685 //      static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_TEXTFIELD);
00686 //      border->setState(state);
00687         return border;
00688     }
00689     if (classType.compare(CSHTMLPanel::CLASS) == 0)
00690     {
00691         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_NONE);
00692         border->setState(state);
00693         return border;
00694     }
00695     if (classType.compare(CSLabel::CLASS) == 0)
00696     {
00697         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_NONE);
00698         border->setState(state);
00699         return border;
00700     }
00701 /*  
00702     if (classType.compare(CSHTMLArea::CLASS) == 0)
00703     {
00704         static CSBorder *border = CSBorder::getBorder(BORDER_TYPE_TEXTFIELD);
00705         border->setState(state);
00706         return border;
00707     }
00708 */
00709     return theBorder;
00710 }

Here is the call graph for this function:

CSIcon * CSLAF::getIconInternal int  iconType  )  [protected]
 

Definition at line 712 of file CSLAF.cpp.

References CSPictureIcon::buildIcon(), closeIconFileDisabled, closeIconFileEnabled, downIconFileDisabled, downIconFileEnabled, errorIconFileDisabled, errorIconFileEnabled, infoIconFileDisabled, infoIconFileEnabled, LAF_ICON_TYPE_CLOSE, LAF_ICON_TYPE_DOWN, LAF_ICON_TYPE_ERROR, LAF_ICON_TYPE_INFO, LAF_ICON_TYPE_LEFT, LAF_ICON_TYPE_QUESTION, LAF_ICON_TYPE_RIGHT, LAF_ICON_TYPE_UP, LAF_ICON_TYPE_WARN, leftIconFileDisabled, leftIconFileEnabled, questionIconFileDisabled, questionIconFileEnabled, rightIconFileDisabled, rightIconFileEnabled, upIconFileDisabled, upIconFileEnabled, warnIconFileDisabled, and warnIconFileEnabled.

Referenced by getIcon().

00713 {
00714     switch (iconType)
00715     {
00716         case LAF_ICON_TYPE_CLOSE:
00717             return CSPictureIcon::buildIcon(closeIconFileEnabled, closeIconFileDisabled);       
00718         case LAF_ICON_TYPE_WARN:
00719             return CSPictureIcon::buildIcon(warnIconFileEnabled, warnIconFileDisabled);
00720         case LAF_ICON_TYPE_ERROR:
00721             return CSPictureIcon::buildIcon(errorIconFileEnabled, errorIconFileDisabled);
00722         case LAF_ICON_TYPE_INFO:
00723             return CSPictureIcon::buildIcon(infoIconFileEnabled, infoIconFileDisabled);
00724         case LAF_ICON_TYPE_QUESTION:
00725             return CSPictureIcon::buildIcon(questionIconFileEnabled, questionIconFileDisabled);
00726         case LAF_ICON_TYPE_UP:
00727             return CSPictureIcon::buildIcon(upIconFileEnabled, upIconFileDisabled);
00728         case LAF_ICON_TYPE_LEFT:
00729             return CSPictureIcon::buildIcon(leftIconFileEnabled, leftIconFileDisabled);
00730         case LAF_ICON_TYPE_DOWN:
00731             return CSPictureIcon::buildIcon(downIconFileEnabled, downIconFileDisabled);
00732         case LAF_ICON_TYPE_RIGHT:
00733             return CSPictureIcon::buildIcon(rightIconFileEnabled, rightIconFileDisabled);
00734     }
00735     return 0;
00736 }

Here is the call graph for this function:

CSMouseCursor * CSLAF::getMouseCursorInternal int  type  )  [protected]
 

Definition at line 335 of file CSLAF.cpp.

References LAF_MOUSE_CURSOR_DEFAULT, LAF_MOUSE_CURSOR_SIZING_DOWN, LAF_MOUSE_CURSOR_SIZING_DOWN_LEFT, LAF_MOUSE_CURSOR_SIZING_DOWN_RIGHT, LAF_MOUSE_CURSOR_SIZING_LEFT, LAF_MOUSE_CURSOR_SIZING_RIGHT, LAF_MOUSE_CURSOR_SIZING_UP, LAF_MOUSE_CURSOR_SIZING_UP_LEFT, LAF_MOUSE_CURSOR_SIZING_UP_RIGHT, mDefaultMouseCursor, and mSizingMouseCursor.

Referenced by getMouseCursor().

00336 {
00337     switch (type)
00338     {
00339         case LAF_MOUSE_CURSOR_DEFAULT:
00340         {
00341             if (mDefaultMouseCursorInstance == 0)
00342             {
00343                 mDefaultMouseCursorInstance = new CSMouseCursor(mDefaultMouseCursor);
00344             }
00345             return mDefaultMouseCursorInstance;
00346         }
00347         case LAF_MOUSE_CURSOR_SIZING_DOWN_RIGHT:
00348         case LAF_MOUSE_CURSOR_SIZING_DOWN_LEFT:
00349         case LAF_MOUSE_CURSOR_SIZING_UP_RIGHT:
00350         case LAF_MOUSE_CURSOR_SIZING_UP_LEFT:
00351         case LAF_MOUSE_CURSOR_SIZING_DOWN:
00352         case LAF_MOUSE_CURSOR_SIZING_UP:
00353         case LAF_MOUSE_CURSOR_SIZING_LEFT:
00354         case LAF_MOUSE_CURSOR_SIZING_RIGHT:
00355         {
00356             if (mSizingMouseCursorInstance == 0)
00357             {
00358                 mSizingMouseCursorInstance = new CSMouseCursor(mSizingMouseCursor);
00359             }
00360             return mSizingMouseCursorInstance;
00361         }
00362     }
00363     return 0;
00364 }

void CSLAF::addElement CSGrafikElement element  )  [static]
 

Definition at line 74 of file CSLAF.cpp.

References LOG_ENTER, LOG_EXIT, and CSGrafikElement::setCurrentLAFId().

Referenced by CSGrafikElement::CSGrafikElement().

00075 {
00076     static char *functionName="addElement";
00077     LOG_ENTER 
00078     element->setCurrentLAFId(mCurrentLAFId);
00079     mGUIElements.push_back(element);
00080     LOG_EXIT
00081 }

Here is the call graph for this function:

void CSLAF::removeElement CSGrafikElement element  )  [static]
 

Definition at line 83 of file CSLAF.cpp.

References LOG_ENTER, and LOG_EXIT.

Referenced by CSGrafikElement::~CSGrafikElement().

00084 {
00085     static char *functionName="removeElement";
00086     LOG_ENTER 
00087     CSGrafikElements::iterator iter = mGUIElements.begin();
00088     while (iter != mGUIElements.end())
00089     {
00090         if ((*iter) == element)
00091         {
00092             mGUIElements.erase(iter);
00093             iter = mGUIElements.begin();    // restart!
00094         }
00095         else
00096         {
00097             iter++;
00098         }
00099     }
00100     LOG_EXIT
00101 }

void CSLAF::lafChanged  )  [static]
 

Definition at line 103 of file CSLAF.cpp.

References destroyMouseCursors(), CSGrafikElement::getCurrentLAFId(), CSGrafikElement::lafChanged(), LOG_ENTER, LOG_EXIT, and CSGrafikElement::setCurrentLAFId().

Referenced by setCurrentLAF().

00104 {
00105     static char *functionName="lafChanged";
00106     LOG_ENTER 
00107     if (mLAF != 0)
00108     {
00109         mLAF->destroyMouseCursors();
00110     }
00111     mCurrentLAFId++;
00112     
00113     CSGrafikElements::iterator iter = mGUIElements.begin();
00114     while (iter != mGUIElements.end())
00115     {
00116         CSGrafikElement *element = *iter;
00117         int id = element->getCurrentLAFId();
00118         if (id != mCurrentLAFId)
00119         {
00120             element->lafChanged(mCurrentLAFId);
00121             element->setCurrentLAFId(mCurrentLAFId);
00122             iter = mGUIElements.begin();
00123         }
00124         else
00125         {
00126             iter++;
00127         }
00128     }
00129 
00130     LOG_EXIT
00131 }

Here is the call graph for this function:

void CSLAF::setCurrentLAF CSLAF laf  )  [static]
 

Definition at line 41 of file CSLAF.cpp.

References lafChanged(), mDefaultMouseCursorInstance, and mSizingMouseCursorInstance.

00042 {
00043     (*mLAF) = laf;
00044     // pointers are copied also!
00045     // beware, that we don't delete pointers of the class we are copiing from
00046     // therefor we set the actual CSMouseCursor instances to 0!
00047     mLAF->mSizingMouseCursorInstance = 0;
00048     mLAF->mDefaultMouseCursorInstance = 0;
00049     lafChanged();
00050 }

Here is the call graph for this function:

CSLAF * CSLAF::getCurrentLAF  )  [static]
 

Definition at line 52 of file CSLAF.cpp.

References CSLAF().

Referenced by HTMLElement::buildDisplay(), CSGrafikElement::CSGrafikElement(), CSGrafikElement::getArea(), CSGrafikElement::getBackgroundColor(), CSGrafikElement::getBorder(), CSGrafikElement::getCursor(), CSGrafikElement::getFont(), CSGrafikElement::getHorizontalElementSpacing(), CSGrafikElement::getTextColor(), CSGrafikElement::getVerticalElementSpacing(), CSGrafikElement::init(), CSCheckBox::layoutSetupCheckBox(), CSCombobox::layoutSetupCombobox(), CSHTMLPanel::layoutSetupHTMLPanel(), CSListbox::layoutSetupListbox(), CSScrollbar::layoutSetupScrollbar(), CSTextarea::layoutSetupTextarea(), CSTextfield::layoutSetupTextfield(), CSWindow::layoutSetupWindow(), CSMenu::openMenu(), CSTextarea::paint(), CSDesktop::paint(), CSRoundedBorder::paint(), CSBorder::paint(), CSScrollbar::rebuildElement(), CSMessageBox::rebuildElement(), CSListbox::rebuildElement(), CSCombobox::rebuildElement(), and CSWindow::rebuildElementWindow().

00053 {
00054     if (mLAF == 0)
00055     {
00056         mLAF = new CSLAF();
00057     }
00058     return mLAF;
00059 }

Here is the call graph for this function:

virtual int CSLAF::getBackgroundColorEnabled const std::string &  classType  )  [inline, virtual]
 

Definition at line 185 of file CSLAF.h.

References getBackgroundColorEnabledInternal().

Referenced by CSGrafikElement::getBackgroundColor().

00185 {return getBackgroundColorEnabledInternal(classType);}

Here is the call graph for this function:

virtual int CSLAF::getBackgroundColorDisabled const std::string &  classType  )  [inline, virtual]
 

Definition at line 186 of file CSLAF.h.

References getBackgroundColorDisabledInternal().

Referenced by CSGrafikElement::getBackgroundColor(), and CSGrafikElement::init().

00186 {return getBackgroundColorDisabledInternal(classType);}

Here is the call graph for this function:

virtual int CSLAF::getTextColorEnabled const std::string &  classType  )  [inline, virtual]
 

Definition at line 188 of file CSLAF.h.

References getTextColorEnabledInternal().

Referenced by CSGrafikElement::getTextColor().

00188 {return getTextColorEnabledInternal(classType);}

Here is the call graph for this function:

virtual int CSLAF::getTextColorDisabled const std::string &  classType  )  [inline, virtual]
 

Definition at line 189 of file CSLAF.h.

References getTextColorDisabledInternal().

Referenced by CSGrafikElement::getTextColor(), and CSGrafikElement::init().

00189 {return getTextColorDisabledInternal(classType);}

Here is the call graph for this function:

virtual int CSLAF::getHorizontalElementSpacing const std::string &  classType  )  [inline, virtual]
 

Definition at line 191 of file CSLAF.h.

References getHorizontalElementSpacingInternal().

Referenced by CSGrafikElement::getHorizontalElementSpacing(), and CSGrafikElement::init().

00191 {return getHorizontalElementSpacingInternal(classType);}

Here is the call graph for this function:

virtual int CSLAF::getVerticalElementSpacing const std::string &  classType  )  [inline, virtual]
 

Definition at line 192 of file CSLAF.h.

References getVerticalElementSpacingInternal().

Referenced by CSGrafikElement::getVerticalElementSpacing(), and CSGrafikElement::init().

00192 {return getVerticalElementSpacingInternal(classType);}

Here is the call graph for this function:

virtual int CSLAF::getBorderDefaultBrightestColor  )  [inline, virtual]
 

Definition at line 194 of file CSLAF.h.

References borderDefaultBrightestColor.

Referenced by CSRoundedBorder::paint(), and CSBorder::paint().

virtual int CSLAF::getComboboxItemsShown  )  [inline, virtual]
 

Definition at line 195 of file CSLAF.h.

References comboboxItemsShown.

Referenced by CSCombobox::rebuildElement().

00195 {return comboboxItemsShown;}

virtual int CSLAF::getMenuOpenXOffset  )  [inline, virtual]
 

Definition at line 196 of file CSLAF.h.

References menuOpenXOffset.

Referenced by CSMenu::openMenu().

00196 {return menuOpenXOffset;}

virtual int CSLAF::getMenuOpenYOffset  )  [inline, virtual]
 

Definition at line 197 of file CSLAF.h.

References menuOpenYOffset.

Referenced by CSMenu::openMenu().

00197 {return menuOpenYOffset;}

virtual int CSLAF::getWindowSizingOffset  )  [inline, virtual]
 

Todo:
to sizing allow sizing not just in lower right corner!

Definition at line 198 of file CSLAF.h.

References windowSizingOffset.

virtual CSBorder* CSLAF::getBorder const std::string &  classType,
int  state = 0
[inline, virtual]
 

state for buttons! otherwise ignored

Definition at line 202 of file CSLAF.h.

References getBorderInternal().

Referenced by CSGrafikElement::getBorder().

00202 {return getBorderInternal(classType, state);}

Here is the call graph for this function:

virtual CSArea* CSLAF::getArea const std::string &  classType,
int  state = 0
[inline, virtual]
 

Definition at line 203 of file CSLAF.h.

References getAreaInternal().

Referenced by CSGrafikElement::getArea().

00203 {return getAreaInternal(classType, state);}

Here is the call graph for this function:

virtual CSIcon* CSLAF::getIcon int  iconType  )  [inline, virtual]
 

Definition at line 204 of file CSLAF.h.

References getIconInternal().

Referenced by CSMessageBox::rebuildElement(), and CSCombobox::rebuildElement().

00204 {return getIconInternal(iconType);}

Here is the call graph for this function:

CSMouseCursor* CSLAF::getMouseCursor int  type  )  [inline]
 

Definition at line 206 of file CSLAF.h.

References getMouseCursorInternal().

Referenced by CSGrafikElement::getCursor().

00206 {return getMouseCursorInternal(type);}

Here is the call graph for this function:

CSFont* CSLAF::getFont std::string  classType  )  [inline]
 

Definition at line 207 of file CSLAF.h.

References getFontInternal().

Referenced by HTMLElement::buildDisplay(), and CSGrafikElement::getFont().

00207 {return getFontInternal(classType);}

Here is the call graph for this function:

virtual int CSLAF::getTextAreaCursorColor  )  [inline, virtual]
 

Definition at line 208 of file CSLAF.h.

References textAreaCursorColor.

Referenced by CSTextarea::paint().

00208 {return textAreaCursorColor;}

void CSLAF::reset void   )  [virtual]
 

Definition at line 738 of file CSLAF.cpp.

References borderDefaultBrightestColor, buttonBackColorDisabled, buttonBackColorEnabled, buttonHorizontalSpacing, buttonVerticalSpacing, checkBoxColorDisabled, checkBoxColorEnabled, checkBoxSize, closeIconFileDisabled, closeIconFileEnabled, comboboxItemsShown, cursorRate, downIconFileDisabled, downIconFileEnabled, elementHorizontalSpacing, elementVerticalSpacing, errorIconFileDisabled, errorIconFileEnabled, infoIconFileDisabled, infoIconFileEnabled, labelHorizontalSpacing, labelVerticalSpacing, leftIconFileDisabled, leftIconFileEnabled, listboxColorDisabled, listboxColorEnabled, listboxHorizontalLineSpacing, listboxTextColorDisabled, listboxTextColorEnabled, listboxVerticalLineSpacing, LOG_ENTER, LOG_EXIT, mDefaultMouseCursor, menuBackColorDisabled, menuBackColorEnabled, menuBarBackColorDisabled, menuBarBackColorEnabled, menuBarHorizontalSpacing, menuBarVerticalSpacing, menuItemHorzintalSpacing, menuItemVerticalSpacing, menuOpenXOffset, menuOpenYOffset, menuTextColorDisabled, menuTextColorEnabled, monoSpacedFontName, mSizingMouseCursor, proportionalFontName, questionIconFileDisabled, questionIconFileEnabled, rightIconFileDisabled, rightIconFileEnabled, scrollbarBackColor, textAreaColorDisabled, textAreaColorEnabled, textAreaCursorColor, textAreaHorizontalLineSpacing, textAreaTextColorDisabled, textAreaTextColorEnabled, textAreaVerticalLineSpacing, textfieldColorDisabled, textfieldColorEnabled, textfieldHorizontalSpacing, textfieldTextColorDisabled, textfieldTextColorEnabled, textfieldVerticalSpacing, titleColorDisabled, titleColorEnabled, titleTextColorDisabled, titleTextColorEnabled, tooltipThreshold, upIconFileDisabled, upIconFileEnabled, warnIconFileDisabled, warnIconFileEnabled, windowBackColorDisabled, windowBackColorEnabled, windowSizingOffset, windowTextColorDisabled, windowTextColorEnabled, windowTitleIconBorderHorizontalOffset, windowTitleIconBorderVerticalOffset, and windowTitleInterIconOffset.

Referenced by CSLAF().

00739 {
00740     static char *functionName="reset";
00741     LOG_ENTER 
00742 
00743     borderDefaultBrightestColor = 0xe0e0e0;
00744     windowBackColorEnabled = 0xc0c0c0;
00745     windowBackColorDisabled = 0xc0c0c0;
00746     windowTextColorEnabled = 0xffffff;
00747     windowTextColorDisabled = 0x101010;
00748 
00749     buttonBackColorEnabled = 0xc0c0c0;
00750     buttonBackColorDisabled = 0xc0c0c0;
00751     scrollbarBackColor = 0xd0d0d0;
00752     menuBarBackColorEnabled = 0xc0c0c0;
00753     menuBarBackColorDisabled = 0xc0c0c0;
00754     menuBackColorEnabled = 0xc0c0c0;
00755     menuBackColorDisabled = 0xc0c0c0;
00756     menuTextColorEnabled = 0xffffff;
00757     menuTextColorDisabled = 0xffffff;
00758 
00759     titleTextColorEnabled = 0xe0e0e0;
00760     titleTextColorDisabled = 0xe0e0e0;
00761     titleColorEnabled = 0x000080;
00762     titleColorDisabled = 0xc0c0c0;
00763 
00764     checkBoxColorEnabled = 0xffffff;
00765     checkBoxColorDisabled = 0xa0a0a0;
00766     listboxColorEnabled = 0xffffff;
00767     listboxColorDisabled = 0xa0a0a0;
00768     listboxTextColorEnabled = 0x101010;
00769     listboxTextColorDisabled = 0x101010;
00770 
00771     textfieldColorDisabled = 0xa0a0a0;
00772     textfieldColorEnabled = 0xffffff;
00773     textfieldTextColorEnabled = 0x101010;
00774     textfieldTextColorDisabled = 0xffffff;
00775     
00776     textAreaTextColorEnabled = 0x101010;
00777     textAreaTextColorDisabled = 0xffffff;
00778     textAreaColorEnabled = 0xffffff;
00779     textAreaColorDisabled = 0xa0a0a0;
00780     textAreaCursorColor = 0x101010;
00781 
00782     proportionalFontName = "font\\win_font.xml";
00783     monoSpacedFontName = "font\\defaultMonoFont.xml";
00784 
00785     comboboxItemsShown = 4;
00786     menuOpenXOffset = 0;
00787     menuOpenYOffset = 2;
00788     tooltipThreshold = 2000;
00789 
00790     windowTitleInterIconOffset = 0;
00791     windowTitleIconBorderVerticalOffset = 1;
00792     windowTitleIconBorderHorizontalOffset = 3;
00793     windowSizingOffset = 20;
00794 
00795     menuItemHorzintalSpacing = 2;
00796     menuItemVerticalSpacing = 2;
00797     menuBarHorizontalSpacing = 2;
00798     menuBarVerticalSpacing = 0;
00799     elementHorizontalSpacing = 2;
00800     elementVerticalSpacing = 2;
00801     textfieldHorizontalSpacing = 2;
00802     
00803     textfieldVerticalSpacing = 2;       
00804     labelHorizontalSpacing = 2;     
00805     labelVerticalSpacing = 2;
00806     buttonHorizontalSpacing = 2;    
00807     buttonVerticalSpacing = 2;
00808     textAreaVerticalLineSpacing = 2;
00809     textAreaHorizontalLineSpacing = 2;
00810 
00811     listboxVerticalLineSpacing = 4; 
00812     listboxHorizontalLineSpacing = 2;
00813 
00814     cursorRate = 500; // 500 milliseconds
00815     checkBoxSize = 12;
00816 
00817     closeIconFileEnabled="picture\\WindowClose.xml";
00818     closeIconFileDisabled="picture\\WindowClose.xml";
00819 
00820     warnIconFileEnabled="picture\\IconWarning.xml";
00821     warnIconFileDisabled="picture\\IconWarning.xml";
00822 
00823     errorIconFileEnabled="picture\\IconError.xml";
00824     errorIconFileDisabled="picture\\IconError.xml";
00825 
00826     infoIconFileEnabled="picture\\IconInfo.xml";
00827     infoIconFileDisabled="picture\\IconInfo.xml";
00828 
00829     questionIconFileEnabled="picture\\IconQuestion.xml";
00830     questionIconFileDisabled="picture\\IconQuestion.xml";
00831 
00832     upIconFileEnabled="picture\\IconArrowUpSmall.xml";
00833     upIconFileDisabled="picture\\IconArrowUpSmall.xml";
00834 
00835     downIconFileEnabled="picture\\IconArrowDownSmall.xml";
00836     downIconFileDisabled="picture\\IconArrowDownSmall.xml";
00837 
00838     leftIconFileEnabled="picture\\IconArrowLeftSmall.xml";
00839     leftIconFileDisabled="picture\\IconArrowLeftSmall.xml";
00840 
00841     rightIconFileEnabled="picture\\IconArrowRightSmall.xml";
00842     rightIconFileDisabled="picture\\IconArrowRightSmall.xml";
00843     
00844     mDefaultMouseCursor = "picture\\ArrowCursor.xml";
00845     mSizingMouseCursor = "picture\\SizingCursor.xml";
00846 
00847     LOG_EXIT
00848 }

virtual std::string CSLAF::getType  )  [inline, virtual]
 

Definition at line 211 of file CSLAF.h.

References CLASS.

00211 {return (std::string) CLASS;}

virtual int CSLAF::getCursorRate  )  [inline, virtual]
 

Definition at line 212 of file CSLAF.h.

References cursorRate.

00212 {return cursorRate;}; // 500 milliseconds

virtual int CSLAF::getCheckBoxSize  )  [inline, virtual]
 

Definition at line 213 of file CSLAF.h.

References checkBoxSize.

00213 {return checkBoxSize;}


Field Documentation

int CSLAF::cursorRate [protected]
 

Definition at line 55 of file CSLAF.h.

Referenced by getCursorRate(), and reset().

int CSLAF::windowTitleInterIconOffset [protected]
 

Definition at line 56 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), getVerticalElementSpacingInternal(), and reset().

int CSLAF::windowTitleIconBorderVerticalOffset [protected]
 

Definition at line 57 of file CSLAF.h.

Referenced by reset().

int CSLAF::windowTitleIconBorderHorizontalOffset [protected]
 

Definition at line 58 of file CSLAF.h.

Referenced by reset().

int CSLAF::windowSizingOffset [protected]
 

Todo:
to sizing allow sizing not just in lower right corner!

Definition at line 59 of file CSLAF.h.

Referenced by getWindowSizingOffset(), and reset().

int CSLAF::borderDefaultBrightestColor [protected]
 

Definition at line 61 of file CSLAF.h.

Referenced by getBorderDefaultBrightestColor(), and reset().

int CSLAF::windowBackColorEnabled [protected]
 

Definition at line 63 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::windowBackColorDisabled [protected]
 

Definition at line 64 of file CSLAF.h.

Referenced by getBackgroundColorDisabledInternal(), and reset().

int CSLAF::windowTextColorEnabled [protected]
 

Definition at line 65 of file CSLAF.h.

Referenced by getTextColorEnabledInternal(), and reset().

int CSLAF::windowTextColorDisabled [protected]
 

Definition at line 66 of file CSLAF.h.

Referenced by getTextColorDisabledInternal(), and reset().

int CSLAF::buttonBackColorEnabled [protected]
 

Definition at line 67 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::buttonBackColorDisabled [protected]
 

Definition at line 68 of file CSLAF.h.

Referenced by getBackgroundColorDisabledInternal(), and reset().

int CSLAF::scrollbarBackColor [protected]
 

Definition at line 69 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::menuBarBackColorEnabled [protected]
 

Definition at line 70 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::menuBarBackColorDisabled [protected]
 

Definition at line 71 of file CSLAF.h.

Referenced by reset().

int CSLAF::menuBackColorEnabled [protected]
 

Definition at line 72 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::menuBackColorDisabled [protected]
 

Definition at line 73 of file CSLAF.h.

Referenced by reset().

int CSLAF::titleTextColorEnabled [protected]
 

Todo:
Window (title) with disabled color

Definition at line 75 of file CSLAF.h.

Referenced by getTextColorEnabledInternal(), and reset().

int CSLAF::titleTextColorDisabled [protected]
 

Definition at line 76 of file CSLAF.h.

Referenced by getTextColorDisabledInternal(), and reset().

int CSLAF::titleColorEnabled [protected]
 

Definition at line 77 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::titleColorDisabled [protected]
 

Definition at line 78 of file CSLAF.h.

Referenced by getBackgroundColorDisabledInternal(), and reset().

int CSLAF::checkBoxColorEnabled [protected]
 

Definition at line 80 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::checkBoxColorDisabled [protected]
 

Definition at line 81 of file CSLAF.h.

Referenced by getBackgroundColorDisabledInternal(), and reset().

int CSLAF::listboxColorEnabled [protected]
 

Definition at line 82 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::listboxColorDisabled [protected]
 

Definition at line 83 of file CSLAF.h.

Referenced by getBackgroundColorDisabledInternal(), and reset().

int CSLAF::listboxTextColorEnabled [protected]
 

Definition at line 84 of file CSLAF.h.

Referenced by getTextColorEnabledInternal(), and reset().

int CSLAF::listboxTextColorDisabled [protected]
 

Definition at line 85 of file CSLAF.h.

Referenced by getTextColorDisabledInternal(), and reset().

int CSLAF::menuTextColorEnabled [protected]
 

Definition at line 86 of file CSLAF.h.

Referenced by getTextColorEnabledInternal(), and reset().

int CSLAF::menuTextColorDisabled [protected]
 

Definition at line 87 of file CSLAF.h.

Referenced by getTextColorDisabledInternal(), and reset().

int CSLAF::textfieldColorDisabled [protected]
 

Definition at line 89 of file CSLAF.h.

Referenced by getBackgroundColorDisabledInternal(), and reset().

int CSLAF::textfieldColorEnabled [protected]
 

Definition at line 90 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::textfieldTextColorEnabled [protected]
 

Todo:
textField with disabled color

Definition at line 91 of file CSLAF.h.

Referenced by reset().

int CSLAF::textfieldTextColorDisabled [protected]
 

Definition at line 92 of file CSLAF.h.

Referenced by getTextColorDisabledInternal(), and reset().

int CSLAF::textAreaTextColorEnabled [protected]
 

Definition at line 94 of file CSLAF.h.

Referenced by getTextColorEnabledInternal(), and reset().

int CSLAF::textAreaTextColorDisabled [protected]
 

Todo:
textArea with disabled color

Definition at line 95 of file CSLAF.h.

Referenced by getTextColorDisabledInternal(), and reset().

int CSLAF::textAreaColorEnabled [protected]
 

Definition at line 96 of file CSLAF.h.

Referenced by getBackgroundColorEnabledInternal(), and reset().

int CSLAF::textAreaColorDisabled [protected]
 

Definition at line 97 of file CSLAF.h.

Referenced by getBackgroundColorDisabledInternal(), and reset().

int CSLAF::textAreaCursorColor [protected]
 

Definition at line 98 of file CSLAF.h.

Referenced by getTextAreaCursorColor(), and reset().

int CSLAF::listboxVerticalLineSpacing [protected]
 

Definition at line 100 of file CSLAF.h.

Referenced by getVerticalElementSpacingInternal(), and reset().

int CSLAF::listboxHorizontalLineSpacing [protected]
 

Definition at line 101 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), and reset().

int CSLAF::textAreaVerticalLineSpacing [protected]
 

Definition at line 102 of file CSLAF.h.

Referenced by getVerticalElementSpacingInternal(), and reset().

int CSLAF::textAreaHorizontalLineSpacing [protected]
 

space between border

Definition at line 103 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), and reset().

int CSLAF::textfieldHorizontalSpacing [protected]
 

Definition at line 104 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), and reset().

int CSLAF::textfieldVerticalSpacing [protected]
 

Definition at line 105 of file CSLAF.h.

Referenced by getVerticalElementSpacingInternal(), and reset().

int CSLAF::labelHorizontalSpacing [protected]
 

Definition at line 106 of file CSLAF.h.

Referenced by reset().

int CSLAF::labelVerticalSpacing [protected]
 

Definition at line 107 of file CSLAF.h.

Referenced by reset().

int CSLAF::buttonHorizontalSpacing [protected]
 

Definition at line 108 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), and reset().

int CSLAF::buttonVerticalSpacing [protected]
 

Definition at line 109 of file CSLAF.h.

Referenced by getVerticalElementSpacingInternal(), and reset().

int CSLAF::menuBarHorizontalSpacing [protected]
 

Definition at line 110 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), and reset().

int CSLAF::menuBarVerticalSpacing [protected]
 

Definition at line 111 of file CSLAF.h.

Referenced by getVerticalElementSpacingInternal(), and reset().

int CSLAF::menuItemHorzintalSpacing [protected]
 

Definition at line 112 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), and reset().

int CSLAF::menuItemVerticalSpacing [protected]
 

Definition at line 113 of file CSLAF.h.

Referenced by getVerticalElementSpacingInternal(), and reset().

int CSLAF::elementHorizontalSpacing [protected]
 

in Window (e.g.) if elements are arranged automatically < these is the space between two elements

Definition at line 114 of file CSLAF.h.

Referenced by getHorizontalElementSpacingInternal(), and reset().

int CSLAF::elementVerticalSpacing [protected]
 

in Window (e.g.) if elements are arranged automatically < these is the space between two elements

Definition at line 116 of file CSLAF.h.

Referenced by getVerticalElementSpacingInternal(), and reset().

int CSLAF::comboboxItemsShown [protected]
 

Definition at line 119 of file CSLAF.h.

Referenced by getComboboxItemsShown(), and reset().

int CSLAF::checkBoxSize [protected]
 

Definition at line 120 of file CSLAF.h.

Referenced by getCheckBoxSize(), and reset().

int CSLAF::menuOpenXOffset [protected]
 

Definition at line 122 of file CSLAF.h.

Referenced by getMenuOpenXOffset(), and reset().

int CSLAF::menuOpenYOffset [protected]
 

Definition at line 123 of file CSLAF.h.

Referenced by getMenuOpenYOffset(), and reset().

const char * CSLAF::CLASS = "CSLAF" [static]
 

Definition at line 39 of file CSLAF.cpp.

Referenced by getType().

int CSLAF::tooltipThreshold
 

Definition at line 145 of file CSLAF.h.

Referenced by CSDesktop::paint(), and reset().

std::string CSLAF::mDefaultMouseCursor
 

Mouse Cursor changes are only recognized with a lafChanged() call!

Definition at line 149 of file CSLAF.h.

Referenced by getMouseCursorInternal(), and reset().

std::string CSLAF::mSizingMouseCursor
 

Definition at line 150 of file CSLAF.h.

Referenced by getMouseCursorInternal(), and reset().

std::string CSLAF::proportionalFontName
 

Definition at line 152 of file CSLAF.h.

Referenced by getFontInternal(), and reset().

std::string CSLAF::monoSpacedFontName
 

Definition at line 153 of file CSLAF.h.

Referenced by getFontInternal(), and reset().

std::string CSLAF::closeIconFileEnabled
 

Definition at line 155 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::closeIconFileDisabled
 

Definition at line 156 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::warnIconFileEnabled
 

Definition at line 157 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::warnIconFileDisabled
 

Definition at line 158 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::errorIconFileEnabled
 

Definition at line 159 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::errorIconFileDisabled
 

Definition at line 160 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::infoIconFileEnabled
 

Definition at line 161 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::infoIconFileDisabled
 

Definition at line 162 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::questionIconFileEnabled
 

Definition at line 163 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::questionIconFileDisabled
 

Definition at line 164 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::upIconFileEnabled
 

Definition at line 165 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::upIconFileDisabled
 

Definition at line 166 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::downIconFileEnabled
 

Definition at line 167 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::downIconFileDisabled
 

Definition at line 168 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::leftIconFileEnabled
 

Definition at line 169 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::leftIconFileDisabled
 

Definition at line 170 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::rightIconFileEnabled
 

Definition at line 171 of file CSLAF.h.

Referenced by getIconInternal(), and reset().

std::string CSLAF::rightIconFileDisabled
 

Definition at line 172 of file CSLAF.h.

Referenced by getIconInternal(), and reset().


Generated on Wed Jul 14 00:44:35 2004 for CSLib by doxygen 1.3.6