Stellarium 0.15.2
List of all members | Public Slots | Public Member Functions | Protected Member Functions
ShortcutsDialog Class Reference
+ Inheritance diagram for ShortcutsDialog:
+ Collaboration diagram for ShortcutsDialog:

Public Slots

void resetCollisions ()
 restore colors of all items it TreeWidget to defaults. More...
 
void retranslate ()
 
void initEditors ()
 ititialize editors state when current item changed. More...
 
bool prefixMatchKeySequence (const QKeySequence &ks1, const QKeySequence &ks2)
 checks whether one QKeySequence is prefix of another. More...
 
QList< QStandardItem * > findCollidingItems (QKeySequence ks)
 Compile a list of items that share a prefix with this sequence. More...
 
void handleCollisions (ShortcutLineEdit *currentEdit)
 
void handleChanges ()
 called when editors' state changed. More...
 
void applyChanges ()
 called when apply button clicked. More...
 
void switchToEditors (const QModelIndex &index)
 called by doubleclick; if click is on editable item, switch to editors More...
 
void updateShortcutsItem (class StelAction *action, QStandardItem *shortcutItem=NULL)
 update shortcut representation in tree correspondingly to its actual contents. More...
 
void restoreDefaultShortcuts ()
 
void updateTreeData ()
 
- Public Slots inherited from StelDialog
virtual void retranslate ()=0
 Retranslate the content of the dialog. More...
 
void setVisible (bool)
 On the first call with "true" populates the window contents. More...
 
void close ()
 Closes the window (the window widget is not deleted, just not visible). More...
 
void handleMovedTo (QPoint newPos)
 Adds dialog location to config.ini; should be connected in createDialogContent() More...
 
void handleDialogSizeChanged (QSizeF size)
 Stores dialog sizes into config.ini; should be connected from the proxy. More...
 
QString getDialogName ()
 

Public Member Functions

 ShortcutsDialog (QObject *parent)
 
void drawCollisions ()
 higlight items that have collisions with current lineEdits' state according to css. More...
 
- Public Member Functions inherited from StelDialog
 StelDialog (QString dialogName="Default", QObject *parent=NULL)
 
bool visible () const
 Returns true if the dialog contents have been constructed and are currently shown. More...
 

Protected Member Functions

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

Additional Inherited Members

- Signals inherited from StelDialog
void visibleChanged (bool)
 
- Static Protected Member Functions inherited from StelDialog
static void connectCheckBox (QAbstractButton *checkBox, const QString &actionName)
 Helper function to connect a checkbox to the StelAction with the specified name. More...
 
static void connectCheckBox (QAbstractButton *checkBox, StelAction *action)
 Helper function to connect a checkbox to the given StelAction. More...
 
static void connectIntProperty (QSpinBox *spinBox, const QString &propName)
 Helper function to connect a QSpinBox to an integer StelProperty. More...
 
static void connectIntProperty (QComboBox *comboBox, const QString &propName)
 Helper function to connect a QComboBox to an integer StelProperty. More...
 
static void connectIntProperty (QSlider *slider, const QString &propName, int minValue, int maxValue)
 Helper function to connect a QSlider to an double or float StelProperty. More...
 
static void connectDoubleProperty (QDoubleSpinBox *spinBox, const QString &propName)
 Helper function to connect a QDoubleSpinBox to an double or float StelProperty. More...
 
static void connectDoubleProperty (QSlider *slider, const QString &propName, double minValue, double maxValue)
 Helper function to connect a QSlider to an double or float StelProperty. More...
 
static void connectBoolProperty (QAbstractButton *checkBox, const QString &propName)
 Helper function to connect a checkbox to a bool StelProperty. More...
 
- Protected Attributes inherited from StelDialog
QWidget * dialog
 The main dialog. More...
 
class CustomProxyproxy
 
QString dialogName
 The name should be set in derived classes' constructors and can be used to store and retrieve the panel locations. More...
 
- Properties inherited from StelDialog
bool visible
 

Detailed Description

Definition at line 53 of file ShortcutsDialog.hpp.

Member Function Documentation

void ShortcutsDialog::applyChanges ( )
slot

called when apply button clicked.

virtual void ShortcutsDialog::createDialogContent ( )
protectedvirtual

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::switchToEditors ( const QModelIndex &  index)
slot

called by doubleclick; if click is on editable item, switch to editors

void ShortcutsDialog::updateShortcutsItem ( class StelAction action,
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


The documentation for this class was generated from the following file: