]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/vlm.hpp
Qt4 - VLM dialog rework.
[vlc] / modules / gui / qt4 / dialogs / vlm.hpp
1 /*****************************************************************************
2  * vlm.hpp : Stream output dialog ( old-style, ala WX )
3  ****************************************************************************
4  * Copyright ( C ) 2006 the VideoLAN team
5  * $Id: vlm.hpp 21875 2007-09-08 16:01:33Z jb $
6  *
7  * Authors: Jean-François Massol <jf.massol@gmail.com>
8  *          Jean-Baptiste Kempf <jb@videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * ( at your option ) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #ifndef _VLM_DIALOG_H_
26 #define _VLM_DIALOG_H_
27
28 #include <vlc/vlc.h>
29
30 #include "ui/vlm.h"
31 #include "util/qvlcframe.hpp"
32
33 enum{
34     QVLM_Broadcast,
35     QVLM_VOD,
36     QVLM_Schedule
37 };
38
39 class QComboBox;
40 class QVBoxLayout;
41 class QStackedWidget;
42 class QLabel;
43 class QGridLayout;
44 class QLineEdit;
45 class QCheckBox;
46 class QToolButton;
47 class QGroupBox;
48 class QPushButton;
49 class QHBoxLayout;
50 class QDateEdit;
51 class QTimeEdit;
52 class QSpinBox;
53
54 class VLMDialog : public QVLCFrame
55 {
56     Q_OBJECT;
57 public:
58     static VLMDialog * getInstance( intf_thread_t *p_intf )
59     {
60         if( !instance)
61              instance = new VLMDialog( p_intf );
62         return instance;
63     };
64     virtual ~VLMDialog();
65
66 private:
67     VLMDialog( intf_thread_t * );
68     static VLMDialog *instance;
69     Ui::Vlm ui;
70     
71     QGridLayout *vlmItemLayout;
72
73     QComboBox *mediatype;
74     QCheckBox *bcastenable, *vodenable, *scheenable;
75     QLineEdit *bcastnameledit, *vodnameledit, *schenameledit, *bcastinputledit, *vodinputledit, *scheinputledit;
76     QLineEdit *bcastoutputledit, *vodoutputledit, *scheoutputledit;
77     QTimeEdit *time;
78     QDateEdit *date;
79     QSpinBox *scherepeatnumber;
80
81     QToolButton *bcastinputtbutton, *vodinputtbutton, *scheinputtbutton;
82     QToolButton *bcastoutputtbutton, *vodoutputtbutton, *scheoutputtbutton;
83     QPushButton *bcastplay, *bcastpause, *bcaststop;
84     QPushButton *bcastadd, *vodadd, *scheadd, *bcastremove, *vodremove, *scheremove;
85
86 private slots:
87     void finish();
88     void cancel();
89     void addVLMItem();
90     void removeVLMItem();
91     void clearVLMItem();
92 };
93
94 #endif