Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

HelpDialog Class Reference

List of all members.

Public Slots

void retranslate ()
 Retranslate the content of the dialog.
void updateIconsColor ()

Public Member Functions

void setKey (QString group, QString oldKey, QString newKey, QString description)
 Set a key and description.
void styleChanged ()
 Notify that the application style changed.

Protected Member Functions

virtual void createDialogContent ()
 Initialize the dialog widgets and connect the signals/slots.

Protected Attributes

Ui_helpDialogForm * ui

Member Function Documentation

virtual void HelpDialog::createDialogContent (  )  [protected, virtual]

Initialize the dialog widgets and connect the signals/slots.

Implements StelDialog.

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) 
    ui->retranslateUi(dialog);

Implements StelDialog.

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

Set a key and description.

Note:
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.
Parameters:
group is the help group. e.g. "Movement" or "Time & Date"
oldKey is the textual representation of the old key binding (in the case or re-mapping), e.g. "CTRL + H". Can be an empty string
newKey is the textual representation of the key binding, e.g. "CTRL + H"
description is a short description of what the key does
void HelpDialog::styleChanged (  ) 

Notify that the application style changed.

Generated on Sat Aug 25 22:13:31 2012 for Stellarium by  doxygen 1.6.3