*******************************************************************************/
-//! \file DictManagerWidget.h
-//! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+/*! \file DictManagerWidget.h
+ \brief Implements dictionaries management widget
+
+ \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+*/
#ifndef DICTMANAGERWIDGET_H
#define DICTMANAGERWIDGET_H
#include "MenuWidget.h"
-//! Implements dictionaries management widget
/*!
Shows list of loaded dictionaries and their states (active/inactive).
- It allows to change dicts states, add new dict, remove selected one or
+ It allows to change dicts states, add a new dict, remove selected one or
change settings of selected dict. All changes are saved automatically after
hiding of this widget.
*/
public:
//! Constructor
/*!
- \param parent parent of this widget, which must be subclass of
+ \param parent parent of this widget, which must be a subclass of
GUIInterface, because it will use it to get info about loaded plugins
and dicts.
*/
protected:
void showEvent(QShowEvent *e);
void hideEvent(QHideEvent *e);
+ void keyPressEvent(QKeyEvent *e);
Q_SIGNALS:
//! Emitted when hiding widget, it will save states of dictionaries
*/
void selectedDictionaries(QList<CommonDictInterface*>);
- //! Emitted when user wants to add new dictionary
+ //! Emitted when user wants to add a new dictionary
/*!
\param new dictionary returned by specific plugin dialog
*/
void addDictionary(CommonDictInterface*);
- //! Emitted when user wants to remove dictionary
+ //! Emitted when user wants to remove a dictionary
/*!
\param dictionary which will be removed
*/
#endif
private Q_SLOTS:
- /*! Shows "plugin select" dialog and then plugin specific "add new dictionary
- dialog", which will return new CommonDictInterface* object, which is
- later passed as parameter of addDictionary signal*/
+ /*! Shows "plugin select" dialog and then plugin specific "add a new dictionary"
+ dialog, which will return new CommonDictInterface* object, which is
+ later passed as a parameter of addDictionary signal*/
void addNewDictButtonClicked();
- /*! Passes dictionary selected from list as parameter of removeDictionary
+ /*! Passes dictionary selected from a list as a parameter of removeDictionary
signal */
void removeButtonClicked();
- //! user select one of items
+ //! user selects one of items
void itemSelected(QListWidgetItem*);
//! Shows plugin's settings dialog
QVBoxLayout* verticalLayout;
QHBoxLayout* buttonGroup;
- QListWidget* dictListWidget;
+ QListWidget* dictList;
//holds association between items on list and CommonDictInterface objects
QHash<QListWidgetItem*, CommonDictInterface*> dictsHash;