Hydra 0.20
|
00001 00002 /* 00003 * Copyright (c) 2010 Aleksander B. Demko 00004 * This source code is distributed under the MIT license. 00005 * See the accompanying file LICENSE.MIT.txt for details. 00006 */ 00007 00008 #ifndef __INCLUDED_HYDRADESKTOP_TAGSELECTVIEW_H__ 00009 #define __INCLUDED_HYDRADESKTOP_TAGSELECTVIEW_H__ 00010 00011 #include <QLineEdit> 00012 00013 #include <desktop/View.h> 00014 00015 namespace desktop 00016 { 00017 class TagSelectView; 00018 } 00019 00020 class desktop::TagSelectView : public desktop::View 00021 { 00022 Q_OBJECT 00023 00024 public: 00025 TagSelectView(FileList *_filelist); 00026 00027 static void queryToSelection(FileList *fileList, hydra::Token *query, QItemSelection &outselection); 00028 00029 private slots: 00030 void onClear(void); 00031 void onEntry(void); 00032 00033 private: 00034 void initGui(void); 00035 00036 private: 00037 QLineEdit *dm_query; 00038 }; 00039 00040 #endif 00041