Stellarium 0.11.2
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
HelpDialog Class Reference

List of all members.

Public Slots

void retranslate ()

Public Member Functions

void setKey (QString group, QString oldKey, QString newKey, QString description)
void styleChanged ()

Protected Member Functions

virtual void createDialogContent ()

Protected Attributes

Ui_helpDialogForm * ui

Member Function Documentation

void HelpDialog::retranslate ( ) [virtual, slot]

Retranslate the content of the dialog.

Needs to be connected to StelApp::languageChanged(). At the very least, if the window is based on a Qt Designer file (.ui), the implementation needs to call the generated class' retranslateUi() method, like this:

 if (dialog) 

Implements StelDialog.

void HelpDialog::setKey ( QString  group,
QString  oldKey,
QString  newKey,
QString  description 

Set a key and description.

group and description must be in English; this function takes care of translating them. Of course, they still have to be marked for translation using the N_() macro.
groupis the help group. e.g. "Movement" or "Time & Date"
oldKeyis the textual representation of the old key binding (in the case or re-mapping), e.g. "CTRL + H". Can be an empty string
newKeyis the textual representation of the key binding, e.g. "CTRL + H"
descriptionis a short description of what the key does