Hydra 0.20
|
00001 00002 /* 00003 * Copyright (c) 2009 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_TAGEDITOR_H__ 00009 #define __INCLUDED_HYDRADESKTOP_TAGEDITOR_H__ 00010 00011 #include <desktop/View.h> 00012 #include <desktop/FlowLayout.h> 00013 00014 #include <QCheckBox> 00015 00016 #include <ui_TagEditorView.h> 00017 00018 namespace desktop 00019 { 00020 class TagEditorView; 00021 } 00022 00023 class desktop::TagEditorView : public desktop::View, public Ui_TagEditorDialog2 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 TagEditorView(MainWindow *mainwin, FileList *_filelist); 00029 00030 virtual void onImageChange(FileList *fl, int fileIndex); 00031 00032 public slots: 00033 void updateEditor(void); 00034 00035 private slots: 00036 void onAdd(void); 00037 void onClear(void); 00038 void onCheckBox(bool state); 00039 00040 void onDataChanged(void); 00041 00042 private: 00043 void initGui(void); 00044 00045 private: 00046 QWidget *dm_containerWidget; 00047 FlowLayout *dm_containerLayout; 00048 00049 std::set<QString> dm_recently_added; 00050 00051 typedef std::map<QString, QCheckBox*> boxes_t; 00052 boxes_t dm_boxes; 00053 }; 00054 00055 #endif 00056