diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-05-13 17:17:05 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:17:17 +0300 |
commit | 5ec42868508a0f2dc2f82fea19ae478fa274924b (patch) | |
tree | 92f6750097ffb063c55694d9d1ced5dd78be4dbb /qt/mainwindow.hpp | |
parent | e1fb46711bc9bfbe97fe0098be371d5706d3a0f7 (diff) |
Added search bar (can be activated by Ctrl+F/CMD+F)
@TODO change search icon?
@TODO remove title for search bar
Diffstat (limited to 'qt/mainwindow.hpp')
-rw-r--r-- | qt/mainwindow.hpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/qt/mainwindow.hpp b/qt/mainwindow.hpp index f4afd9e2f4..f9b7aa43f3 100644 --- a/qt/mainwindow.hpp +++ b/qt/mainwindow.hpp @@ -8,18 +8,18 @@ class QDockWidget; namespace qt { - class FindTableWnd; class DrawWidget; class UpdateDialog; class MainWindow : public QMainWindow { - QAction * m_pMyPosition; + QAction * m_pMyPositionAction; + QAction * m_pSearchAction; DrawWidget * m_pDrawWidget; + QDockWidget * m_Docks[3]; + #ifdef DEBUG // code removed for desktop releases - QDockWidget * m_Docks[2]; - //FindTableWnd * m_pFindTable; UpdateDialog * m_updateDialog; #endif // DEBUG @@ -41,14 +41,14 @@ namespace qt protected: #ifdef DEBUG // code removed for desktop releases - void CreatePanelImpl(size_t i, QString const & name, QKeySequence const & hotkey, - char const * slot); + void CreatePanelImpl(size_t i, Qt::DockWidgetArea area, QString const & name, + QKeySequence const & hotkey, char const * slot); void CreateClassifPanel(); void CreateGuidePanel(); #endif // DEBUG void CreateNavigationBar(); - //void CreateFindTable(QLayout * pLayout); + void CreateSearchBar(); #if defined(Q_WS_WIN) /// to handle menu messages @@ -56,8 +56,7 @@ namespace qt #endif protected Q_SLOTS: - //void OnFeatureEntered(int row, int col); - //void OnFeatureClicked(int row, int col); + void OnSearchTextChanged(QString const &); #ifdef DEBUG // code removed for desktop releases void ShowUpdateDialog(); void ShowClassifPanel(); @@ -66,5 +65,7 @@ namespace qt void OnPreferences(); void OnAbout(); void OnMyPosition(); + void OnSearchButtonClicked(); + void OnSearchShortcutPressed(); }; } |