00001 /* ============================================================ 00002 * File : galleryfilterdlg.h 00003 * Description : 00004 * 00005 00006 * This program is free software; you can redistribute it 00007 * and/or modify it under the terms of the GNU General 00008 * Public License as published bythe Free Software Foundation; 00009 * either version 2, or (at your option) 00010 * any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * ============================================================ */ 00018 00019 #ifndef GALLERYFILTERDLG_H 00020 #define GALLERYFILTERDLG_H 00021 00022 // MythTV headers 00023 #include <mythscreentype.h> 00024 #include <mythuitext.h> 00025 #include <mythuibutton.h> 00026 #include <mythuibuttonlist.h> 00027 #include <mythuiimage.h> 00028 #include <mythdialogbox.h> 00029 #include <mythmedia.h> 00030 00031 #include "galleryfilter.h" 00032 00033 using namespace std; 00034 00035 class GalleryFilter; 00036 class GalleryFilterDialog : public MythScreenType 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 GalleryFilterDialog(MythScreenStack *parent, QString name, 00042 GalleryFilter *filter); 00043 ~GalleryFilterDialog(); 00044 00045 bool Create(); 00046 00047 signals: 00048 void filterChanged(); 00049 00050 public slots: 00051 void saveAndExit(); 00052 void saveAsDefault(); 00053 void updateFilter(); 00054 void setDirFilter(void); 00055 void setTypeFilter(MythUIButtonListItem *item); 00056 void setSort(MythUIButtonListItem *item); 00057 00058 private: 00059 void fillWidgets(); 00060 00061 bool m_scanning; 00062 QString m_photoDir; 00063 GalleryFilter *m_settingsOriginal; 00064 GalleryFilter *m_settingsTemp; 00065 00066 MythUITextEdit *m_dirFilter; 00067 MythUIButtonList *m_typeFilter; 00068 MythUIText *m_numImagesText; 00069 MythUIButtonList *m_sortList; 00070 MythUIButton *m_checkButton; 00071 MythUIButton *m_saveButton; 00072 MythUIButton *m_doneButton; 00073 }; 00074 00075 #endif /* GALLERYFILTERDLG_H */ 00076 00077 /* 00078 * vim:ts=4:sw=4:ai:et:si:sts=4 00079 */
1.6.3