]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/vlm.hpp
Qt4 - VLM improvements in the layout and in the function used.
[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 class QComboBox;
34 class QVBoxLayout;
35 class QStackedWidget;
36 class QLabel;
37 class QWidget;
38 class QGridLayout;
39 class QLineEdit;
40 class QCheckBox;
41 class QToolButton;
42 class QGroupBox;
43 class QPushButton;
44 class QHBoxLayout;
45 class QDateEdit;
46 class QTimeEdit;
47 class QSpinBox;
48
49 class VLMDialog : public QVLCFrame
50 {
51     Q_OBJECT;
52 public:
53     static VLMDialog * getInstance( intf_thread_t *p_intf )
54     {
55         if( !instance)
56              instance = new VLMDialog( p_intf );
57         return instance;
58     };
59     virtual ~VLMDialog();
60  
61 private:
62     VLMDialog( intf_thread_t *);
63     static VLMDialog *instance;
64     Ui::Vlm ui;
65
66     void makeBcastPage();
67     void makeVODPage();
68     void makeSchedulePage();
69
70     QComboBox *mediatype;
71     QVBoxLayout *layout;
72     QHBoxLayout *bcastgbox, ;
73     QStackedWidget *slayout;
74     QWidget *pBcast, *pVod, *pSchedule;
75     QGridLayout *bcastlayout, *vodlayout, *schelayout, *schetimelayout;
76     QLabel *bcastname, *vodname, *schename,*bcastinput, *vodinput, *scheinput;
77     QLabel *bcastoutput, *vodoutput, *scheoutput;
78     QCheckBox *bcastenable, *vodenable, *scheenable;
79     QLineEdit *bcastnameledit, *vodnameledit, *schenameledit, *bcastinputledit, *vodinputledit, *scheinputledit;
80     QLineEdit *bcastoutputledit, *vodoutputledit, *scheoutputledit;
81     QToolButton *bcastinputtbutton, *vodinputtbutton, *scheinputtbutton;
82     QToolButton *bcastoutputtbutton, *vodoutputtbutton, *scheoutputtbutton;
83     QGroupBox *bcastcontrol, *schecontrol;
84     QPushButton *bcastplay, *bcastpause, *bcaststop;
85     QPushButton *bcastadd, *vodadd, *scheadd, *bcastremove, *vodremove, *scheremove;
86     QTimeEdit *time;
87     QDateEdit *date;
88     QLabel *schetimelabel, *schedatelabel, *schetimerepeat;
89     QSpinBox *scherepeatnumber;
90
91 private slots:
92     void close();
93 };
94
95 #endif