Added Bookmarks class
authorBartosz Szatkowski <bulislaw@linux.com>
Mon, 16 Aug 2010 08:10:05 +0000 (10:10 +0200)
committerBartosz Szatkowski <bulislaw@linux.com>
Mon, 16 Aug 2010 08:10:05 +0000 (10:10 +0200)
trunk/src/base/backbone/Bookmarks.cpp [new file with mode: 0644]
trunk/src/base/backbone/Bookmarks.h [new file with mode: 0644]
trunk/src/base/base.pro

diff --git a/trunk/src/base/backbone/Bookmarks.cpp b/trunk/src/base/backbone/Bookmarks.cpp
new file mode 100644 (file)
index 0000000..b005839
--- /dev/null
@@ -0,0 +1,5 @@
+#include "Bookmarks.h"
+
+Bookmarks::Bookmarks()
+{
+}
diff --git a/trunk/src/base/backbone/Bookmarks.h b/trunk/src/base/backbone/Bookmarks.h
new file mode 100644 (file)
index 0000000..d81c12c
--- /dev/null
@@ -0,0 +1,49 @@
+/*******************************************************************************
+
+    This file is part of mDictionary.
+
+    mDictionary is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    mDictionary is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with mDictionary.  If not, see <http://www.gnu.org/licenses/>.
+
+    Copyright 2010 Comarch S.A.
+
+*******************************************************************************/
+
+/*! /file Bookmarks.h
+\brief Bookmarks functionality - marking words as favorite, managing marked
+    words, searching in marked words (witch cached translations)
+
+
+\author Bartosz Szatkowski <bulislaw@linux.com>
+*/
+
+#ifndef BOOKMARKS_H
+#define BOOKMARKS_H
+
+#include "../../includes/settings.h"
+#include "../../includes/translation.h"
+
+/*! Bookmarks are way to store words that You think You will need to search
+  for often.
+
+  When You add bookmark (by clickin on "star" in words list) You adds it to
+  special list with cached translations from all available dictionaries so
+  You can search for them quickly even when You delete coresponding dict.
+  */
+class Bookmarks
+{
+public:
+    Bookmarks();
+};
+
+#endif // BOOKMARKS_H
index 8e17537..3fe70ac 100644 (file)
@@ -32,7 +32,8 @@ SOURCES += gui/main.cpp\
     gui/DictManagerWidget.cpp \
     gui/DictTypeSelectDialog.cpp \
     backbone/History.cpp \
-    gui/HistoryListDialog.cpp
+    gui/HistoryListDialog.cpp \
+    backbone/Bookmarks.cpp
 
 HEADERS  += gui/MainWindow.h \
     gui/SearchBarWidget.h \
@@ -49,7 +50,8 @@ HEADERS  += gui/MainWindow.h \
     gui/TranslationWidgetAutoResizer.h \
     ../includes/History.h \
     gui/HistoryListDialog.h \
-    ../includes/GUIInterface.h
+    ../includes/GUIInterface.h \
+    backbone/Bookmarks.h
 
 FORMS    += gui/MainWindow.ui