![]() |
Stellarium 0.12.0 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure |
Public Slots | |
| void | resetCollisions () |
| restore colors of all items it TreeWidget to defaults. | |
| void | retranslate () |
| Retranslate the content of the dialog. | |
| void | initEditors () |
| ititialize editors state when current item changed. | |
| bool | prefixMatchKeySequence (const QKeySequence &ks1, const QKeySequence &ks2) |
| checks whether one QKeySequence is prefix of another. | |
| QList< QStandardItem * > | findCollidingItems (QKeySequence ks) |
| Compile a list of items that share a prefix with this sequence. | |
| void | handleCollisions (ShortcutLineEdit *currentEdit) |
| void | handleChanges () |
| called when editors' state changed. | |
| void | applyChanges () const |
| called when apply button clicked. | |
| void | switchToEditors (const QModelIndex &index) |
| called by doubleclick; if click is on editable item, switch to editors | |
| void | updateShortcutsItem (StelShortcut *shortcut, QStandardItem *shortcutItem=NULL) |
| update shortcut representation in tree correspondingly to its actual contents. | |
| void | restoreDefaultShortcuts () |
| void | updateTreeData () |
Public Member Functions | |
| void | drawCollisions () |
| higlight items that have collisions with current lineEdits' state according to css. | |
Protected Member Functions | |
| virtual void | createDialogContent () |
| Initialize the dialog widgets and connect the signals/slots. | |
Definition at line 56 of file ShortcutsDialog.hpp.
| void ShortcutsDialog::applyChanges | ( | ) | const [slot] |
called when apply button clicked.
| virtual void ShortcutsDialog::createDialogContent | ( | ) | [protected, virtual] |
Initialize the dialog widgets and connect the signals/slots.
Implements StelDialog.
| void ShortcutsDialog::drawCollisions | ( | ) |
higlight items that have collisions with current lineEdits' state according to css.
Note: previous collisions aren't redrawn.
| QList<QStandardItem*> ShortcutsDialog::findCollidingItems | ( | QKeySequence | ks | ) | [slot] |
Compile a list of items that share a prefix with this sequence.
| void ShortcutsDialog::handleChanges | ( | ) | [slot] |
called when editors' state changed.
| void ShortcutsDialog::initEditors | ( | ) | [slot] |
ititialize editors state when current item changed.
| bool ShortcutsDialog::prefixMatchKeySequence | ( | const QKeySequence & | ks1, | |
| const QKeySequence & | ks2 | |||
| ) | [slot] |
checks whether one QKeySequence is prefix of another.
| void ShortcutsDialog::resetCollisions | ( | ) | [slot] |
restore colors of all items it TreeWidget to defaults.
| void ShortcutsDialog::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:
Implements StelDialog.
| void ShortcutsDialog::switchToEditors | ( | const QModelIndex & | index | ) | [slot] |
called by doubleclick; if click is on editable item, switch to editors
| void ShortcutsDialog::updateShortcutsItem | ( | StelShortcut * | shortcut, | |
| QStandardItem * | shortcutItem = NULL | |||
| ) | [slot] |
update shortcut representation in tree correspondingly to its actual contents.
if no item is specified, search for it in tree, if no items found, create new item
1.6.3