From 4f443980eabe864fdff820bd771766250b225014 Mon Sep 17 00:00:00 2001 From: Bartosz Szatkowski Date: Mon, 16 Aug 2010 10:10:05 +0200 Subject: [PATCH] Added Bookmarks class --- trunk/src/base/backbone/Bookmarks.cpp | 5 ++++ trunk/src/base/backbone/Bookmarks.h | 49 +++++++++++++++++++++++++++++++++ trunk/src/base/base.pro | 6 ++-- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 trunk/src/base/backbone/Bookmarks.cpp create mode 100644 trunk/src/base/backbone/Bookmarks.h diff --git a/trunk/src/base/backbone/Bookmarks.cpp b/trunk/src/base/backbone/Bookmarks.cpp new file mode 100644 index 0000000..b005839 --- /dev/null +++ b/trunk/src/base/backbone/Bookmarks.cpp @@ -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 index 0000000..d81c12c --- /dev/null +++ b/trunk/src/base/backbone/Bookmarks.h @@ -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 . + + 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 +*/ + +#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 diff --git a/trunk/src/base/base.pro b/trunk/src/base/base.pro index 8e17537..3fe70ac 100644 --- a/trunk/src/base/base.pro +++ b/trunk/src/base/base.pro @@ -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 -- 1.7.9.5