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 @@
#include "ui/vlm.h"
#include "util/qvlcframe.hpp"
enum{
QVLM_Broadcast,
QVLM_VOD,
QVLM_Schedule
};
class QComboBox;
class QVBoxLayout;
class QStackedWidget;
class QLabel;
class QWidget;
class QGridLayout;
class QLineEdit;
class QCheckBox;
......@@ -63,30 +68,27 @@ private:
static VLMDialog *instance;
Ui::Vlm ui;
void makeBcastPage();
void makeVODPage();
void makeSchedulePage();
QGridLayout *vlmItemLayout;
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;
QLineEdit *bcastnameledit, *vodnameledit, *schenameledit, *bcastinputledit, *vodinputledit, *scheinputledit;
QLineEdit *bcastoutputledit, *vodoutputledit, *scheoutputledit;
QTimeEdit *time;
QDateEdit *date;
QSpinBox *scherepeatnumber;
QToolButton *bcastinputtbutton, *vodinputtbutton, *scheinputtbutton;
QToolButton *bcastoutputtbutton, *vodoutputtbutton, *scheoutputtbutton;
QGroupBox *bcastcontrol, *schecontrol;
QPushButton *bcastplay, *bcastpause, *bcaststop;
QPushButton *bcastadd, *vodadd, *scheadd, *bcastremove, *vodremove, *scheremove;
QTimeEdit *time;
QDateEdit *date;
QLabel *schetimelabel, *schedatelabel, *schetimerepeat;
QSpinBox *scherepeatnumber;
private slots:
void finish();
void cancel();
void addVLMItem();
void removeVLMItem();
void clearVLMItem();
};
#endif
......@@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>640</width>
<height>640</height>
<width>588</width>
<height>393</height>
</rect>
</property>
<property name="sizePolicy" >
......@@ -22,95 +22,90 @@
<string>_("VLM configurator")</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QGroupBox" name="groupBox" >
<property name="minimumSize" >
<size>
<width>0</width>
<height>300</height>
</size>
<item rowspan="3" row="0" column="0" >
<widget class="QGroupBox" name="mediaConfBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Media configuration</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>
<string>_("Media Creation")</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QComboBox" name="mediaType" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>220</height>
</size>
</property>
<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>
</widget>
</item>
<item>
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<row/>
<column>
</widget>
</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" >
<string>Type</string>
<string>_("Add")</string>
</property>
</column>
<column>
</widget>
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="clearButton" >
<property name="text" >
<string>Media Name</string>
<string>_("Clear")</string>
</property>
</column>
<column>
<property name="text" >
<string>Input</string>
</widget>
</item>
<item row="2" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
</column>
<column>
<property name="text" >
<string>Output</string>
<property name="sizeHint" >
<size>
<width>80</width>
<height>20</height>
</size>
</property>
</column>
<column>
<property name="text" >
<string>State</string>
</spacer>
</item>
<item row="3" column="0" colspan="2" >
<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>
</column>
<layout class="QHBoxLayout" />
</widget>
</item>
<item row="2" column="0" >
<item row="4" column="0" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" >
<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