Added history
[mdictionary] / trunk / src / base / gui / SearchBarWidget.h
index fbceb03..ca8ebb4 100644 (file)
@@ -28,7 +28,7 @@
 #include <QWidget>
 #include <QtGui>
 #include "../backbone/backbone.h"
-
+#include "../../includes/History.h"
 
 //! Displays search bar
 /*!
@@ -87,10 +87,12 @@ private Q_SLOTS:
     void historyPrevToolButtonClicked();
     void historyNextToolButtonClicked();
     void historyShowToolButtonClicked();
+    void updateHistoryButtons(bool prev, bool next, bool list);
 
 
 private:
     Backbone* backbone;
+    History* history;
     QLineEdit* searchWordLineEdit;
     QToolButton* clearSearchWordToolButton;
     QPushButton* searchPushButton;
@@ -107,7 +109,6 @@ private:
     bool _isSearching;
 
     void initializeUI();
-    void showHistoryListDialog();
 };
 
 #endif // SEARCHBARWIDGET_H