Copyright 2010 Comarch S.A.
*******************************************************************************/
-
/*!
\file GoogleDialog.cpp
\author Mateusz Półrola <mateusz.polrola@gmail.com>
//! Implementation of google plugin's dialogs.
/*!
- This class can create dialogs for adding new dictionary or changins settings
- of existing one, based on dialog type passed to contructor.
- These type are different only in confirm button label.
- Both provides comboboxes with availaible languages to choose.
+ This class can create dialogs for adding a new dictionary or changing settings
+ of an existing one, based on dialog type passed to constructor.
+ These types differ only in confirm button label.
+ Both provide comboboxes with available languages to choose.
*/
class GoogleDialog : public QDialog
{
Q_OBJECT
public:
/*!
- Describes type of dialog. New means that dialog confirm button has label
- Add", Change means dialog confirm button has label "Save settings"
+ Describes type of dialog. New means that dialog confirm button has
+ "Add" label, Change means that dialog confirm button has "Save settings" label.
*/
enum GoogleDialogType {New, Change};
//! Constructor
/*!
Creates new google dialog
- \param plugin if creating dialog of type Change it must be set to
- pointer of plugin whose settings will be changed
- \param type describes type of creating dialog
- \param parent parent widget of creating dialog
+ \param plugin if created dialog is of type Change it must be set to
+ point to plugin whose settings will be changed
+ \param type describes type of created dialog
+ \param parent parent widget of created dialog
*/
explicit GoogleDialog(GooglePlugin* plugin = 0,
GoogleDialogType type = New,
QWidget* parent = 0);
-
- //! Returns settings of plugin
+ //! \returns settings of plugin
/*!
- After acceptance of dialog this method return plugin's settings based on
- user choises in dialog.
+ After acceptance of dialog this method returns plugin's settings based on
+ user's choices in dialog.
*/
Settings* getSettings();
Q_SIGNALS:
- //! Request to show notification
+ //! requests to show notification
void notify(Notify::NotifyType, QString);
public Q_SLOTS:
- //! Reimplemented accept method, to save new settings
+ //! reimplemented accept method, to save new settings
void accept();
private Q_SLOTS:
QComboBox *langToComboBox;
QVBoxLayout* verticalLayout;
QVBoxLayout* langLayout;
- QHBoxLayout* langFromLayout;
- QHBoxLayout* langToLayout;
+ QFormLayout* langsFormLayout;
QHBoxLayout* changeLangLayout;
QString _langFrom;
QString _langTo;