digiKam
mjpegstreamdlg_p.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2021-07-21
7  * Description : MJPEG Stream Server configuration dialog - Private container
8  *
9  * Copyright (C) 2021-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2021 by Quoc Hưng Tran <quochungtran1999 at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_MJPEG_STREAM_DLG_P_H
25 #define DIGIKAM_MJPEG_STREAM_DLG_P_H
26 
27 // Qt includes
28 
29 #include <QVBoxLayout>
30 #include <QDialogButtonBox>
31 #include <QApplication>
32 #include <QMessageBox>
33 #include <QPushButton>
34 #include <QGridLayout>
35 #include <QLabel>
36 #include <QStyle>
37 #include <QIcon>
38 #include <QCheckBox>
39 #include <QGroupBox>
40 #include <QTabWidget>
41 #include <QDesktopServices>
42 
43 // KDE includes
44 
45 #include <klocalizedstring.h>
46 #include <ksharedconfig.h>
47 #include <kconfiggroup.h>
48 
49 // Local includes
50 
51 #include "mjpegstreamdlg.h"
52 #include "dinfointerface.h"
53 #include "ditemslist.h"
54 #include "dnuminput.h"
55 #include "dlayoutbox.h"
56 #include "dxmlguiwindow.h"
57 #include "workingwidget.h"
58 #include "mjpegservermngr.h"
59 #include "vidslidesettings.h"
60 #include "transitionpreview.h"
61 #include "effectpreview.h"
62 #include "dcombobox.h"
63 #include "dfontselect.h"
64 
66 {
67 
68 class Q_DECL_HIDDEN MjpegStreamDlg::Private
69 {
70 
71 public:
72 
73  enum TabView
74  {
75  Server = 0,
79  OSD
80  };
81 
82 public:
83 
84  explicit Private();
85  ~Private();
86 
87 public:
88 
89  bool dirty;
91  QPushButton* srvButton;
92  QLabel* srvStatus;
93  QPushButton* srvPreview;
95  QLabel* aStats;
96  QLabel* separator;
97  QLabel* iStats;
98  QCheckBox* startOnStartup;
99  int spacing;
101  QWidget* albumSelector;
103  QDialogButtonBox* buttons;
104  QWidget* streamSettings;
109  QCheckBox* streamLoop;
115  QTabWidget* tabView;
116  QCheckBox* showName;
117  QCheckBox* showDate;
118  QCheckBox* showApertureFocal;
120  QCheckBox* showMakeModel;
121  QCheckBox* showLensModel;
122  QCheckBox* showComment;
123  QCheckBox* showTitle;
124  QCheckBox* showTags;
125  QCheckBox* showRating;
126  QCheckBox* showCapIfNoTitle;
128 
130 };
131 
132 } // namespace DigikamGenericMjpegStreamPlugin
133 
134 #endif // DIGIKAM_MJPEG_STREAM_DLG_P_H
Definition: mjpegservermngr.h:44
QWidget * albumSelector
Definition: mjpegstreamdlg_p.h:101
TransitionPreview * transPreview
Definition: mjpegstreamdlg_p.h:114
QLabel * iStats
Definition: mjpegstreamdlg_p.h:97
DComboBox * effVal
Definition: mjpegstreamdlg_p.h:111
QDialogButtonBox * buttons
Definition: mjpegstreamdlg_p.h:103
WorkingWidget * progress
Definition: mjpegstreamdlg_p.h:94
QCheckBox * startOnStartup
Definition: mjpegstreamdlg_p.h:98
bool albumSupport
Definition: mjpegstreamdlg_p.h:100
QCheckBox * showLensModel
Definition: mjpegstreamdlg_p.h:121
DComboBox * transVal
Definition: mjpegstreamdlg_p.h:113
DIntNumInput * srvPort
Definition: mjpegstreamdlg_p.h:105
DComboBox * typeVal
Definition: mjpegstreamdlg_p.h:110
EffectPreview * effPreview
Definition: mjpegstreamdlg_p.h:112
QCheckBox * showTitle
Definition: mjpegstreamdlg_p.h:123
MjpegStreamSettings settings
Definition: mjpegstreamdlg_p.h:129
int spacing
Definition: mjpegstreamdlg_p.h:99
QCheckBox * showName
Definition: mjpegstreamdlg_p.h:116
DFontSelect * osdFont
Definition: mjpegstreamdlg_p.h:127
MjpegServerMngr * mngr
Definition: mjpegstreamdlg_p.h:90
QTabWidget * tabView
Definition: mjpegstreamdlg_p.h:115
QWidget * streamSettings
Definition: mjpegstreamdlg_p.h:104
QCheckBox * showExpoSensitivity
Definition: mjpegstreamdlg_p.h:119
QCheckBox * showComment
Definition: mjpegstreamdlg_p.h:122
QLabel * aStats
Definition: mjpegstreamdlg_p.h:95
QLabel * srvStatus
Definition: mjpegstreamdlg_p.h:92
DIntNumInput * delay
Definition: mjpegstreamdlg_p.h:106
QCheckBox * showCapIfNoTitle
Definition: mjpegstreamdlg_p.h:126
QLabel * separator
Definition: mjpegstreamdlg_p.h:96
QCheckBox * showDate
Definition: mjpegstreamdlg_p.h:117
QPushButton * srvButton
Definition: mjpegstreamdlg_p.h:91
QCheckBox * streamLoop
Definition: mjpegstreamdlg_p.h:109
QCheckBox * showMakeModel
Definition: mjpegstreamdlg_p.h:120
DItemsList * listView
Definition: mjpegstreamdlg_p.h:102
QCheckBox * showRating
Definition: mjpegstreamdlg_p.h:125
QCheckBox * showTags
Definition: mjpegstreamdlg_p.h:124
DIntNumInput * quality
Definition: mjpegstreamdlg_p.h:108
DIntNumInput * rate
Definition: mjpegstreamdlg_p.h:107
QCheckBox * showApertureFocal
Definition: mjpegstreamdlg_p.h:118
bool dirty
Definition: mjpegstreamdlg_p.h:89
QPushButton * srvPreview
Definition: mjpegstreamdlg_p.h:93
Definition: mjpegstreamsettings.h:49
Definition: dcombobox.h:42
Definition: dfontselect.h:40
Definition: dnuminput.h:41
Definition: ditemslist.h:196
Definition: effectpreview.h:43
Definition: transitionpreview.h:43
Definition: workingwidget.h:40
Definition: mjpegframeosd.cpp:45