From 36beedb62342993d2cb5f973319eb723f824306b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mateusz=20P=C3=B3=C5=82rola?= Date: Fri, 6 Aug 2010 15:38:58 +0200 Subject: [PATCH] Fixed translation widget refreshing --- doc/html/CommonDictInterface_8h_source.html | 95 ++++++------ doc/html/DictDialog_8h_source.html | 104 +++++++++++++ doc/html/MainWindow_8h_source.html | 11 +- doc/html/MenuTabWidget_8h_source.html | 2 +- doc/html/MenuWidget_8h_source.html | 2 +- doc/html/SearchBarWidget_8h_source.html | 59 +++---- doc/html/TranslationWidget_8h_source.html | 25 +-- doc/html/TranslationXdxf_8h_source.html | 116 ++++++++++++++ doc/html/WordListWidget_8h_source.html | 11 +- doc/html/XdxfDictDialog_8h_source.html | 103 +++++++++++++ doc/html/XdxfLoadDialog_8h_source.html | 125 +++++++++++++++ doc/html/annotated.html | 10 +- doc/html/backbone_8h_source.html | 135 ++++++++-------- doc/html/classBackbone-members.html | 5 +- doc/html/classBackbone.html | 10 +- doc/html/classCommonDictInterface-members.html | 12 +- doc/html/classCommonDictInterface.html | 68 ++++---- doc/html/classCommonDictInterface.png | Bin 0 -> 486 bytes doc/html/classDictDialog-members.html | 70 +++++++++ doc/html/classDictDialog.html | 154 ++++++++++++++++++ doc/html/classDictDialog.png | Bin 0 -> 423 bytes doc/html/classMainWindow-members.html | 2 +- doc/html/classMainWindow.html | 3 +- doc/html/classMenuTabWidget-members.html | 2 +- doc/html/classMenuTabWidget.html | 2 +- doc/html/classMenuWidget-members.html | 2 +- doc/html/classMenuWidget.html | 2 +- doc/html/classSearchBarWidget-members.html | 3 +- doc/html/classSearchBarWidget.html | 5 +- doc/html/classSettings-members.html | 9 +- doc/html/classSettings.html | 36 +---- doc/html/classTestowanie-members.html | 67 ++++++++ doc/html/classTestowanie.html | 74 +++++++++ doc/html/classTranslation-members.html | 3 +- doc/html/classTranslation.html | 20 ++- doc/html/classTranslation.png | Bin 0 -> 424 bytes doc/html/classTranslationWidget-members.html | 2 +- doc/html/classTranslationWidget.html | 2 +- doc/html/classTranslationXdxf-members.html | 75 +++++++++ doc/html/classTranslationXdxf.html | 157 +++++++++++++++++++ doc/html/classTranslationXdxf.png | Bin 0 -> 418 bytes doc/html/classWordListWidget-members.html | 2 +- doc/html/classWordListWidget.html | 2 +- doc/html/classXdxfDictDialog-members.html | 71 +++++++++ doc/html/classXdxfDictDialog.html | 155 +++++++++++++++++++ doc/html/classXdxfDictDialog.png | Bin 0 -> 418 bytes doc/html/classXdxfLoadDialog-members.html | 71 +++++++++ doc/html/classXdxfLoadDialog.html | 115 ++++++++++++++ doc/html/classXdxfPlugin-members.html | 84 ++++++++++ doc/html/classXdxfPlugin.html | 170 ++++++++++++++++++++ doc/html/classXdxfPlugin.png | Bin 0 -> 485 bytes doc/html/classes.html | 19 +-- doc/html/files.html | 9 +- doc/html/functions.html | 89 +++++++---- doc/html/functions_func.html | 89 +++++++---- doc/html/hierarchy.html | 20 ++- doc/html/index.html | 2 +- doc/html/search/all_61.html | 11 +- doc/html/search/all_63.html | 19 ++- doc/html/search/all_64.html | 23 ++- doc/html/search/all_67.html | 25 ++- doc/html/search/all_68.html | 7 +- doc/html/search/all_69.html | 14 +- doc/html/search/all_6b.html | 7 +- doc/html/search/all_6c.html | 22 +-- doc/html/search/all_6d.html | 12 +- doc/html/search/all_6e.html | 7 +- doc/html/search/all_72.html | 10 +- doc/html/search/all_73.html | 65 +++++--- doc/html/search/all_74.html | 31 ++-- doc/html/search/all_76.html | 2 +- doc/html/search/all_78.html | 35 +++++ doc/html/search/classes_64.html | 25 +++ doc/html/search/classes_6d.html | 12 +- doc/html/search/classes_74.html | 14 +- doc/html/search/classes_78.html | 35 +++++ doc/html/search/functions_61.html | 11 +- doc/html/search/functions_63.html | 17 +- doc/html/search/functions_64.html | 22 ++- doc/html/search/functions_67.html | 25 ++- doc/html/search/functions_68.html | 7 +- doc/html/search/functions_69.html | 14 +- doc/html/search/functions_6b.html | 7 +- doc/html/search/functions_6c.html | 22 +-- doc/html/search/functions_6e.html | 7 +- doc/html/search/functions_72.html | 10 +- doc/html/search/functions_73.html | 65 ++++++-- doc/html/search/functions_74.html | 11 +- doc/html/search/functions_76.html | 2 +- doc/html/search/search.js | 6 +- doc/html/settings_8h_source.html | 40 +++-- doc/html/test_8h_source.html | 107 +++++++++++++ doc/html/translation_8h_source.html | 33 ++-- doc/html/xdxfplugin_8h_source.html | 152 ++++++++++++++++++ doc/latex/annotated.tex | 8 +- doc/latex/classBackbone.tex | 16 +- doc/latex/classCommonDictInterface.eps | 197 ++++++++++++++++++++++++ doc/latex/classCommonDictInterface.tex | 79 ++++++---- doc/latex/classDictDialog.eps | 197 ++++++++++++++++++++++++ doc/latex/classDictDialog.tex | 74 +++++++++ doc/latex/classMainWindow.tex | 3 +- doc/latex/classSearchBarWidget.tex | 10 +- doc/latex/classSettings.tex | 31 +--- doc/latex/classTestowanie.tex | 10 ++ doc/latex/classTranslation.eps | 197 ++++++++++++++++++++++++ doc/latex/classTranslation.tex | 23 +++ doc/latex/classTranslationXdxf.eps | 197 ++++++++++++++++++++++++ doc/latex/classTranslationXdxf.tex | 79 ++++++++++ doc/latex/classXdxfDictDialog.eps | 197 ++++++++++++++++++++++++ doc/latex/classXdxfDictDialog.tex | 75 +++++++++ doc/latex/classXdxfLoadDialog.tex | 60 ++++++++ doc/latex/classXdxfPlugin.eps | 197 ++++++++++++++++++++++++ doc/latex/classXdxfPlugin.tex | 116 ++++++++++++++ doc/latex/doxygen.sty | 4 +- doc/latex/hierarchy.tex | 14 +- doc/latex/refman.tex | 10 +- trunk/src/base/gui/MainWindow.cpp | 10 +- trunk/src/base/gui/MainWindow.h | 1 + trunk/src/base/gui/TranslationWidget.cpp | 36 +++-- trunk/src/base/gui/TranslationWidget.h | 6 +- trunk/src/plugins/xdxf/src/src.pro | 5 +- trunk/src/plugins/xdxf/src/xdxfplugin.cpp | 2 +- 122 files changed, 4681 insertions(+), 588 deletions(-) create mode 100644 doc/html/DictDialog_8h_source.html create mode 100644 doc/html/TranslationXdxf_8h_source.html create mode 100644 doc/html/XdxfDictDialog_8h_source.html create mode 100644 doc/html/XdxfLoadDialog_8h_source.html create mode 100644 doc/html/classCommonDictInterface.png create mode 100644 doc/html/classDictDialog-members.html create mode 100644 doc/html/classDictDialog.html create mode 100644 doc/html/classDictDialog.png create mode 100644 doc/html/classTestowanie-members.html create mode 100644 doc/html/classTestowanie.html create mode 100644 doc/html/classTranslation.png create mode 100644 doc/html/classTranslationXdxf-members.html create mode 100644 doc/html/classTranslationXdxf.html create mode 100644 doc/html/classTranslationXdxf.png create mode 100644 doc/html/classXdxfDictDialog-members.html create mode 100644 doc/html/classXdxfDictDialog.html create mode 100644 doc/html/classXdxfDictDialog.png create mode 100644 doc/html/classXdxfLoadDialog-members.html create mode 100644 doc/html/classXdxfLoadDialog.html create mode 100644 doc/html/classXdxfPlugin-members.html create mode 100644 doc/html/classXdxfPlugin.html create mode 100644 doc/html/classXdxfPlugin.png create mode 100644 doc/html/search/all_78.html create mode 100644 doc/html/search/classes_64.html create mode 100644 doc/html/search/classes_78.html create mode 100644 doc/html/test_8h_source.html create mode 100644 doc/html/xdxfplugin_8h_source.html create mode 100644 doc/latex/classCommonDictInterface.eps create mode 100644 doc/latex/classDictDialog.eps create mode 100644 doc/latex/classDictDialog.tex create mode 100644 doc/latex/classTestowanie.tex create mode 100644 doc/latex/classTranslation.eps create mode 100644 doc/latex/classTranslationXdxf.eps create mode 100644 doc/latex/classTranslationXdxf.tex create mode 100644 doc/latex/classXdxfDictDialog.eps create mode 100644 doc/latex/classXdxfDictDialog.tex create mode 100644 doc/latex/classXdxfLoadDialog.tex create mode 100644 doc/latex/classXdxfPlugin.eps create mode 100644 doc/latex/classXdxfPlugin.tex diff --git a/doc/html/CommonDictInterface_8h_source.html b/doc/html/CommonDictInterface_8h_source.html index 6fb6996..0e8a273 100644 --- a/doc/html/CommonDictInterface_8h_source.html +++ b/doc/html/CommonDictInterface_8h_source.html @@ -63,55 +63,62 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00021 00022 // Created by Bartosz Szatkowski 00023 -00024 -00025 #ifndef COMMONDICTINTERFACE_H -00026 #define COMMONDICTINTERFACE_H -00027 -00028 #include <QString> -00029 #include <QDialog> -00030 #include <QObject> -00031 #include <QList> -00032 #include "translation.h" -00033 class Settings; -00034 +00024 #ifndef COMMONDICTINTERFACE_H +00025 #define COMMONDICTINTERFACE_H +00026 +00027 #include <QString> +00028 #include <QDialog> +00029 #include <QObject> +00030 #include <QList> +00031 #include "translation.h" +00032 +00033 class DictDialog; +00034 class Settings; 00035 00036 00038 class CommonDictInterface : public QObject { 00039 Q_OBJECT 00040 public: -00042 virtual QString langFrom() const = 0; -00043 -00045 virtual QString langTo() const = 0; -00046 -00048 virtual QString name() const = 0; -00049 -00051 virtual QString type() const = 0; -00052 -00054 virtual QString infoNote() const = 0; -00055 -00058 virtual QDialog* loadDialog() = 0; -00059 -00061 virtual QDialog* settingsDialog() = 0; +00041 CommonDictInterface(QObject *parent = 0):QObject(parent) {} +00042 +00044 virtual QString langFrom() const = 0; +00045 +00047 virtual QString langTo() const = 0; +00048 +00050 virtual QString name() const = 0; +00051 +00053 virtual QString type() const = 0; +00054 +00056 virtual QString infoNote() const = 0; +00057 +00061 virtual DictDialog* dictDialog() = 0; 00062 -00064 virtual CommonDictInterface* getNew(const Settings*) const = 0; -00065 -00067 virtual bool isAvailable() const = 0; -00068 -00070 virtual uint hash() const = 0; -00071 -00072 public Q_SLOTS: -00081 virtual void search(QString word, int limit) = 0; -00082 -00084 virtual void stop() = 0; -00085 -00086 Q_SIGNALS: -00088 void finalTranslation(QList<Translation*>); -00089 -00091 void loaded(CommonDictInterface*); -00092 }; -00093 -00094 Q_DECLARE_INTERFACE(CommonDictInterface, "CommonDictInterface/0.1"); -00095 #endif +00063 +00065 virtual CommonDictInterface* getNew(const Settings*) const = 0; +00066 +00068 virtual bool isAvailable() const = 0; +00069 +00071 virtual QString search(QString key) = 0; +00072 +00074 virtual uint hash() const = 0; +00075 +00077 virtual void setHash(uint) = 0; +00078 +00080 virtual Settings* settings() = 0; +00081 +00082 public Q_SLOTS: +00091 virtual QList<Translation*> searchWordList(QString word, int limit) = 0; +00092 +00094 virtual void stop() = 0; +00095 +00096 Q_SIGNALS: +00097 +00099 void loaded(CommonDictInterface*); +00100 }; +00101 +00102 Q_DECLARE_INTERFACE(CommonDictInterface, "CommonDictInterface/0.1"); +00103 +00104 #endif
-
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/DictDialog_8h_source.html b/doc/html/DictDialog_8h_source.html new file mode 100644 index 0000000..4f76fa9 --- /dev/null +++ b/doc/html/DictDialog_8h_source.html @@ -0,0 +1,104 @@ + + + + + +mDictionary: DictDialog.h Source File + + + + + + + + + + + + + +
+ +
+ +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
+ + diff --git a/doc/html/MainWindow_8h_source.html b/doc/html/MainWindow_8h_source.html index e942b22..b2fab4e 100644 --- a/doc/html/MainWindow_8h_source.html +++ b/doc/html/MainWindow_8h_source.html @@ -97,14 +97,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00060 00061 private: 00062 Backbone* backbone; -00063 Ui::MainWindow *ui; +00063 Ui::MainWindow *ui; 00064 SearchBarWidget* searchBarWidget; 00065 TranslationWidget* translationWidget; 00066 WordListWidget* wordListWidget; 00067 MenuWidget* menuWidget; -00068 }; -00069 -00070 #endif // MAINWINDOW_H +00068 bool closingApplication = false; +00069 }; +00070 +00071 #endif // MAINWINDOW_H
-
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/MenuTabWidget_8h_source.html b/doc/html/MenuTabWidget_8h_source.html index 46cdb94..43e0924 100644 --- a/doc/html/MenuTabWidget_8h_source.html +++ b/doc/html/MenuTabWidget_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/MenuWidget_8h_source.html b/doc/html/MenuWidget_8h_source.html index e28c605..a6519c4 100644 --- a/doc/html/MenuWidget_8h_source.html +++ b/doc/html/MenuWidget_8h_source.html @@ -100,7 +100,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/SearchBarWidget_8h_source.html b/doc/html/SearchBarWidget_8h_source.html index 9fcb292..8f96d16 100644 --- a/doc/html/SearchBarWidget_8h_source.html +++ b/doc/html/SearchBarWidget_8h_source.html @@ -90,34 +90,35 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00055 public Q_SLOTS: 00057 00061 void setEnabled(bool enabled = true); -00062 -00063 private Q_SLOTS: -00064 void clearSearchWordToolButtonClicked(); -00065 void searchPushButtonClicked(); -00066 void historyPrevToolButtonClicked(); -00067 void historyNextToolButtonClicked(); -00068 void historyShowToolButtonClicked(); -00069 -00070 private: -00071 Backbone* backbone; -00072 QLineEdit* searchWordLineEdit; -00073 QToolButton* clearSearchWordToolButton; -00074 QPushButton* searchPushButton; -00075 QToolButton* historyPrevToolButton; -00076 QToolButton* historyNextToolButton; -00077 QToolButton* historyShowToolButton; -00078 QHBoxLayout* horizontalLayout; -00079 QProgressBar* searchingProgressBar; -00080 -00081 QVBoxLayout* verticalLayout; -00082 -00083 bool _isSearching; -00084 -00085 void initializeUI(); -00086 void showHistoryListDialog(); -00087 }; -00088 -00089 #endif // SEARCHBARWIDGET_H +00062 void searchFinished(); +00063 +00064 private Q_SLOTS: +00065 void clearSearchWordToolButtonClicked(); +00066 void searchPushButtonClicked(); +00067 void historyPrevToolButtonClicked(); +00068 void historyNextToolButtonClicked(); +00069 void historyShowToolButtonClicked(); +00070 +00071 private: +00072 Backbone* backbone; +00073 QLineEdit* searchWordLineEdit; +00074 QToolButton* clearSearchWordToolButton; +00075 QPushButton* searchPushButton; +00076 QToolButton* historyPrevToolButton; +00077 QToolButton* historyNextToolButton; +00078 QToolButton* historyShowToolButton; +00079 QHBoxLayout* horizontalLayout; +00080 QProgressBar* searchingProgressBar; +00081 +00082 QVBoxLayout* verticalLayout; +00083 +00084 bool _isSearching; +00085 +00086 void initializeUI(); +00087 void showHistoryListDialog(); +00088 }; +00089 +00090 #endif // SEARCHBARWIDGET_H
-
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/TranslationWidget_8h_source.html b/doc/html/TranslationWidget_8h_source.html index e523203..e6e7409 100644 --- a/doc/html/TranslationWidget_8h_source.html +++ b/doc/html/TranslationWidget_8h_source.html @@ -72,7 +72,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00030 #include "../backbone/backbone.h" 00031 00033 -00036 class TranslationWidget : public QWidget { +00036 class TranslationWidget : public QTextEdit { 00037 Q_OBJECT 00038 public: 00039 explicit TranslationWidget(Backbone* backbone, QWidget *parent = 0); @@ -82,16 +82,19 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00043 public Q_SLOTS: 00045 void show(QModelIndex); 00046 -00047 private: -00048 Backbone *backbone; -00049 QTextEdit* translationTextEdit; -00050 QVBoxLayout* verticalLayout; -00051 -00052 void initializeUI(); +00047 private Q_SLOTS: +00048 void showContextMenu(QPoint pos); +00049 +00050 private: +00051 Backbone *backbone; +00052 QMenu *contextMenu; 00053 -00054 }; -00055 -00056 #endif // TRANSLATIONWIDGET_H +00054 +00055 void initializeUI(); +00056 +00057 }; +00058 +00059 #endif // TRANSLATIONWIDGET_H
-
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/TranslationXdxf_8h_source.html b/doc/html/TranslationXdxf_8h_source.html new file mode 100644 index 0000000..2ce0341 --- /dev/null +++ b/doc/html/TranslationXdxf_8h_source.html @@ -0,0 +1,116 @@ + + + + + +mDictionary: TranslationXdxf.h Source File + + + + + + + + + + + + + +
+ +
+ +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
+ + diff --git a/doc/html/WordListWidget_8h_source.html b/doc/html/WordListWidget_8h_source.html index a7399ec..04a4c58 100644 --- a/doc/html/WordListWidget_8h_source.html +++ b/doc/html/WordListWidget_8h_source.html @@ -86,12 +86,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00049 Backbone *backbone; 00050 //words are keeping as QStringListModel which allow to sort them 00051 QStringListModel *wordListModel; -00052 void addWord(QString word); +00052 void addWord(QString word, Translation* trans); 00053 //clears all list of words 00054 void clear(); -00055 }; -00056 -00057 #endif // WORDLISTWIDGET_H +00055 QHash<QString, Translation*> searchResult; +00056 }; +00057 +00058 #endif // WORDLISTWIDGET_H
-
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/XdxfDictDialog_8h_source.html b/doc/html/XdxfDictDialog_8h_source.html new file mode 100644 index 0000000..c6d0543 --- /dev/null +++ b/doc/html/XdxfDictDialog_8h_source.html @@ -0,0 +1,103 @@ + + + + + +mDictionary: XdxfDictDialog.h Source File + + + + + + + + + + + + + +
+ +
+ +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
+ + diff --git a/doc/html/XdxfLoadDialog_8h_source.html b/doc/html/XdxfLoadDialog_8h_source.html new file mode 100644 index 0000000..db8caf1 --- /dev/null +++ b/doc/html/XdxfLoadDialog_8h_source.html @@ -0,0 +1,125 @@ + + + + + +mDictionary: XdxfLoadDialog.h Source File + + + + + + + + + + + + + +
+ +
+ +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
+ + diff --git a/doc/html/annotated.html b/doc/html/annotated.html index 224042e..1dc9ba9 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -47,16 +47,20 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

Class List

Here are the classes, structs, unions and interfaces with brief descriptions: - + + - + + + +
BackboneInner part of dictionary - glues together GUI and plugins
CommonDictInterfaceInterface for dict engines plugins
Ui::MainWindow
DictDialogInterface for plugin dialog provider
MainWindow
MenuTabWidgetMenu's main widget, which will hold all submenu's widgets
MenuWidgetDisplays custom menu with tab widget containing all submenus
SearchBarWidgetDisplays search bar
SettingsPlugin specific configuration
Testowanie
TranslationKeeping raw form of translation to be parsed only when needed
TranslationWidgetDisplays translation of word found in dictionaries
Ui_MainWindow
TranslationXdxf
WordListWidgetDisplays list of words found in dictionaries
XdxfDictDialogImplementation of DictDialog interface for xdxf plugin
XdxfLoadDialogDisplays dialog which allow user to add new xdxf dictionary
XdxfPlugin
@@ -73,7 +77,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/backbone_8h_source.html b/doc/html/backbone_8h_source.html index 5a7c3c8..c6a151c 100644 --- a/doc/html/backbone_8h_source.html +++ b/doc/html/backbone_8h_source.html @@ -70,69 +70,82 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00028 #include <QList> 00029 #include <QHash> 00030 #include <QPluginLoader> -00031 #include "../../includes/CommonDictInterface.h" -00032 #include "../../includes/settings.h" -00033 #include "../../includes/translation.h" -00034 -00035 -00037 class Backbone : public QObject -00038 { -00039 Q_OBJECT +00031 #include <QFuture> +00032 #include <QtConcurrentRun> +00033 #include <QTimer> +00034 #include <QTime> +00035 #include <QDir> +00036 #include "../../includes/CommonDictInterface.h" +00037 #include "../../includes/settings.h" +00038 #include "../../includes/translation.h" +00039 00040 -00041 public: -00042 Backbone(QObject *parent = 0); -00043 ~Backbone(); -00044 Backbone(const Backbone& b); +00042 class Backbone : public QObject +00043 { +00044 Q_OBJECT 00045 -00047 QHash<CommonDictInterface*, bool> getDictionaries(); -00048 -00050 QList<CommonDictInterface*> getPlugins(); -00051 -00053 QList<QString> getHistory(); //TODO implementation needed (in future) -00054 -00056 QMultiHash<QString, Translation*> result(); -00057 -00059 int searchLimit() const; -00060 -00062 int activeSearches() const; -00063 -00064 public Q_SLOTS: -00066 void stopSearching(); -00067 -00069 void search(QString word); -00070 -00072 void selectedDictionaries(QList<CommonDictInterface* >); -00073 -00075 void addDictionary(CommonDictInterface* dict); -00076 -00077 -00079 void quit(); -00080 +00046 public: +00047 Backbone(QObject *parent = 0); +00048 ~Backbone(); +00049 Backbone(const Backbone& b); +00050 +00052 QHash<CommonDictInterface*, bool> getDictionaries(); +00053 +00055 QList<CommonDictInterface*> getPlugins(); +00056 +00058 QList<QString> getHistory(); //TODO implementation needed (in future) +00059 +00061 QMultiHash<QString, Translation*> result(); +00062 +00064 int searchLimit() const; +00065 +00067 int activeSearches() const; +00068 +00069 public Q_SLOTS: +00071 void stopSearching(); +00072 +00074 void search(QString word); +00075 +00077 void selectedDictionaries(QList<CommonDictInterface* >); +00078 +00080 void addDictionary(CommonDictInterface* dict); 00081 -00083 void translation(QList<Translation*>); -00084 -00085 // TODO void removeDictionary(CommonDictInterface* dict); -00086 // TODO addToBookmark(Translation*); -00087 // TODO removeFromBookmark(Translation*); -00088 -00089 Q_SIGNALS: -00092 void closeOk(); -00093 -00095 void ready(); -00096 -00097 -00098 -00099 private: -00100 void loadPlugins(); //< locate and load plugins -00101 QHash<CommonDictInterface*, bool> dicts; -00102 QList<CommonDictInterface*> plugins; -00103 QMultiHash<QString, Translation*> _result; -00104 int searchLimitv; -00105 int activeSearchNum; -00106 -00107 }; -00108 -00109 #endif // BACKBONE_H +00082 +00084 void quit(); +00085 +00086 +00088 void translation(); +00089 +00091 void removeDictionary(CommonDictInterface* dict); +00092 +00093 // TODO addToBookmark(Translation*); +00094 // TODO removeFromBookmark(Translation*); +00095 +00096 Q_SIGNALS: +00099 void closeOk(); +00100 +00102 void ready(); +00103 +00104 +00105 +00106 private: +00107 void loadPlugins(); //< locate and load plugins +00108 QHash<CommonDictInterface*, bool> _dicts; +00109 QList<CommonDictInterface*> _plugins; +00110 QList<QFuture<QList<Translation*> > > _innerResult; +00111 QMultiHash<QString, Translation*> _result; +00112 QTimer _timer; +00113 int _searchLimit; +00114 int _activeSearchNum; +00115 QTime _time; +00116 int _interval; //Search fetching timer.timeout interval in msec +00117 QString _pluginPath; +00118 +00119 void init(); +00120 +00121 }; +00122 +00123 #endif // BACKBONE_H
-
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/classBackbone-members.html b/doc/html/classBackbone-members.html index 1e494f4..66c79d8 100644 --- a/doc/html/classBackbone-members.html +++ b/doc/html/classBackbone-members.html @@ -55,12 +55,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); getPlugins()Backbone quit()Backbone [slot] ready()Backbone [signal] + removeDictionary(CommonDictInterface *dict)Backbone [slot] result()Backbone search(QString word)Backbone [slot] searchLimit() const Backbone selectedDictionaries(QList< CommonDictInterface * >)Backbone [slot] stopSearching()Backbone [slot] - translation(QList< Translation * >)Backbone [slot] + translation()Backbone [slot] ~Backbone() (defined in Backbone)Backbone @@ -77,7 +78,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
diff --git a/doc/html/classBackbone.html b/doc/html/classBackbone.html index 70daeab..46fbf5f 100644 --- a/doc/html/classBackbone.html +++ b/doc/html/classBackbone.html @@ -68,9 +68,12 @@ void  void quit ()  stops all current activity and kill plugins - be ready to exit
- -void translation (QList< Translation * >) + +void translation ()  Fired when dictionary call finalTranslation(..) with translation ready.
+ +void removeDictionary (CommonDictInterface *dict) + Removes given dictionary.

Signals

void closeOk () @@ -222,7 +225,6 @@ void backbone.h
  • backbone.cpp
  • -
  • moc_backbone.cpp
  • @@ -239,7 +241,7 @@ void 
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classCommonDictInterface-members.html b/doc/html/classCommonDictInterface-members.html index 419a644..3938cbb 100644 --- a/doc/html/classCommonDictInterface-members.html +++ b/doc/html/classCommonDictInterface-members.html @@ -45,18 +45,20 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    CommonDictInterface Member List

    This is the complete list of members for CommonDictInterface, including all inherited members. - + + - - - + + + +
    finalTranslation(QList< Translation * >)CommonDictInterface [signal]
    CommonDictInterface(QObject *parent=0) (defined in CommonDictInterface)CommonDictInterface [inline]
    dictDialog()=0CommonDictInterface [pure virtual]
    getNew(const Settings *) const =0CommonDictInterface [pure virtual]
    hash() const =0CommonDictInterface [pure virtual]
    infoNote() const =0CommonDictInterface [pure virtual]
    isAvailable() const =0CommonDictInterface [pure virtual]
    langFrom() const =0CommonDictInterface [pure virtual]
    langTo() const =0CommonDictInterface [pure virtual]
    loadDialog()=0CommonDictInterface [pure virtual]
    loaded(CommonDictInterface *)CommonDictInterface [signal]
    name() const =0CommonDictInterface [pure virtual]
    search(QString word, int limit)=0CommonDictInterface [pure virtual, slot]
    settingsDialog()=0CommonDictInterface [pure virtual]
    search(QString key)=0CommonDictInterface [pure virtual]
    searchWordList(QString word, int limit)=0CommonDictInterface [pure virtual, slot]
    setHash(uint)=0CommonDictInterface [pure virtual]
    settings()=0CommonDictInterface [pure virtual]
    stop()=0CommonDictInterface [pure virtual, slot]
    type() const =0CommonDictInterface [pure virtual]
    @@ -74,7 +76,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classCommonDictInterface.html b/doc/html/classCommonDictInterface.html index 3030cc3..d5c74a2 100644 --- a/doc/html/classCommonDictInterface.html +++ b/doc/html/classCommonDictInterface.html @@ -49,23 +49,32 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); More...

    #include <CommonDictInterface.h>

    +
    +Inheritance diagram for CommonDictInterface:
    +
    +
    + + +XdxfPlugin + +
    +

    List of all members.

    - - + + - - + @@ -81,17 +90,25 @@ virtual QString  - - - + + + + + + + +

    Public Slots

    virtual void search (QString word, int limit)=0
     performes search in dictionary
    virtual QList< Translation * > searchWordList (QString word, int limit)=0
     performs search in dictionary
    virtual void stop ()=0
     stop current operation

    Signals

    -void finalTranslation (QList< Translation * >)
     emit list of finded Translations
    void loaded (CommonDictInterface *)
     emited after dictionary is ready to use afer being loaded

    Public Member Functions

    CommonDictInterface (QObject *parent=0)
    virtual QString langFrom () const =0
     returns source language code iso 639-2
    virtual QString infoNote () const =0
     returns information about dictionary in html (name, authors, etc)
    virtual QDialog * loadDialog ()=0
    -virtual QDialog * settingsDialog ()=0
     return dialog with dictionary settings
    +virtual DictDialogdictDialog ()=0
     returns DictDialog object that creates dialogs for adding new dictionary and change plugin settings
    virtual CommonDictInterfacegetNew (const Settings *) const =0
     return new, clean copy of plugin with setting set as in Settings*
    virtual bool isAvailable () const =0
     returns whether plugin can start searching
    +virtual QString search (QString key)=0
     returns the actual translation of a word given in key
    virtual uint hash () const =0
    +virtual void setHash (uint)=0
     set unique value (unique for every dictionary not plugin)
    +virtual Settingssettings ()=0
     returns current plugin settings

    Detailed Description

    Interface for dict engines plugins.

    @@ -112,32 +129,16 @@ virtual bool 
    Returns:
    unique value (unique for every dictionary not plugin
    - - -
    -
    -
    - - - - - - - - -
    virtual QDialog* CommonDictInterface::loadDialog ( )  [pure virtual]
    -
    -
    -

    return dialog that creates new dictionary and fills necesary options QDialog should returns Setting* object after being showed

    +

    Implemented in XdxfPlugin.

    - +
    - + @@ -157,7 +158,7 @@ virtual bool 
    virtual void CommonDictInterface::search virtual QList<Translation*> CommonDictInterface::searchWordList ( QString  word,
    -

    performes search in dictionary

    +

    performs search in dictionary

    Parameters:
    @@ -166,13 +167,14 @@ virtual bool 
    word word to search in dictionary

    After finishing search it have to emit

    -
    See also:
    CommonDictInterface:finalTranslation finalTranslation
    +
    See also:
    CommonDictInterface:finalTranslation finalTranslation
    + +

    Implemented in XdxfPlugin.

    -
    The documentation for this class was generated from the following files:
      +
      The documentation for this class was generated from the following file: @@ -189,7 +191,7 @@ virtual bool 
    -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classCommonDictInterface.png b/doc/html/classCommonDictInterface.png new file mode 100644 index 0000000000000000000000000000000000000000..3d1ae8e606f1a4eb7cbf4e2516b022fe514d7114 GIT binary patch literal 486 zcmeAS@N?(olHy`uVBq!ia0vp^EkGQ=!3-qdo9eCsQW60^A+G=b{|7Sv|35H)e!>JG z3ycpOI8c4){}UjWqa?^L7$^+}S5Ji)F)%Qedb&71p84XMAM^G}+cin( ztr1AGQeeEkvhmK0Jq(}tRo2ZjQa-PFe%;O%4atT8v8#P-ujXaPSDWgsIhx#d^M$~p zSC>u9ihQ5!`*&g=tK#wnLZ{lVX#D;>bwhQT@!F8zw>L6f+}U>gW1R3;+l8iYIC2W_ zRy!TJ|LS_rgsHu|_siDg3O5O~{E&UbaC^hVFEzU78$4bzbO|d2Sv5T3;JC-`{f`}jO#=1J4L_%<9pi9eXei#L8Lgf8`NgMKN21Q%7I0|! zqHwZUJDH(0p)WT~c#`F@Nw-qI_NSf5XzQlQB7QiHL%E~MdRKMyhcj<)=$=uHuE~DWKI7hhckPMqb^g0@ew0_>+aSNT XS!VC|%O$IUk;35V>gTe~DWM4fQyJA? literal 0 HcmV?d00001 diff --git a/doc/html/classDictDialog-members.html b/doc/html/classDictDialog-members.html new file mode 100644 index 0000000..24657dd --- /dev/null +++ b/doc/html/classDictDialog-members.html @@ -0,0 +1,70 @@ + + + + + +mDictionary: Member List + + + + + + + + + +
    +

    DictDialog Member List

    This is the complete list of members for DictDialog, including all inherited members. + + + +
    addNewDictionary(QWidget *parent=0)=0DictDialog [pure virtual]
    changeSettings(QWidget *parent=0)=0DictDialog [pure virtual]
    DictDialog(QObject *parent=0) (defined in DictDialog)DictDialog [inline]
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classDictDialog.html b/doc/html/classDictDialog.html new file mode 100644 index 0000000..c9579cd --- /dev/null +++ b/doc/html/classDictDialog.html @@ -0,0 +1,154 @@ + + + + + +mDictionary: DictDialog Class Reference + + + + + + + + + +
    +

    DictDialog Class Reference

    +

    Interface for plugin dialog provider. +More...

    + +

    #include <DictDialog.h>

    +
    +Inheritance diagram for DictDialog:
    +
    +
    + + +XdxfDictDialog + +
    +
    + +

    List of all members.

    + + + + + + + +

    Public Member Functions

    DictDialog (QObject *parent=0)
    virtual SettingsaddNewDictionary (QWidget *parent=0)=0
     Shows add new dictionary dialog and returns settings of new dict.
    virtual void changeSettings (QWidget *parent=0)=0
     Shows settings dialog and save new settings in plugin.
    +

    Detailed Description

    +

    Interface for plugin dialog provider.

    +

    Member Function Documentation

    + +
    +
    + + + + + + + + + +
    virtual Settings* DictDialog::addNewDictionary (QWidget *  parent = 0 )  [pure virtual]
    +
    +
    + +

    Shows add new dictionary dialog and returns settings of new dict.

    +
    Parameters:
    + + +
    parent parent widget on which will be displayed dialog
    +
    +
    + +

    Implemented in XdxfDictDialog.

    + +
    +
    + +
    +
    + + + + + + + + + +
    virtual void DictDialog::changeSettings (QWidget *  parent = 0 )  [pure virtual]
    +
    +
    + +

    Shows settings dialog and save new settings in plugin.

    +
    Parameters:
    + + +
    parent parent widget on which will be displayed dialog
    +
    +
    + +

    Implemented in XdxfDictDialog.

    + +
    +
    +
    The documentation for this class was generated from the following file: +
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classDictDialog.png b/doc/html/classDictDialog.png new file mode 100644 index 0000000000000000000000000000000000000000..b60a7b5d562b74f085315a5097cc94fdce6c95cd GIT binary patch literal 423 zcmeAS@N?(olHy`uVBq!ia0vp^2|ygc!3-oX+B7T&QW60^A+G=b{|7Sv|35H)e!>JG z3ycpOI8c4){}UjWqa?^L7$^+}S5Ji)F)%QidAc};R4~4sdvViY1rC>3tH=NAi{vM; zh~{ohRGWOr`SIP=GKrq^gy$$L?sQ{#$CdCqIOzWokGsrY+6{xgGfonIa9es+)Y5}T z>e;5)1U0UlcGb>d>x#*K2lz!L7|ibQCv43S4VZr=xTKN2>e1;v3&MYXI46?3e`{ZZ zDgQQ(Wvm}}{u6E})`{2r9rlL*#LbxxctHeT#Q_mk1qMbA2L>jA1_m3k4^cgPcG&Md zVaimX%y4DBO$UbpgTvxW4s$~pwm!X4)$uj4=gN8p2FI`oA(JMHPT`%pDs0Z;uMV4p zrfw;UTB=oVej`eEwcLW72fIURFK0$Kw9X3Kz++Km$^4?`ve;LK)vmz}5l8rA!yh-U z -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classMainWindow.html b/doc/html/classMainWindow.html index cf11592..2a8cd4b 100644 --- a/doc/html/classMainWindow.html +++ b/doc/html/classMainWindow.html @@ -66,7 +66,6 @@ void 
    MainWindow.h
  • MainWindow.cpp
  • -
  • moc_MainWindow.cpp
  • @@ -83,7 +82,7 @@ void 
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classMenuTabWidget-members.html b/doc/html/classMenuTabWidget-members.html index 1d1d0f5..cf7634a 100644 --- a/doc/html/classMenuTabWidget-members.html +++ b/doc/html/classMenuTabWidget-members.html @@ -62,7 +62,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classMenuTabWidget.html b/doc/html/classMenuTabWidget.html index 8b5bd84..cb56c6f 100644 --- a/doc/html/classMenuTabWidget.html +++ b/doc/html/classMenuTabWidget.html @@ -103,7 +103,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classMenuWidget-members.html b/doc/html/classMenuWidget-members.html index f6a5878..0de5d37 100644 --- a/doc/html/classMenuWidget-members.html +++ b/doc/html/classMenuWidget-members.html @@ -66,7 +66,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classMenuWidget.html b/doc/html/classMenuWidget.html index fc12cf7..3bc78cc 100644 --- a/doc/html/classMenuWidget.html +++ b/doc/html/classMenuWidget.html @@ -147,7 +147,7 @@ QWidget * 
    createWidget -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classSearchBarWidget-members.html b/doc/html/classSearchBarWidget-members.html index 408dab0..4761e7e 100644 --- a/doc/html/classSearchBarWidget-members.html +++ b/doc/html/classSearchBarWidget-members.html @@ -47,6 +47,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    SearchBarWidget Member List

    This is the complete list of members for SearchBarWidget, including all inherited members. + @@ -66,7 +67,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classSearchBarWidget.html b/doc/html/classSearchBarWidget.html index ba12e84..33cf268 100644 --- a/doc/html/classSearchBarWidget.html +++ b/doc/html/classSearchBarWidget.html @@ -55,6 +55,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    + @@ -116,7 +118,6 @@ void 
    isSearching() const SearchBarWidget
    SearchBarWidget(Backbone *backbone, QWidget *parent=0) (defined in SearchBarWidget)SearchBarWidget [explicit]
    searchFinished() (defined in SearchBarWidget)SearchBarWidget [slot]
    searchForTranslations(QString)SearchBarWidget [signal]
    setEnabled(bool enabled=true)SearchBarWidget [slot]
    stopSearching()SearchBarWidget [signal]

    Public Slots

    void setEnabled (bool enabled=true)
     Enable or disable search word line edit and history buttons.
    +void searchFinished ()

    Signals

    void searchForTranslations (QString)
    SearchBarWidget.h
  • SearchBarWidget.cpp
  • -
  • moc_SearchBarWidget.cpp
  • @@ -133,7 +134,7 @@ void 
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classSettings-members.html b/doc/html/classSettings-members.html index 285a8ab..167c3cb 100644 --- a/doc/html/classSettings-members.html +++ b/doc/html/classSettings-members.html @@ -45,10 +45,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    Settings Member List

    This is the complete list of members for Settings, including all inherited members. - - - - + + +
    setType(const CommonDictInterface *)=0Settings [pure virtual]
    setValue(const QString key, const QString value)=0Settings [pure virtual]
    type() const =0Settings [pure virtual]
    value(const QString key) const =0Settings [pure virtual]
    Settings() (defined in Settings)Settings [inline]
    setValue(const QString key, const QString value)Settings [inline]
    value(const QString key) const Settings [inline]
    -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classSettings.html b/doc/html/classSettings.html index 7dff1a5..5d6bff0 100644 --- a/doc/html/classSettings.html +++ b/doc/html/classSettings.html @@ -53,47 +53,25 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    List of all members.

    - - + + - - -

    Public Member Functions

    virtual QString value (const QString key) const =0
    -virtual void setValue (const QString key, const QString value)=0
    QString value (const QString key) const
    +void setValue (const QString key, const QString value)
     sets key to value
    virtual CommonDictInterfacetype () const =0
    -virtual void setType (const CommonDictInterface *)=0
     sets settings type to given dictionary

    Detailed Description

    Plugin specific configuration.


    Member Function Documentation

    - +
    - - - - - - -
    virtual CommonDictInterface* Settings::type ( )  const [pure virtual]
    -
    -
    -
    Returns:
    dict CommonDictInterface
    - -
    -
    - -
    -
    - - - + - +
    virtual QString Settings::value QString Settings::value ( const QString  key  )  const [pure virtual] const [inline]
    @@ -126,7 +104,7 @@ virtual void 
    -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classTestowanie-members.html b/doc/html/classTestowanie-members.html new file mode 100644 index 0000000..49c2974 --- /dev/null +++ b/doc/html/classTestowanie-members.html @@ -0,0 +1,67 @@ + + + + + +mDictionary: Member List + + + + + + + + + +
    +

    Testowanie Member List

    This is the complete list of members for Testowanie, including all inherited members. +
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classTestowanie.html b/doc/html/classTestowanie.html new file mode 100644 index 0000000..3223f81 --- /dev/null +++ b/doc/html/classTestowanie.html @@ -0,0 +1,74 @@ + + + + + +mDictionary: Testowanie Class Reference + + + + + + + + + +
    +

    Testowanie Class Reference

    +

    List of all members.

    + +
    +
    The documentation for this class was generated from the following files: +
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classTranslation-members.html b/doc/html/classTranslation-members.html index 7d2e584..deb76f8 100644 --- a/doc/html/classTranslation-members.html +++ b/doc/html/classTranslation-members.html @@ -47,6 +47,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    Translation Member List

    This is the complete list of members for Translation, including all inherited members. +
    dictionaryInfo() const =0Translation [pure virtual]
    key() const =0Translation [pure virtual]
    operator==(Translation *translation) (defined in Translation)Translation [inline]
    toHtml() const =0Translation [pure virtual]
    @@ -63,7 +64,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classTranslation.html b/doc/html/classTranslation.html index 4fce72d..c3d944b 100644 --- a/doc/html/classTranslation.html +++ b/doc/html/classTranslation.html @@ -49,11 +49,23 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); More...

    #include <translation.h>

    +
    +Inheritance diagram for Translation:
    +
    +
    + + +TranslationXdxf + +
    +

    List of all members.

    +

    Public Member Functions

    virtual QString key () const =0
    +bool operator== (Translation *translation)
    virtual QString dictionaryInfo () const =0
    virtual QString toHtml () const =0
    @@ -76,6 +88,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    Returns:
    dictionary information (plugin name, languages, <logo> etc)\ to be displayed in translation table header
    +

    Implemented in TranslationXdxf.

    +
    @@ -94,6 +108,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    Returns:
    word to be translated
    +

    Implemented in TranslationXdxf.

    +
    @@ -112,6 +128,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    Returns:
    parsed raw format into html
    +

    Implemented in TranslationXdxf.

    +

    The documentation for this class was generated from the following file:
      @@ -132,7 +150,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
      Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
      Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
      diff --git a/doc/html/classTranslation.png b/doc/html/classTranslation.png new file mode 100644 index 0000000000000000000000000000000000000000..0f0c186c9561968bae22a7abbbbc6ec0777a8205 GIT binary patch literal 424 zcmeAS@N?(olHy`uVBq!ia0vp^DL@>+!3-pCTvxaYq$C1-LR|m<{|{vT|9@cq{DcWW z78oBmaG?6o|0h5$M@f)hFi;u{uAT}pVqjo2_jGX#sbG9N*LU4v1)dg3t-}Ax`&)T$ z{8{QLe8sMJDl6OJ<2-rS8KspJY~))0aHxDgk~CdX_I}Z_l)aZ7*WFg#%)#MkqS#^L zTVnN}t>&y}$F4@BE%Ebx&R7RMnxmio;!i_`sFH0!?5eW6>@WEuZj=hA{8f{`xiocc z>?OZ#yU#iPxbMoL$hS#RFGk09eJ#JrQr;=D6Q-C2Y;*V*ST5+qq1Yk-CW<&eS;@Zq z()XdOpIz}jcjJ*g8}tsU<%KTyUCGlsiFILX&-BkunkSn1nmQz0g}&mPe z1_k#HOJk_BQa*n=d3M`Oq31Q4YwNbVga^2;f2-xSn>V$JVWro-mYzJz&8PEUX5VXB zb3cVaV-ermOS7)&WvbtfJ-d76J1K};i%+!uV0L;WTDoEK_b_0vGI+ZBxvX -
      Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
      Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
      diff --git a/doc/html/classTranslationWidget.html b/doc/html/classTranslationWidget.html index 42c6312..58bab4b 100644 --- a/doc/html/classTranslationWidget.html +++ b/doc/html/classTranslationWidget.html @@ -82,7 +82,7 @@ void 
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classTranslationXdxf-members.html b/doc/html/classTranslationXdxf-members.html new file mode 100644 index 0000000..1e140f5 --- /dev/null +++ b/doc/html/classTranslationXdxf-members.html @@ -0,0 +1,75 @@ + + + + + +mDictionary: Member List + + + + + + + + + +
    +

    TranslationXdxf Member List

    This is the complete list of members for TranslationXdxf, including all inherited members. + + + + + + + + +
    dictionaryInfo() const TranslationXdxf [virtual]
    key() const TranslationXdxf [virtual]
    operator==(Translation *translation) (defined in Translation)Translation [inline]
    setDictionaryInfo(QString)TranslationXdxf
    setKey(QString)TranslationXdxf
    toHtml() const TranslationXdxf [virtual]
    TranslationXdxf() (defined in TranslationXdxf)TranslationXdxf
    TranslationXdxf(QString _key, QString _dictionaryInfo, XdxfPlugin *xdxfPlugin) (defined in TranslationXdxf)TranslationXdxf
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classTranslationXdxf.html b/doc/html/classTranslationXdxf.html new file mode 100644 index 0000000..3540afd --- /dev/null +++ b/doc/html/classTranslationXdxf.html @@ -0,0 +1,157 @@ + + + + + +mDictionary: TranslationXdxf Class Reference + + + + + + + + + +
    +

    TranslationXdxf Class Reference

    +Inheritance diagram for TranslationXdxf:
    +
    +
    + + +Translation + +
    +
    + +

    List of all members.

    + + + + + + + + + + +

    Public Member Functions

    TranslationXdxf (QString _key, QString _dictionaryInfo, XdxfPlugin *xdxfPlugin)
    QString key () const
    QString dictionaryInfo () const
    QString toHtml () const
    +void setKey (QString)
     sets the word for which we want to find a translation
    +void setDictionaryInfo (QString)
     sets information about dictionary
    +

    Member Function Documentation

    + +
    +
    + + + + + + + + +
    QString TranslationXdxf::dictionaryInfo ( )  const [virtual]
    +
    +
    +
    Returns:
    dictionary information (plugin name, languages, <logo> etc)\ to be displayed in translation table header
    + +

    Implements Translation.

    + +
    +
    + +
    +
    + + + + + + + + +
    QString TranslationXdxf::key ( )  const [virtual]
    +
    +
    +
    Returns:
    word to be translated
    + +

    Implements Translation.

    + +
    +
    + +
    +
    + + + + + + + + +
    QString TranslationXdxf::toHtml ( )  const [virtual]
    +
    +
    +
    Returns:
    parsed raw format into html
    + +

    Implements Translation.

    + +
    +
    +
    The documentation for this class was generated from the following files: +
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classTranslationXdxf.png b/doc/html/classTranslationXdxf.png new file mode 100644 index 0000000000000000000000000000000000000000..0560f1c30de137458fe6abda2ec28d628ad081db GIT binary patch literal 418 zcmeAS@N?(olHy`uVBq!ia0vp^DL@>+!3-pCTvxaYq$C1-LR|m<{|{vT|9@cq{DcWW z78oBmaG?6o|0h5$M@f)hFi;u{uAT}pVqjo2^mK6ysbG9N*LU4v1)dg3rNaNp`&)Z| z8eUMz4ft&mCdQakKl9)zD;a4enU5b8p13Pam=Qiz`AYX{uWM6zpX`eb>gkYh6<*|V zxiybjgZuPOjzIH-^di<>4i*VXdHl&h zgUXjJHTo+32bDHf6<6Lmvh-Q)?I`aog~yL;9#~m%FgXeMUeLeTn)iI;`=TOdh3`7& zDmr#CRx$e`nN_)*B#i#K4H-lm6R`2jd$M?nqMrm zY2ReV11@{Fc>7m@9r)_q+F9!aTmI`gam;i!J0c$`Ci>yF$eC -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classWordListWidget.html b/doc/html/classWordListWidget.html index 1d7dfe2..7180a5c 100644 --- a/doc/html/classWordListWidget.html +++ b/doc/html/classWordListWidget.html @@ -82,7 +82,7 @@ void 
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/classXdxfDictDialog-members.html b/doc/html/classXdxfDictDialog-members.html new file mode 100644 index 0000000..374e238 --- /dev/null +++ b/doc/html/classXdxfDictDialog-members.html @@ -0,0 +1,71 @@ + + + + + +mDictionary: Member List + + + + + + + + + +
    +

    XdxfDictDialog Member List

    This is the complete list of members for XdxfDictDialog, including all inherited members. + + + + +
    addNewDictionary(QWidget *parent)XdxfDictDialog [virtual]
    changeSettings(QWidget *parent)XdxfDictDialog [virtual]
    DictDialog(QObject *parent=0) (defined in DictDialog)DictDialog [inline]
    XdxfDictDialog(QObject *parent=0) (defined in XdxfDictDialog)XdxfDictDialog [explicit]
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classXdxfDictDialog.html b/doc/html/classXdxfDictDialog.html new file mode 100644 index 0000000..5789218 --- /dev/null +++ b/doc/html/classXdxfDictDialog.html @@ -0,0 +1,155 @@ + + + + + +mDictionary: XdxfDictDialog Class Reference + + + + + + + + + +
    +

    XdxfDictDialog Class Reference

    +

    Implementation of DictDialog interface for xdxf plugin. +More...

    + +

    #include <XdxfDictDialog.h>

    +
    +Inheritance diagram for XdxfDictDialog:
    +
    +
    + + +DictDialog + +
    +
    + +

    List of all members.

    + + + + + + + +

    Public Member Functions

    XdxfDictDialog (QObject *parent=0)
    SettingsaddNewDictionary (QWidget *parent)
     Shows add new xdxf dictionary dialog and returns settings of new dict.
    void changeSettings (QWidget *parent)
     Shows settings dialog and save new settings in plugin.
    +

    Detailed Description

    +

    Implementation of DictDialog interface for xdxf plugin.

    +

    Member Function Documentation

    + +
    +
    + + + + + + + + + +
    Settings * XdxfDictDialog::addNewDictionary (QWidget *  parent )  [virtual]
    +
    +
    + +

    Shows add new xdxf dictionary dialog and returns settings of new dict.

    +
    Parameters:
    + + +
    parent parent widget on which will be displayed dialog
    +
    +
    + +

    Implements DictDialog.

    + +
    +
    + +
    +
    + + + + + + + + + +
    void XdxfDictDialog::changeSettings (QWidget *  parent )  [virtual]
    +
    +
    + +

    Shows settings dialog and save new settings in plugin.

    +
    Parameters:
    + + +
    parent parent widget on which will be displayed dialog
    +
    +
    + +

    Implements DictDialog.

    + +
    +
    +
    The documentation for this class was generated from the following files: +
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classXdxfDictDialog.png b/doc/html/classXdxfDictDialog.png new file mode 100644 index 0000000000000000000000000000000000000000..077b2b3fde7405cfc15d1d2991bd819202eb7297 GIT binary patch literal 418 zcmeAS@N?(olHy`uVBq!ia0vp^2|ygc!3-oX+B7T&QW60^A+G=b{|7Sv|35H)e!>JG z3ycpOI8c4){}UjWqa?^L7$^+}S5Ji)F)%P1db&7Bl`pDcTE4ezdeM&4tJ@gg0o_pX-nPpm=sUyT#GWg)4yQOTyk(ubw&vaj zu8zte)DNPxGAd8+t?@s3{VD7S3j3^P6 + + + + +mDictionary: Member List + + + + + + + + + +
    +

    XdxfLoadDialog Member List

    This is the complete list of members for XdxfLoadDialog, including all inherited members. + + + + +
    dicitonaryFilePath()XdxfLoadDialog
    generateCache()XdxfLoadDialog
    getSettings(QWidget *parent)XdxfLoadDialog [static]
    XdxfLoadDialog(QWidget *parent=0) (defined in XdxfLoadDialog)XdxfLoadDialog [explicit]
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classXdxfLoadDialog.html b/doc/html/classXdxfLoadDialog.html new file mode 100644 index 0000000..0fec8a6 --- /dev/null +++ b/doc/html/classXdxfLoadDialog.html @@ -0,0 +1,115 @@ + + + + + +mDictionary: XdxfLoadDialog Class Reference + + + + + + + + + +
    +

    XdxfLoadDialog Class Reference

    +

    Displays dialog which allow user to add new xdxf dictionary. +More...

    + +

    #include <XdxfLoadDialog.h>

    + +

    List of all members.

    + + + + + + + + + + +

    Public Member Functions

    XdxfLoadDialog (QWidget *parent=0)
    +QString dicitonaryFilePath ()
     Returns choosen by user dictionary file path.
    +bool generateCache ()
     Returns if user want to cache dictionary.

    Static Public Member Functions

    static SettingsgetSettings (QWidget *parent)
     Displays dialog and returns settings of new dictionary.
    +

    Detailed Description

    +

    Displays dialog which allow user to add new xdxf dictionary.

    +

    Member Function Documentation

    + +
    +
    + + + + + + + + + +
    Settings * XdxfLoadDialog::getSettings (QWidget *  parent )  [static]
    +
    +
    + +

    Displays dialog and returns settings of new dictionary.

    +
    Returns:
    Setting object containing new dictionary settings or NULL in case which user cancel dialog
    + +
    +
    +
    The documentation for this class was generated from the following files: +
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classXdxfPlugin-members.html b/doc/html/classXdxfPlugin-members.html new file mode 100644 index 0000000..680adf7 --- /dev/null +++ b/doc/html/classXdxfPlugin-members.html @@ -0,0 +1,84 @@ + + + + + +mDictionary: Member List + + + + + + + + + +
    +

    XdxfPlugin Member List

    This is the complete list of members for XdxfPlugin, including all inherited members. + + + + + + + + + + + + + + + + + +
    CommonDictInterface(QObject *parent=0) (defined in CommonDictInterface)CommonDictInterface [inline]
    dictDialog()XdxfPlugin [virtual]
    getNew(const Settings *) const XdxfPlugin [virtual]
    hash() const XdxfPlugin [virtual]
    infoNote() const XdxfPlugin [virtual]
    isAvailable() const XdxfPlugin [virtual]
    langFrom() const XdxfPlugin [virtual]
    langTo() const XdxfPlugin [virtual]
    loaded(CommonDictInterface *)CommonDictInterface [signal]
    name() const XdxfPlugin [virtual]
    search(QString key)XdxfPlugin [virtual]
    searchWordList(QString word, int limit=0)XdxfPlugin [virtual, slot]
    setHash(uint)XdxfPlugin [virtual]
    settings()XdxfPlugin [virtual]
    stop()XdxfPlugin [virtual, slot]
    type() const XdxfPlugin [virtual]
    XdxfPlugin(QObject *parent=0) (defined in XdxfPlugin)XdxfPlugin
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classXdxfPlugin.html b/doc/html/classXdxfPlugin.html new file mode 100644 index 0000000..1c2d234 --- /dev/null +++ b/doc/html/classXdxfPlugin.html @@ -0,0 +1,170 @@ + + + + + +mDictionary: XdxfPlugin Class Reference + + + + + + + + + +
    +

    XdxfPlugin Class Reference

    +Inheritance diagram for XdxfPlugin:
    +
    +
    + + +CommonDictInterface + +
    +
    + +

    List of all members.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Public Slots

    QList< Translation * > searchWordList (QString word, int limit=0)
     performs search in dictionary
    +void stop ()
     stop current operation

    Public Member Functions

    XdxfPlugin (QObject *parent=0)
    +QString langFrom () const
     returns source language code iso 639-2
    +QString langTo () const
     returns destination language code iso 639-2
    +QString name () const
     returns dictionary name (like "old english" or so)
    +QString type () const
     returns dictionary type (xdxf, google translate, etc)
    +QString infoNote () const
     returns information about dictionary in html (name, authors, etc)
    +DictDialogdictDialog ()
     returns DictDialog object that creates dialogs for adding new dictionary and change plugin settings
    +CommonDictInterfacegetNew (const Settings *) const
     returns new, clean copy of plugin with setting set as in Settings*
    +bool isAvailable () const
     returns whether plugin can start searching
    +QString search (QString key)
     returns a description of a word given by a QString
    +uint hash () const
     returns a unique hash for a dictionary
    +void setHash (uint)
     set unique value (unique for every dictionary not plugin)
    +Settingssettings ()
     returns current plugin settings
    +

    Member Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    QList< Translation * > XdxfPlugin::searchWordList (QString  word,
    int  limit = 0 
    ) [virtual, slot]
    +
    +
    + +

    performs search in dictionary

    +
    Parameters:
    + + + +
    word word to search in dictionary
    limit limit on number of results
    +
    +
    +

    After finishing search it has to emit

    +
    See also:
    CommonDictInterface:finalTranslation finalTranslation
    + +

    Implements CommonDictInterface.

    + +
    +
    +
    The documentation for this class was generated from the following files: +
    + + + + +
    + +
    + +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
    + + diff --git a/doc/html/classXdxfPlugin.png b/doc/html/classXdxfPlugin.png new file mode 100644 index 0000000000000000000000000000000000000000..ce224728f5f856ea869a4157ac4ce4ecd4f2ef3d GIT binary patch literal 485 zcmeAS@N?(olHy`uVBq!ia0vp^EkGQ=!3-qdo9eCsQW60^A+G=b{|7Sv|35H)e!>JG z3ycpOI8c4){}UjWqa?^L7$^+}S5Ji)F)%Qec)B=-R4~4sdw0_z1)i43IS>EJ-{d~Q zf1&w{NA$5sw^k>oeQmt=+OD(d?s@dMSD;10f#JX&in$7lY$ z5_t6Da!K9O87qEWb1xHbnbYK@As@8(&1>U__ji8!67+WUV;&cCQ=7i?vo=&a72gp2 z@g(efOUM4J>o-rBd$%NBcF#6WM-Hbyyc-?4?{D9d&_BPyBa^vHRw3wCLlQSf7`q|| zP+Fi#phbZN%sgY3bAf4|zp5g~NBfSPV4bs!C$@(AhUs}5KYYBR+3!)zne~bcg(o!& z1d=A7mQz$n=*tZg7P4#+y5+i7e(uSfwq>oEn>6yZnXkHBm(5D`Rg>aK-XnA9_?!O6 zbsRr;pN!=V>`pXn5pD@}58uvuKJ<82;yj%{?d#vZ{J!5rcxT#AeXoxAh8qj^GBVzk UUcnw21d2!oPgg&ebxsLQ0B^_AZvX%Q literal 0 HcmV?d00001 diff --git a/doc/html/classes.html b/doc/html/classes.html index abb39cc..45289c9 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -44,16 +44,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    -

    Class Index

    B | C | M | S | T | U | W
    +

    Class Index

    B | C | D | M | S | T | W | X
      B  
    -
      M  
    -
    MenuWidget   
      T  
    -
    Ui_MainWindow   
    Backbone   MainWindow   
      S  
    -
    Translation   
      W  
    -
      C  
    -
    MainWindow (Ui)   SearchBarWidget   TranslationWidget   WordListWidget   
    CommonDictInterface   MenuTabWidget   Settings   
      U  
    -
    B | C | M | S | T | U | W
    +
    DictDialog   
      S  
    +
    Translation   
      X  
    +
    Backbone   
      M  
    +
    SearchBarWidget   TranslationWidget   XdxfDictDialog   
      C  
    +
    MainWindow   Settings   TranslationXdxf   XdxfLoadDialog   
    CommonDictInterface   MenuTabWidget   
      T  
    +
      W  
    +
    XdxfPlugin   
      D  
    +
    MenuWidget   Testowanie   WordListWidget   
    B | C | D | M | S | T | W | X
    -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/files.html b/doc/html/files.html index be9af80..33cafa9 100644 --- a/doc/html/files.html +++ b/doc/html/files.html @@ -45,15 +45,20 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    File List

    Here is a list of all documented files with brief descriptions: + + - + + + +
    backbone.h [code]
    CommonDictInterface.h [code]
    DictDialog.h [code]
    MainWindow.h [code]
    MenuTabWidget.h [code]
    MenuWidget.h [code]
    SearchBarWidget.h [code]
    settings.h [code]
    test.h [code]
    translation.h [code]
    TranslationWidget.h [code]
    ui_MainWindow.h [code]
    TranslationXdxf.h [code]
    WordListWidget.h [code]
    XdxfDictDialog.h [code]
    XdxfLoadDialog.h [code]
    xdxfplugin.h [code]
    @@ -70,7 +75,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
    diff --git a/doc/html/functions.html b/doc/html/functions.html index b8cdf55..fdc93fd 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -53,7 +53,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • a
  • c
  • d
  • -
  • f
  • g
  • h
  • i
  • @@ -78,6 +77,10 @@ Here is a list of all documented class members with links to the class documenta
  • addDictionary() : Backbone
  • +
  • addNewDictionary() +: XdxfDictDialog +, DictDialog +
  • addSubMenu() : MenuWidget
  • @@ -85,31 +88,39 @@ Here is a list of all documented class members with links to the class documenta

    - c -

    - d -

    - - -

    - f -

    - g -

    - h -

    • hash() : CommonDictInterface +, XdxfPlugin
    • hideEvent() : MenuTabWidget @@ -138,9 +154,11 @@ Here is a list of all documented class members with links to the class documenta

      - i -

      • infoNote() : CommonDictInterface +, XdxfPlugin
      • isAvailable() -: CommonDictInterface +: XdxfPlugin +, CommonDictInterface
      • isSearching() : SearchBarWidget @@ -151,6 +169,7 @@ Here is a list of all documented class members with links to the class documenta

        - k -

        @@ -158,12 +177,11 @@ Here is a list of all documented class members with links to the class documenta

        - l -

        • langFrom() : CommonDictInterface +, XdxfPlugin
        • langTo() -: CommonDictInterface -
        • -
        • loadDialog() -: CommonDictInterface +: XdxfPlugin +, CommonDictInterface
        • loaded() : CommonDictInterface @@ -174,6 +192,7 @@ Here is a list of all documented class members with links to the class documenta

          - n -

          @@ -190,6 +209,9 @@ Here is a list of all documented class members with links to the class documenta
        • ready() : Backbone
        • +
        • removeDictionary() +: Backbone +
        • removeSubMenu() : MenuWidget
        • @@ -202,7 +224,8 @@ Here is a list of all documented class members with links to the class documenta

          - s -

          • search() : Backbone -, CommonDictInterface +, CommonDictInterface +, XdxfPlugin
          • searchForTranslations() : SearchBarWidget @@ -210,20 +233,32 @@ Here is a list of all documented class members with links to the class documenta
          • searchLimit() : Backbone
          • +
          • searchWordList() +: CommonDictInterface +, XdxfPlugin +
          • selectedDictionaries() : Backbone
          • +
          • setDictionaryInfo() +: TranslationXdxf +
          • setEnabled() : SearchBarWidget
          • -
          • settingsDialog() -: CommonDictInterface +
          • setHash() +: CommonDictInterface +, XdxfPlugin +
          • +
          • setKey() +: TranslationXdxf
          • -
          • setType() -: Settings +
          • settings() +: XdxfPlugin +, CommonDictInterface
          • setValue() -: Settings +: Settings
          • show() : TranslationWidget @@ -233,6 +268,7 @@ Here is a list of all documented class members with links to the class documenta
          • stop() : CommonDictInterface +, XdxfPlugin
          • stopSearching() : Backbone @@ -244,20 +280,21 @@ Here is a list of all documented class members with links to the class documenta

            - t -

            - v -

            @@ -275,7 +312,7 @@ Here is a list of all documented class members with links to the class documenta -
            Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
            Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
            diff --git a/doc/html/functions_func.html b/doc/html/functions_func.html index f0d1034..35b92a8 100644 --- a/doc/html/functions_func.html +++ b/doc/html/functions_func.html @@ -53,7 +53,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
          • a
          • c
          • d
          • -
          • f
          • g
          • h
          • i
          • @@ -78,6 +77,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
          • addDictionary() : Backbone
          • +
          • addNewDictionary() +: XdxfDictDialog +, DictDialog +
          • addSubMenu() : MenuWidget
          • @@ -85,31 +88,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

            - c -

            - d -

            - - -

            - f -

            - g -

            - h -

            • hash() : CommonDictInterface +, XdxfPlugin
            • hideEvent() : MenuTabWidget @@ -138,9 +154,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

              - i -

              • infoNote() : CommonDictInterface +, XdxfPlugin
              • isAvailable() -: CommonDictInterface +: XdxfPlugin +, CommonDictInterface
              • isSearching() : SearchBarWidget @@ -151,6 +169,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                - k -

                @@ -158,12 +177,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                - l -

                • langFrom() : CommonDictInterface +, XdxfPlugin
                • langTo() -: CommonDictInterface -
                • -
                • loadDialog() -: CommonDictInterface +: XdxfPlugin +, CommonDictInterface
                • loaded() : CommonDictInterface @@ -174,6 +192,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                  - n -

                  @@ -190,6 +209,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
                • ready() : Backbone
                • +
                • removeDictionary() +: Backbone +
                • removeSubMenu() : MenuWidget
                • @@ -202,7 +224,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                  - s -

                  • search() : Backbone -, CommonDictInterface +, CommonDictInterface +, XdxfPlugin
                  • searchForTranslations() : SearchBarWidget @@ -210,20 +233,32 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
                  • searchLimit() : Backbone
                  • +
                  • searchWordList() +: CommonDictInterface +, XdxfPlugin +
                  • selectedDictionaries() : Backbone
                  • +
                  • setDictionaryInfo() +: TranslationXdxf +
                  • setEnabled() : SearchBarWidget
                  • -
                  • settingsDialog() -: CommonDictInterface +
                  • setHash() +: CommonDictInterface +, XdxfPlugin +
                  • +
                  • setKey() +: TranslationXdxf
                  • -
                  • setType() -: Settings +
                  • settings() +: XdxfPlugin +, CommonDictInterface
                  • setValue() -: Settings +: Settings
                  • show() : TranslationWidget @@ -233,6 +268,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
                  • stop() : CommonDictInterface +, XdxfPlugin
                  • stopSearching() : Backbone @@ -244,20 +280,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

                    - t -

                    - v -

                    @@ -275,7 +312,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
                    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
                    diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html index 0dc109e..8499580 100644 --- a/doc/html/hierarchy.html +++ b/doc/html/hierarchy.html @@ -46,19 +46,27 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); @@ -75,7 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
                    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
                    diff --git a/doc/html/index.html b/doc/html/index.html index c68c653..a0e066f 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -52,7 +52,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); -
                    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
                    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
                    diff --git a/doc/html/search/all_61.html b/doc/html/search/all_61.html index e796ceb..af87dae 100644 --- a/doc/html/search/all_61.html +++ b/doc/html/search/all_61.html @@ -19,9 +19,18 @@ Backbone +
                    - addSubMenu + addSubMenu MenuWidget
                    diff --git a/doc/html/search/all_63.html b/doc/html/search/all_63.html index a6481ec..8cb2303 100644 --- a/doc/html/search/all_63.html +++ b/doc/html/search/all_63.html @@ -7,24 +7,33 @@
                    Loading...
                    +
                    - closeEvent + closeEvent MainWindow
                    Searching...
                    diff --git a/doc/html/search/all_64.html b/doc/html/search/all_64.html index c431301..a69fbf8 100644 --- a/doc/html/search/all_64.html +++ b/doc/html/search/all_64.html @@ -7,10 +7,29 @@
                    Loading...
                    +
                    +
                    + dicitonaryFilePath + XdxfLoadDialog +
                    +
                    +
                    Searching...
                    diff --git a/doc/html/search/all_67.html b/doc/html/search/all_67.html index 78c2255..58ab269 100644 --- a/doc/html/search/all_67.html +++ b/doc/html/search/all_67.html @@ -7,30 +7,45 @@
                    Loading...
                    +
                    +
                    + generateCache + XdxfLoadDialog +
                    +
                    - getHistory + getHistory Backbone
                    - getPlugins + getPlugins Backbone
                    +
                    +
                    + getSettings + XdxfLoadDialog +
                    +
                    Searching...
                    No Matches
                    +
                    + + diff --git a/doc/html/search/classes_64.html b/doc/html/search/classes_64.html new file mode 100644 index 0000000..9b4cb00 --- /dev/null +++ b/doc/html/search/classes_64.html @@ -0,0 +1,25 @@ + + + + + + + +
                    +
                    Loading...
                    +
                    + +
                    +
                    Searching...
                    +
                    No Matches
                    + +
                    + + diff --git a/doc/html/search/classes_6d.html b/doc/html/search/classes_6d.html index 114da9b..3cd5c2a 100644 --- a/doc/html/search/classes_6d.html +++ b/doc/html/search/classes_6d.html @@ -9,23 +9,17 @@
                    Loading...
                    - MainWindow - Ui -
                    -
                    -
                    Searching...
                    diff --git a/doc/html/search/classes_74.html b/doc/html/search/classes_74.html index 0e20fc0..4acfc69 100644 --- a/doc/html/search/classes_74.html +++ b/doc/html/search/classes_74.html @@ -7,14 +7,24 @@
                    Loading...
                    +
                    + +
                    +
                    Searching...
                    diff --git a/doc/html/search/classes_78.html b/doc/html/search/classes_78.html new file mode 100644 index 0000000..731f27d --- /dev/null +++ b/doc/html/search/classes_78.html @@ -0,0 +1,35 @@ + + + + + + + +
                    +
                    Loading...
                    + + +
                    + +
                    +
                    Searching...
                    +
                    No Matches
                    + +
                    + + diff --git a/doc/html/search/functions_61.html b/doc/html/search/functions_61.html index e796ceb..af87dae 100644 --- a/doc/html/search/functions_61.html +++ b/doc/html/search/functions_61.html @@ -19,9 +19,18 @@ Backbone
                    +
                    - addSubMenu + addSubMenu MenuWidget
                    diff --git a/doc/html/search/functions_63.html b/doc/html/search/functions_63.html index 6ed8644..a6129cc 100644 --- a/doc/html/search/functions_63.html +++ b/doc/html/search/functions_63.html @@ -7,18 +7,27 @@
                    Loading...
                    +
                    - closeEvent + closeEvent MainWindow
                    diff --git a/doc/html/search/functions_64.html b/doc/html/search/functions_64.html index c431301..73abf3c 100644 --- a/doc/html/search/functions_64.html +++ b/doc/html/search/functions_64.html @@ -7,10 +7,28 @@
                    Loading...
                    +
                    +
                    + dicitonaryFilePath + XdxfLoadDialog +
                    +
                    +
                    Searching...
                    diff --git a/doc/html/search/functions_67.html b/doc/html/search/functions_67.html index 78c2255..58ab269 100644 --- a/doc/html/search/functions_67.html +++ b/doc/html/search/functions_67.html @@ -7,30 +7,45 @@
                    Loading...
                    +
                    +
                    + generateCache + XdxfLoadDialog +
                    +
                    - getHistory + getHistory Backbone
                    - getPlugins + getPlugins Backbone
                    +
                    +
                    + getSettings + XdxfLoadDialog +
                    +
                    Searching...
                    No Matches
                    + + + + + + + + + + +
                    + +
                    + +
                    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
                    + + diff --git a/doc/html/translation_8h_source.html b/doc/html/translation_8h_source.html index ca005e2..c60d620 100644 --- a/doc/html/translation_8h_source.html +++ b/doc/html/translation_8h_source.html @@ -69,18 +69,25 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); 00027 #include <QString> 00028 #include <QMetaType> 00029 -00031 class Translation { -00032 public: -00034 virtual QString key() const = 0; -00035 -00038 virtual QString dictionaryInfo() const = 0; -00039 -00041 virtual QString toHtml() const = 0; -00042 }; -00043 -00044 Q_DECLARE_METATYPE(Translation*); -00045 -00046 #endif +00030 +00032 class Translation { +00033 public: +00035 virtual QString key() const = 0; +00036 +00037 bool operator==(Translation* translation) { +00038 return this->key()==translation->key(); +00039 } +00040 +00043 virtual QString dictionaryInfo() const = 0; +00044 +00046 virtual QString toHtml() const = 0; +00047 +00048 }; +00049 +00050 Q_DECLARE_METATYPE(Translation*); +00051 Q_DECLARE_METATYPE(QList<Translation*>); +00052 +00053 #endif
                    -
                    Generated on Wed Aug 4 12:02:54 2010 for mDictionary by  +
                    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  doxygen 1.6.3
                    diff --git a/doc/html/xdxfplugin_8h_source.html b/doc/html/xdxfplugin_8h_source.html new file mode 100644 index 0000000..2ed508b --- /dev/null +++ b/doc/html/xdxfplugin_8h_source.html @@ -0,0 +1,152 @@ + + + + + +mDictionary: xdxfplugin.h Source File + + + + + + + + + + + + + +
                    + +
                    + +
                    Generated on Fri Aug 6 11:51:04 2010 for mDictionary by  + +doxygen 1.6.3
                    + + diff --git a/doc/latex/annotated.tex b/doc/latex/annotated.tex index 13869f0..a6adff0 100644 --- a/doc/latex/annotated.tex +++ b/doc/latex/annotated.tex @@ -2,14 +2,18 @@ Here are the classes, structs, unions and interfaces with brief descriptions:\begin{DoxyCompactList} \item\contentsline{section}{\hyperlink{classBackbone}{Backbone} (Inner part of dictionary -\/ glues together GUI and plugins )}{\pageref{classBackbone}}{} \item\contentsline{section}{\hyperlink{classCommonDictInterface}{CommonDictInterface} (Interface for dict engines plugins )}{\pageref{classCommonDictInterface}}{} -\item\contentsline{section}{\hyperlink{classUi_1_1MainWindow}{Ui::MainWindow} }{\pageref{classUi_1_1MainWindow}}{} +\item\contentsline{section}{\hyperlink{classDictDialog}{DictDialog} (Interface for plugin dialog provider )}{\pageref{classDictDialog}}{} \item\contentsline{section}{\hyperlink{classMainWindow}{MainWindow} }{\pageref{classMainWindow}}{} \item\contentsline{section}{\hyperlink{classMenuTabWidget}{MenuTabWidget} (Menu's main widget, which will hold all submenu's widgets )}{\pageref{classMenuTabWidget}}{} \item\contentsline{section}{\hyperlink{classMenuWidget}{MenuWidget} (Displays custom menu with tab widget containing all submenus )}{\pageref{classMenuWidget}}{} \item\contentsline{section}{\hyperlink{classSearchBarWidget}{SearchBarWidget} (Displays search bar )}{\pageref{classSearchBarWidget}}{} \item\contentsline{section}{\hyperlink{classSettings}{Settings} (Plugin specific configuration )}{\pageref{classSettings}}{} +\item\contentsline{section}{\hyperlink{classTestowanie}{Testowanie} }{\pageref{classTestowanie}}{} \item\contentsline{section}{\hyperlink{classTranslation}{Translation} (Keeping raw form of translation to be parsed only when needed )}{\pageref{classTranslation}}{} \item\contentsline{section}{\hyperlink{classTranslationWidget}{TranslationWidget} (Displays translation of word found in dictionaries )}{\pageref{classTranslationWidget}}{} -\item\contentsline{section}{\hyperlink{classUi__MainWindow}{Ui\_\-MainWindow} }{\pageref{classUi__MainWindow}}{} +\item\contentsline{section}{\hyperlink{classTranslationXdxf}{TranslationXdxf} }{\pageref{classTranslationXdxf}}{} \item\contentsline{section}{\hyperlink{classWordListWidget}{WordListWidget} (Displays list of words found in dictionaries )}{\pageref{classWordListWidget}}{} +\item\contentsline{section}{\hyperlink{classXdxfDictDialog}{XdxfDictDialog} (Implementation of \hyperlink{classDictDialog}{DictDialog} interface for xdxf plugin )}{\pageref{classXdxfDictDialog}}{} +\item\contentsline{section}{\hyperlink{classXdxfLoadDialog}{XdxfLoadDialog} (Displays dialog which allow user to add new xdxf dictionary )}{\pageref{classXdxfLoadDialog}}{} +\item\contentsline{section}{\hyperlink{classXdxfPlugin}{XdxfPlugin} }{\pageref{classXdxfPlugin}}{} \end{DoxyCompactList} diff --git a/doc/latex/classBackbone.tex b/doc/latex/classBackbone.tex index a34e23f..3574035 100644 --- a/doc/latex/classBackbone.tex +++ b/doc/latex/classBackbone.tex @@ -39,11 +39,16 @@ void \hyperlink{classBackbone_aa61afbf8ef2e05c0c2a9634fbdccad19}{quit} ()} \label{classBackbone_aa61afbf8ef2e05c0c2a9634fbdccad19} \begin{DoxyCompactList}\small\item\em stops all current activity and kill plugins -\/ be ready to exit \item\end{DoxyCompactList}\item -\hypertarget{classBackbone_a99fb5d8cdf33e7fdca74e9415d615150}{ -void \hyperlink{classBackbone_a99fb5d8cdf33e7fdca74e9415d615150}{translation} (QList$<$ \hyperlink{classTranslation}{Translation} $\ast$ $>$)} -\label{classBackbone_a99fb5d8cdf33e7fdca74e9415d615150} +\hypertarget{classBackbone_a1e78cb315afc4aefb1accae4fd2c865b}{ +void \hyperlink{classBackbone_a1e78cb315afc4aefb1accae4fd2c865b}{translation} ()} +\label{classBackbone_a1e78cb315afc4aefb1accae4fd2c865b} -\begin{DoxyCompactList}\small\item\em Fired when dictionary call finalTranslation(..) with translation ready. \item\end{DoxyCompactList}\end{DoxyCompactItemize} +\begin{DoxyCompactList}\small\item\em Fired when dictionary call finalTranslation(..) with translation ready. \item\end{DoxyCompactList}\item +\hypertarget{classBackbone_a056fc494ed689f253d83fc2366c07931}{ +void \hyperlink{classBackbone_a056fc494ed689f253d83fc2366c07931}{removeDictionary} (\hyperlink{classCommonDictInterface}{CommonDictInterface} $\ast$dict)} +\label{classBackbone_a056fc494ed689f253d83fc2366c07931} + +\begin{DoxyCompactList}\small\item\em Removes given dictionary. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Signals} \begin{DoxyCompactItemize} \item @@ -143,5 +148,4 @@ maximum number of word that plugin could find The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} \item backbone.h\item -backbone.cpp\item -moc\_\-backbone.cpp\end{DoxyCompactItemize} +backbone.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/classCommonDictInterface.eps b/doc/latex/classCommonDictInterface.eps new file mode 100644 index 0000000..de9e325 --- /dev/null +++ b/doc/latex/classCommonDictInterface.eps @@ -0,0 +1,197 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: ClassName +%%Creator: Doxygen +%%CreationDate: Time +%%For: +%Magnification: 1.00 +%%Orientation: Portrait +%%BoundingBox: 0 0 500 285.714 +%%Pages: 0 +%%BeginSetup +%%EndSetup +%%EndComments + +% ----- variables ----- + +/boxwidth 0 def +/boxheight 40 def +/fontheight 24 def +/marginwidth 10 def +/distx 20 def +/disty 40 def +/boundaspect 1.75 def % aspect ratio of the BoundingBox (width/height) +/boundx 500 def +/boundy boundx boundaspect div def +/xspacing 0 def +/yspacing 0 def +/rows 2 def +/cols 1 def +/scalefactor 0 def +/boxfont /Times-Roman findfont fontheight scalefont def + +% ----- procedures ----- + +/dotted { [1 4] 0 setdash } def +/dashed { [5] 0 setdash } def +/solid { [] 0 setdash } def + +/max % result = MAX(arg1,arg2) +{ + /a exch def + /b exch def + a b gt {a} {b} ifelse +} def + +/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) +{ + 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max +} def + +/cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) +{ + /str exch def + /boxwidth boxwidth str stringwidth pop max def +} def + +/box % draws a box with text `arg1' at grid pos (arg2,arg3) +{ gsave + 2 setlinewidth + newpath + exch xspacing mul xoffset add + exch yspacing mul + moveto + boxwidth 0 rlineto + 0 boxheight rlineto + boxwidth neg 0 rlineto + 0 boxheight neg rlineto + closepath + dup stringwidth pop neg boxwidth add 2 div + boxheight fontheight 2 div sub 2 div + rmoveto show stroke + grestore +} def + +/mark +{ newpath + exch xspacing mul xoffset add boxwidth add + exch yspacing mul + moveto + 0 boxheight 4 div rlineto + boxheight neg 4 div boxheight neg 4 div rlineto + closepath + eofill + stroke +} def + +/arrow +{ newpath + moveto + 3 -8 rlineto + -6 0 rlineto + 3 8 rlineto + closepath + eofill + stroke +} def + +/out % draws an output connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight add + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/in % draws an input connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul disty 2 div sub + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/hedge +{ + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight 2 div sub + /y exch def + /x exch def + newpath + x y moveto + boxwidth 2 div distx add 0 rlineto + stroke + 1 eq + { newpath x boxwidth 2 div distx add add y moveto + -8 3 rlineto + 0 -6 rlineto + 8 3 rlineto + closepath + eofill + stroke + } if +} def + +/vedge +{ + /ye exch def + /ys exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add dup + ys yspacing mul boxheight 2 div sub + moveto + ye yspacing mul boxheight 2 div sub + lineto + stroke +} def + +/conn % connections the blocks from col `arg1' to `arg2' of row `arg3' +{ + /ys exch def + /xe exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add + ys yspacing mul disty 2 div sub + moveto + xspacing xe xs sub mul 0 + rlineto + stroke +} def + +% ----- main ------ + +boxfont setfont +1 boundaspect scale +(CommonDictInterface) cw +(XdxfPlugin) cw +/boxwidth boxwidth marginwidth 2 mul add def +/xspacing boxwidth distx add def +/yspacing boxheight disty add def +/scalefactor + boxwidth cols mul distx cols 1 sub mul add + boxheight rows mul disty rows 1 sub mul add boundaspect mul + max def +boundx scalefactor div boundy scalefactor div scale + +% ----- classes ----- + + (CommonDictInterface) 0 1 box + (XdxfPlugin) 0 0 box + +% ----- relations ----- + +solid +1 0 0.25 out +solid +0 0 0.75 in diff --git a/doc/latex/classCommonDictInterface.tex b/doc/latex/classCommonDictInterface.tex index 3dec7ba..3bb8d4f 100644 --- a/doc/latex/classCommonDictInterface.tex +++ b/doc/latex/classCommonDictInterface.tex @@ -11,11 +11,17 @@ Interface for dict engines plugins. {\ttfamily \#include $<$CommonDictInterface.h$>$} +Inheritance diagram for CommonDictInterface:\begin{figure}[H] +\begin{center} +\leavevmode +\includegraphics[height=2cm]{classCommonDictInterface} +\end{center} +\end{figure} \subsection*{Public Slots} \begin{DoxyCompactItemize} \item -virtual void \hyperlink{classCommonDictInterface_a23e1436f452272cf596e76957fe69796}{search} (QString word, int limit)=0 -\begin{DoxyCompactList}\small\item\em performes search in dictionary \item\end{DoxyCompactList}\item +virtual QList$<$ \hyperlink{classTranslation}{Translation} $\ast$ $>$ \hyperlink{classCommonDictInterface_a3ca9313571e0ecab66ce7a7c5d356f4f}{searchWordList} (QString word, int limit)=0 +\begin{DoxyCompactList}\small\item\em performs search in dictionary \item\end{DoxyCompactList}\item \hypertarget{classCommonDictInterface_a017f37eed4270d37cd5df36e546aacc6}{ virtual void \hyperlink{classCommonDictInterface_a017f37eed4270d37cd5df36e546aacc6}{stop} ()=0} \label{classCommonDictInterface_a017f37eed4270d37cd5df36e546aacc6} @@ -24,11 +30,6 @@ virtual void \hyperlink{classCommonDictInterface_a017f37eed4270d37cd5df36e546aac \subsection*{Signals} \begin{DoxyCompactItemize} \item -\hypertarget{classCommonDictInterface_ae66cd415262fa4d3e9bd7bef776c197e}{ -void \hyperlink{classCommonDictInterface_ae66cd415262fa4d3e9bd7bef776c197e}{finalTranslation} (QList$<$ \hyperlink{classTranslation}{Translation} $\ast$ $>$)} -\label{classCommonDictInterface_ae66cd415262fa4d3e9bd7bef776c197e} - -\begin{DoxyCompactList}\small\item\em emit list of finded Translations \item\end{DoxyCompactList}\item \hypertarget{classCommonDictInterface_abeb1426ae67ac8bc43002756b0cc9308}{ void \hyperlink{classCommonDictInterface_abeb1426ae67ac8bc43002756b0cc9308}{loaded} (\hyperlink{classCommonDictInterface}{CommonDictInterface} $\ast$)} \label{classCommonDictInterface_abeb1426ae67ac8bc43002756b0cc9308} @@ -37,6 +38,11 @@ void \hyperlink{classCommonDictInterface_abeb1426ae67ac8bc43002756b0cc9308}{load \subsection*{Public Member Functions} \begin{DoxyCompactItemize} \item +\hypertarget{classCommonDictInterface_a8c769e72d6832629d73c987ee9bb5840}{ +{\bfseries CommonDictInterface} (QObject $\ast$parent=0)} +\label{classCommonDictInterface_a8c769e72d6832629d73c987ee9bb5840} + +\item \hypertarget{classCommonDictInterface_a7f8b41dbaa0a5bdcb500c048ca501246}{ virtual QString \hyperlink{classCommonDictInterface_a7f8b41dbaa0a5bdcb500c048ca501246}{langFrom} () const =0} \label{classCommonDictInterface_a7f8b41dbaa0a5bdcb500c048ca501246} @@ -62,13 +68,11 @@ virtual QString \hyperlink{classCommonDictInterface_aedd525079e04426d5cad9f6b9e1 \label{classCommonDictInterface_aedd525079e04426d5cad9f6b9e117191} \begin{DoxyCompactList}\small\item\em returns information about dictionary in html (name, authors, etc) \item\end{DoxyCompactList}\item -virtual QDialog $\ast$ \hyperlink{classCommonDictInterface_a501cea622d6cb2344592bd06dcae0ac0}{loadDialog} ()=0 -\item -\hypertarget{classCommonDictInterface_a4771687035b2c4cb02ee37532b621907}{ -virtual QDialog $\ast$ \hyperlink{classCommonDictInterface_a4771687035b2c4cb02ee37532b621907}{settingsDialog} ()=0} -\label{classCommonDictInterface_a4771687035b2c4cb02ee37532b621907} +\hypertarget{classCommonDictInterface_adbbe216cdb93e0324cf4a6946e8e7af1}{ +virtual \hyperlink{classDictDialog}{DictDialog} $\ast$ \hyperlink{classCommonDictInterface_adbbe216cdb93e0324cf4a6946e8e7af1}{dictDialog} ()=0} +\label{classCommonDictInterface_adbbe216cdb93e0324cf4a6946e8e7af1} -\begin{DoxyCompactList}\small\item\em return dialog with dictionary settings \item\end{DoxyCompactList}\item +\begin{DoxyCompactList}\small\item\em returns \hyperlink{classDictDialog}{DictDialog} object that creates dialogs for adding new dictionary and change plugin settings \item\end{DoxyCompactList}\item \hypertarget{classCommonDictInterface_a319be492dd57d6e2828da2424cb57bb0}{ virtual \hyperlink{classCommonDictInterface}{CommonDictInterface} $\ast$ \hyperlink{classCommonDictInterface_a319be492dd57d6e2828da2424cb57bb0}{getNew} (const \hyperlink{classSettings}{Settings} $\ast$) const =0} \label{classCommonDictInterface_a319be492dd57d6e2828da2424cb57bb0} @@ -79,8 +83,23 @@ virtual bool \hyperlink{classCommonDictInterface_a72115c2e4a6c6e57d8adfbc240a2e9 \label{classCommonDictInterface_a72115c2e4a6c6e57d8adfbc240a2e942} \begin{DoxyCompactList}\small\item\em returns whether plugin can start searching \item\end{DoxyCompactList}\item +\hypertarget{classCommonDictInterface_af40b38d2c1eafd7f5dd70d29e8333f81}{ +virtual QString \hyperlink{classCommonDictInterface_af40b38d2c1eafd7f5dd70d29e8333f81}{search} (QString key)=0} +\label{classCommonDictInterface_af40b38d2c1eafd7f5dd70d29e8333f81} + +\begin{DoxyCompactList}\small\item\em returns the actual translation of a word given in key \item\end{DoxyCompactList}\item virtual uint \hyperlink{classCommonDictInterface_a0b58ce9f287e73155b3b4c43e81ae65a}{hash} () const =0 -\end{DoxyCompactItemize} +\item +\hypertarget{classCommonDictInterface_a3ccd6318ae40727de5e66a92cf2fc95e}{ +virtual void \hyperlink{classCommonDictInterface_a3ccd6318ae40727de5e66a92cf2fc95e}{setHash} (uint)=0} +\label{classCommonDictInterface_a3ccd6318ae40727de5e66a92cf2fc95e} + +\begin{DoxyCompactList}\small\item\em set unique value (unique for every dictionary not plugin) \item\end{DoxyCompactList}\item +\hypertarget{classCommonDictInterface_a7a20fee14fa5255a1e34e213c93afbe7}{ +virtual \hyperlink{classSettings}{Settings} $\ast$ \hyperlink{classCommonDictInterface_a7a20fee14fa5255a1e34e213c93afbe7}{settings} ()=0} +\label{classCommonDictInterface_a7a20fee14fa5255a1e34e213c93afbe7} + +\begin{DoxyCompactList}\small\item\em returns current plugin settings \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Detailed Description} @@ -95,29 +114,31 @@ Interface for dict engines plugins. \begin{DoxyReturn}{Returns} unique value (unique for every dictionary not plugin \end{DoxyReturn} -\hypertarget{classCommonDictInterface_a501cea622d6cb2344592bd06dcae0ac0}{ -\index{CommonDictInterface@{CommonDictInterface}!loadDialog@{loadDialog}} -\index{loadDialog@{loadDialog}!CommonDictInterface@{CommonDictInterface}} -\subsubsection[{loadDialog}]{\setlength{\rightskip}{0pt plus 5cm}virtual QDialog$\ast$ CommonDictInterface::loadDialog ()\hspace{0.3cm}{\ttfamily \mbox{[}pure virtual\mbox{]}}}} -\label{classCommonDictInterface_a501cea622d6cb2344592bd06dcae0ac0} -return dialog that creates new dictionary and fills necesary options QDialog should returns Setting$\ast$ object after being showed \hypertarget{classCommonDictInterface_a23e1436f452272cf596e76957fe69796}{ -\index{CommonDictInterface@{CommonDictInterface}!search@{search}} -\index{search@{search}!CommonDictInterface@{CommonDictInterface}} -\subsubsection[{search}]{\setlength{\rightskip}{0pt plus 5cm}virtual void CommonDictInterface::search (QString {\em word}, \/ int {\em limit})\hspace{0.3cm}{\ttfamily \mbox{[}pure virtual, slot\mbox{]}}}} -\label{classCommonDictInterface_a23e1436f452272cf596e76957fe69796} -performes search in dictionary +Implemented in \hyperlink{classXdxfPlugin_a5e83f29b2eff00598470bb4b82961973}{XdxfPlugin}. + +\hypertarget{classCommonDictInterface_a3ca9313571e0ecab66ce7a7c5d356f4f}{ +\index{CommonDictInterface@{CommonDictInterface}!searchWordList@{searchWordList}} +\index{searchWordList@{searchWordList}!CommonDictInterface@{CommonDictInterface}} +\subsubsection[{searchWordList}]{\setlength{\rightskip}{0pt plus 5cm}virtual QList$<${\bf Translation}$\ast$$>$ CommonDictInterface::searchWordList (QString {\em word}, \/ int {\em limit})\hspace{0.3cm}{\ttfamily \mbox{[}pure virtual, slot\mbox{]}}}} +\label{classCommonDictInterface_a3ca9313571e0ecab66ce7a7c5d356f4f} + + +performs search in dictionary \begin{DoxyParams}{Parameters} \item[{\em word}]word to search in dictionary \item[{\em limit}]limit on number of results\end{DoxyParams} After finishing search it have to emit \begin{DoxySeeAlso}{See also} -\hyperlink{classCommonDictInterface}{CommonDictInterface}:\hyperlink{classCommonDictInterface_ae66cd415262fa4d3e9bd7bef776c197e}{finalTranslation} \hyperlink{classCommonDictInterface_ae66cd415262fa4d3e9bd7bef776c197e}{finalTranslation} +\hyperlink{classCommonDictInterface}{CommonDictInterface}:finalTranslation finalTranslation \end{DoxySeeAlso} -The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} +Implemented in \hyperlink{classXdxfPlugin_a538581955ba04d1316f1a8befab4d561}{XdxfPlugin}. + + + +The documentation for this class was generated from the following file:\begin{DoxyCompactItemize} \item -CommonDictInterface.h\item -moc\_\-CommonDictInterface.cpp\end{DoxyCompactItemize} +CommonDictInterface.h\end{DoxyCompactItemize} diff --git a/doc/latex/classDictDialog.eps b/doc/latex/classDictDialog.eps new file mode 100644 index 0000000..244e118 --- /dev/null +++ b/doc/latex/classDictDialog.eps @@ -0,0 +1,197 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: ClassName +%%Creator: Doxygen +%%CreationDate: Time +%%For: +%Magnification: 1.00 +%%Orientation: Portrait +%%BoundingBox: 0 0 500 384.615 +%%Pages: 0 +%%BeginSetup +%%EndSetup +%%EndComments + +% ----- variables ----- + +/boxwidth 0 def +/boxheight 40 def +/fontheight 24 def +/marginwidth 10 def +/distx 20 def +/disty 40 def +/boundaspect 1.3 def % aspect ratio of the BoundingBox (width/height) +/boundx 500 def +/boundy boundx boundaspect div def +/xspacing 0 def +/yspacing 0 def +/rows 2 def +/cols 1 def +/scalefactor 0 def +/boxfont /Times-Roman findfont fontheight scalefont def + +% ----- procedures ----- + +/dotted { [1 4] 0 setdash } def +/dashed { [5] 0 setdash } def +/solid { [] 0 setdash } def + +/max % result = MAX(arg1,arg2) +{ + /a exch def + /b exch def + a b gt {a} {b} ifelse +} def + +/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) +{ + 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max +} def + +/cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) +{ + /str exch def + /boxwidth boxwidth str stringwidth pop max def +} def + +/box % draws a box with text `arg1' at grid pos (arg2,arg3) +{ gsave + 2 setlinewidth + newpath + exch xspacing mul xoffset add + exch yspacing mul + moveto + boxwidth 0 rlineto + 0 boxheight rlineto + boxwidth neg 0 rlineto + 0 boxheight neg rlineto + closepath + dup stringwidth pop neg boxwidth add 2 div + boxheight fontheight 2 div sub 2 div + rmoveto show stroke + grestore +} def + +/mark +{ newpath + exch xspacing mul xoffset add boxwidth add + exch yspacing mul + moveto + 0 boxheight 4 div rlineto + boxheight neg 4 div boxheight neg 4 div rlineto + closepath + eofill + stroke +} def + +/arrow +{ newpath + moveto + 3 -8 rlineto + -6 0 rlineto + 3 8 rlineto + closepath + eofill + stroke +} def + +/out % draws an output connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight add + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/in % draws an input connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul disty 2 div sub + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/hedge +{ + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight 2 div sub + /y exch def + /x exch def + newpath + x y moveto + boxwidth 2 div distx add 0 rlineto + stroke + 1 eq + { newpath x boxwidth 2 div distx add add y moveto + -8 3 rlineto + 0 -6 rlineto + 8 3 rlineto + closepath + eofill + stroke + } if +} def + +/vedge +{ + /ye exch def + /ys exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add dup + ys yspacing mul boxheight 2 div sub + moveto + ye yspacing mul boxheight 2 div sub + lineto + stroke +} def + +/conn % connections the blocks from col `arg1' to `arg2' of row `arg3' +{ + /ys exch def + /xe exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add + ys yspacing mul disty 2 div sub + moveto + xspacing xe xs sub mul 0 + rlineto + stroke +} def + +% ----- main ------ + +boxfont setfont +1 boundaspect scale +(DictDialog) cw +(XdxfDictDialog) cw +/boxwidth boxwidth marginwidth 2 mul add def +/xspacing boxwidth distx add def +/yspacing boxheight disty add def +/scalefactor + boxwidth cols mul distx cols 1 sub mul add + boxheight rows mul disty rows 1 sub mul add boundaspect mul + max def +boundx scalefactor div boundy scalefactor div scale + +% ----- classes ----- + + (DictDialog) 0 1 box + (XdxfDictDialog) 0 0 box + +% ----- relations ----- + +solid +1 0 0.25 out +solid +0 0 0.75 in diff --git a/doc/latex/classDictDialog.tex b/doc/latex/classDictDialog.tex new file mode 100644 index 0000000..0b772e2 --- /dev/null +++ b/doc/latex/classDictDialog.tex @@ -0,0 +1,74 @@ +\hypertarget{classDictDialog}{ +\section{DictDialog Class Reference} +\label{classDictDialog}\index{DictDialog@{DictDialog}} +} + + +Interface for plugin dialog provider. + + + + +{\ttfamily \#include $<$DictDialog.h$>$} + +Inheritance diagram for DictDialog:\begin{figure}[H] +\begin{center} +\leavevmode +\includegraphics[height=2cm]{classDictDialog} +\end{center} +\end{figure} +\subsection*{Public Member Functions} +\begin{DoxyCompactItemize} +\item +\hypertarget{classDictDialog_a372ea21c136248c138e8887ed4ffd7aa}{ +{\bfseries DictDialog} (QObject $\ast$parent=0)} +\label{classDictDialog_a372ea21c136248c138e8887ed4ffd7aa} + +\item +virtual \hyperlink{classSettings}{Settings} $\ast$ \hyperlink{classDictDialog_abe4058f66b1ef4314e518943d0c0ecd9}{addNewDictionary} (QWidget $\ast$parent=0)=0 +\begin{DoxyCompactList}\small\item\em Shows add new dictionary dialog and returns settings of new dict. \item\end{DoxyCompactList}\item +virtual void \hyperlink{classDictDialog_a68c3518a232a3f6f722cc75ff8ad04c2}{changeSettings} (QWidget $\ast$parent=0)=0 +\begin{DoxyCompactList}\small\item\em Shows settings dialog and save new settings in plugin. \item\end{DoxyCompactList}\end{DoxyCompactItemize} + + +\subsection{Detailed Description} +Interface for plugin dialog provider. + +\subsection{Member Function Documentation} +\hypertarget{classDictDialog_abe4058f66b1ef4314e518943d0c0ecd9}{ +\index{DictDialog@{DictDialog}!addNewDictionary@{addNewDictionary}} +\index{addNewDictionary@{addNewDictionary}!DictDialog@{DictDialog}} +\subsubsection[{addNewDictionary}]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf Settings}$\ast$ DictDialog::addNewDictionary (QWidget $\ast$ {\em parent} = {\ttfamily 0})\hspace{0.3cm}{\ttfamily \mbox{[}pure virtual\mbox{]}}}} +\label{classDictDialog_abe4058f66b1ef4314e518943d0c0ecd9} + + +Shows add new dictionary dialog and returns settings of new dict. + + +\begin{DoxyParams}{Parameters} +\item[{\em parent}]parent widget on which will be displayed dialog \end{DoxyParams} + + +Implemented in \hyperlink{classXdxfDictDialog_a3b8f10c135bef87c7b8f6e0eda812f84}{XdxfDictDialog}. + +\hypertarget{classDictDialog_a68c3518a232a3f6f722cc75ff8ad04c2}{ +\index{DictDialog@{DictDialog}!changeSettings@{changeSettings}} +\index{changeSettings@{changeSettings}!DictDialog@{DictDialog}} +\subsubsection[{changeSettings}]{\setlength{\rightskip}{0pt plus 5cm}virtual void DictDialog::changeSettings (QWidget $\ast$ {\em parent} = {\ttfamily 0})\hspace{0.3cm}{\ttfamily \mbox{[}pure virtual\mbox{]}}}} +\label{classDictDialog_a68c3518a232a3f6f722cc75ff8ad04c2} + + +Shows settings dialog and save new settings in plugin. + + +\begin{DoxyParams}{Parameters} +\item[{\em parent}]parent widget on which will be displayed dialog \end{DoxyParams} + + +Implemented in \hyperlink{classXdxfDictDialog_ae321a5d6dead9003e777cc776fb793a3}{XdxfDictDialog}. + + + +The documentation for this class was generated from the following file:\begin{DoxyCompactItemize} +\item +DictDialog.h\end{DoxyCompactItemize} diff --git a/doc/latex/classMainWindow.tex b/doc/latex/classMainWindow.tex index 896cc0f..cb36eb8 100644 --- a/doc/latex/classMainWindow.tex +++ b/doc/latex/classMainWindow.tex @@ -39,5 +39,4 @@ void \hyperlink{classMainWindow_a38edb88d43e844aca9d2e762c8706565}{closeEvent} ( The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} \item MainWindow.h\item -MainWindow.cpp\item -moc\_\-MainWindow.cpp\end{DoxyCompactItemize} +MainWindow.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/classSearchBarWidget.tex b/doc/latex/classSearchBarWidget.tex index fcf2117..ad406b5 100644 --- a/doc/latex/classSearchBarWidget.tex +++ b/doc/latex/classSearchBarWidget.tex @@ -15,7 +15,12 @@ Displays search bar. \begin{DoxyCompactItemize} \item void \hyperlink{classSearchBarWidget_a2513fe29e47f6f22f79e54cfa7338beb}{setEnabled} (bool enabled=true) -\begin{DoxyCompactList}\small\item\em Enable or disable search word line edit and history buttons. \item\end{DoxyCompactList}\end{DoxyCompactItemize} +\begin{DoxyCompactList}\small\item\em Enable or disable search word line edit and history buttons. \item\end{DoxyCompactList}\item +\hypertarget{classSearchBarWidget_a49a0c851c9512b53544b72ddc9e687dd}{ +void {\bfseries searchFinished} ()} +\label{classSearchBarWidget_a49a0c851c9512b53544b72ddc9e687dd} + +\end{DoxyCompactItemize} \subsection*{Signals} \begin{DoxyCompactItemize} \item @@ -68,5 +73,4 @@ While searching it disables only history button and line edit. Search/Stop butto The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} \item SearchBarWidget.h\item -SearchBarWidget.cpp\item -moc\_\-SearchBarWidget.cpp\end{DoxyCompactItemize} +SearchBarWidget.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/classSettings.tex b/doc/latex/classSettings.tex index 673fde8..6f565b0 100644 --- a/doc/latex/classSettings.tex +++ b/doc/latex/classSettings.tex @@ -14,39 +14,24 @@ Plugin specific configuration. \subsection*{Public Member Functions} \begin{DoxyCompactItemize} \item -virtual QString \hyperlink{classSettings_a1e05f3990fa55e2ed6548387f21a3baf}{value} (const QString key) const =0 +QString \hyperlink{classSettings_ad20672a43255a3bec46b1bc085f2f6eb}{value} (const QString key) const \item -\hypertarget{classSettings_ad2314c4151b4db1dcf7e4d346a2b3992}{ -virtual void \hyperlink{classSettings_ad2314c4151b4db1dcf7e4d346a2b3992}{setValue} (const QString key, const QString value)=0} -\label{classSettings_ad2314c4151b4db1dcf7e4d346a2b3992} +\hypertarget{classSettings_ab7388c1a9a18e3afd79de5393ca9803a}{ +void \hyperlink{classSettings_ab7388c1a9a18e3afd79de5393ca9803a}{setValue} (const QString key, const QString value)} +\label{classSettings_ab7388c1a9a18e3afd79de5393ca9803a} -\begin{DoxyCompactList}\small\item\em sets key to value \item\end{DoxyCompactList}\item -virtual \hyperlink{classCommonDictInterface}{CommonDictInterface} $\ast$ \hyperlink{classSettings_a8bbfa865b88d43881964328a7e0405dd}{type} () const =0 -\item -\hypertarget{classSettings_ab55ccc5c8e772682c8ab488c625abc21}{ -virtual void \hyperlink{classSettings_ab55ccc5c8e772682c8ab488c625abc21}{setType} (const \hyperlink{classCommonDictInterface}{CommonDictInterface} $\ast$)=0} -\label{classSettings_ab55ccc5c8e772682c8ab488c625abc21} - -\begin{DoxyCompactList}\small\item\em sets settings type to given dictionary \item\end{DoxyCompactList}\end{DoxyCompactItemize} +\begin{DoxyCompactList}\small\item\em sets key to value \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Detailed Description} Plugin specific configuration. \subsection{Member Function Documentation} -\hypertarget{classSettings_a8bbfa865b88d43881964328a7e0405dd}{ -\index{Settings@{Settings}!type@{type}} -\index{type@{type}!Settings@{Settings}} -\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf CommonDictInterface}$\ast$ Settings::type () const\hspace{0.3cm}{\ttfamily \mbox{[}pure virtual\mbox{]}}}} -\label{classSettings_a8bbfa865b88d43881964328a7e0405dd} -\begin{DoxyReturn}{Returns} -dict \hyperlink{classCommonDictInterface}{CommonDictInterface} -\end{DoxyReturn} -\hypertarget{classSettings_a1e05f3990fa55e2ed6548387f21a3baf}{ +\hypertarget{classSettings_ad20672a43255a3bec46b1bc085f2f6eb}{ \index{Settings@{Settings}!value@{value}} \index{value@{value}!Settings@{Settings}} -\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}virtual QString Settings::value (const QString {\em key}) const\hspace{0.3cm}{\ttfamily \mbox{[}pure virtual\mbox{]}}}} -\label{classSettings_a1e05f3990fa55e2ed6548387f21a3baf} +\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}QString Settings::value (const QString {\em key}) const\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}} +\label{classSettings_ad20672a43255a3bec46b1bc085f2f6eb} value fo given key \begin{DoxyParams}{Parameters} \item[{\em key}]\end{DoxyParams} diff --git a/doc/latex/classTestowanie.tex b/doc/latex/classTestowanie.tex new file mode 100644 index 0000000..076a18f --- /dev/null +++ b/doc/latex/classTestowanie.tex @@ -0,0 +1,10 @@ +\hypertarget{classTestowanie}{ +\section{Testowanie Class Reference} +\label{classTestowanie}\index{Testowanie@{Testowanie}} +} + + +The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} +\item +test.h\item +test.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/classTranslation.eps b/doc/latex/classTranslation.eps new file mode 100644 index 0000000..2ce63db --- /dev/null +++ b/doc/latex/classTranslation.eps @@ -0,0 +1,197 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: ClassName +%%Creator: Doxygen +%%CreationDate: Time +%%For: +%Magnification: 1.00 +%%Orientation: Portrait +%%BoundingBox: 0 0 500 370.37 +%%Pages: 0 +%%BeginSetup +%%EndSetup +%%EndComments + +% ----- variables ----- + +/boxwidth 0 def +/boxheight 40 def +/fontheight 24 def +/marginwidth 10 def +/distx 20 def +/disty 40 def +/boundaspect 1.35 def % aspect ratio of the BoundingBox (width/height) +/boundx 500 def +/boundy boundx boundaspect div def +/xspacing 0 def +/yspacing 0 def +/rows 2 def +/cols 1 def +/scalefactor 0 def +/boxfont /Times-Roman findfont fontheight scalefont def + +% ----- procedures ----- + +/dotted { [1 4] 0 setdash } def +/dashed { [5] 0 setdash } def +/solid { [] 0 setdash } def + +/max % result = MAX(arg1,arg2) +{ + /a exch def + /b exch def + a b gt {a} {b} ifelse +} def + +/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) +{ + 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max +} def + +/cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) +{ + /str exch def + /boxwidth boxwidth str stringwidth pop max def +} def + +/box % draws a box with text `arg1' at grid pos (arg2,arg3) +{ gsave + 2 setlinewidth + newpath + exch xspacing mul xoffset add + exch yspacing mul + moveto + boxwidth 0 rlineto + 0 boxheight rlineto + boxwidth neg 0 rlineto + 0 boxheight neg rlineto + closepath + dup stringwidth pop neg boxwidth add 2 div + boxheight fontheight 2 div sub 2 div + rmoveto show stroke + grestore +} def + +/mark +{ newpath + exch xspacing mul xoffset add boxwidth add + exch yspacing mul + moveto + 0 boxheight 4 div rlineto + boxheight neg 4 div boxheight neg 4 div rlineto + closepath + eofill + stroke +} def + +/arrow +{ newpath + moveto + 3 -8 rlineto + -6 0 rlineto + 3 8 rlineto + closepath + eofill + stroke +} def + +/out % draws an output connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight add + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/in % draws an input connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul disty 2 div sub + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/hedge +{ + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight 2 div sub + /y exch def + /x exch def + newpath + x y moveto + boxwidth 2 div distx add 0 rlineto + stroke + 1 eq + { newpath x boxwidth 2 div distx add add y moveto + -8 3 rlineto + 0 -6 rlineto + 8 3 rlineto + closepath + eofill + stroke + } if +} def + +/vedge +{ + /ye exch def + /ys exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add dup + ys yspacing mul boxheight 2 div sub + moveto + ye yspacing mul boxheight 2 div sub + lineto + stroke +} def + +/conn % connections the blocks from col `arg1' to `arg2' of row `arg3' +{ + /ys exch def + /xe exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add + ys yspacing mul disty 2 div sub + moveto + xspacing xe xs sub mul 0 + rlineto + stroke +} def + +% ----- main ------ + +boxfont setfont +1 boundaspect scale +(Translation) cw +(TranslationXdxf) cw +/boxwidth boxwidth marginwidth 2 mul add def +/xspacing boxwidth distx add def +/yspacing boxheight disty add def +/scalefactor + boxwidth cols mul distx cols 1 sub mul add + boxheight rows mul disty rows 1 sub mul add boundaspect mul + max def +boundx scalefactor div boundy scalefactor div scale + +% ----- classes ----- + + (Translation) 0 1 box + (TranslationXdxf) 0 0 box + +% ----- relations ----- + +solid +1 0 0.25 out +solid +0 0 0.75 in diff --git a/doc/latex/classTranslation.tex b/doc/latex/classTranslation.tex index 80a51ae..3146d7e 100644 --- a/doc/latex/classTranslation.tex +++ b/doc/latex/classTranslation.tex @@ -11,11 +11,22 @@ Keeping raw form of translation to be parsed only when needed. {\ttfamily \#include $<$translation.h$>$} +Inheritance diagram for Translation:\begin{figure}[H] +\begin{center} +\leavevmode +\includegraphics[height=2cm]{classTranslation} +\end{center} +\end{figure} \subsection*{Public Member Functions} \begin{DoxyCompactItemize} \item virtual QString \hyperlink{classTranslation_ad79cf5dcb94a31865ec3c31ed2eb5c55}{key} () const =0 \item +\hypertarget{classTranslation_a3f0cdfb6b44f44c7eecfd716b6163eb5}{ +bool {\bfseries operator==} (\hyperlink{classTranslation}{Translation} $\ast$translation)} +\label{classTranslation_a3f0cdfb6b44f44c7eecfd716b6163eb5} + +\item virtual QString \hyperlink{classTranslation_a8d61ceaea454b600964299d58dac8ad7}{dictionaryInfo} () const =0 \item virtual QString \hyperlink{classTranslation_acee3b3c3cdd8d1055f6d2e2c23c9bea0}{toHtml} () const =0 @@ -34,6 +45,10 @@ Keeping raw form of translation to be parsed only when needed. \begin{DoxyReturn}{Returns} dictionary information (plugin name, languages, $<$logo$>$ etc)$\backslash$ to be displayed in translation table header \end{DoxyReturn} + + +Implemented in \hyperlink{classTranslationXdxf_a6ed8752805971610dc7c6cfc28366e9d}{TranslationXdxf}. + \hypertarget{classTranslation_ad79cf5dcb94a31865ec3c31ed2eb5c55}{ \index{Translation@{Translation}!key@{key}} \index{key@{key}!Translation@{Translation}} @@ -42,6 +57,10 @@ dictionary information (plugin name, languages, $<$logo$>$ etc)$\backslash$ to b \begin{DoxyReturn}{Returns} word to be translated \end{DoxyReturn} + + +Implemented in \hyperlink{classTranslationXdxf_a66eb82634b0128ca003aaa2caa81555a}{TranslationXdxf}. + \hypertarget{classTranslation_acee3b3c3cdd8d1055f6d2e2c23c9bea0}{ \index{Translation@{Translation}!toHtml@{toHtml}} \index{toHtml@{toHtml}!Translation@{Translation}} @@ -52,6 +71,10 @@ parsed raw format into html \end{DoxyReturn} +Implemented in \hyperlink{classTranslationXdxf_a136ccd2e4996a0463349333eb1fa9a92}{TranslationXdxf}. + + + The documentation for this class was generated from the following file:\begin{DoxyCompactItemize} \item translation.h\end{DoxyCompactItemize} diff --git a/doc/latex/classTranslationXdxf.eps b/doc/latex/classTranslationXdxf.eps new file mode 100644 index 0000000..4e7a508 --- /dev/null +++ b/doc/latex/classTranslationXdxf.eps @@ -0,0 +1,197 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: ClassName +%%Creator: Doxygen +%%CreationDate: Time +%%For: +%Magnification: 1.00 +%%Orientation: Portrait +%%BoundingBox: 0 0 500 370.37 +%%Pages: 0 +%%BeginSetup +%%EndSetup +%%EndComments + +% ----- variables ----- + +/boxwidth 0 def +/boxheight 40 def +/fontheight 24 def +/marginwidth 10 def +/distx 20 def +/disty 40 def +/boundaspect 1.35 def % aspect ratio of the BoundingBox (width/height) +/boundx 500 def +/boundy boundx boundaspect div def +/xspacing 0 def +/yspacing 0 def +/rows 2 def +/cols 1 def +/scalefactor 0 def +/boxfont /Times-Roman findfont fontheight scalefont def + +% ----- procedures ----- + +/dotted { [1 4] 0 setdash } def +/dashed { [5] 0 setdash } def +/solid { [] 0 setdash } def + +/max % result = MAX(arg1,arg2) +{ + /a exch def + /b exch def + a b gt {a} {b} ifelse +} def + +/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) +{ + 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max +} def + +/cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) +{ + /str exch def + /boxwidth boxwidth str stringwidth pop max def +} def + +/box % draws a box with text `arg1' at grid pos (arg2,arg3) +{ gsave + 2 setlinewidth + newpath + exch xspacing mul xoffset add + exch yspacing mul + moveto + boxwidth 0 rlineto + 0 boxheight rlineto + boxwidth neg 0 rlineto + 0 boxheight neg rlineto + closepath + dup stringwidth pop neg boxwidth add 2 div + boxheight fontheight 2 div sub 2 div + rmoveto show stroke + grestore +} def + +/mark +{ newpath + exch xspacing mul xoffset add boxwidth add + exch yspacing mul + moveto + 0 boxheight 4 div rlineto + boxheight neg 4 div boxheight neg 4 div rlineto + closepath + eofill + stroke +} def + +/arrow +{ newpath + moveto + 3 -8 rlineto + -6 0 rlineto + 3 8 rlineto + closepath + eofill + stroke +} def + +/out % draws an output connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight add + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/in % draws an input connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul disty 2 div sub + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/hedge +{ + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight 2 div sub + /y exch def + /x exch def + newpath + x y moveto + boxwidth 2 div distx add 0 rlineto + stroke + 1 eq + { newpath x boxwidth 2 div distx add add y moveto + -8 3 rlineto + 0 -6 rlineto + 8 3 rlineto + closepath + eofill + stroke + } if +} def + +/vedge +{ + /ye exch def + /ys exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add dup + ys yspacing mul boxheight 2 div sub + moveto + ye yspacing mul boxheight 2 div sub + lineto + stroke +} def + +/conn % connections the blocks from col `arg1' to `arg2' of row `arg3' +{ + /ys exch def + /xe exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add + ys yspacing mul disty 2 div sub + moveto + xspacing xe xs sub mul 0 + rlineto + stroke +} def + +% ----- main ------ + +boxfont setfont +1 boundaspect scale +(TranslationXdxf) cw +(Translation) cw +/boxwidth boxwidth marginwidth 2 mul add def +/xspacing boxwidth distx add def +/yspacing boxheight disty add def +/scalefactor + boxwidth cols mul distx cols 1 sub mul add + boxheight rows mul disty rows 1 sub mul add boundaspect mul + max def +boundx scalefactor div boundy scalefactor div scale + +% ----- classes ----- + + (TranslationXdxf) 0 0 box + (Translation) 0 1 box + +% ----- relations ----- + +solid +0 0 0 out +solid +1 0 1 in diff --git a/doc/latex/classTranslationXdxf.tex b/doc/latex/classTranslationXdxf.tex new file mode 100644 index 0000000..d5c528d --- /dev/null +++ b/doc/latex/classTranslationXdxf.tex @@ -0,0 +1,79 @@ +\hypertarget{classTranslationXdxf}{ +\section{TranslationXdxf Class Reference} +\label{classTranslationXdxf}\index{TranslationXdxf@{TranslationXdxf}} +} +Inheritance diagram for TranslationXdxf:\begin{figure}[H] +\begin{center} +\leavevmode +\includegraphics[height=2cm]{classTranslationXdxf} +\end{center} +\end{figure} +\subsection*{Public Member Functions} +\begin{DoxyCompactItemize} +\item +\hypertarget{classTranslationXdxf_af47f473740067fd4adc64725b304e715}{ +{\bfseries TranslationXdxf} (QString \_\-key, QString \_\-dictionaryInfo, \hyperlink{classXdxfPlugin}{XdxfPlugin} $\ast$xdxfPlugin)} +\label{classTranslationXdxf_af47f473740067fd4adc64725b304e715} + +\item +QString \hyperlink{classTranslationXdxf_a66eb82634b0128ca003aaa2caa81555a}{key} () const +\item +QString \hyperlink{classTranslationXdxf_a6ed8752805971610dc7c6cfc28366e9d}{dictionaryInfo} () const +\item +QString \hyperlink{classTranslationXdxf_a136ccd2e4996a0463349333eb1fa9a92}{toHtml} () const +\item +\hypertarget{classTranslationXdxf_addc67544adc15e777753405f387e54f9}{ +void \hyperlink{classTranslationXdxf_addc67544adc15e777753405f387e54f9}{setKey} (QString)} +\label{classTranslationXdxf_addc67544adc15e777753405f387e54f9} + +\begin{DoxyCompactList}\small\item\em sets the word for which we want to find a translation \item\end{DoxyCompactList}\item +\hypertarget{classTranslationXdxf_a97ddfc4184664b7bc3e343dededb54d3}{ +void \hyperlink{classTranslationXdxf_a97ddfc4184664b7bc3e343dededb54d3}{setDictionaryInfo} (QString)} +\label{classTranslationXdxf_a97ddfc4184664b7bc3e343dededb54d3} + +\begin{DoxyCompactList}\small\item\em sets information about dictionary \item\end{DoxyCompactList}\end{DoxyCompactItemize} + + +\subsection{Member Function Documentation} +\hypertarget{classTranslationXdxf_a6ed8752805971610dc7c6cfc28366e9d}{ +\index{TranslationXdxf@{TranslationXdxf}!dictionaryInfo@{dictionaryInfo}} +\index{dictionaryInfo@{dictionaryInfo}!TranslationXdxf@{TranslationXdxf}} +\subsubsection[{dictionaryInfo}]{\setlength{\rightskip}{0pt plus 5cm}QString TranslationXdxf::dictionaryInfo () const\hspace{0.3cm}{\ttfamily \mbox{[}virtual\mbox{]}}}} +\label{classTranslationXdxf_a6ed8752805971610dc7c6cfc28366e9d} +\begin{DoxyReturn}{Returns} +dictionary information (plugin name, languages, $<$logo$>$ etc)$\backslash$ to be displayed in translation table header +\end{DoxyReturn} + + +Implements \hyperlink{classTranslation_a8d61ceaea454b600964299d58dac8ad7}{Translation}. + +\hypertarget{classTranslationXdxf_a66eb82634b0128ca003aaa2caa81555a}{ +\index{TranslationXdxf@{TranslationXdxf}!key@{key}} +\index{key@{key}!TranslationXdxf@{TranslationXdxf}} +\subsubsection[{key}]{\setlength{\rightskip}{0pt plus 5cm}QString TranslationXdxf::key () const\hspace{0.3cm}{\ttfamily \mbox{[}virtual\mbox{]}}}} +\label{classTranslationXdxf_a66eb82634b0128ca003aaa2caa81555a} +\begin{DoxyReturn}{Returns} +word to be translated +\end{DoxyReturn} + + +Implements \hyperlink{classTranslation_ad79cf5dcb94a31865ec3c31ed2eb5c55}{Translation}. + +\hypertarget{classTranslationXdxf_a136ccd2e4996a0463349333eb1fa9a92}{ +\index{TranslationXdxf@{TranslationXdxf}!toHtml@{toHtml}} +\index{toHtml@{toHtml}!TranslationXdxf@{TranslationXdxf}} +\subsubsection[{toHtml}]{\setlength{\rightskip}{0pt plus 5cm}QString TranslationXdxf::toHtml () const\hspace{0.3cm}{\ttfamily \mbox{[}virtual\mbox{]}}}} +\label{classTranslationXdxf_a136ccd2e4996a0463349333eb1fa9a92} +\begin{DoxyReturn}{Returns} +parsed raw format into html +\end{DoxyReturn} + + +Implements \hyperlink{classTranslation_acee3b3c3cdd8d1055f6d2e2c23c9bea0}{Translation}. + + + +The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} +\item +TranslationXdxf.h\item +TranslationXdxf.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/classXdxfDictDialog.eps b/doc/latex/classXdxfDictDialog.eps new file mode 100644 index 0000000..187d07f --- /dev/null +++ b/doc/latex/classXdxfDictDialog.eps @@ -0,0 +1,197 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: ClassName +%%Creator: Doxygen +%%CreationDate: Time +%%For: +%Magnification: 1.00 +%%Orientation: Portrait +%%BoundingBox: 0 0 500 384.615 +%%Pages: 0 +%%BeginSetup +%%EndSetup +%%EndComments + +% ----- variables ----- + +/boxwidth 0 def +/boxheight 40 def +/fontheight 24 def +/marginwidth 10 def +/distx 20 def +/disty 40 def +/boundaspect 1.3 def % aspect ratio of the BoundingBox (width/height) +/boundx 500 def +/boundy boundx boundaspect div def +/xspacing 0 def +/yspacing 0 def +/rows 2 def +/cols 1 def +/scalefactor 0 def +/boxfont /Times-Roman findfont fontheight scalefont def + +% ----- procedures ----- + +/dotted { [1 4] 0 setdash } def +/dashed { [5] 0 setdash } def +/solid { [] 0 setdash } def + +/max % result = MAX(arg1,arg2) +{ + /a exch def + /b exch def + a b gt {a} {b} ifelse +} def + +/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) +{ + 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max +} def + +/cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) +{ + /str exch def + /boxwidth boxwidth str stringwidth pop max def +} def + +/box % draws a box with text `arg1' at grid pos (arg2,arg3) +{ gsave + 2 setlinewidth + newpath + exch xspacing mul xoffset add + exch yspacing mul + moveto + boxwidth 0 rlineto + 0 boxheight rlineto + boxwidth neg 0 rlineto + 0 boxheight neg rlineto + closepath + dup stringwidth pop neg boxwidth add 2 div + boxheight fontheight 2 div sub 2 div + rmoveto show stroke + grestore +} def + +/mark +{ newpath + exch xspacing mul xoffset add boxwidth add + exch yspacing mul + moveto + 0 boxheight 4 div rlineto + boxheight neg 4 div boxheight neg 4 div rlineto + closepath + eofill + stroke +} def + +/arrow +{ newpath + moveto + 3 -8 rlineto + -6 0 rlineto + 3 8 rlineto + closepath + eofill + stroke +} def + +/out % draws an output connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight add + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/in % draws an input connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul disty 2 div sub + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/hedge +{ + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight 2 div sub + /y exch def + /x exch def + newpath + x y moveto + boxwidth 2 div distx add 0 rlineto + stroke + 1 eq + { newpath x boxwidth 2 div distx add add y moveto + -8 3 rlineto + 0 -6 rlineto + 8 3 rlineto + closepath + eofill + stroke + } if +} def + +/vedge +{ + /ye exch def + /ys exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add dup + ys yspacing mul boxheight 2 div sub + moveto + ye yspacing mul boxheight 2 div sub + lineto + stroke +} def + +/conn % connections the blocks from col `arg1' to `arg2' of row `arg3' +{ + /ys exch def + /xe exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add + ys yspacing mul disty 2 div sub + moveto + xspacing xe xs sub mul 0 + rlineto + stroke +} def + +% ----- main ------ + +boxfont setfont +1 boundaspect scale +(XdxfDictDialog) cw +(DictDialog) cw +/boxwidth boxwidth marginwidth 2 mul add def +/xspacing boxwidth distx add def +/yspacing boxheight disty add def +/scalefactor + boxwidth cols mul distx cols 1 sub mul add + boxheight rows mul disty rows 1 sub mul add boundaspect mul + max def +boundx scalefactor div boundy scalefactor div scale + +% ----- classes ----- + + (XdxfDictDialog) 0 0 box + (DictDialog) 0 1 box + +% ----- relations ----- + +solid +0 0 0 out +solid +1 0 1 in diff --git a/doc/latex/classXdxfDictDialog.tex b/doc/latex/classXdxfDictDialog.tex new file mode 100644 index 0000000..b683d57 --- /dev/null +++ b/doc/latex/classXdxfDictDialog.tex @@ -0,0 +1,75 @@ +\hypertarget{classXdxfDictDialog}{ +\section{XdxfDictDialog Class Reference} +\label{classXdxfDictDialog}\index{XdxfDictDialog@{XdxfDictDialog}} +} + + +Implementation of \hyperlink{classDictDialog}{DictDialog} interface for xdxf plugin. + + + + +{\ttfamily \#include $<$XdxfDictDialog.h$>$} + +Inheritance diagram for XdxfDictDialog:\begin{figure}[H] +\begin{center} +\leavevmode +\includegraphics[height=2cm]{classXdxfDictDialog} +\end{center} +\end{figure} +\subsection*{Public Member Functions} +\begin{DoxyCompactItemize} +\item +\hypertarget{classXdxfDictDialog_a940214f088e92a6b278b537ec2819cd4}{ +{\bfseries XdxfDictDialog} (QObject $\ast$parent=0)} +\label{classXdxfDictDialog_a940214f088e92a6b278b537ec2819cd4} + +\item +\hyperlink{classSettings}{Settings} $\ast$ \hyperlink{classXdxfDictDialog_a3b8f10c135bef87c7b8f6e0eda812f84}{addNewDictionary} (QWidget $\ast$parent) +\begin{DoxyCompactList}\small\item\em Shows add new xdxf dictionary dialog and returns settings of new dict. \item\end{DoxyCompactList}\item +void \hyperlink{classXdxfDictDialog_ae321a5d6dead9003e777cc776fb793a3}{changeSettings} (QWidget $\ast$parent) +\begin{DoxyCompactList}\small\item\em Shows settings dialog and save new settings in plugin. \item\end{DoxyCompactList}\end{DoxyCompactItemize} + + +\subsection{Detailed Description} +Implementation of \hyperlink{classDictDialog}{DictDialog} interface for xdxf plugin. + +\subsection{Member Function Documentation} +\hypertarget{classXdxfDictDialog_a3b8f10c135bef87c7b8f6e0eda812f84}{ +\index{XdxfDictDialog@{XdxfDictDialog}!addNewDictionary@{addNewDictionary}} +\index{addNewDictionary@{addNewDictionary}!XdxfDictDialog@{XdxfDictDialog}} +\subsubsection[{addNewDictionary}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Settings} $\ast$ XdxfDictDialog::addNewDictionary (QWidget $\ast$ {\em parent})\hspace{0.3cm}{\ttfamily \mbox{[}virtual\mbox{]}}}} +\label{classXdxfDictDialog_a3b8f10c135bef87c7b8f6e0eda812f84} + + +Shows add new xdxf dictionary dialog and returns settings of new dict. + + +\begin{DoxyParams}{Parameters} +\item[{\em parent}]parent widget on which will be displayed dialog \end{DoxyParams} + + +Implements \hyperlink{classDictDialog_abe4058f66b1ef4314e518943d0c0ecd9}{DictDialog}. + +\hypertarget{classXdxfDictDialog_ae321a5d6dead9003e777cc776fb793a3}{ +\index{XdxfDictDialog@{XdxfDictDialog}!changeSettings@{changeSettings}} +\index{changeSettings@{changeSettings}!XdxfDictDialog@{XdxfDictDialog}} +\subsubsection[{changeSettings}]{\setlength{\rightskip}{0pt plus 5cm}void XdxfDictDialog::changeSettings (QWidget $\ast$ {\em parent})\hspace{0.3cm}{\ttfamily \mbox{[}virtual\mbox{]}}}} +\label{classXdxfDictDialog_ae321a5d6dead9003e777cc776fb793a3} + + +Shows settings dialog and save new settings in plugin. + + +\begin{DoxyParams}{Parameters} +\item[{\em parent}]parent widget on which will be displayed dialog \end{DoxyParams} + + +Implements \hyperlink{classDictDialog_a68c3518a232a3f6f722cc75ff8ad04c2}{DictDialog}. + + + +The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} +\item +XdxfDictDialog.h\item +XdxfDictDialog.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/classXdxfLoadDialog.tex b/doc/latex/classXdxfLoadDialog.tex new file mode 100644 index 0000000..7ac03e0 --- /dev/null +++ b/doc/latex/classXdxfLoadDialog.tex @@ -0,0 +1,60 @@ +\hypertarget{classXdxfLoadDialog}{ +\section{XdxfLoadDialog Class Reference} +\label{classXdxfLoadDialog}\index{XdxfLoadDialog@{XdxfLoadDialog}} +} + + +Displays dialog which allow user to add new xdxf dictionary. + + + + +{\ttfamily \#include $<$XdxfLoadDialog.h$>$} + +\subsection*{Public Member Functions} +\begin{DoxyCompactItemize} +\item +\hypertarget{classXdxfLoadDialog_ab592370044d8990b9e46987d78f3fe9c}{ +{\bfseries XdxfLoadDialog} (QWidget $\ast$parent=0)} +\label{classXdxfLoadDialog_ab592370044d8990b9e46987d78f3fe9c} + +\item +\hypertarget{classXdxfLoadDialog_af59cd3b7b523e50e46a2ae2bcf9a2217}{ +QString \hyperlink{classXdxfLoadDialog_af59cd3b7b523e50e46a2ae2bcf9a2217}{dicitonaryFilePath} ()} +\label{classXdxfLoadDialog_af59cd3b7b523e50e46a2ae2bcf9a2217} + +\begin{DoxyCompactList}\small\item\em Returns choosen by user dictionary file path. \item\end{DoxyCompactList}\item +\hypertarget{classXdxfLoadDialog_a31c64f4072c24d3989a72677f86b0446}{ +bool \hyperlink{classXdxfLoadDialog_a31c64f4072c24d3989a72677f86b0446}{generateCache} ()} +\label{classXdxfLoadDialog_a31c64f4072c24d3989a72677f86b0446} + +\begin{DoxyCompactList}\small\item\em Returns if user want to cache dictionary. \item\end{DoxyCompactList}\end{DoxyCompactItemize} +\subsection*{Static Public Member Functions} +\begin{DoxyCompactItemize} +\item +static \hyperlink{classSettings}{Settings} $\ast$ \hyperlink{classXdxfLoadDialog_ad42ee42fbc5b56458bc7038e65524bea}{getSettings} (QWidget $\ast$parent) +\begin{DoxyCompactList}\small\item\em Displays dialog and returns settings of new dictionary. \item\end{DoxyCompactList}\end{DoxyCompactItemize} + + +\subsection{Detailed Description} +Displays dialog which allow user to add new xdxf dictionary. + +\subsection{Member Function Documentation} +\hypertarget{classXdxfLoadDialog_ad42ee42fbc5b56458bc7038e65524bea}{ +\index{XdxfLoadDialog@{XdxfLoadDialog}!getSettings@{getSettings}} +\index{getSettings@{getSettings}!XdxfLoadDialog@{XdxfLoadDialog}} +\subsubsection[{getSettings}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Settings} $\ast$ XdxfLoadDialog::getSettings (QWidget $\ast$ {\em parent})\hspace{0.3cm}{\ttfamily \mbox{[}static\mbox{]}}}} +\label{classXdxfLoadDialog_ad42ee42fbc5b56458bc7038e65524bea} + + +Displays dialog and returns settings of new dictionary. + +\begin{DoxyReturn}{Returns} +Setting object containing new dictionary settings or NULL in case which user cancel dialog +\end{DoxyReturn} + + +The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} +\item +XdxfLoadDialog.h\item +XdxfLoadDialog.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/classXdxfPlugin.eps b/doc/latex/classXdxfPlugin.eps new file mode 100644 index 0000000..f5e9850 --- /dev/null +++ b/doc/latex/classXdxfPlugin.eps @@ -0,0 +1,197 @@ +%!PS-Adobe-2.0 EPSF-2.0 +%%Title: ClassName +%%Creator: Doxygen +%%CreationDate: Time +%%For: +%Magnification: 1.00 +%%Orientation: Portrait +%%BoundingBox: 0 0 500 285.714 +%%Pages: 0 +%%BeginSetup +%%EndSetup +%%EndComments + +% ----- variables ----- + +/boxwidth 0 def +/boxheight 40 def +/fontheight 24 def +/marginwidth 10 def +/distx 20 def +/disty 40 def +/boundaspect 1.75 def % aspect ratio of the BoundingBox (width/height) +/boundx 500 def +/boundy boundx boundaspect div def +/xspacing 0 def +/yspacing 0 def +/rows 2 def +/cols 1 def +/scalefactor 0 def +/boxfont /Times-Roman findfont fontheight scalefont def + +% ----- procedures ----- + +/dotted { [1 4] 0 setdash } def +/dashed { [5] 0 setdash } def +/solid { [] 0 setdash } def + +/max % result = MAX(arg1,arg2) +{ + /a exch def + /b exch def + a b gt {a} {b} ifelse +} def + +/xoffset % result = MAX(0,(scalefactor-(boxwidth*cols+distx*(cols-1)))/2) +{ + 0 scalefactor boxwidth cols mul distx cols 1 sub mul add sub 2 div max +} def + +/cw % boxwidth = MAX(boxwidth, stringwidth(arg1)) +{ + /str exch def + /boxwidth boxwidth str stringwidth pop max def +} def + +/box % draws a box with text `arg1' at grid pos (arg2,arg3) +{ gsave + 2 setlinewidth + newpath + exch xspacing mul xoffset add + exch yspacing mul + moveto + boxwidth 0 rlineto + 0 boxheight rlineto + boxwidth neg 0 rlineto + 0 boxheight neg rlineto + closepath + dup stringwidth pop neg boxwidth add 2 div + boxheight fontheight 2 div sub 2 div + rmoveto show stroke + grestore +} def + +/mark +{ newpath + exch xspacing mul xoffset add boxwidth add + exch yspacing mul + moveto + 0 boxheight 4 div rlineto + boxheight neg 4 div boxheight neg 4 div rlineto + closepath + eofill + stroke +} def + +/arrow +{ newpath + moveto + 3 -8 rlineto + -6 0 rlineto + 3 8 rlineto + closepath + eofill + stroke +} def + +/out % draws an output connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight add + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/in % draws an input connector for the block at (arg1,arg2) +{ + newpath + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul disty 2 div sub + /y exch def + /x exch def + x y moveto + 0 disty 2 div rlineto + stroke + 1 eq { x y disty 2 div add arrow } if +} def + +/hedge +{ + exch xspacing mul xoffset add boxwidth 2 div add + exch yspacing mul boxheight 2 div sub + /y exch def + /x exch def + newpath + x y moveto + boxwidth 2 div distx add 0 rlineto + stroke + 1 eq + { newpath x boxwidth 2 div distx add add y moveto + -8 3 rlineto + 0 -6 rlineto + 8 3 rlineto + closepath + eofill + stroke + } if +} def + +/vedge +{ + /ye exch def + /ys exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add dup + ys yspacing mul boxheight 2 div sub + moveto + ye yspacing mul boxheight 2 div sub + lineto + stroke +} def + +/conn % connections the blocks from col `arg1' to `arg2' of row `arg3' +{ + /ys exch def + /xe exch def + /xs exch def + newpath + xs xspacing mul xoffset add boxwidth 2 div add + ys yspacing mul disty 2 div sub + moveto + xspacing xe xs sub mul 0 + rlineto + stroke +} def + +% ----- main ------ + +boxfont setfont +1 boundaspect scale +(XdxfPlugin) cw +(CommonDictInterface) cw +/boxwidth boxwidth marginwidth 2 mul add def +/xspacing boxwidth distx add def +/yspacing boxheight disty add def +/scalefactor + boxwidth cols mul distx cols 1 sub mul add + boxheight rows mul disty rows 1 sub mul add boundaspect mul + max def +boundx scalefactor div boundy scalefactor div scale + +% ----- classes ----- + + (XdxfPlugin) 0 0 box + (CommonDictInterface) 0 1 box + +% ----- relations ----- + +solid +0 0 0 out +solid +1 0 1 in diff --git a/doc/latex/classXdxfPlugin.tex b/doc/latex/classXdxfPlugin.tex new file mode 100644 index 0000000..d572191 --- /dev/null +++ b/doc/latex/classXdxfPlugin.tex @@ -0,0 +1,116 @@ +\hypertarget{classXdxfPlugin}{ +\section{XdxfPlugin Class Reference} +\label{classXdxfPlugin}\index{XdxfPlugin@{XdxfPlugin}} +} +Inheritance diagram for XdxfPlugin:\begin{figure}[H] +\begin{center} +\leavevmode +\includegraphics[height=2cm]{classXdxfPlugin} +\end{center} +\end{figure} +\subsection*{Public Slots} +\begin{DoxyCompactItemize} +\item +QList$<$ \hyperlink{classTranslation}{Translation} $\ast$ $>$ \hyperlink{classXdxfPlugin_a538581955ba04d1316f1a8befab4d561}{searchWordList} (QString word, int limit=0) +\begin{DoxyCompactList}\small\item\em performs search in dictionary \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a93d9ca6bbd8cc5b5cbda418f6499025b}{ +void \hyperlink{classXdxfPlugin_a93d9ca6bbd8cc5b5cbda418f6499025b}{stop} ()} +\label{classXdxfPlugin_a93d9ca6bbd8cc5b5cbda418f6499025b} + +\begin{DoxyCompactList}\small\item\em stop current operation \item\end{DoxyCompactList}\end{DoxyCompactItemize} +\subsection*{Public Member Functions} +\begin{DoxyCompactItemize} +\item +\hypertarget{classXdxfPlugin_a6cb6059f34448ba265aa57b3c995d2d6}{ +{\bfseries XdxfPlugin} (QObject $\ast$parent=0)} +\label{classXdxfPlugin_a6cb6059f34448ba265aa57b3c995d2d6} + +\item +\hypertarget{classXdxfPlugin_a512b66dd3e147cc86a2bc3e9418104fc}{ +QString \hyperlink{classXdxfPlugin_a512b66dd3e147cc86a2bc3e9418104fc}{langFrom} () const } +\label{classXdxfPlugin_a512b66dd3e147cc86a2bc3e9418104fc} + +\begin{DoxyCompactList}\small\item\em returns source language code iso 639-\/2 \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a6969b031c270fd556fcecf0e423c0895}{ +QString \hyperlink{classXdxfPlugin_a6969b031c270fd556fcecf0e423c0895}{langTo} () const } +\label{classXdxfPlugin_a6969b031c270fd556fcecf0e423c0895} + +\begin{DoxyCompactList}\small\item\em returns destination language code iso 639-\/2 \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a860f2e7375797c80ed4a7eb8bdf1831b}{ +QString \hyperlink{classXdxfPlugin_a860f2e7375797c80ed4a7eb8bdf1831b}{name} () const } +\label{classXdxfPlugin_a860f2e7375797c80ed4a7eb8bdf1831b} + +\begin{DoxyCompactList}\small\item\em returns dictionary name (like \char`\"{}old english\char`\"{} or so) \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a1ef22204eed844d74f90b7222a122c5d}{ +QString \hyperlink{classXdxfPlugin_a1ef22204eed844d74f90b7222a122c5d}{type} () const } +\label{classXdxfPlugin_a1ef22204eed844d74f90b7222a122c5d} + +\begin{DoxyCompactList}\small\item\em returns dictionary type (xdxf, google translate, etc) \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_ab3af2811d200d1901629e5fba8e64eb7}{ +QString \hyperlink{classXdxfPlugin_ab3af2811d200d1901629e5fba8e64eb7}{infoNote} () const } +\label{classXdxfPlugin_ab3af2811d200d1901629e5fba8e64eb7} + +\begin{DoxyCompactList}\small\item\em returns information about dictionary in html (name, authors, etc) \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_ac6cbb0ef522b93927de69e5bfe3f7600}{ +\hyperlink{classDictDialog}{DictDialog} $\ast$ \hyperlink{classXdxfPlugin_ac6cbb0ef522b93927de69e5bfe3f7600}{dictDialog} ()} +\label{classXdxfPlugin_ac6cbb0ef522b93927de69e5bfe3f7600} + +\begin{DoxyCompactList}\small\item\em returns \hyperlink{classDictDialog}{DictDialog} object that creates dialogs for adding new dictionary and change plugin settings \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a1c1fabf4653655f4f654e0ea31c14539}{ +\hyperlink{classCommonDictInterface}{CommonDictInterface} $\ast$ \hyperlink{classXdxfPlugin_a1c1fabf4653655f4f654e0ea31c14539}{getNew} (const \hyperlink{classSettings}{Settings} $\ast$) const } +\label{classXdxfPlugin_a1c1fabf4653655f4f654e0ea31c14539} + +\begin{DoxyCompactList}\small\item\em returns new, clean copy of plugin with setting set as in Settings$\ast$ \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a0a57cddf8db03190a2a49492cc7f43f4}{ +bool \hyperlink{classXdxfPlugin_a0a57cddf8db03190a2a49492cc7f43f4}{isAvailable} () const } +\label{classXdxfPlugin_a0a57cddf8db03190a2a49492cc7f43f4} + +\begin{DoxyCompactList}\small\item\em returns whether plugin can start searching \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a3439332c8624e64456c0b7b62c99bf42}{ +QString \hyperlink{classXdxfPlugin_a3439332c8624e64456c0b7b62c99bf42}{search} (QString key)} +\label{classXdxfPlugin_a3439332c8624e64456c0b7b62c99bf42} + +\begin{DoxyCompactList}\small\item\em returns a description of a word given by a QString \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a5e83f29b2eff00598470bb4b82961973}{ +uint \hyperlink{classXdxfPlugin_a5e83f29b2eff00598470bb4b82961973}{hash} () const } +\label{classXdxfPlugin_a5e83f29b2eff00598470bb4b82961973} + +\begin{DoxyCompactList}\small\item\em returns a unique hash for a dictionary \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a74b5d40e3fa217a10c6ba790a9433086}{ +void \hyperlink{classXdxfPlugin_a74b5d40e3fa217a10c6ba790a9433086}{setHash} (uint)} +\label{classXdxfPlugin_a74b5d40e3fa217a10c6ba790a9433086} + +\begin{DoxyCompactList}\small\item\em set unique value (unique for every dictionary not plugin) \item\end{DoxyCompactList}\item +\hypertarget{classXdxfPlugin_a115e0b340b8f9a5099b8f2a4f755dbfc}{ +\hyperlink{classSettings}{Settings} $\ast$ \hyperlink{classXdxfPlugin_a115e0b340b8f9a5099b8f2a4f755dbfc}{settings} ()} +\label{classXdxfPlugin_a115e0b340b8f9a5099b8f2a4f755dbfc} + +\begin{DoxyCompactList}\small\item\em returns current plugin settings \item\end{DoxyCompactList}\end{DoxyCompactItemize} + + +\subsection{Member Function Documentation} +\hypertarget{classXdxfPlugin_a538581955ba04d1316f1a8befab4d561}{ +\index{XdxfPlugin@{XdxfPlugin}!searchWordList@{searchWordList}} +\index{searchWordList@{searchWordList}!XdxfPlugin@{XdxfPlugin}} +\subsubsection[{searchWordList}]{\setlength{\rightskip}{0pt plus 5cm}QList$<$ {\bf Translation} $\ast$ $>$ XdxfPlugin::searchWordList (QString {\em word}, \/ int {\em limit} = {\ttfamily 0})\hspace{0.3cm}{\ttfamily \mbox{[}virtual, slot\mbox{]}}}} +\label{classXdxfPlugin_a538581955ba04d1316f1a8befab4d561} + + +performs search in dictionary + + +\begin{DoxyParams}{Parameters} +\item[{\em word}]word to search in dictionary \item[{\em limit}]limit on number of results\end{DoxyParams} +After finishing search it has to emit \begin{DoxySeeAlso}{See also} +\hyperlink{classCommonDictInterface}{CommonDictInterface}:finalTranslation finalTranslation +\end{DoxySeeAlso} + + +Implements \hyperlink{classCommonDictInterface_a3ca9313571e0ecab66ce7a7c5d356f4f}{CommonDictInterface}. + + + +The documentation for this class was generated from the following files:\begin{DoxyCompactItemize} +\item +xdxfplugin.h\item +xdxfplugin.cpp\end{DoxyCompactItemize} diff --git a/doc/latex/doxygen.sty b/doc/latex/doxygen.sty index ac49be9..d32ec5c 100644 --- a/doc/latex/doxygen.sty +++ b/doc/latex/doxygen.sty @@ -27,9 +27,9 @@ \fancyplain{}{\bfseries\thepage}% } \rfoot[\fancyplain{}{\bfseries\scriptsize% - Generated on Wed Aug 4 12:02:54 2010 for mDictionary by Doxygen }]{} + Generated on Fri Aug 6 11:51:04 2010 for mDictionary by Doxygen }]{} \lfoot[]{\fancyplain{}{\bfseries\scriptsize% - Generated on Wed Aug 4 12:02:54 2010 for mDictionary by Doxygen }} + Generated on Fri Aug 6 11:51:04 2010 for mDictionary by Doxygen }} \cfoot{} %---------- Internal commands used in this style file ---------------- diff --git a/doc/latex/hierarchy.tex b/doc/latex/hierarchy.tex index d664632..62c6c7a 100644 --- a/doc/latex/hierarchy.tex +++ b/doc/latex/hierarchy.tex @@ -2,16 +2,24 @@ This inheritance list is sorted roughly, but not completely, alphabetically:\begin{DoxyCompactList} \item \contentsline{section}{Backbone}{\pageref{classBackbone}}{} \item \contentsline{section}{CommonDictInterface}{\pageref{classCommonDictInterface}}{} +\begin{DoxyCompactList} +\item \contentsline{section}{XdxfPlugin}{\pageref{classXdxfPlugin}}{} +\end{DoxyCompactList} +\item \contentsline{section}{DictDialog}{\pageref{classDictDialog}}{} +\begin{DoxyCompactList} +\item \contentsline{section}{XdxfDictDialog}{\pageref{classXdxfDictDialog}}{} +\end{DoxyCompactList} \item \contentsline{section}{MainWindow}{\pageref{classMainWindow}}{} \item \contentsline{section}{MenuTabWidget}{\pageref{classMenuTabWidget}}{} \item \contentsline{section}{MenuWidget}{\pageref{classMenuWidget}}{} \item \contentsline{section}{SearchBarWidget}{\pageref{classSearchBarWidget}}{} \item \contentsline{section}{Settings}{\pageref{classSettings}}{} +\item \contentsline{section}{Testowanie}{\pageref{classTestowanie}}{} \item \contentsline{section}{Translation}{\pageref{classTranslation}}{} -\item \contentsline{section}{TranslationWidget}{\pageref{classTranslationWidget}}{} -\item \contentsline{section}{Ui\_\-MainWindow}{\pageref{classUi__MainWindow}}{} \begin{DoxyCompactList} -\item \contentsline{section}{Ui::MainWindow}{\pageref{classUi_1_1MainWindow}}{} +\item \contentsline{section}{TranslationXdxf}{\pageref{classTranslationXdxf}}{} \end{DoxyCompactList} +\item \contentsline{section}{TranslationWidget}{\pageref{classTranslationWidget}}{} \item \contentsline{section}{WordListWidget}{\pageref{classWordListWidget}}{} +\item \contentsline{section}{XdxfLoadDialog}{\pageref{classXdxfLoadDialog}}{} \end{DoxyCompactList} diff --git a/doc/latex/refman.tex b/doc/latex/refman.tex index 516489a..4e57704 100644 --- a/doc/latex/refman.tex +++ b/doc/latex/refman.tex @@ -41,7 +41,7 @@ \vspace*{1cm} {\large Generated by Doxygen 1.6.3}\\ \vspace*{0.5cm} -{\small Wed Aug 4 12:02:54 2010}\\ +{\small Fri Aug 6 11:51:04 2010}\\ \end{center} \end{titlepage} \clearemptydoublepage @@ -57,15 +57,19 @@ \chapter{Class Documentation} \input{classBackbone} \include{classCommonDictInterface} -\include{classUi_1_1MainWindow} +\include{classDictDialog} \include{classMainWindow} \include{classMenuTabWidget} \include{classMenuWidget} \include{classSearchBarWidget} \include{classSettings} +\include{classTestowanie} \include{classTranslation} \include{classTranslationWidget} -\include{classUi__MainWindow} +\include{classTranslationXdxf} \include{classWordListWidget} +\include{classXdxfDictDialog} +\include{classXdxfLoadDialog} +\include{classXdxfPlugin} \printindex \end{document} diff --git a/trunk/src/base/gui/MainWindow.cpp b/trunk/src/base/gui/MainWindow.cpp index 53a2eb6..7edab84 100644 --- a/trunk/src/base/gui/MainWindow.cpp +++ b/trunk/src/base/gui/MainWindow.cpp @@ -61,6 +61,8 @@ MainWindow::MainWindow(Backbone *backbone, QWidget *parent): connect(backbone, SIGNAL(closeOk()), this, SLOT(closeOk())); + + closingApplication = false; } MainWindow::~MainWindow() { @@ -69,12 +71,12 @@ MainWindow::~MainWindow() { void MainWindow::closeEvent(QCloseEvent *event) { - if(searchBarWidget->isSearching()) { emit quit(); - event->ignore(); - } + event->accept(); } void MainWindow::closeOk() { - QMainWindow::close(); + /*QMessageBox::warning(this, "", "close"); + closingApplication = true; + close();*/ } diff --git a/trunk/src/base/gui/MainWindow.h b/trunk/src/base/gui/MainWindow.h index f32effe..f9902b9 100644 --- a/trunk/src/base/gui/MainWindow.h +++ b/trunk/src/base/gui/MainWindow.h @@ -65,6 +65,7 @@ private: TranslationWidget* translationWidget; WordListWidget* wordListWidget; MenuWidget* menuWidget; + bool closingApplication; }; #endif // MAINWINDOW_H diff --git a/trunk/src/base/gui/TranslationWidget.cpp b/trunk/src/base/gui/TranslationWidget.cpp index 658426f..51a8547 100644 --- a/trunk/src/base/gui/TranslationWidget.cpp +++ b/trunk/src/base/gui/TranslationWidget.cpp @@ -25,7 +25,7 @@ #include TranslationWidget::TranslationWidget(Backbone *backbone, QWidget *parent): - QTextEdit(parent) { + QWidget(parent) { this->backbone = backbone; @@ -35,23 +35,31 @@ TranslationWidget::TranslationWidget(Backbone *backbone, QWidget *parent): #endif setWindowFlags(windowFlags() | Qt::Window); - setContextMenuPolicy(Qt::CustomContextMenu); - - setReadOnly(true); + initializeUI(); - connect(this, SIGNAL(customContextMenuRequested(QPoint)), + connect(textEdit, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(showContextMenu(QPoint))); - initializeUI(); + } -void TranslationWidget::show(QModelIndex index) { + +void TranslationWidget::show() { QWidget::show(); - clear(); +} + +void TranslationWidget::show(QModelIndex index) { + + show(); QString v = index.model()->data(index, Qt::DisplayRole).toString(); Translation* t = backbone->result().value(v); - setText(t->toHtml()); - update(); + + textEdit->clear(); + + textEdit->setPlainText(t->toHtml()); + + textEdit->repaint(this->rect()); + } void TranslationWidget::initializeUI() { @@ -60,6 +68,14 @@ void TranslationWidget::initializeUI() { contextMenu->addAction(tr("Copy"), this, SLOT(copy())); contextMenu->addAction(tr("Paste"), this, SLOT(paste())); contextMenu->addAction(tr("Select all"), this, SLOT(selectAll())); + + textEdit = new QTextEdit; + textEdit->setReadOnly(true); + textEdit->setContextMenuPolicy(Qt::CustomContextMenu); + + verticalLayout = new QVBoxLayout; + setLayout(verticalLayout); + verticalLayout->addWidget(textEdit); } void TranslationWidget::showContextMenu(QPoint pos) { diff --git a/trunk/src/base/gui/TranslationWidget.h b/trunk/src/base/gui/TranslationWidget.h index f4afadd..6125caa 100644 --- a/trunk/src/base/gui/TranslationWidget.h +++ b/trunk/src/base/gui/TranslationWidget.h @@ -33,7 +33,7 @@ /*! Display many translation of word, formatted as html. */ -class TranslationWidget : public QTextEdit { +class TranslationWidget : public QWidget { Q_OBJECT public: explicit TranslationWidget(Backbone* backbone, QWidget *parent = 0); @@ -42,6 +42,7 @@ Q_SIGNALS: public Q_SLOTS: //! Request to show translation of word passed as QModelIndex from word list + void show(); void show(QModelIndex); private Q_SLOTS: @@ -50,7 +51,8 @@ private Q_SLOTS: private: Backbone *backbone; QMenu *contextMenu; - + QTextEdit *textEdit; + QVBoxLayout *verticalLayout; void initializeUI(); diff --git a/trunk/src/plugins/xdxf/src/src.pro b/trunk/src/plugins/xdxf/src/src.pro index 291648d..acf3fc8 100644 --- a/trunk/src/plugins/xdxf/src/src.pro +++ b/trunk/src/plugins/xdxf/src/src.pro @@ -60,7 +60,10 @@ unix { #MAKE INSTALL - INSTALLS += target + INSTALLS += target dicts target.path = $$LIBDIR + + dicts.path = $$LIBDIR + dicts.files += ../../../../../data/dicts/dict.xdxf } diff --git a/trunk/src/plugins/xdxf/src/xdxfplugin.cpp b/trunk/src/plugins/xdxf/src/xdxfplugin.cpp index 91f24fe..7cf2560 100644 --- a/trunk/src/plugins/xdxf/src/xdxfplugin.cpp +++ b/trunk/src/plugins/xdxf/src/xdxfplugin.cpp @@ -37,7 +37,7 @@ XdxfPlugin::XdxfPlugin(QObject *parent) : CommonDictInterface(parent), _settings->setValue("Cached","true"); else _settings->setValue("Cached","false"); - setPath("dict.xdxf"); + setPath("/usr/lib/mdictionary/dict.xdxf"); stopped = false; } -- 1.7.9.5