X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fplugins%2Fxdxf%2FXdxfDialog.h;h=8e031f615afcdbcddc7a4127abb511631ddaa028;hb=87ff3664f4be5564a986ae484d2cea99a08bc2b5;hp=ec5027419c72834b33ab6447c8d50f9ece499324;hpb=b74dfca02c69509513d92d21f38ced04e1012df5;p=mdictionary diff --git a/src/plugins/xdxf/XdxfDialog.h b/src/plugins/xdxf/XdxfDialog.h index ec50274..8e031f6 100644 --- a/src/plugins/xdxf/XdxfDialog.h +++ b/src/plugins/xdxf/XdxfDialog.h @@ -20,7 +20,9 @@ *******************************************************************************/ /*! - \file XdxfDialog.cpp + \file XdxfDialog.h + \brief Implementation of xdxf plugin's dialogs. + \author Mateusz Półrola */ @@ -33,7 +35,6 @@ #include "xdxfplugin.h" -//! Implementation of xdxf plugin's dialogs. /*! This class can create dialogs for adding a new dictionary or changing settings of an existing one, based on dialog type passed to contructor. @@ -51,19 +52,18 @@ class XdxfDialog : public QDialog Q_OBJECT public: /*! - Describes type of dialog. New means that dialog contains widgets to browse + Describes type of dialog. New means that dialog contains widgets to browse file system and select dictionary file. Change means that dialog displays - information about dictionary. - In both types dialog provides widgets to create or delete cache and remove - or keep accents. + information about dictionary. + In both types dialog provides widgets to create or delete cache and remove + or keep accents. */ enum XdxfDialogType {New, Change}; - //! Constructor /*! Creates new xdxf dialog \param plugin if created dialog is of type Change it must be set to - point to plugin whose settings will be changed + point to plugin whose settings will be changed \param type describes type of created dialog \param parent parent widget of created dialog */ @@ -71,10 +71,10 @@ public: XdxfDialogType type = New, QWidget* parent = 0); - //! \returns settings of plugin /*! After acceptance of dialog this method returns plugin's settings based on - user's choices in dialog. + user's choices in dialog. + \returns settings of plugin */ Settings* getSettings(); @@ -83,20 +83,33 @@ Q_SIGNALS: void notify(Notify::NotifyType, QString); public Q_SLOTS: - //! Reimplemented accept method, to check if all necessary fields in - //! dialog are correct e. g. dictionary file path - //! and saves new settings + /*! + Reimplemented accept method, to check if all necessary fields in + dialog are correct e. g. dictionary file path + and saves new settings + */ void accept(); private Q_SLOTS: //! displays dialog to browse and select file void selectFile(); + + //! download dictionaries list + void downloadFile(); + + //! set properti _generateCache void setGenerateCache(bool); + + //! set properti _accents void setAccents(bool); + void fileDownloaded(QString); + #ifdef Q_WS_MAEMO_5 //! on maemo shows information about checkboxes void showCacheInfo(); + + //! on maemo shows information about checkboxes void showAccentsInfo(); #endif @@ -109,8 +122,9 @@ private: QLabel* infoLabel; QPushButton* browseButton; + QPushButton* downloadButton; QHBoxLayout* browseLayout; - + QHBoxLayout* infoLayout; QCheckBox* cacheCheckBox; QCheckBox* accentsCheckBox;