Added DictDialog interface, XdxfDictDialog class and XdxfLoadDialog class,
[mdictionary] / trunk / src / includes / CommonDictInterface.h
index 450ce47..d03fbc2 100644 (file)
@@ -29,6 +29,8 @@
 #include <QObject>
 #include <QList>
 #include "translation.h"
+
+class DictDialog;
 class Settings;
 
 
@@ -53,12 +55,11 @@ class CommonDictInterface : public QObject {
     //! returns information about dictionary in html (name, authors, etc)
     virtual QString infoNote() const = 0;
 
-    //! return dialog that creates new dictionary and fills necesary options
-    //! QDialog should returns Setting* object after being showed
-    virtual QDialog* loadDialog() = 0;
+    /*! returns DictDialog object that creates dialogs
+        for adding new dictionary and change plugin settings
+      */
+    virtual DictDialog* dictDialog() = 0;
 
-    //! return dialog with dictionary settings
-    virtual QDialog* settingsDialog() = 0;
 
     //! return new, clean copy of plugin with setting set as in Settings*
     virtual CommonDictInterface* getNew(const Settings*) const = 0;
@@ -75,6 +76,9 @@ class CommonDictInterface : public QObject {
     //! set unique value (unique for every dictionary not plugin)
     virtual void setHash(uint) = 0;
 
+    //! returns current plugin settings
+    virtual Settings* settings() = 0;
+
  public Q_SLOTS:
     /*! performs search in dictionary
         \param  word word to search in dictionary