fix bug's (translation color in stardict and kept settings after leave)
[mdictionary] / src / plugins / stardict / StarDialog.h
index b87cf0f..de3ed04 100644 (file)
 //! Implementation of stardict 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.
+    of an existing one, based on dialog type passed to contructor.
     When adding a new dictionary dialog contains a button to browse file system and
     select a dictionary file. When changing settings dialog displays basic
     information about dictionary i. e. name, languages and license info.
     In both types of dialogs there are comboboxes with "cache" and "remove accents"
-     options. On maemo right next to comboboxes are tool buttons which allow to
-     see more information about these options, on desktop the same information is
-     displayed as a tool tip.
+    options. On maemo right next to comboboxes are tool buttons which allow to
+    see more information about these options, on desktop the same information is
+    displayed as a tool tip.
     All contents of a dialog are in a scroll area.
 */
 class StarDialog : public QDialog
@@ -51,11 +51,11 @@ class StarDialog : 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 StarDialogType {New, Change};
 
@@ -71,10 +71,10 @@ public:
                         StarDialogType 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();
 
@@ -91,13 +91,6 @@ public Q_SLOTS:
 private Q_SLOTS:
     //! displays dialog to browse and select file
     void selectFile();
-    void setAccents(bool);
-
-    #ifdef Q_WS_MAEMO_5
-        //! on maemo shows information about checkboxes
-        void showAccentsInfo();
-    #endif
-
 
 private:
     void initializeUI();
@@ -110,30 +103,12 @@ private:
     QPushButton* browseButton;
     QHBoxLayout* browseLayout;
 
-
-    QCheckBox* accentsCheckBox;
-    QHBoxLayout* accentsLayout;
-
-    QString accentsToolTip;
-
-    #ifdef Q_WS_MAEMO_5
-        QToolButton* accentsInfoToolButton;
-    #endif
-
-
     QPushButton* confirmButton;
-
     QString _dictionaryFilePath;
-
     QScrollArea* scrollArea;
-
     QWidget* widget;
     QHBoxLayout* layout;
-
     QVBoxLayout* mainVerticalLayout;
-    bool _accents;
-    bool _lastAccents;
-
     bool _isCompressed;
     QString _dictName;