Commit 17413bf6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - VLM improvements... Classing for the three kind of objects, more...

Qt4 - VLM improvements... Classing for the three kind of objects, more property editing and less segfaults (though there is one I have nooo clue ).
parent cf9db1b8
This diff is collapsed.
...@@ -47,10 +47,9 @@ class QToolButton; ...@@ -47,10 +47,9 @@ class QToolButton;
class QGroupBox; class QGroupBox;
class QPushButton; class QPushButton;
class QHBoxLayout; class QHBoxLayout;
class QDateEdit; class QDateTimeEdit;
class QTimeEdit;
class QSpinBox; class QSpinBox;
class VLMObject; class VLMAWidget;
class VLMDialog : public QVLCFrame class VLMDialog : public QVLCFrame
{ {
...@@ -69,20 +68,19 @@ private: ...@@ -69,20 +68,19 @@ private:
static VLMDialog *instance; static VLMDialog *instance;
Ui::Vlm ui; Ui::Vlm ui;
QList<VLMObject *> vlmItems; QList<VLMAWidget *> vlmItems;
int currentIndex; int currentIndex;
QVBoxLayout *vlmItemLayout; QVBoxLayout *vlmItemLayout;
QWidget *vlmItemWidget; QWidget *vlmItemWidget;
QComboBox *mediatype; QComboBox *mediatype;
QTimeEdit *time; QDateTimeEdit *time, *date, *repeatTime;
QDateEdit *date; QSpinBox *scherepeatnumber, *repeatDays;
QSpinBox *scherepeatnumber;
bool isNameGenuine( QString ); bool isNameGenuine( QString );
public slots: public slots:
void removeVLMItem( VLMObject * ); void removeVLMItem( VLMAWidget * );
void startModifyVLMItem( VLMObject * ); void startModifyVLMItem( VLMAWidget * );
private slots: private slots:
void addVLMItem(); void addVLMItem();
void clearWidgets(); void clearWidgets();
...@@ -91,27 +89,52 @@ private slots: ...@@ -91,27 +89,52 @@ private slots:
void selectVLMItem( int ); void selectVLMItem( int );
}; };
class VLMObject : public QGroupBox class VLMAWidget : public QGroupBox
{ {
Q_OBJECT Q_OBJECT
friend class VLMDialog; friend class VLMDialog;
public: public:
VLMObject( int type, QString name, QString input, QString output, bool _enable, VLMDialog *parent ); VLMAWidget( QString name, QString input, QString output, bool _enable, VLMDialog *parent );
private: protected:
QLabel *nameLabel;
QString name; QString name;
QString input; QString input;
QString output; QString output;
bool b_looped;
bool b_enabled; bool b_enabled;
VLMDialog *parent; VLMDialog *parent;
protected:
virtual void enterEvent( QEvent * ); virtual void enterEvent( QEvent * );
QGridLayout *objLayout;
private slots:
virtual void modify();
virtual void del();
};
class VLMBroadcast : public VLMAWidget
{
Q_OBJECT
public:
VLMBroadcast( QString name, QString input, QString output, bool _enable, VLMDialog *parent );
private:
bool b_looped;
private slots: private slots:
void modify();
void stop(); void stop();
void del();
void togglePlayPause(); void togglePlayPause();
void toggleLoop(); void toggleLoop();
}; };
class VLMVod : public VLMAWidget
{
public:
VLMVod( QString name, QString input, QString output, bool _enable, VLMDialog *parent );
private:
QString mux;
};
class VLMSchedule : public VLMAWidget
{
public:
VLMSchedule( QString name, QString input, QString output, bool _enable, VLMDialog *parent );
};
#endif #endif
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>738</width> <width>738</width>
<height>598</height> <height>693</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy" >
...@@ -112,6 +112,52 @@ ...@@ -112,6 +112,52 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0" colspan="3" >
<widget class="QGroupBox" name="vodBox" >
<property name="title" >
<string>_("Mux Control")</string>
</property>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Muxer:</string>
</property>
<property name="margin" >
<number>3</number>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="muxLedit" >
<property name="inputMask" >
<string>AAAA; </string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>411</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="7" column="0" colspan="2" >
<widget class="QCheckBox" name="loopBCast" >
<property name="text" >
<string>_("Loop")</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
......
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