#include <CSMessageBox.h>
Inheritance diagram for CSMessageBox:
Public Member Functions | |
virtual std::string | getType () |
CSMessageBox (std::string message, std::string title, int kind) | |
virtual | ~CSMessageBox () |
virtual void | layoutSetup () |
Static Public Attributes | |
const char * | CLASS = "CSMessageBox" |
static element, name of this class (introsepection) | |
Protected Member Functions | |
void | layoutSetupMessageBox () |
virtual void | rebuildElement () |
Protected Attributes | |
GuiMessage | MESSAGE_WINDOW_CLOSE |
|
Definition at line 13 of file CSMessageBox.cpp. References CSWindow::CLASS, layoutSetup(), LOG_ENTER, LOG_EXIT, rebuildElement(), CSGrafikElement::setGUIType(), CSGrafikElement::setModal(), CSWindow::setSizeable(), and CSWindow::setTitle().
00014 : CSWindow(100,300) 00015 { 00016 static char *functionName="CSMessageBox"; 00017 LOG_ENTER 00018 mKind = kind; 00019 mTextarea = 0; 00020 mIcon = 0; 00021 mMessage = message; 00022 00023 setGUIType(CSWindow::CLASS); 00024 setModal(true); 00025 setTitle(title); 00026 setSizeable(true); 00027 rebuildElement(); 00028 layoutSetup(); 00029 LOG_EXIT 00030 } |
Here is the call graph for this function:
|
Definition at line 32 of file CSMessageBox.cpp. References LOG_ENTER, and LOG_EXIT.
|
|
Definition at line 81 of file CSMessageBox.cpp. References CSGrafikElement::getBorder(), CSGrafikElement::getHeight(), CSGrafikElement::getInset(), CSInset::getTotalHeight(), CSBorder::getTotalHeight(), CSInset::getTotalWidth(), CSBorder::getTotalWidth(), CSGrafikElement::getWidth(), CSWindow::layoutSetupWindow(), LOG_ENTER, and LOG_EXIT. Referenced by layoutSetup().
00082 { 00083 static char *functionName="layoutSetupMessageBox"; 00084 LOG_ENTER 00085 00086 mHeight = 20+20 + mIcon->getHeight() + mTextarea->getHeight(); 00087 mWidth = mIcon->getWidth()+3*20 + mTextarea->getWidth(); 00088 mMinHeight = mHeight; 00089 mMinWidth = mWidth; 00090 00091 mHeight += getBorder()->getTotalHeight() + getInset().getTotalHeight(); 00092 mWidth += getBorder()->getTotalWidth() + getInset().getTotalWidth(); 00093 00094 layoutSetupWindow(); 00095 LOG_EXIT 00096 } |
Here is the call graph for this function:
|
Reimplemented from CSWindow. Definition at line 39 of file CSMessageBox.cpp. References CSGrafikElement::addElement(), ERROR_ICON, CSLAF::getCurrentLAF(), CSGrafikElement::getHeight(), CSLAF::getIcon(), CSGrafikElement::getWidth(), CSGrafikElement::getX(), INFO_ICON, LAF_ICON_TYPE_ERROR, LAF_ICON_TYPE_INFO, LAF_ICON_TYPE_QUESTION, LAF_ICON_TYPE_WARN, QUESTION_ICON, CSWindow::rebuildElementWindow(), CSGrafikElement::removeElement(), CSTextarea::setEditable(), CSTextarea::setMultiLineText(), and WARN_ICON. Referenced by CSMessageBox().
00040 { 00041 CSLAF *laf = CSLAF::getCurrentLAF(); 00042 00043 if (mTextarea) 00044 { 00045 removeElement(mTextarea); 00046 delete (mTextarea); 00047 mTextarea = 0; 00048 } 00049 if (mIcon) 00050 { 00051 removeElement(mIcon); 00052 delete (mIcon); 00053 mIcon = 0; 00054 } 00055 00056 rebuildElementWindow(); 00057 00058 mTextarea = new CSTextarea(100, 300); 00059 if (mKind == QUESTION_ICON) 00060 { 00061 mIcon = laf->getIcon(LAF_ICON_TYPE_QUESTION); 00062 } 00063 if (mKind == WARN_ICON) 00064 { 00065 mIcon = laf->getIcon(LAF_ICON_TYPE_WARN); 00066 } 00067 if (mKind == ERROR_ICON) 00068 { 00069 mIcon = laf->getIcon(LAF_ICON_TYPE_ERROR); 00070 } 00071 if (mKind == INFO_ICON) 00072 { 00073 mIcon = laf->getIcon(LAF_ICON_TYPE_INFO); 00074 } 00075 mTextarea->setMultiLineText(mMessage); 00076 mTextarea->setEditable(false); 00077 addElement(mIcon, 20, (mHeight-20)/2-mIcon->getHeight()/2); 00078 addElement(mTextarea, 20 + mIcon->getX()+mIcon->getWidth(), 20); 00079 } |
Here is the call graph for this function:
|
Reimplemented from CSWindow. Definition at line 43 of file CSMessageBox.h. References CLASS.
00043 {return (std::string) CLASS;} |
|
Reimplemented from CSWindow. Definition at line 47 of file CSMessageBox.h. References layoutSetupMessageBox(). Referenced by CSMessageBox().
00047 {layoutSetupMessageBox();} |
Here is the call graph for this function:
|
Reimplemented from CSWindow. Definition at line 37 of file CSMessageBox.h. |
|
static element, name of this class (introsepection)
Reimplemented from CSWindow. Definition at line 11 of file CSMessageBox.cpp. Referenced by getType(). |