Public Member Functions | |
virtual const char * | className () const |
The C++ class name is needed as context for the translation framework. | |
virtual void | languageChange () |
Translate command. | |
StdCmdAbout () | |
virtual | ~StdCmdAbout () |
Protected Member Functions | |
virtual void | activated (int iMsg) |
Shows information about the application. | |
virtual Gui::Action * | createAction (void) |
Creates the used Action. | |
virtual bool | isActive (void) |
Overite this method if your Cmd is not always active. |
Definition at line 177 of file CommandStd.cpp.
StdCmdAbout::StdCmdAbout | ( | ) |
Definition at line 179 of file CommandStd.cpp.
virtual StdCmdAbout::~StdCmdAbout | ( | ) | [inline, virtual] |
Definition at line 177 of file CommandStd.cpp.
void StdCmdAbout::activated | ( | int | iMsg | ) | [protected, virtual] |
Shows information about the application.
Implements Gui::Command.
Definition at line 226 of file CommandStd.cpp.
References Gui::Dialog::AboutDialogFactory::create(), Gui::Dialog::AboutDialogFactory::defaultFactory(), SketcherExample::f, and Gui::getMainWindow().
virtual const char* StdCmdAbout::className | ( | ) | const [inline, virtual] |
The C++ class name is needed as context for the translation framework.
Implements Gui::CommandBase.
Definition at line 177 of file CommandStd.cpp.
Referenced by createAction(), and languageChange().
Action * StdCmdAbout::createAction | ( | void | ) | [protected, virtual] |
Creates the used Action.
Reimplemented from Gui::Command.
Definition at line 190 of file CommandStd.cpp.
References className(), App::Application::Config(), App::GetApplication(), Gui::getMainWindow(), Gui::CommandBase::sAccel, Gui::Action::setIcon(), Gui::Action::setShortcut(), Gui::Action::setStatusTip(), Gui::Action::setText(), Gui::Action::setToolTip(), Gui::Action::setWhatsThis(), Gui::CommandBase::sMenuText, Gui::CommandBase::sStatusTip, Gui::CommandBase::sToolTipText, Gui::CommandBase::sWhatsThis, and draftGui::translate().
bool StdCmdAbout::isActive | ( | void | ) | [protected, virtual] |
Overite this method if your Cmd is not always active.
Reimplemented from Gui::Command.
Definition at line 218 of file CommandStd.cpp.
void StdCmdAbout::languageChange | ( | ) | [virtual] |
Translate command.
Reimplemented from Gui::Command.
Definition at line 233 of file CommandStd.cpp.
References Gui::CommandBase::_pcAction, className(), App::Application::Config(), App::GetApplication(), Gui::Action::setStatusTip(), Gui::Action::setText(), Gui::Action::setToolTip(), Gui::Action::setWhatsThis(), Gui::CommandBase::sMenuText, Gui::CommandBase::sStatusTip, Gui::CommandBase::sToolTipText, Gui::CommandBase::sWhatsThis, and draftGui::translate().