Commit ab7704a5 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - VLM dialog rework.

parent 34b5e985
This diff is collapsed.
...@@ -30,11 +30,16 @@ ...@@ -30,11 +30,16 @@
#include "ui/vlm.h" #include "ui/vlm.h"
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
enum{
QVLM_Broadcast,
QVLM_VOD,
QVLM_Schedule
};
class QComboBox; class QComboBox;
class QVBoxLayout; class QVBoxLayout;
class QStackedWidget; class QStackedWidget;
class QLabel; class QLabel;
class QWidget;
class QGridLayout; class QGridLayout;
class QLineEdit; class QLineEdit;
class QCheckBox; class QCheckBox;
...@@ -63,30 +68,27 @@ private: ...@@ -63,30 +68,27 @@ private:
static VLMDialog *instance; static VLMDialog *instance;
Ui::Vlm ui; Ui::Vlm ui;
void makeBcastPage(); QGridLayout *vlmItemLayout;
void makeVODPage();
void makeSchedulePage();
QComboBox *mediatype; QComboBox *mediatype;
QVBoxLayout *layout;
QHBoxLayout *bcastgbox, ;
QStackedWidget *slayout;
QWidget *pBcast, *pVod, *pSchedule;
QGridLayout *bcastlayout, *vodlayout, *schelayout, *schetimelayout;
QLabel *bcastname, *vodname, *schename,*bcastinput, *vodinput, *scheinput;
QLabel *bcastoutput, *vodoutput, *scheoutput;
QCheckBox *bcastenable, *vodenable, *scheenable; QCheckBox *bcastenable, *vodenable, *scheenable;
QLineEdit *bcastnameledit, *vodnameledit, *schenameledit, *bcastinputledit, *vodinputledit, *scheinputledit; QLineEdit *bcastnameledit, *vodnameledit, *schenameledit, *bcastinputledit, *vodinputledit, *scheinputledit;
QLineEdit *bcastoutputledit, *vodoutputledit, *scheoutputledit; QLineEdit *bcastoutputledit, *vodoutputledit, *scheoutputledit;
QTimeEdit *time;
QDateEdit *date;
QSpinBox *scherepeatnumber;
QToolButton *bcastinputtbutton, *vodinputtbutton, *scheinputtbutton; QToolButton *bcastinputtbutton, *vodinputtbutton, *scheinputtbutton;
QToolButton *bcastoutputtbutton, *vodoutputtbutton, *scheoutputtbutton; QToolButton *bcastoutputtbutton, *vodoutputtbutton, *scheoutputtbutton;
QGroupBox *bcastcontrol, *schecontrol;
QPushButton *bcastplay, *bcastpause, *bcaststop; QPushButton *bcastplay, *bcastpause, *bcaststop;
QPushButton *bcastadd, *vodadd, *scheadd, *bcastremove, *vodremove, *scheremove; QPushButton *bcastadd, *vodadd, *scheadd, *bcastremove, *vodremove, *scheremove;
QTimeEdit *time;
QDateEdit *date; private slots:
QLabel *schetimelabel, *schedatelabel, *schetimerepeat; void finish();
QSpinBox *scherepeatnumber; void cancel();
void addVLMItem();
void removeVLMItem();
void clearVLMItem();
}; };
#endif #endif
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>640</width> <width>588</width>
<height>640</height> <height>393</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy" >
...@@ -22,95 +22,90 @@ ...@@ -22,95 +22,90 @@
<string>_("VLM configurator")</string> <string>_("VLM configurator")</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<item row="0" column="0" > <item rowspan="3" row="0" column="0" >
<widget class="QGroupBox" name="groupBox" > <widget class="QGroupBox" name="mediaConfBox" >
<property name="minimumSize" > <property name="sizePolicy" >
<size> <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
<width>0</width> <horstretch>0</horstretch>
<height>300</height> <verstretch>0</verstretch>
</size> </sizepolicy>
</property> </property>
<property name="title" > <property name="title" >
<string>Media configuration</string> <string>_("Media Creation")</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QTableWidget" name="mediasDB" >
<property name="windowModality" >
<enum>Qt::NonModal</enum>
</property>
<property name="enabled" >
<bool>true</bool>
</property> </property>
<layout class="QVBoxLayout" >
<item>
<widget class="QComboBox" name="mediaType" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" > <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize" > </widget>
<size> </item>
<width>0</width> <item>
<height>220</height> <widget class="Line" name="line" >
</size> <property name="orientation" >
</property> <enum>Qt::Horizontal</enum>
<property name="sizeIncrement" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="baseSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="autoFillBackground" >
<bool>false</bool>
</property>
<property name="horizontalScrollBarPolicy" >
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="selectionMode" >
<enum>QAbstractItemView::MultiSelection</enum>
</property>
<property name="showGrid" >
<bool>true</bool>
</property>
<property name="sortingEnabled" >
<bool>true</bool>
</property> </property>
<row/> </widget>
<column> </item>
<item>
<widget class="QStackedWidget" name="mediaStacked" >
<property name="currentIndex" >
<number>2</number>
</property>
<widget class="QWidget" name="pBcast" />
<widget class="QWidget" name="pVod" />
<widget class="QWidget" name="pSched" />
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="addButton" >
<property name="text" > <property name="text" >
<string>Type</string> <string>_("Add")</string>
</property> </property>
</column> </widget>
<column> </item>
<item row="1" column="1" >
<widget class="QPushButton" name="clearButton" >
<property name="text" > <property name="text" >
<string>Media Name</string> <string>_("Clear")</string>
</property> </property>
</column> </widget>
<column> </item>
<property name="text" > <item row="2" column="1" >
<string>Input</string> <spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property> </property>
</column> <property name="sizeHint" >
<column> <size>
<property name="text" > <width>80</width>
<string>Output</string> <height>20</height>
</size>
</property> </property>
</column> </spacer>
<column> </item>
<property name="text" > <item row="3" column="0" colspan="2" >
<string>State</string> <widget class="QGroupBox" name="mediaBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="MinimumExpanding" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>_("Media Configuration")</string>
</property> </property>
</column> <layout class="QHBoxLayout" />
</widget> </widget>
</item> </item>
<item row="2" column="0" > <item row="4" column="0" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" > <widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" > <property name="standardButtons" >
<set>QDialogButtonBox::NoButton</set> <set>QDialogButtonBox::NoButton</set>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment