#include <qvariant.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qframe.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qslider.h>
#include <qtabwidget.h>
#include <qtextedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include <qscrollview.h>
#include <qobject.h>
#include <qobjectlist.h>
#include <qstring.h>
#include <qmessagebox.h>
#include <qdatetime.h>
#include <qtimer.h>
#include <qpixmap.h>
#include <qimage.h>
#include <qpainter.h>
#include <qapplication.h>
#include <qdesktopwidget.h>
#include "dsform.h"
#include "QSDLWidget.h"
#include "forminfo.h"
int fsWidth;
int fsHeight;
/*
=======================================================================================================================
* Constructs a dsForm as a child of 'parent', with the name 'name' and widget flags set to 'f'.
=======================================================================================================================
*/
dsForm::dsForm(QWidget* parent, const char* name, WFlags fl) :
QWidget(parent, name, fl)
{
QDateTime Dt = QDateTime::currentDateTime();
QString Qs;
Qs.fill(' ', 20);
QDesktopWidget* d = QApplication::desktop();
fsWidth = d->width(); /* 返回桌面宽度 */
fsHeight = d->height(); /* 返回桌面高度 */
OutputDebugString("width/height = %d, %d\n", fsWidth, fsHeight);
if(!name)
setName("dsForm");
setMinimumSize(QSize(1024, 710)); /* 分辨率 */
setMaximumSize(QSize(fsWidth, fsHeight));
setBaseSize(QSize(1024, 710));
w_full_area = new QSDLWidget(this, "w_full_area");
w_full_area->setMinimumSize(QSize(800, 700));
w_full_area->setMinimumSize(QSize(fsWidth, fsHeight));
w_full_area->setBaseSize(QSize(800, 700));
TitleEdit = new QLineEdit(this, "TitleEdit");
TitleEdit->setGeometry(QRect(0, 0, 1024, 20));
TitleEdit->setPaletteForegroundColor(QColor(255, 255, 255));
TitleEdit->setPaletteBackgroundColor(QColor(0, 0, 255));
QFont TitleEdit_font(TitleEdit->font());
TitleEdit_font.setFamily("Courier");
TitleEdit_font.setBold(TRUE);
TitleEdit->setFont(TitleEdit_font);
TitleEdit->setReadOnly(TRUE);
tabWidget3 = new QTabWidget(this, "tabWidget3");
tabWidget3->setGeometry(QRect(800, 20, 224, 703));
tabWidget3->setMinimumSize(QSize(0, 0));
tab = new QWidget(tabWidget3, "tab");
groupBoxglobal = new QGroupBox(tab, "groupBoxglobal");
groupBoxglobal->setGeometry(QRect(0, 0, 220, 1900));
groupBoxGCI = new QGroupBox(groupBoxglobal, "groupBoxGCI");
groupBoxGCI->setGeometry(QRect(11, 115, 196, 166));
ChannelNumLabel = new QLabel(groupBoxGCI, "ChannelNumLabel");
ChannelNumLabel->setGeometry(QRect(10, 20, 80, 20));
w_channel = new QLineEdit(groupBoxGCI, "w_channel");
w_channel->setGeometry(QRect(105, 20, 83, 20));
AudioRateLabel = new QLabel(groupBoxGCI, "AudioRateLabel");
AudioRateLabel->setGeometry(QRect(3, 50, 106, 20));
w_audio_frame = new QLineEdit(groupBoxGCI, "w_audio_frame");
w_audio_frame->setGeometry(QRect(105, 50, 83, 20));
w_totalframe = new QLineEdit(groupBoxGCI, "w_totalframe");
w_totalframe->setGeometry(QRect(105, 110, 83, 20));
TotalFrameLabel = new QLabel(groupBoxGCI, "TotalFrameLabel");
TotalFrameLabel->setGeometry(QRect(16, 110, 80, 20));
BitRateLabel = new QLabel(groupBoxGCI, "BitRateLabel");
BitRateLabel->setGeometry(QRect(20, 140, 80, 20));
w_bit_rate = new QLineEdit(groupBoxGCI, "w_bit_rate");
w_bit_rate->setGeometry(QRect(105, 140, 83, 20));
w_video_frame = new QLineEdit(groupBoxGCI, "w_video_frame");
w_video_frame->setGeometry(QRect(105, 80, 83, 20));
VideoRateLabel = new QLabel(groupBoxGCI, "VideoRateLabel");
VideoRateLabel->setGeometry(QRect(3, 80, 101, 20));
groupBoxGNS = new QGroupBox(groupBoxglobal, "groupBoxGNS");
groupBoxGNS->setGeometry(QRect(10, 285, 196, 77));
line1_4_2_2 = new QFrame(groupBoxGNS, "line1_4_2_2");
line1_4_2_2->setGeometry(QRect(11, 45, 175, 5));
line1_4_2_2->setFrameShape(QFrame::HLine);
line1_4_2_2->setFrameShadow(QFrame::Sunken);
line1_4_2_2->setFrameShape(QFrame::HLine);
NetCountLabel = new QLabel(groupBoxGNS, "NetCountLabel");
NetCountLabel->setGeometry(QRect(4, 20, 92, 20));
w_netusercount = new QLineEdit(groupBoxGNS, "w_netusercount");
w_netusercount->setGeometry(QRect(105, 20, 83, 20));
w_net_transfer = new QCheckBox(groupBoxGNS, "w_net_transfer");
w_net_transfer->setGeometry(QRect(3, 50, 86, 20));
w_stringtoclient = new QCheckBox(groupBoxGNS, "w_stringtoclient");
w_stringtoclient->setGeometry(QRect(96, 50, 96, 20));
w_preview = new QCheckBox(groupBoxglobal, "w_preview");
w_preview->setGeometry(QRect(13, 375, 86, 20));
w_preview->setChecked(TRUE);
w_record = new QCheckBox(groupBoxglobal, "w_preview");
w_record->setGeometry(QRect(106, 375, 86, 20));
ButtonEnableG = new QPushButton(groupBoxglobal, "ButtonEnableG");
ButtonEnableG->setGeometry(QRect(28, 420, 150, 26));
w_exit = new QPushButton(groupBoxglobal, "w_exit");
w_exit->setGeometry(QRect(28, 470, 150, 25));
groupBoxGSI = new QGroupBox(groupBoxglobal, "groupBoxGSI");
groupBoxGSI->setGeometry(QRect(10, 6, 196, 107));
DateEdit = new QLineEdit(groupBoxGSI, "DateEdit");
DateEdit->setGeometry(QRect(90, 20, 100, 20));
TimeEdit = new QLineEdit(groupBoxGSI, "TimeEdit");
TimeEdit->setGeometry(QRect(90, 50, 100, 20));
FreespaceEdit = new QLineEdit(groupBoxGSI, "FreespaceEdit");
FreespaceEdit->setGeometry(QRect(90, 80, 100, 20));
FreeSpaceLabel = new QLabel(groupBoxGSI, "FreeSpaceLabel");
FreeSpaceLabel->setGeometry(QRect(10, 80, 60, 20));
TimeLabel = new QLabel(groupBoxGSI, "TimeLabel");
TimeLabel->setGeometry(QRect(10, 50, 60, 20));
DateLabel = new QLabel(groupBoxGSI, "DateLabel");
DateLabel->setGeometry(QRect(10, 20, 60, 20));
tabWidget3->insertTab(tab, "");
tab_2 = new QWidget(tabWidget3, "tab_2");
Qsv = new QScrollView(tab_2);
Qsv->setGeometry(QRect(0, 0, 218, 678));
groupBox7 = new QGroupBox(tab_2, "groupBox7");
groupBox7->setGeometry(QRect(0, 0, 200, 1500));
groupBox7->setBackgroundOrigin(QGroupBox::WidgetOrigin);
LabelChannelL = new QLabel(groupBox7, "LabelChannelL");
LabelChannelL->setGeometry(QRect(13, 5, 90, 20));
groupBoxOS = new QGroupBox(groupBox7, "groupBoxOS");
groupBoxOS->setGeometry(QRect(2, 701, 196, 131));
line1_4_2 = new QFrame(groupBoxOS, "line1_4_2");
line1_4_2->setGeometry(QRect(10, 65, 175, 5));
line1_4_2->setFrameShape(QFrame::HLine);
line1_4_2->setFrameShadow(QFrame::Sunken);
line1_4_2->setFrameShape(QFrame::HLine);
CheckTranslucentL = new QCheckBox(groupBoxOS, "CheckTranslucentL");
CheckTranslucentL->setGeometry(QRect(101, 17, 80, 20));
SliderOsdPosXL = new QSlider(groupBoxOS, "SliderOsdPosXL");
SliderOsdPosXL->setGeometry(QRect(89, 76, 100, 20));
SliderOsdPosXL->setCursor(QCursor(0));
SliderOsdPosXL->setOrientation(QSlider::Horizontal);
LabelOsdBrightnessL = new QLabel(groupBoxOS, "LabelOsdBrightnessL");
LabelOsdBrightnessL->setGeometry(QRect(16, 43, 59, 20));
SliderOsdBrightnessL = new QSlider(groupBoxOS, "SliderOsdBrightnessL");
SliderOsdBrightnessL->setGeometry(QRect(89, 43, 100, 20));
SliderOsdBrightnessL->setCursor(QCursor(0));
SliderOsdBrightnessL->setOrientation(QSlider::Horizontal);
LabelOsdPosXL = new QLabel(groupBoxOS, "LabelOsdPosXL");
LabelOsdPosXL->setGeometry(QRect(16, 76, 59, 20));
L