#include <CSBar.h>
Inheritance diagram for CSBar:
Public Member Functions | |
virtual std::string | getType () |
CSBar (int type) | |
virtual | ~CSBar () |
void | initBar () |
void | addElementAt (CSGrafikElement *element, int place) |
virtual void | layoutSetup () |
int | getPosition () |
Static Public Attributes | |
const char * | CLASS = "CSBar" |
static element, name of this class (introsepection) | |
Protected Member Functions | |
void | layoutSetupBar () |
|
Create a new CSBar. CSBar are not viewported!
Definition at line 19 of file CSBar.cpp. References initBar(), LOG_ENTER, and LOG_EXIT.
00019 : CSGrafikElement(0, 0) 00020 { 00021 static char *functionName="CSBar"; 00022 LOG_ENTER 00023 mAutoPlacingType = type; 00024 initBar(); 00025 LOG_EXIT 00026 } |
Here is the call graph for this function:
|
Definition at line 28 of file CSBar.cpp.
00029 { 00030 static char *functionName="~CSBar"; 00031 } |
|
Definition at line 114 of file CSBar.cpp. References LOG_ENTER, and LOG_EXIT. Referenced by layoutSetup(), and CSMenuBar::layoutSetupMenuBar().
|
|
Reimplemented from CSGrafikElement. Reimplemented in CSMenuBar. Definition at line 30 of file CSBar.h. References CLASS.
00030 {return (std::string) CLASS;} |
|
Here is the call graph for this function:
|
the added element will be freed by this instance of Bar first pos is 0 Definition at line 64 of file CSBar.cpp. References CSGrafikElement::addElement(), CSGrafikElements, CSGrafikElement::getHorizontalElementSpacing(), CSGrafikElement::getVerticalElementSpacing(), LOG_ENTER, LOG_EXIT, POSITION_NORTH, POSITION_WEST, CSGrafikElement::removeElement(), CSGrafikElement::setLayoutData(), CSLayoutData::setSpacing(), and TYPE_HORIZONTAL.
00065 { 00066 static char *functionName="addElementAt"; 00067 LOG_ENTER 00068 00069 CSGrafikElements elements; 00070 00071 CSGrafikElements::iterator iter = mElements.begin(); 00072 while (iter != mElements.end()) 00073 { 00074 CSGrafikElement *element = *iter; 00075 elements.push_back(element); 00076 removeElement(element); 00077 iter = mElements.begin(); 00078 } 00079 00080 iter = elements.begin(); 00081 int count=0; 00082 CSLayoutData layoutData; 00083 if (mAutoPlacingType == TYPE_HORIZONTAL) 00084 { 00085 layoutData = CSLayoutData(POSITION_WEST); 00086 } 00087 else 00088 { 00089 layoutData = CSLayoutData(POSITION_NORTH); 00090 } 00091 layoutData.setSpacing(getVerticalElementSpacing(), getHorizontalElementSpacing()); 00092 00093 while (iter != elements.end()) 00094 { 00095 CSGrafikElement *oldElement = *iter; 00096 if (count == place) 00097 { 00098 element->setLayoutData(layoutData); 00099 addElement(element); 00100 } 00101 oldElement->setLayoutData(layoutData); 00102 addElement(oldElement); 00103 count++; 00104 iter++; 00105 } 00106 if (count <= place) 00107 { 00108 element->setLayoutData(layoutData); 00109 addElement(element); 00110 } 00111 LOG_EXIT 00112 } |
Here is the call graph for this function:
|
Reimplemented from CSGrafikElement. Reimplemented in CSMenuBar. Definition at line 37 of file CSBar.h. References layoutSetupBar().
00037 {layoutSetupBar();} |
Here is the call graph for this function:
|
Definition at line 38 of file CSBar.h. References CSGrafikElement::getLayoutData(), and CSLayoutData::getPosition(). Referenced by CSMenu::openMenu().
00039 { 00040 return getLayoutData().getPosition(); 00041 } |
Here is the call graph for this function:
|
static element, name of this class (introsepection)
Reimplemented from CSGrafikElement. Reimplemented in CSMenuBar. Definition at line 9 of file CSBar.cpp. Referenced by CSLAF::getAreaInternal(), CSLAF::getBorderInternal(), and getType(). |