MythTV  master
galleryfilterdlg.h
Go to the documentation of this file.
1 /* ============================================================
2  * File : galleryfilterdlg.h
3  * Description :
4  *
5 
6  * This program is free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General
8  * Public License as published bythe Free Software Foundation;
9  * either version 2, or (at your option)
10  * any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * ============================================================ */
18 
19 #ifndef GALLERYFILTERDLG_H
20 #define GALLERYFILTERDLG_H
21 
22 // MythTV headers
23 #include <mythscreentype.h>
24 #include <mythuitext.h>
25 #include <mythuibutton.h>
26 #include <mythuibuttonlist.h>
27 #include <mythuiimage.h>
28 #include <mythdialogbox.h>
29 #include <mythmedia.h>
30 
31 #include "galleryfilter.h"
32 
33 using namespace std;
34 
35 class GalleryFilter;
37 {
38  Q_OBJECT
39 
40  public:
41  GalleryFilterDialog(MythScreenStack *parent, const QString& name,
42  GalleryFilter *filter);
44 
45  bool Create() override; // MythScreenType
46 
47  signals:
48  void filterChanged();
49 
50  public slots:
51  void saveAndExit();
52  void saveAsDefault();
53  void updateFilter();
54  void setDirFilter(void);
55  void setTypeFilter(MythUIButtonListItem *item);
56  void setSort(MythUIButtonListItem *item);
57 
58  private:
59  void fillWidgets();
60 
61  bool m_scanning {false};
62  QString m_photoDir;
63  GalleryFilter *m_settingsOriginal {nullptr};
64  GalleryFilter *m_settingsTemp {nullptr};
65 
66  MythUITextEdit *m_dirFilter {nullptr};
67  MythUIButtonList *m_typeFilter {nullptr};
68  MythUIText *m_numImagesText {nullptr};
69  MythUIButtonList *m_sortList {nullptr};
70  MythUIButton *m_checkButton {nullptr};
71  MythUIButton *m_saveButton {nullptr};
72  MythUIButton *m_doneButton {nullptr};
73 };
74 
75 #endif /* GALLERYFILTERDLG_H */
76 
77 /*
78  * vim:ts=4:sw=4:ai:et:si:sts=4
79  */
unsigned int slots[4]
Definition: element.c:38
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
A text entry and edit widget.
const char * name
Definition: ParseText.cpp:328
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:21
Screen in which all other widgets are contained and rendered.