Exemplo n.º 1
0
void
MainWindow::makeUI()
{
    setObjectName(QString::fromUtf8("MainWindow"));

#if 0
    action_Print = new QAction(this);
    action_Print->setObjectName(QString::fromUtf8("action_Print"));
#endif

#if 1
    action_Exit = new QAction(this);
    action_Exit->setObjectName(QString::fromUtf8("action_Exit"));
	//connect(action_Exit, SIGNAL(triggered()), qApp, SLOT(quit()));
	connect(action_Exit, SIGNAL(triggered()), this, SLOT(close()));
#endif

    action_Multiplot = new QAction(this);
    action_Multiplot->setObjectName(QString::fromUtf8("action_Multiplot"));
	connect(action_Multiplot, SIGNAL(triggered()), this, SLOT(showMultiplot()));

    action_Archivesheet = new QAction(this);
    action_Archivesheet->setObjectName(QString::fromUtf8("action_Archivesheet"));
	connect(action_Archivesheet, SIGNAL(triggered()), this, SLOT(showArchivesheet()));

    action_Archiverviewer = new QAction(this);
    action_Archiverviewer->setObjectName(QString::fromUtf8("action_Archiverviewer"));
	connect(action_Archiverviewer, SIGNAL(triggered()), this, SLOT(showArchiverviewer()));

    action_SignalDB = new QAction(this);
    action_SignalDB->setObjectName(QString::fromUtf8("action_SignalDB"));
	connect(action_SignalDB, SIGNAL(triggered()), this, SLOT(showSignalDB()));

    action_PVListV = new QAction(this);
    action_PVListV->setObjectName(QString::fromUtf8("action_PVListV"));
	connect(action_PVListV, SIGNAL(triggered()), this, SLOT(showPVListViewer()));

	action_Manual = new QAction(this);
	action_Manual->setObjectName(QString::fromUtf8("action_Manual"));
	connect(action_Manual, SIGNAL(triggered()), this, SLOT(showManual()));

	action_AboutECH = new QAction(this);
	action_AboutECH->setObjectName(QString::fromUtf8("action_AboutECH"));
	connect(action_AboutECH, SIGNAL(triggered()), this, SLOT(showAboutECH()));

    centralwidget = new QWidget(this);
    centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
    //centralwidget->setGeometry(QRect(0, 0, 1280, 821));
	
    widget = new QWidget(centralwidget);
    widget->setObjectName(QString::fromUtf8("widget"));
    widget->setGeometry(QRect(200, 0, 1080, 821));
    widget->setMinimumSize(QSize(400, 0));
    vboxLayout = new QVBoxLayout(widget);
    vboxLayout->setSpacing(0);
    vboxLayout->setMargin(0);
    vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
    dockWidget = new QDockWidget(widget);
    dockWidget->setObjectName(QString::fromUtf8("dockWidget"));
    QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
    sizePolicy.setHorizontalStretch(0);
    sizePolicy.setVerticalStretch(0);
    sizePolicy.setHeightForWidth(dockWidget->sizePolicy().hasHeightForWidth());
    dockWidget->setSizePolicy(sizePolicy);
    //dockWidget->setFeatures(QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable|QDockWidget::NoDockWidgetFeatures);
    //dockWidget->setFeatures(QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable);
    //dockWidget->setAllowedAreas(Qt::AllDockWidgetAreas);
    dockWidgetContents = new QWidget(dockWidget);
    dockWidgetContents->setObjectName(QString::fromUtf8("dockWidgetContents"));

    vdockLayout = new QVBoxLayout(widget);
    vdockLayout->setSpacing(0);
    vdockLayout->setMargin(0);
    vdockLayout->setObjectName(QString::fromUtf8("vdockLayout"));

    stackedWidget = new QStackedWidget(dockWidgetContents);
    stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
    stackedWidget->setGeometry(QRect(0, 0, 1080, 821));
    dockWidget->setWidget(dockWidgetContents);

    vboxLayout->addWidget(dockWidget);

	dockWidgetContents->setLayout(vdockLayout);
	vdockLayout->addWidget(stackedWidget);

    tabWidget = new QTabWidget(centralwidget);
    tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
    tabWidget->setGeometry(QRect(0, 0, 200, 821));
    QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(5));
    sizePolicy1.setHorizontalStretch(0);
    sizePolicy1.setVerticalStretch(0);
    sizePolicy1.setHeightForWidth(tabWidget->sizePolicy().hasHeightForWidth());

#if 1
	/* TabWidget color setting */
    QPalette palettetw;

    QBrush brushtw1(QColor(60, 76, 100, 255));
    brushtw1.setStyle(Qt::SolidPattern);
    palettetw.setBrush(QPalette::Active, QPalette::Window, brushtw1);
    //palettetw.setBrush(QPalette::Inactive, QPalette::Window, brushtw1);
    //palettetw.setBrush(QPalette::Disabled, QPalette::Window, brushtw1);

    QBrush brushtw2(QColor(60, 76, 100, 255));
    brushtw2.setStyle(Qt::SolidPattern);
    palettetw.setBrush(QPalette::Active, QPalette::Base, brushtw2);
    //palettetw.setBrush(QPalette::Inactive, QPalette::Base, brushtw2);
    //palettetw.setBrush(QPalette::Disabled, QPalette::Base, brushtw2);

    palettetw.setBrush(QPalette::Active, QPalette::Button, brushtw1);
    //palettetw.setBrush(QPalette::Inactive, QPalette::Button, brushtw1);
    //palettetw.setBrush(QPalette::Disabled, QPalette::Button, brushtw1);

    QBrush brushtw3(QColor(255, 255, 255, 255));
    brushtw3.setStyle(Qt::SolidPattern);
    palettetw.setBrush(QPalette::Active, QPalette::ButtonText, brushtw3);
    //palettetw.setBrush(QPalette::Inactive, QPalette::ButtonText, brushtw3);
    //palettetw.setBrush(QPalette::Disabled, QPalette::ButtonText, brushtw3);

    palettetw.setBrush(QPalette::Active, QPalette::WindowText, brushtw3);
    //palettetw.setBrush(QPalette::Inactive, QPalette::WindowText, brushtw3);
    //palettetw.setBrush(QPalette::Disabled, QPalette::WindowText, brushtw3);

    tabWidget->setPalette(palettetw);

#endif

#if 0
    QPalette palettetw;
    QBrush brushtw1(QColor(0, 0, 55, 200));
    brushtw1.setStyle(Qt::SolidPattern);
    palettetw.setBrush(QPalette::Active, QPalette::Window, brushtw1);
    QBrush brushtw2(QColor(96, 96, 129, 200));
    brushtw2.setStyle(Qt::SolidPattern);
    palettetw.setBrush(QPalette::Active, QPalette::Base, brushtw2);
    QBrush brushtw3(QColor(100, 100, 100, 255));
    brushtw3.setStyle(Qt::SolidPattern);
    palettetw.setBrush(QPalette::Active, QPalette::WindowText, brushtw3);
    //QBrush brushtw4(QColor(255, 255, 255, 50));
    QBrush brushtw4(QColor(55, 55, 55, 100));
    brushtw4.setStyle(Qt::SolidPattern);
    palettetw.setBrush(QPalette::Active, QPalette::Button, brushtw4);
    tabWidget->setPalette(palettetw);
#endif

    tabWidget->setSizePolicy(sizePolicy1);
    tabWidget->setMaximumSize(QSize(16777215, 16777215));
    tabWidget->setTabPosition(QTabWidget::West);
    tabWidget->setTabShape(QTabWidget::Triangular);
    tabWidget->setElideMode(Qt::ElideNone);

    tab_0 = new QWidget();
    tab_0->setObjectName(QString::fromUtf8("tab_0"));
    QFont font;
    font.setPointSize(14);
    vboxLayout0 = new QVBoxLayout(tab_0);
    vboxLayout0->setSpacing(6);
    vboxLayout0->setMargin(4);
    vboxLayout0->setAlignment(Qt::AlignTop);
    vboxLayout0->setObjectName(QString::fromUtf8("vboxLayout0"));

    QPalette paletteb;
    QBrush brushb(QColor(211, 197, 179, 255));
    brushb.setStyle(Qt::SolidPattern);
    paletteb.setBrush(QPalette::Active, QPalette::Button, brushb);
    //paletteb.setBrush(QPalette::Inactive, QPalette::Button, brushb);
    //paletteb.setBrush(QPalette::Disabled, QPalette::Button, brushb);

    QBrush brushbt(QColor(106, 88, 62, 255));
    brushbt.setStyle(Qt::SolidPattern);
    paletteb.setBrush(QPalette::Active, QPalette::ButtonText, brushbt);
    //paletteb.setBrush(QPalette::Inactive, QPalette::ButtonText, brushbt);
    //paletteb.setBrush(QPalette::Disabled, QPalette::ButtonText, brushbt);

    pushButton[0] = new QPushButton(tab_0);
    pushButton[0]->setObjectName(QString::fromUtf8("pushButton_0"));
    pushButton[0]->setFont(font);
    pushButton[0]->setText(QApplication::translate("MainWindow", "Operation", 0, QApplication::UnicodeUTF8));
    pushButton[0]->setPalette(paletteb);
    vboxLayout0->addWidget(pushButton[0]);

    pushButton[1] = new QPushButton(tab_0);
    pushButton[1]->setObjectName(QString::fromUtf8("pushButton_1"));
    pushButton[1]->setFont(font);
    pushButton[1]->setText(QApplication::translate("MainWindow", "Interlock", 0, QApplication::UnicodeUTF8));
    pushButton[1]->setPalette(paletteb);
    vboxLayout0->addWidget(pushButton[1]);

    pushButton[2] = new QPushButton(tab_0);
    pushButton[2]->setObjectName(QString::fromUtf8("pushButton_2"));
    pushButton[2]->setFont(font);
    pushButton[2]->setText(QApplication::translate("MainWindow", "DAQ", 0, QApplication::UnicodeUTF8));
    pushButton[2]->setPalette(paletteb);
    vboxLayout0->addWidget(pushButton[2]);

#if 0
    pushButton[3] = new QPushButton(tab_0);
    pushButton[3]->setObjectName(QString::fromUtf8("pushButton_3"));
    pushButton[3]->setFont(font);
    pushButton[3]->setText(QApplication::translate("MainWindow", "Waveform Graph2", 0, QApplication::UnicodeUTF8));
    pushButton[3]->setPalette(paletteb);
    vboxLayout0->addWidget(pushButton[3]);
#endif

#if 0
    spacerItem0 = new QSpacerItem(20, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
    vboxLayout0->addItem(spacerItem0);
#endif
    frame = new QFrame(tab_0);
    frame->setObjectName(QString::fromUtf8("frame"));
    QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(5));
    sizePolicy2.setHorizontalStretch(1);
    sizePolicy2.setVerticalStretch(0);
    sizePolicy2.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
    frame->setSizePolicy(sizePolicy2);
    frame->setMinimumSize(QSize(16, 704));
    frame->setFrameShape(QFrame::StyledPanel);
    frame->setFrameShadow(QFrame::Raised);

    vboxLayout0->addWidget(frame);
	QVBoxLayout *vfboxLayout = new QVBoxLayout(frame);
	vfboxLayout->setSpacing(0);
	vfboxLayout->setMargin(0);
	vfboxLayout->setObjectName(QString::fromUtf8("vfboxLayout"));

	QUiLoader m_loader;
	QFile *file = new QFile("/usr/local/opi/ui/ECH_Menu_Area.ui");
	file->open(QFile::ReadOnly);
	QWidget *m_widget = m_loader.load(file);
	file->close();
	vfboxLayout->addWidget(m_widget);

	AttachChannelAccess *pattachECHMenu = new AttachChannelAccess(frame);

/* TG remove 20130704
    tab_1 = new QWidget();
    tab_1->setObjectName(QString::fromUtf8("tab_1"));
    vboxLayout1 = new QVBoxLayout(tab_1);
    vboxLayout1->setSpacing(6);
    vboxLayout1->setMargin(4);
    vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));

    pushButton[3] = new QPushButton(tab_1);
    pushButton[3]->setObjectName(QString::fromUtf8("pushButton_3"));
    pushButton[3]->setFont(font);
    pushButton[3]->setText(QApplication::translate("MainWindow", "DAQ WavePattern", 0, QApplication::UnicodeUTF8));
    pushButton[3]->setPalette(paletteb);
    vboxLayout1->addWidget(pushButton[3]);

	spacerItem1 = new QSpacerItem(20, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
	vboxLayout1->addItem(spacerItem1);


    frame2 = new QFrame(tab_1);
    frame2->setObjectName(QString::fromUtf8("frame2"));
    QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(5));
    sizePolicy3.setHorizontalStretch(1);
    sizePolicy3.setVerticalStretch(0);
    sizePolicy3.setHeightForWidth(frame2->sizePolicy().hasHeightForWidth());
    frame2->setSizePolicy(sizePolicy3);
    frame2->setMinimumSize(QSize(16, 704));
    frame2->setFrameShape(QFrame::StyledPanel);
    frame2->setFrameShadow(QFrame::Raised);

    vboxLayout1->addWidget(frame2);
	QVBoxLayout *vfboxLayout1 = new QVBoxLayout(frame2);
	vfboxLayout1->setSpacing(0);
	vfboxLayout1->setMargin(0);
	vfboxLayout1->setObjectName(QString::fromUtf8("vfboxLayout1"));
	QUiLoader m_loader1;
	QFile *file1 = new QFile("/usr/local/opi/ui/ECH_Menu_Area.ui");
	file1->open(QFile::ReadOnly);
	QWidget *m_widget1 = m_loader1.load(file1);
	file1->close();
	vfboxLayout1->addWidget(m_widget1);

	AttachChannelAccess *pattachECHSubMenu = new AttachChannelAccess(frame2);

*/

	/*
    spacerItem1 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Fixed);
    vfboxLayout->addItem(spacerItem1);

	QUiLoader m_loader2;
	QFile *file2 = new QFile("/usr/local/opi/ui/ECH_Menu_Area2.ui");
	file2->open(QFile::ReadOnly);
	QWidget *m_widget2 = m_loader2.load(file2);
	file2->close();
	vfboxLayout->addWidget(m_widget2);
	*/




    tabWidget->addTab(tab_0, QApplication::translate("MainWindow", "ECH Main panels", 0, QApplication::UnicodeUTF8));
//    tabWidget->addTab(tab_1, QApplication::translate("MainWindow", "ECH Sub panels", 0, QApplication::UnicodeUTF8));

    menubar = new QMenuBar(this);
    menubar->setObjectName(QString::fromUtf8("menubar"));
    menubar->setGeometry(QRect(0, 0, 1280, 30));
    menu_File = new QMenu(menubar);
    menu_File->setObjectName(QString::fromUtf8("menu_File"));
    menu_Util = new QMenu(menubar);
    menu_Util->setObjectName(QString::fromUtf8("menu_Util"));
	menu_Help = new QMenu(menubar);
	menu_Help->setObjectName(QString::fromUtf8("menu_Help"));
    setMenuBar(menubar);

    QLabel *slabel1 = new QLabel("Set your mouse on the dynamic value to read PVNAME.");
    slabel1->setAlignment(Qt::AlignHCenter);
    slabel1->setMinimumSize(slabel1->sizeHint());
    slabel1->setFrameStyle(QFrame::Panel | QFrame::Plain);

    QFrame *sframe = new QFrame();
    QVBoxLayout *svlayout = new QVBoxLayout(sframe);
    svlayout->setSpacing(1);
    svlayout->setMargin(2);

    statusBar()->addWidget(sframe,1);
    
    toolBar = new QToolBar(this);
    toolBar->setObjectName(QString::fromUtf8("toolBar"));

    QPalette palette;
    QBrush brush(QColor(108, 147, 255, 100));
    brush.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Active, QPalette::Base, brush);
    palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush);
    QBrush brush1(QColor(44, 51, 91, 100));
    brush1.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Active, QPalette::Window, brush1);
    QBrush brush2(QColor(108, 147, 255, 100));
    brush2.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Inactive, QPalette::Base, brush2);
    QBrush brush3(QColor(44, 51, 91, 100));
    brush3.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Inactive, QPalette::Window, brush3);
    QBrush brush4(QColor(44, 51, 91, 100));
    brush4.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Disabled, QPalette::Base, brush4);
    QBrush brush5(QColor(44, 51, 91, 100));
    brush5.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Disabled, QPalette::Window, brush5);
    toolBar->setPalette(palette);
    toolBar->setOrientation(Qt::Horizontal);
    addToolBar(static_cast<Qt::ToolBarArea>(4), toolBar);

    menubar->addAction(menu_File->menuAction());
    menubar->addAction(menu_Util->menuAction());
    //menubar->addAction(menu_View->menuAction());
	menubar->addSeparator();
    menubar->addAction(menu_Help->menuAction());
#if 0
    menu_File->addAction(action_Print);
#endif
    menu_File->addAction(action_Exit);

    menu_Util->addAction(action_Multiplot);
    menu_Util->addAction(action_Archivesheet);
    menu_Util->addAction(action_Archiverviewer);
    menu_Util->addAction(action_SignalDB);
    menu_Util->addAction(action_PVListV);

#if 0
	menu_Help->addAction(action_Manual);
#endif
	menu_Help->addAction(action_AboutECH);

#if 1
    QFrame *tbframe = new QFrame();
    toolBar->addWidget(tbframe);

    QHBoxLayout *tblayout = new QHBoxLayout(tbframe);
    tblayout->QLayout::setAlignment(Qt::AlignRight|Qt::AlignVCenter);
    tblayout->setSpacing(0);
    tblayout->setMargin(0);
    tblayout->setObjectName(QString::fromUtf8("toolBarLayout"));

    QSpacerItem *tbspacer = new QSpacerItem(1000, 10, QSizePolicy::Fixed, QSizePolicy::Fixed);
    QSpacerItem *tbspacer2 = new QSpacerItem(5, 5, QSizePolicy::Fixed, QSizePolicy::Fixed);

	//CAGraphic *ioc1HB = new CAGraphic();
	ioc1HB = new CAGraphic();
	ioc1HB->setLineWidth(2);
	ioc1HB->setMinimumSize(QSize(20,20));
	ioc1HB->setMaximumSize(QSize(20,20));
	ioc1HB->setFillColor(QColor("white"));
	ioc1HB->setLineColor(QColor("black"));
	ioc1HB->setFillMode(StaticGraphic::Solid);
	ioc1HB->setPvname("ECH_HEARTBEAT");
	ioc1HB->setFillDisplayMode(CAGraphic::ActInact);
	ioc1HB->setObjectName("CAGraphic_ioc1HB");
	ioc1HB->setToolTip("ECH IOC HEART BEAT");

	//CAGraphic *ioc2HB = new CAGraphic();
/*
	ioc2HB = new CAGraphic();
	ioc2HB->setLineWidth(2);
	ioc2HB->setMinimumSize(QSize(20,20));
	ioc2HB->setMaximumSize(QSize(20,20));
	ioc2HB->setFillColor(QColor("white"));
	ioc2HB->setLineColor(QColor("black"));
	ioc2HB->setFillMode(StaticGraphic::Solid);
	ioc2HB->setPvname("ECH_LTU_HEARTBEAT");
	ioc2HB->setFillDisplayMode(CAGraphic::ActInact);
	ioc2HB->setObjectName("CAGraphic_ioc2HB");
	ioc2HB->setToolTip("ECH LTU HEART BEAT");
*/

    font.setPointSize(12);
    //CAWclock *wclock1 = new CAWclock();
    wclock1 = new CAWclock();
	wclock1->setMinimumSize(QSize(160,20));
	wclock1->setMaximumSize(QSize(160,20));
	wclock1->setPvname("ECH_IOC_WCLOCK.RVAL");
	wclock1->setFont(font);
	wclock1->setObjectName("CAWclock_wclock1");
	
    //QLabel *logo = new QLabel("KSTAR logo");
    logo = new QLabel("KSTAR logo");
    logo->setPixmap(QPixmap::fromImage(QImage(":/images/kstar.png")));

    tblayout->addItem(tbspacer);
    tblayout->addWidget(wclock1);
    tblayout->addItem(tbspacer2);
	tblayout->addWidget(ioc1HB);
//	tblayout->addWidget(ioc2HB);
    tblayout->addItem(tbspacer2);
    tblayout->addWidget(logo);
	AttachChannelAccess *pattachTB = new AttachChannelAccess(tbframe);
#endif

    QSize size(1280, 1024);
    size = size.expandedTo(minimumSizeHint());
    resize(size);
    tabWidget->setCurrentIndex(0);
    QMetaObject::connectSlotsByName(this);

    msgframe = new QFrame(centralwidget);
    msgframe->setObjectName(QString::fromUtf8("msgframe"));
    QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(5));
    sizePolicy4.setHorizontalStretch(0);
    sizePolicy4.setVerticalStretch(0);
    sizePolicy4.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
//TG    msgframe->setGeometry(QRect(19, 820, 1255, 90));
    //msgframe->setSizePolicy(sizePolicy4);
    msgframe->setGeometry(QRect(10, 880, 1254, 70));
    //msgframe->setMinimumSize(QSize(1164, 90));
    //msgframe->setFrameShape(QFrame::StyledPanel);
    //msgframe->setFrameShadow(QFrame::Raised);

	vboxLayout2 = new QVBoxLayout(msgframe);
	vboxLayout2->setSpacing(0);
	vboxLayout2->setMargin(0);


/*
	QUiLoader m_loader2;
	QFile *file2 = new QFile("/usr/local/opi/ui/ECH_message.ui");
	file2->open(QFile::ReadOnly);
	QWidget *m_widget2 = m_loader2.load(file2);
	file2->close();
	vboxLayout2->addWidget(m_widget2);
*/

	QHBoxLayout *vhLayout = new QHBoxLayout();
	vhLayout->setSpacing(0);
	vhLayout->setMargin(0);

	CADisplayer *ioc1_interlock = new CADisplayer();
	ioc1_interlock->setMinimumSize(QSize(160,20));
	ioc1_interlock->setMaximumSize(QSize(160,20));
	ioc1_interlock->setPvname("ECH_IOC1_INTERLOCK");
	ioc1_interlock->setObjectName("CADisplayer_ioc1_interlock");
	ioc1_interlock->setVisible(false);
	vhLayout->addWidget(ioc1_interlock);

	CADisplayer *ioc2_interlock = new CADisplayer();
	ioc2_interlock->setMinimumSize(QSize(160,20));
	ioc2_interlock->setMaximumSize(QSize(160,20));
	ioc2_interlock->setPvname("ECH_IOC2_INTERLOCK");
	ioc2_interlock->setObjectName("CADisplayer_ioc2_interlock");
	ioc2_interlock->setVisible(false);
	vhLayout->addWidget(ioc2_interlock);
	vboxLayout2->addLayout(vhLayout);

	textEdit = new QTextEdit(this);
	textEdit->setObjectName(QString::fromUtf8("textEdit"));
	//textEdit->setGeometry(QRect(0, 0, 1000, 50)); 
	//textEdit->setGeometry(QRect(16, 900, 1000, 70)); 
	textEdit->setFontPointSize(12);
	textEdit->setAutoFormatting(QTextEdit::AutoAll);
	textEdit->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);

	vboxLayout2->addWidget(textEdit);

	//AttachChannelAccess *pattach_msg = new AttachChannelAccess(msgframe);
	setCentralWidget(centralwidget);

	QObject::connect(ioc1_interlock, SIGNAL(valueChanged(QString)), this,  SLOT(changeText(QString))); 

	QObject::connect(tabWidget, SIGNAL(currentChanged(int)), SLOT(setDefaultIndex(int))); 


	// Set Object Text.
	setWindowTitle(QApplication::translate("MainWindow", "ECH (KSTAR 84GHz ECH System)", 0, QApplication::UnicodeUTF8));
	setWindowIcon(QIcon(QString::fromUtf8("/usr/local/opi/images/ECH.xpm")));
#if 0
    action_Print->setText(QApplication::translate("MainWindow", "&Print", 0, QApplication::UnicodeUTF8));
#endif
    action_Exit->setText(QApplication::translate("MainWindow", "e&Xit", 0, QApplication::UnicodeUTF8));
    action_Multiplot->setText(QApplication::translate("MainWindow", "&Multiplot", 0, QApplication::UnicodeUTF8));
    action_Archivesheet->setText(QApplication::translate("MainWindow", "&Archivesheet", 0, QApplication::UnicodeUTF8));
    action_Archiverviewer->setText(QApplication::translate("MainWindow", "a&Rchiveviewer", 0, QApplication::UnicodeUTF8));
    action_SignalDB->setText(QApplication::translate("MainWindow", "&SignalDB", 0, QApplication::UnicodeUTF8));
    action_PVListV->setText(QApplication::translate("MainWindow", "&PVListviewer", 0, QApplication::UnicodeUTF8));
    action_Manual->setText(QApplication::translate("MainWindow", "ma&Nual", 0, QApplication::UnicodeUTF8));
    action_AboutECH->setText(QApplication::translate("MainWindow", "About &ECH", 0, QApplication::UnicodeUTF8));
    tabWidget->setTabText(tabWidget->indexOf(tab_0), QApplication::translate("MainWindow", "ECH main panels", 0, QApplication::UnicodeUTF8));
//    tabWidget->setTabText(tabWidget->indexOf(tab_1), QApplication::translate("MainWindow", "ECH sub panels", 0, QApplication::UnicodeUTF8));
    menu_File->setTitle(QApplication::translate("MainWindow", "&File", 0, QApplication::UnicodeUTF8));
    menu_Util->setTitle(QApplication::translate("MainWindow", "&Util", 0, QApplication::UnicodeUTF8));
    //menu_View->setTitle(QApplication::translate("MainWindow", "&View", 0, QApplication::UnicodeUTF8));
    menu_Help->setTitle(QApplication::translate("MainWindow", "&Help", 0, QApplication::UnicodeUTF8));

} // setupUi
Exemplo n.º 2
0
/*!
	\brief Constructor
*/
QSearchReplacePanel::QSearchReplacePanel(QWidget *p)
 : QPanel(p),m_search(0),m_lastDirection(false)
{
        //setupUi(this);
        // do it completely programatic
    this->resize(801, 71);
            QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
            sizePolicy.setHorizontalStretch(0);
            sizePolicy.setVerticalStretch(0);
            sizePolicy.setHeightForWidth(this->sizePolicy().hasHeightForWidth());
            this->setSizePolicy(sizePolicy);
            gridLayout = new QGridLayout(this);
            gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
            gridLayout->setContentsMargins(-1, 4, -1, 4);
            frame_2 = new QFrame(this);
            frame_2->setObjectName(QString::fromUtf8("frame_2"));
            QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);
            sizePolicy1.setHorizontalStretch(0);
            sizePolicy1.setVerticalStretch(0);
            sizePolicy1.setHeightForWidth(frame_2->sizePolicy().hasHeightForWidth());
            frame_2->setSizePolicy(sizePolicy1);
            frame_2->setMinimumSize(QSize(0, 22));
            frame_2->setFrameShape(QFrame::NoFrame);
            frame_2->setFrameShadow(QFrame::Raised);
            frame_2->setLineWidth(0);
            hboxLayout = new QHBoxLayout(frame_2);
            hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
            hboxLayout->setContentsMargins(-1, 0, -1, 0);
            bClose = new QToolButton(frame_2);
            bClose->setObjectName(QString::fromUtf8("bClose"));
            QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
            sizePolicy2.setHorizontalStretch(0);
            sizePolicy2.setVerticalStretch(0);
            sizePolicy2.setHeightForWidth(bClose->sizePolicy().hasHeightForWidth());
            bClose->setSizePolicy(sizePolicy2);
            bClose->setMinimumSize(QSize(20, 20));
            bClose->setMaximumSize(QSize(20, 20));
            QIcon icon;
            icon.addFile(QString::fromUtf8(":/closeall.png"), QSize(), QIcon::Normal, QIcon::Off);
            bClose->setIcon(icon);

            hboxLayout->addWidget(bClose);

            bRefresh = new QToolButton(frame_2);
            bRefresh->setObjectName(QString::fromUtf8("bRefresh"));
            sizePolicy2.setHeightForWidth(bRefresh->sizePolicy().hasHeightForWidth());
            bRefresh->setSizePolicy(sizePolicy2);
            bRefresh->setMinimumSize(QSize(20, 20));
            bRefresh->setMaximumSize(QSize(20, 20));
            QIcon icon1;
            icon1.addFile(QString::fromUtf8(":/reload.png"), QSize(), QIcon::Normal, QIcon::Off);
            bRefresh->setIcon(icon1);

            hboxLayout->addWidget(bRefresh);

            label = new QLabel(frame_2);
            label->setObjectName(QString::fromUtf8("label"));
            QSizePolicy sizePolicy3(QSizePolicy::Minimum, QSizePolicy::Preferred);
            sizePolicy3.setHorizontalStretch(0);
            sizePolicy3.setVerticalStretch(0);
            sizePolicy3.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
            label->setSizePolicy(sizePolicy3);
            label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

            hboxLayout->addWidget(label);


            gridLayout->addWidget(frame_2, 0, 0, 1, 1);

            leFind = new QLineEdit(this);
            leFind->setObjectName(QString::fromUtf8("leFind"));
            QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Fixed);
            sizePolicy4.setHorizontalStretch(2);
            sizePolicy4.setVerticalStretch(0);
            sizePolicy4.setHeightForWidth(leFind->sizePolicy().hasHeightForWidth());
            leFind->setSizePolicy(sizePolicy4);
            leFind->setMinimumSize(QSize(120, 22));

            gridLayout->addWidget(leFind, 0, 1, 1, 1);

            bNext = new QToolButton(this);
            bNext->setObjectName(QString::fromUtf8("bNext"));
            sizePolicy2.setHeightForWidth(bNext->sizePolicy().hasHeightForWidth());
            bNext->setSizePolicy(sizePolicy2);
            bNext->setMinimumSize(QSize(20, 20));
            bNext->setMaximumSize(QSize(20, 20));
            QIcon icon2;
            icon2.addFile(QString::fromUtf8(":/down.png"), QSize(), QIcon::Normal, QIcon::Off);
            bNext->setIcon(icon2);

            gridLayout->addWidget(bNext, 0, 3, 1, 1);

            bPrevious = new QToolButton(this);
            bPrevious->setObjectName(QString::fromUtf8("bPrevious"));
            sizePolicy2.setHeightForWidth(bPrevious->sizePolicy().hasHeightForWidth());
            bPrevious->setSizePolicy(sizePolicy2);
            bPrevious->setMinimumSize(QSize(20, 20));
            bPrevious->setMaximumSize(QSize(20, 20));
            QIcon icon3;
            icon3.addFile(QString::fromUtf8(":/up.png"), QSize(), QIcon::Normal, QIcon::Off);
            bPrevious->setIcon(icon3);

            gridLayout->addWidget(bPrevious, 0, 4, 1, 1);

            frame_6 = new QFrame(this);
            frame_6->setObjectName(QString::fromUtf8("frame_6"));
            sizePolicy1.setHeightForWidth(frame_6->sizePolicy().hasHeightForWidth());
            frame_6->setSizePolicy(sizePolicy1);
            frame_6->setFrameShape(QFrame::NoFrame);
            frame_6->setFrameShadow(QFrame::Raised);
            gridLayout1 = new QGridLayout(frame_6);
            gridLayout1->setContentsMargins(0, 0, 0, 0);
            gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
            cbCase = new QCheckBox(frame_6);
            cbCase->setObjectName(QString::fromUtf8("cbCase"));
            QSizePolicy sizePolicy5(QSizePolicy::Maximum, QSizePolicy::Preferred);
            sizePolicy5.setHorizontalStretch(0);
            sizePolicy5.setVerticalStretch(0);
            sizePolicy5.setHeightForWidth(cbCase->sizePolicy().hasHeightForWidth());
            cbCase->setSizePolicy(sizePolicy5);
            cbCase->setChecked(true);

            gridLayout1->addWidget(cbCase, 0, 0, 1, 1);

            cbWords = new QCheckBox(frame_6);
            cbWords->setObjectName(QString::fromUtf8("cbWords"));
            sizePolicy5.setHeightForWidth(cbWords->sizePolicy().hasHeightForWidth());
            cbWords->setSizePolicy(sizePolicy5);

            gridLayout1->addWidget(cbWords, 0, 1, 1, 1);

            cbRegExp = new QCheckBox(frame_6);
            cbRegExp->setObjectName(QString::fromUtf8("cbRegExp"));
            sizePolicy5.setHeightForWidth(cbRegExp->sizePolicy().hasHeightForWidth());
            cbRegExp->setSizePolicy(sizePolicy5);

            gridLayout1->addWidget(cbRegExp, 0, 2, 1, 1);

            cbHighlight = new QCheckBox(frame_6);
            cbHighlight->setObjectName(QString::fromUtf8("cbHighlight"));
            sizePolicy3.setHeightForWidth(cbHighlight->sizePolicy().hasHeightForWidth());
            cbHighlight->setSizePolicy(sizePolicy3);

            gridLayout1->addWidget(cbHighlight, 0, 3, 1, 1);

            cbCursor = new QCheckBox(frame_6);
            cbCursor->setObjectName(QString::fromUtf8("cbCursor"));
            sizePolicy5.setHeightForWidth(cbCursor->sizePolicy().hasHeightForWidth());
            cbCursor->setSizePolicy(sizePolicy5);
            cbCursor->setChecked(true);

            gridLayout1->addWidget(cbCursor, 0, 4, 1, 1);

            cbSelection = new QCheckBox(frame_6);
            cbSelection->setObjectName(QString::fromUtf8("cbSelection"));
            sizePolicy5.setHeightForWidth(cbSelection->sizePolicy().hasHeightForWidth());
            cbSelection->setSizePolicy(sizePolicy5);

            gridLayout1->addWidget(cbSelection, 0, 5, 1, 1);


            gridLayout->addWidget(frame_6, 0, 5, 2, 2,Qt::AlignTop);

            bReplaceAll = new QPushButton(this);
            bReplaceAll->setObjectName(QString::fromUtf8("bReplaceAll"));
            QSizePolicy sizePolicy6(QSizePolicy::Maximum, QSizePolicy::Fixed);
            sizePolicy6.setHorizontalStretch(0);
            sizePolicy6.setVerticalStretch(0);
            sizePolicy6.setHeightForWidth(bReplaceAll->sizePolicy().hasHeightForWidth());
            bReplaceAll->setSizePolicy(sizePolicy6);

            gridLayout->addWidget(bReplaceAll, 2, 5, 1, 1);

            frame = new QFrame(this);
            frame->setObjectName(QString::fromUtf8("frame"));
            frame->setFrameShape(QFrame::NoFrame);
            frame->setFrameShadow(QFrame::Raised);
            hboxLayout1 = new QHBoxLayout(frame);
            hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
            hboxLayout1->setContentsMargins(-1, 0, -1, 0);
            cbPrompt = new QCheckBox(frame);
            cbPrompt->setObjectName(QString::fromUtf8("cbPrompt"));
            sizePolicy5.setHeightForWidth(cbPrompt->sizePolicy().hasHeightForWidth());
            cbPrompt->setSizePolicy(sizePolicy5);
            cbPrompt->setChecked(false);

            hboxLayout1->addWidget(cbPrompt);

            cbReplaceAll = new QCheckBox(frame);
            cbReplaceAll->setObjectName(QString::fromUtf8("cbReplaceAll"));
            sizePolicy5.setHeightForWidth(cbReplaceAll->sizePolicy().hasHeightForWidth());
            cbReplaceAll->setSizePolicy(sizePolicy5);

            hboxLayout1->addWidget(cbReplaceAll);

            cbEscapeSeq = new QCheckBox(frame);
            cbEscapeSeq->setObjectName(QString::fromUtf8("cbEscapeSeq"));
            sizePolicy5.setHeightForWidth(cbEscapeSeq->sizePolicy().hasHeightForWidth());
            cbEscapeSeq->setSizePolicy(sizePolicy5);

            hboxLayout1->addWidget(cbEscapeSeq);


            gridLayout->addWidget(frame, 2, 6, 1, 1);

            cbReplace = new QCheckBox(this);
            cbReplace->setObjectName(QString::fromUtf8("cbReplace"));
            sizePolicy5.setHeightForWidth(cbReplace->sizePolicy().hasHeightForWidth());
            cbReplace->setSizePolicy(sizePolicy5);
            cbReplace->setLayoutDirection(Qt::LeftToRight);
            cbReplace->setChecked(true);

            gridLayout->addWidget(cbReplace, 2, 0, 1, 1);

            leReplace = new QLineEdit(this);
            leReplace->setObjectName(QString::fromUtf8("leReplace"));
            leReplace->setEnabled(true);
            QSizePolicy sizePolicy7(QSizePolicy::Minimum, QSizePolicy::Fixed);
            sizePolicy7.setHorizontalStretch(2);
            sizePolicy7.setVerticalStretch(0);
            sizePolicy7.setHeightForWidth(leReplace->sizePolicy().hasHeightForWidth());
            leReplace->setSizePolicy(sizePolicy7);
            leReplace->setMinimumSize(QSize(120, 22));
            leReplace->setMaximumSize(QSize(1200, 16777215));

            gridLayout->addWidget(leReplace, 2, 1, 1, 1);

            bReplaceNext = new QToolButton(this);
            bReplaceNext->setObjectName(QString::fromUtf8("bReplaceNext"));
            sizePolicy2.setHeightForWidth(bReplaceNext->sizePolicy().hasHeightForWidth());
            bReplaceNext->setSizePolicy(sizePolicy2);
            bReplaceNext->setMinimumSize(QSize(20, 20));
            bReplaceNext->setMaximumSize(QSize(20, 20));
            QIcon icon4;
            icon4.addFile(QString::fromUtf8(":/images/qcodeedit/replacedown.png"), QSize(), QIcon::Normal, QIcon::Off);
            bReplaceNext->setIcon(icon4);

            gridLayout->addWidget(bReplaceNext, 2, 3, 1, 1);

            bReplacePrevious = new QToolButton(this);
            bReplacePrevious->setObjectName(QString::fromUtf8("bReplacePrevious"));
            sizePolicy2.setHeightForWidth(bReplacePrevious->sizePolicy().hasHeightForWidth());
            bReplacePrevious->setSizePolicy(sizePolicy2);
            bReplacePrevious->setMinimumSize(QSize(20, 20));
            bReplacePrevious->setMaximumSize(QSize(20, 20));
            QIcon icon5;
            icon5.addFile(QString::fromUtf8(":/images/qcodeedit/replaceup.png"), QSize(), QIcon::Normal, QIcon::Off);
            bReplacePrevious->setIcon(icon5);

            gridLayout->addWidget(bReplacePrevious, 2, 4, 1, 1);


            //retranslateUi(this);
            QObject::connect(cbReplace, SIGNAL(toggled(bool)), cbReplace, SLOT(setVisible(bool)));
            QObject::connect(cbReplace, SIGNAL(toggled(bool)), leReplace, SLOT(setVisible(bool)));
            QObject::connect(cbReplace, SIGNAL(toggled(bool)), bReplacePrevious, SLOT(setVisible(bool)));
            QObject::connect(cbReplace, SIGNAL(toggled(bool)), bReplaceNext, SLOT(setVisible(bool)));
            QObject::connect(cbReplace, SIGNAL(toggled(bool)), frame, SLOT(setVisible(bool)));
            QObject::connect(cbReplace, SIGNAL(toggled(bool)), bReplaceAll, SLOT(setVisible(bool)));
            QObject::connect(bClose, SIGNAL(clicked()), this, SLOT(close()));

            // coonect by name ????
            QMetaObject::connectSlotsByName(this);

            // set texts
            #ifndef QT_NO_TOOLTIP
                    bClose->setToolTip(QApplication::translate("SearchReplace", "Close search/replace panel", 0, QApplication::UnicodeUTF8));
                    bRefresh->setToolTip(QApplication::translate("SearchReplace", "Refresh search underlying context (as an attempt to correct search behavior)", 0, QApplication::UnicodeUTF8));
                    leFind->setToolTip(QApplication::translate("SearchReplace", "Text or pattern to search for", 0, QApplication::UnicodeUTF8));
                    bNext->setToolTip(QApplication::translate("SearchReplace", "Find next occurence", 0, QApplication::UnicodeUTF8));
                    bPrevious->setToolTip(QApplication::translate("SearchReplace", "Find previous occurence", 0, QApplication::UnicodeUTF8));
                    leReplace->setToolTip(QApplication::translate("SearchReplace", "Replacement text", 0, QApplication::UnicodeUTF8));
                    bReplaceNext->setToolTip(QApplication::translate("SearchReplace", "Find next occurence", 0, QApplication::UnicodeUTF8));
                    bReplacePrevious->setToolTip(QApplication::translate("SearchReplace", "Find previous occurence", 0, QApplication::UnicodeUTF8));
            #endif // QT_NO_TOOLTIP
                    bClose->setText(QString());
                    bRefresh->setText(QString());
                    label->setText(QApplication::translate("SearchReplace", " Find :", 0, QApplication::UnicodeUTF8));
                    label->setMinimumWidth(label->sizeHint().width());
                    bNext->setText(QString());
                    bPrevious->setText(QString());
                    cbCase->setText(QApplication::translate("SearchReplace", "Case", 0, QApplication::UnicodeUTF8));
                    cbCase->setMinimumWidth(cbCase->sizeHint().width());
                    cbWords->setText(QApplication::translate("SearchReplace", "Words", 0, QApplication::UnicodeUTF8));
                    cbWords->setMinimumWidth(cbWords->sizeHint().width());
                    cbRegExp->setText(QApplication::translate("SearchReplace", "Regexp", 0, QApplication::UnicodeUTF8));
                    cbRegExp->setMinimumWidth(cbRegExp->sizeHint().width());
                    cbHighlight->setText(QApplication::translate("SearchReplace", "Highlight all", 0, QApplication::UnicodeUTF8));
                    cbHighlight->setMinimumWidth(cbHighlight->sizeHint().width());
                    cbCursor->setText(QApplication::translate("SearchReplace", "Cursor", 0, QApplication::UnicodeUTF8));
                    cbCursor->setMinimumWidth(cbCursor->sizeHint().width());
                    cbSelection->setText(QApplication::translate("SearchReplace", "Selection", 0, QApplication::UnicodeUTF8));
                    cbSelection->setMinimumWidth(cbSelection->sizeHint().width());
                    bReplaceAll->setText(QApplication::translate("SearchReplace", "all", 0, QApplication::UnicodeUTF8));
                    cbPrompt->setText(QApplication::translate("SearchReplace", "Prompt on replace", 0, QApplication::UnicodeUTF8));
                    cbReplaceAll->setText(QApplication::translate("SearchReplace", "Replace all", 0, QApplication::UnicodeUTF8));
                    cbEscapeSeq->setText(QApplication::translate("SearchReplace", "Escape sequences", 0, QApplication::UnicodeUTF8));
                    cbReplace->setText(QApplication::translate("SearchReplace", "Replace :", 0, QApplication::UnicodeUTF8));
                    bReplaceNext->setText(QString());
                    bReplacePrevious->setText(QString());

                    minimum_width=frame_2->sizeHint().width()+leFind->sizeHint().width()+2*bNext->sizeHint().width()+5*hboxLayout->spacing();
            //

	setDefaultVisibility(false);

	cbCase->setChecked(false);

	leFind->installEventFilter(this);
	leReplace->installEventFilter(this);
	
	cbReplaceAll->setVisible(false);


}
Exemplo n.º 3
0
void ProviderWindow::setWindow()
{

QFont f( font() );
f.setPixelSize(12);
f.setStyleStrategy(QFont::PreferAntialias);
 setFont( f );  

    setObjectName(QString::fromUtf8("ProviderWindow"));
    resize(QSize(534, 435).expandedTo(this->minimumSizeHint()));
    setSizeIncrement(QSize(0, 0));
    gridLayout = new QGridLayout(this);
    gridLayout->setSpacing(2);
    gridLayout->setMargin(2);
    gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
    mainTab = new QTabWidget(this);
    mainTab->setObjectName(QString::fromUtf8("mainTab"));
    mainTab->setEnabled(true);
    QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
    sizePolicy.setHorizontalStretch(0);
    sizePolicy.setVerticalStretch(0);
    sizePolicy.setHeightForWidth(mainTab->sizePolicy().hasHeightForWidth());
    mainTab->setSizePolicy(sizePolicy);
    mainTab->setTabShape(QTabWidget::Rounded);
    nameTab = new QWidget();
    nameTab->setObjectName(QString::fromUtf8("nameTab"));
    gridLayout1 = new QGridLayout(nameTab);
    gridLayout1->setSpacing(6);
    gridLayout1->setMargin(9);
    gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
    chartFrame = new QFrame(nameTab);
    chartFrame->setObjectName(QString::fromUtf8("chartFrame"));
    QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
    sizePolicy1.setHorizontalStretch(0);
    sizePolicy1.setVerticalStretch(0);
    sizePolicy1.setHeightForWidth(chartFrame->sizePolicy().hasHeightForWidth());
    chartFrame->setSizePolicy(sizePolicy1);
    chartFrame->setFrameShape(QFrame::StyledPanel);
    chartFrame->setFrameShadow(QFrame::Plain);
    gridLayout2 = new QGridLayout(chartFrame);
    gridLayout2->setSpacing(2);
    gridLayout2->setMargin(2);
    gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
    codemessageLabel = new QLabel(chartFrame);
    codemessageLabel->setObjectName(QString::fromUtf8("codemessageLabel"));
    codemessageLabel->setWordWrap(true);

    gridLayout2->addWidget(codemessageLabel, 0, 1, 1, 1);

    gridLayout3 = new QGridLayout();
    gridLayout3->setSpacing(2);
    gridLayout3->setMargin(0);
    gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
    provideractiveCheckBox = new QCheckBox(chartFrame);
    provideractiveCheckBox->setObjectName(QString::fromUtf8("provideractiveCheckBox"));
    provideractiveCheckBox->setChecked(true);

    gridLayout3->addWidget(provideractiveCheckBox, 1, 0, 1, 1);

    spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout3->addItem(spacerItem, 1, 1, 1, 1);

    spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout3->addItem(spacerItem1, 1, 2, 1, 1);

    codeLabel = new QLabel(chartFrame);
    codeLabel->setObjectName(QString::fromUtf8("codeLabel"));

    gridLayout3->addWidget(codeLabel, 0, 0, 1, 1);

    codeEdit = new QLineEdit(chartFrame);
    codeEdit->setObjectName(QString::fromUtf8("codeEdit"));
    QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(1), static_cast<QSizePolicy::Policy>(0));
    sizePolicy2.setHorizontalStretch(0);
    sizePolicy2.setVerticalStretch(0);
    sizePolicy2.setHeightForWidth(codeEdit->sizePolicy().hasHeightForWidth());
    codeEdit->setSizePolicy(sizePolicy2);
    codeEdit->setMaximumSize(QSize(60, 16777215));
    codeEdit->setMaxLength(4);

    gridLayout3->addWidget(codeEdit, 0, 1, 1, 1);

    spacerItem2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout3->addItem(spacerItem2, 0, 2, 1, 1);


    gridLayout2->addLayout(gridLayout3, 0, 0, 1, 1);


    gridLayout1->addWidget(chartFrame, 0, 0, 1, 1);

    nameaddressFrame = new QFrame(nameTab);
    nameaddressFrame->setObjectName(QString::fromUtf8("nameaddressFrame"));
    QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
    sizePolicy3.setHorizontalStretch(0);
    sizePolicy3.setVerticalStretch(0);
    sizePolicy3.setHeightForWidth(nameaddressFrame->sizePolicy().hasHeightForWidth());
    nameaddressFrame->setSizePolicy(sizePolicy3);
    nameaddressFrame->setFrameShape(QFrame::StyledPanel);
    nameaddressFrame->setFrameShadow(QFrame::Plain);
    gridLayout4 = new QGridLayout(nameaddressFrame);
    gridLayout4->setSpacing(2);
    gridLayout4->setMargin(2);
    gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
    gridLayout5 = new QGridLayout();
    gridLayout5->setSpacing(2);
    gridLayout5->setMargin(0);
    gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
    firstnameLabel = new QLabel(nameaddressFrame);
    firstnameLabel->setObjectName(QString::fromUtf8("firstnameLabel"));

    gridLayout5->addWidget(firstnameLabel, 1, 0, 1, 1);

    streetLabel = new QLabel(nameaddressFrame);
    streetLabel->setObjectName(QString::fromUtf8("streetLabel"));

    gridLayout5->addWidget(streetLabel, 2, 0, 1, 1);

    stateEdit = new QLineEdit(nameaddressFrame);
    stateEdit->setObjectName(QString::fromUtf8("stateEdit"));
    QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
    sizePolicy4.setHorizontalStretch(1);
    sizePolicy4.setVerticalStretch(0);
    sizePolicy4.setHeightForWidth(stateEdit->sizePolicy().hasHeightForWidth());
    stateEdit->setSizePolicy(sizePolicy4);
    stateEdit->setMinimumSize(QSize(30, 0));
    stateEdit->setMaximumSize(QSize(35, 16777215));
    stateEdit->setMaxLength(2);

    gridLayout5->addWidget(stateEdit, 4, 7, 1, 1);

    lastnameLabel = new QLabel(nameaddressFrame);
    lastnameLabel->setObjectName(QString::fromUtf8("lastnameLabel"));

    gridLayout5->addWidget(lastnameLabel, 0, 0, 1, 1);

    zipLabel = new QLabel(nameaddressFrame);
    zipLabel->setObjectName(QString::fromUtf8("zipLabel"));

    gridLayout5->addWidget(zipLabel, 5, 0, 1, 1);

    cityLabel = new QLabel(nameaddressFrame);
    cityLabel->setObjectName(QString::fromUtf8("cityLabel"));

    gridLayout5->addWidget(cityLabel, 4, 0, 1, 1);

    countryLabel = new QLabel(nameaddressFrame);
    countryLabel->setObjectName(QString::fromUtf8("countryLabel"));

    gridLayout5->addWidget(countryLabel, 5, 5, 1, 2);

    hboxLayout = new QHBoxLayout();
    hboxLayout->setSpacing(4);
    hboxLayout->setMargin(0);
    hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
    zipcodeEdit = new QLineEdit(nameaddressFrame);
    zipcodeEdit->setObjectName(QString::fromUtf8("zipcodeEdit"));
    QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
    sizePolicy5.setHorizontalStretch(0);
    sizePolicy5.setVerticalStretch(0);
    sizePolicy5.setHeightForWidth(zipcodeEdit->sizePolicy().hasHeightForWidth());
    zipcodeEdit->setSizePolicy(sizePolicy5);
    zipcodeEdit->setMinimumSize(QSize(65, 0));
    zipcodeEdit->setMaximumSize(QSize(65, 16777215));
    zipcodeEdit->setMaxLength(5);

    hboxLayout->addWidget(zipcodeEdit);

    zipdashLabel = new QLabel(nameaddressFrame);
    zipdashLabel->setObjectName(QString::fromUtf8("zipdashLabel"));
    QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
    sizePolicy6.setHorizontalStretch(0);
    sizePolicy6.setVerticalStretch(0);
    sizePolicy6.setHeightForWidth(zipdashLabel->sizePolicy().hasHeightForWidth());
    zipdashLabel->setSizePolicy(sizePolicy6);

    hboxLayout->addWidget(zipdashLabel);

    zipextEdit = new QLineEdit(nameaddressFrame);
    zipextEdit->setObjectName(QString::fromUtf8("zipextEdit"));
    QSizePolicy sizePolicy7(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
    sizePolicy7.setHorizontalStretch(0);
    sizePolicy7.setVerticalStretch(0);
    sizePolicy7.setHeightForWidth(zipextEdit->sizePolicy().hasHeightForWidth());
    zipextEdit->setSizePolicy(sizePolicy7);
    zipextEdit->setMinimumSize(QSize(45, 0));
    zipextEdit->setMaximumSize(QSize(45, 16777215));
    zipextEdit->setMaxLength(4);

    hboxLayout->addWidget(zipextEdit);


    gridLayout5->addLayout(hboxLayout, 5, 1, 1, 4);

    stateLabel = new QLabel(nameaddressFrame);
    stateLabel->setObjectName(QString::fromUtf8("stateLabel"));

    gridLayout5->addWidget(stateLabel, 4, 6, 1, 1);

    spacerItem3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout5->addItem(spacerItem3, 1, 9, 1, 1);

    middleiEdit = new QLineEdit(nameaddressFrame);
    middleiEdit->setObjectName(QString::fromUtf8("middleiEdit"));
    QSizePolicy sizePolicy8(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
    sizePolicy8.setHorizontalStretch(0);
    sizePolicy8.setVerticalStretch(0);
    sizePolicy8.setHeightForWidth(middleiEdit->sizePolicy().hasHeightForWidth());
    middleiEdit->setSizePolicy(sizePolicy8);
    middleiEdit->setMinimumSize(QSize(20, 0));
    middleiEdit->setMaximumSize(QSize(20, 16777215));
    middleiEdit->setMaxLength(1);

    gridLayout5->addWidget(middleiEdit, 1, 8, 1, 1);

    middleiLabel = new QLabel(nameaddressFrame);
    middleiLabel->setObjectName(QString::fromUtf8("middleiLabel"));

    gridLayout5->addWidget(middleiLabel, 1, 7, 1, 1);

    countryEdit = new QLineEdit(nameaddressFrame);
    countryEdit->setObjectName(QString::fromUtf8("countryEdit"));
    countryEdit->setMaxLength(20);

    gridLayout5->addWidget(countryEdit, 5, 7, 1, 5);

    street1Edit = new QLineEdit(nameaddressFrame);
    street1Edit->setObjectName(QString::fromUtf8("street1Edit"));
    street1Edit->setMaxLength(30);

    gridLayout5->addWidget(street1Edit, 2, 1, 1, 12);

    street2Edit = new QLineEdit(nameaddressFrame);
    street2Edit->setObjectName(QString::fromUtf8("street2Edit"));
    street2Edit->setMaxLength(30);

    gridLayout5->addWidget(street2Edit, 3, 1, 1, 12);

    firstnameEdit = new QLineEdit(nameaddressFrame);
    firstnameEdit->setObjectName(QString::fromUtf8("firstnameEdit"));
    QSizePolicy sizePolicy9(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(0));
    sizePolicy9.setHorizontalStretch(0);
    sizePolicy9.setVerticalStretch(0);
    sizePolicy9.setHeightForWidth(firstnameEdit->sizePolicy().hasHeightForWidth());
    firstnameEdit->setSizePolicy(sizePolicy9);
    firstnameEdit->setMaxLength(15);

    gridLayout5->addWidget(firstnameEdit, 1, 1, 1, 6);

    cityEdit = new QLineEdit(nameaddressFrame);
    cityEdit->setObjectName(QString::fromUtf8("cityEdit"));
    cityEdit->setMaxLength(20);

    gridLayout5->addWidget(cityEdit, 4, 1, 1, 5);

    lastnameEdit = new QLineEdit(nameaddressFrame);
    lastnameEdit->setObjectName(QString::fromUtf8("lastnameEdit"));
    lastnameEdit->setMaxLength(20);

    gridLayout5->addWidget(lastnameEdit, 0, 1, 1, 7);


    gridLayout4->addLayout(gridLayout5, 0, 0, 1, 1);


    gridLayout1->addWidget(nameaddressFrame, 1, 0, 1, 1);

    phonecontactGroupBox = new QGroupBox(nameTab);
    phonecontactGroupBox->setObjectName(QString::fromUtf8("phonecontactGroupBox"));
    QSizePolicy sizePolicy10(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
    sizePolicy10.setHorizontalStretch(0);
    sizePolicy10.setVerticalStretch(0);
    sizePolicy10.setHeightForWidth(phonecontactGroupBox->sizePolicy().hasHeightForWidth());
    phonecontactGroupBox->setSizePolicy(sizePolicy10);
    gridLayout6 = new QGridLayout(phonecontactGroupBox);
    gridLayout6->setSpacing(2);
    gridLayout6->setMargin(2);
    gridLayout6->setObjectName(QString::fromUtf8("gridLayout6"));
    gridLayout7 = new QGridLayout();
    gridLayout7->setSpacing(2);
    gridLayout7->setMargin(0);
    gridLayout7->setObjectName(QString::fromUtf8("gridLayout7"));
    workphoneEdit = new QLineEdit(phonecontactGroupBox);
    workphoneEdit->setObjectName(QString::fromUtf8("workphoneEdit"));
    workphoneEdit->setMinimumSize(QSize(112, 0));
    workphoneEdit->setMaxLength(13);

    gridLayout7->addWidget(workphoneEdit, 0, 1, 1, 1);

    workphoneLabel = new QLabel(phonecontactGroupBox);
    workphoneLabel->setObjectName(QString::fromUtf8("workphoneLabel"));

    gridLayout7->addWidget(workphoneLabel, 0, 0, 1, 1);

    workextEdit = new QLineEdit(phonecontactGroupBox);
    workextEdit->setObjectName(QString::fromUtf8("workextEdit"));
    workextEdit->setMinimumSize(QSize(40, 0));
    workextEdit->setMaxLength(4);

    gridLayout7->addWidget(workextEdit, 0, 2, 1, 1);

    faxLabel = new QLabel(phonecontactGroupBox);
    faxLabel->setObjectName(QString::fromUtf8("faxLabel"));

    gridLayout7->addWidget(faxLabel, 1, 0, 1, 1);

    faxEdit = new QLineEdit(phonecontactGroupBox);
    faxEdit->setObjectName(QString::fromUtf8("faxEdit"));
    faxEdit->setMinimumSize(QSize(112, 0));
    faxEdit->setMaxLength(13);

    gridLayout7->addWidget(faxEdit, 1, 1, 1, 1);

    faxextEdit = new QLineEdit(phonecontactGroupBox);
    faxextEdit->setObjectName(QString::fromUtf8("faxextEdit"));
    faxextEdit->setMinimumSize(QSize(40, 0));
    faxextEdit->setMaxLength(4);

    gridLayout7->addWidget(faxextEdit, 1, 2, 1, 1);


    gridLayout6->addLayout(gridLayout7, 0, 1, 1, 2);

    gridLayout8 = new QGridLayout();
    gridLayout8->setSpacing(2);
    gridLayout8->setMargin(0);
    gridLayout8->setObjectName(QString::fromUtf8("gridLayout8"));
    homeextEdit = new QLineEdit(phonecontactGroupBox);
    homeextEdit->setObjectName(QString::fromUtf8("homeextEdit"));
    homeextEdit->setMinimumSize(QSize(40, 0));
    homeextEdit->setMaxLength(4);

    gridLayout8->addWidget(homeextEdit, 0, 2, 1, 1);

    mobileextEdit = new QLineEdit(phonecontactGroupBox);
    mobileextEdit->setObjectName(QString::fromUtf8("mobileextEdit"));
    mobileextEdit->setMinimumSize(QSize(40, 0));
    mobileextEdit->setMaxLength(4);

    gridLayout8->addWidget(mobileextEdit, 1, 2, 1, 1);

    homephoneLabel = new QLabel(phonecontactGroupBox);
    homephoneLabel->setObjectName(QString::fromUtf8("homephoneLabel"));

    gridLayout8->addWidget(homephoneLabel, 0, 0, 1, 1);

    mobilephoneLabel = new QLabel(phonecontactGroupBox);
    mobilephoneLabel->setObjectName(QString::fromUtf8("mobilephoneLabel"));

    gridLayout8->addWidget(mobilephoneLabel, 1, 0, 1, 1);

    homephoneEdit = new QLineEdit(phonecontactGroupBox);
    homephoneEdit->setObjectName(QString::fromUtf8("homephoneEdit"));
    homephoneEdit->setMinimumSize(QSize(112, 0));
    homephoneEdit->setMaxLength(13);

    gridLayout8->addWidget(homephoneEdit, 0, 1, 1, 1);

    mobilephoneEdit = new QLineEdit(phonecontactGroupBox);
    mobilephoneEdit->setObjectName(QString::fromUtf8("mobilephoneEdit"));
    mobilephoneEdit->setMinimumSize(QSize(112, 0));
    mobilephoneEdit->setMaxLength(13);

    gridLayout8->addWidget(mobilephoneEdit, 1, 1, 1, 1);


    gridLayout6->addLayout(gridLayout8, 0, 0, 1, 1);

    hboxLayout1 = new QHBoxLayout();
    hboxLayout1->setSpacing(6);
    hboxLayout1->setMargin(0);
    hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
    emailLabel = new QLabel(phonecontactGroupBox);
    emailLabel->setObjectName(QString::fromUtf8("emailLabel"));

    hboxLayout1->addWidget(emailLabel);

    emailEdit = new QLineEdit(phonecontactGroupBox);
    emailEdit->setObjectName(QString::fromUtf8("emailEdit"));
    emailEdit->setMaxLength(35);

    hboxLayout1->addWidget(emailEdit);


    gridLayout6->addLayout(hboxLayout1, 1, 0, 1, 2);


    gridLayout1->addWidget(phonecontactGroupBox, 2, 0, 1, 1);

    mainTab->addTab(nameTab, QApplication::translate("ProviderWindow", "Name/Co&ntact Information", 0, QApplication::UnicodeUTF8));
    otherTab = new QWidget();
    otherTab->setObjectName(QString::fromUtf8("otherTab"));
    gridLayout9 = new QGridLayout(otherTab);
    gridLayout9->setSpacing(6);
    gridLayout9->setMargin(9);
    gridLayout9->setObjectName(QString::fromUtf8("gridLayout9"));
    otherinfoFrame1 = new QFrame(otherTab);
    otherinfoFrame1->setObjectName(QString::fromUtf8("otherinfoFrame1"));
    QSizePolicy sizePolicy11(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
    sizePolicy11.setHorizontalStretch(0);
    sizePolicy11.setVerticalStretch(0);
    sizePolicy11.setHeightForWidth(otherinfoFrame1->sizePolicy().hasHeightForWidth());
    otherinfoFrame1->setSizePolicy(sizePolicy11);
    otherinfoFrame1->setFrameShape(QFrame::StyledPanel);
    otherinfoFrame1->setFrameShadow(QFrame::Plain);
    gridLayout10 = new QGridLayout(otherinfoFrame1);
    gridLayout10->setSpacing(2);
    gridLayout10->setMargin(2);
    gridLayout10->setObjectName(QString::fromUtf8("gridLayout10"));
    sofdateLabel = new QLabel(otherinfoFrame1);
    sofdateLabel->setObjectName(QString::fromUtf8("sofdateLabel"));

    gridLayout10->addWidget(sofdateLabel, 3, 4, 1, 1);

    sofdateEdit = new QDateEdit(otherinfoFrame1);
    sofdateEdit->setObjectName(QString::fromUtf8("sofdateEdit"));
    QSizePolicy sizePolicy12(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(0));
    sizePolicy12.setHorizontalStretch(0);
    sizePolicy12.setVerticalStretch(0);
    sizePolicy12.setHeightForWidth(sofdateEdit->sizePolicy().hasHeightForWidth());
    sofdateEdit->setSizePolicy(sizePolicy12);

    gridLayout10->addWidget(sofdateEdit, 3, 5, 1, 2);

    birthdateEdit = new QDateEdit(otherinfoFrame1);
    birthdateEdit->setObjectName(QString::fromUtf8("birthdateEdit"));
    QSizePolicy sizePolicy13(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(0));
    sizePolicy13.setHorizontalStretch(0);
    sizePolicy13.setVerticalStretch(0);
    sizePolicy13.setHeightForWidth(birthdateEdit->sizePolicy().hasHeightForWidth());
    birthdateEdit->setSizePolicy(sizePolicy13);

    gridLayout10->addWidget(birthdateEdit, 4, 2, 1, 2);

    ssnLabel = new QLabel(otherinfoFrame1);
    ssnLabel->setObjectName(QString::fromUtf8("ssnLabel"));

    gridLayout10->addWidget(ssnLabel, 0, 0, 1, 1);

    line = new QFrame(otherinfoFrame1);
    line->setObjectName(QString::fromUtf8("line"));
    line->setFrameShape(QFrame::HLine);

    gridLayout10->addWidget(line, 2, 0, 1, 6);

    datecreatedLabel = new QLabel(otherinfoFrame1);
    datecreatedLabel->setObjectName(QString::fromUtf8("datecreatedLabel"));

    gridLayout10->addWidget(datecreatedLabel, 4, 4, 1, 1);

    datecreatedEdit = new QDateEdit(otherinfoFrame1);
    datecreatedEdit->setObjectName(QString::fromUtf8("datecreatedEdit"));
    QSizePolicy sizePolicy14(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(0));
    sizePolicy14.setHorizontalStretch(0);
    sizePolicy14.setVerticalStretch(0);
    sizePolicy14.setHeightForWidth(datecreatedEdit->sizePolicy().hasHeightForWidth());
    datecreatedEdit->setSizePolicy(sizePolicy14);

    gridLayout10->addWidget(datecreatedEdit, 4, 5, 1, 2);

    birthdateLabel = new QLabel(otherinfoFrame1);
    birthdateLabel->setObjectName(QString::fromUtf8("birthdateLabel"));

    gridLayout10->addWidget(birthdateLabel, 4, 0, 1, 2);

    sofCheckBox = new QCheckBox(otherinfoFrame1);
    sofCheckBox->setObjectName(QString::fromUtf8("sofCheckBox"));

    gridLayout10->addWidget(sofCheckBox, 3, 0, 1, 4);

    licensenumberLabel = new QLabel(otherinfoFrame1);
    licensenumberLabel->setObjectName(QString::fromUtf8("licensenumberLabel"));

    gridLayout10->addWidget(licensenumberLabel, 1, 0, 1, 1);

    licensenumberEdit = new QLineEdit(otherinfoFrame1);
    licensenumberEdit->setObjectName(QString::fromUtf8("licensenumberEdit"));
    licensenumberEdit->setMaxLength(15);

    gridLayout10->addWidget(licensenumberEdit, 1, 1, 1, 3);

    spacerItem4 = new QSpacerItem(191, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout10->addItem(spacerItem4, 0, 4, 1, 3);

    ssnEdit = new QLineEdit(otherinfoFrame1);
    ssnEdit->setObjectName(QString::fromUtf8("ssnEdit"));

    gridLayout10->addWidget(ssnEdit, 0, 1, 1, 3);


    gridLayout9->addWidget(otherinfoFrame1, 0, 0, 1, 1);

    otherinformationGroupBox = new QGroupBox(otherTab);
    otherinformationGroupBox->setObjectName(QString::fromUtf8("otherinformationGroupBox"));
    QSizePolicy sizePolicy15(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
    sizePolicy15.setHorizontalStretch(0);
    sizePolicy15.setVerticalStretch(0);
    sizePolicy15.setHeightForWidth(otherinformationGroupBox->sizePolicy().hasHeightForWidth());
    otherinformationGroupBox->setSizePolicy(sizePolicy15);
    gridLayout11 = new QGridLayout(otherinformationGroupBox);
    gridLayout11->setSpacing(2);
    gridLayout11->setMargin(2);
    gridLayout11->setObjectName(QString::fromUtf8("gridLayout11"));

    gridLayout9->addWidget(otherinformationGroupBox, 2, 0, 1, 1);

    otherinfoFrame2 = new QFrame(otherTab);
    otherinfoFrame2->setObjectName(QString::fromUtf8("otherinfoFrame2"));
    otherinfoFrame2->setFrameShape(QFrame::StyledPanel);
    otherinfoFrame2->setFrameShadow(QFrame::Plain);
    gridLayout12 = new QGridLayout(otherinfoFrame2);
    gridLayout12->setSpacing(6);
    gridLayout12->setMargin(9);
    gridLayout12->setObjectName(QString::fromUtf8("gridLayout12"));
    spacerItem5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout12->addItem(spacerItem5, 0, 0, 1, 1);

    sexComboBox = new QComboBox(otherinfoFrame2);
    sexComboBox->setObjectName(QString::fromUtf8("sexComboBox"));

    gridLayout12->addWidget(sexComboBox, 0, 2, 1, 1);

    spacerItem6 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);

    gridLayout12->addItem(spacerItem6, 1, 0, 1, 1);

    sexLabel = new QLabel(otherinfoFrame2);
    sexLabel->setObjectName(QString::fromUtf8("sexLabel"));

    gridLayout12->addWidget(sexLabel, 0, 1, 1, 1);


    gridLayout9->addWidget(otherinfoFrame2, 1, 0, 1, 1);

    mainTab->addTab(otherTab, QApplication::translate("ProviderWindow", "Ot&her", 0, QApplication::UnicodeUTF8));
    appointmentTab = new QWidget();
    appointmentTab->setObjectName(QString::fromUtf8("appointmentTab"));
    mainTab->addTab(appointmentTab, QApplication::translate("ProviderWindow", "A&ppointments", 0, QApplication::UnicodeUTF8));

    gridLayout->addWidget(mainTab, 0, 0, 1, 1);

    taskFrame = new QFrame(this);
    taskFrame->setObjectName(QString::fromUtf8("taskFrame"));
    QSizePolicy sizePolicy16(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(1));
    sizePolicy16.setHorizontalStretch(0);
    sizePolicy16.setVerticalStretch(0);
    sizePolicy16.setHeightForWidth(taskFrame->sizePolicy().hasHeightForWidth());
    taskFrame->setSizePolicy(sizePolicy16);
    taskFrame->setMinimumSize(QSize(115, 16));
    taskFrame->setFrameShape(QFrame::StyledPanel);
    taskFrame->setFrameShadow(QFrame::Plain);
    gridLayout13 = new QGridLayout(taskFrame);
    gridLayout13->setSpacing(2);
    gridLayout13->setMargin(2);
    gridLayout13->setObjectName(QString::fromUtf8("gridLayout13"));
    appointmentButton = new QPushButton(taskFrame);
    appointmentButton->setObjectName(QString::fromUtf8("appointmentButton"));
    appointmentButton->setEnabled(false);

    gridLayout13->addWidget(appointmentButton, 0, 0, 1, 1);

    spacerItem7 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);

    gridLayout13->addItem(spacerItem7, 3, 0, 1, 1);

    deleteButton = new QPushButton(taskFrame);
    deleteButton->setObjectName(QString::fromUtf8("deleteButton"));
    deleteButton->setEnabled(false);

    gridLayout13->addWidget(deleteButton, 2, 0, 1, 1);


    gridLayout->addWidget(taskFrame, 0, 1, 1, 1);

    buttonFrame = new QFrame(this);
    buttonFrame->setObjectName(QString::fromUtf8("buttonFrame"));
    QSizePolicy sizePolicy17(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
    sizePolicy17.setHorizontalStretch(0);
    sizePolicy17.setVerticalStretch(0);
    sizePolicy17.setHeightForWidth(buttonFrame->sizePolicy().hasHeightForWidth());
    buttonFrame->setSizePolicy(sizePolicy17);
    buttonFrame->setFrameShape(QFrame::StyledPanel);
    buttonFrame->setFrameShadow(QFrame::Plain);
    gridLayout14 = new QGridLayout(buttonFrame);
    gridLayout14->setSpacing(2);
    gridLayout14->setMargin(2);
    gridLayout14->setObjectName(QString::fromUtf8("gridLayout14"));
    hboxLayout2 = new QHBoxLayout();
    hboxLayout2->setSpacing(6);
    hboxLayout2->setMargin(0);
    hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
    cancelButton = new QPushButton(buttonFrame);
    cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
    cancelButton->setMinimumSize(QSize(0, 0));
    cancelButton->setMaximumSize(QSize(16777215, 16777215));

    hboxLayout2->addWidget(cancelButton);

    saveButton = new QPushButton(buttonFrame);
    saveButton->setObjectName(QString::fromUtf8("saveButton"));
    saveButton->setMinimumSize(QSize(0, 0));
    saveButton->setMaximumSize(QSize(16777215, 16777215));

    hboxLayout2->addWidget(saveButton);


    gridLayout14->addLayout(hboxLayout2, 0, 4, 1, 1);

    spacerItem8 = new QSpacerItem(207, 16, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout14->addItem(spacerItem8, 0, 3, 1, 1);

    spacerItem9 = new QSpacerItem(16, 16, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout14->addItem(spacerItem9, 0, 2, 1, 1);

    helpButton = new QPushButton(buttonFrame);
    helpButton->setObjectName(QString::fromUtf8("helpButton"));
    helpButton->setEnabled(false);

    gridLayout14->addWidget(helpButton, 0, 0, 1, 1);

    spacerItem10 = new QSpacerItem(16, 16, QSizePolicy::Expanding, QSizePolicy::Minimum);

    gridLayout14->addItem(spacerItem10, 0, 1, 1, 1);


    gridLayout->addWidget(buttonFrame, 1, 0, 1, 2);

    codeLabel->setBuddy(codeEdit);
    firstnameLabel->setBuddy(firstnameEdit);
    streetLabel->setBuddy(street1Edit);
    lastnameLabel->setBuddy(lastnameEdit);
    zipLabel->setBuddy(zipcodeEdit);
    cityLabel->setBuddy(cityEdit);
    countryLabel->setBuddy(countryEdit);
    stateLabel->setBuddy(stateEdit);
    middleiLabel->setBuddy(middleiEdit);
    workphoneLabel->setBuddy(workphoneEdit);
    faxLabel->setBuddy(faxEdit);
    homephoneLabel->setBuddy(homephoneEdit);
    mobilephoneLabel->setBuddy(mobilephoneEdit);
    emailLabel->setBuddy(emailEdit);
    sofdateLabel->setBuddy(sofdateEdit);
    ssnLabel->setBuddy(ssnEdit);
    datecreatedLabel->setBuddy(datecreatedEdit);
    birthdateLabel->setBuddy(birthdateEdit);
    licensenumberLabel->setBuddy(licensenumberEdit);
    QWidget::setTabOrder(mainTab, codeEdit);
    QWidget::setTabOrder(codeEdit, provideractiveCheckBox);
    QWidget::setTabOrder(provideractiveCheckBox, lastnameEdit);
    QWidget::setTabOrder(lastnameEdit, firstnameEdit);
    QWidget::setTabOrder(firstnameEdit, middleiEdit);
    QWidget::setTabOrder(middleiEdit, street1Edit);
    QWidget::setTabOrder(street1Edit, street2Edit);
    QWidget::setTabOrder(street2Edit, cityEdit);
    QWidget::setTabOrder(cityEdit, stateEdit);
    QWidget::setTabOrder(stateEdit, zipcodeEdit);
    QWidget::setTabOrder(zipcodeEdit, zipextEdit);
    QWidget::setTabOrder(zipextEdit, countryEdit);
    QWidget::setTabOrder(countryEdit, homephoneEdit);
    QWidget::setTabOrder(homephoneEdit, homeextEdit);
    QWidget::setTabOrder(homeextEdit, workphoneEdit);
    QWidget::setTabOrder(workphoneEdit, workextEdit);
    QWidget::setTabOrder(workextEdit, mobilephoneEdit);
    QWidget::setTabOrder(mobilephoneEdit, mobileextEdit);
    QWidget::setTabOrder(mobileextEdit, faxEdit);
    QWidget::setTabOrder(faxEdit, faxextEdit);
    QWidget::setTabOrder(faxextEdit, emailEdit);
    QWidget::setTabOrder(emailEdit, ssnEdit);
    QWidget::setTabOrder(ssnEdit, licensenumberEdit);
    QWidget::setTabOrder(licensenumberEdit, sofCheckBox);
    QWidget::setTabOrder(sofCheckBox, birthdateEdit);
    QWidget::setTabOrder(birthdateEdit, sofdateEdit);
    QWidget::setTabOrder(sofdateEdit, datecreatedEdit);
    QWidget::setTabOrder(datecreatedEdit, cancelButton);
    QWidget::setTabOrder(cancelButton, saveButton);
    QWidget::setTabOrder(saveButton, helpButton);
    QWidget::setTabOrder(helpButton, appointmentButton);
    QWidget::setTabOrder(appointmentButton, deleteButton);

    setWindowTitle(QApplication::translate("ProviderWindow", "Provider Edit", 0, QApplication::UnicodeUTF8));
    codemessageLabel->setText(QApplication::translate("ProviderWindow", "<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body style=\" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\"><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">I<span style=\" font-size:8pt;\">f Provider ID not specified one will be created.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
    provideractiveCheckBox->setText(QApplication::translate("ProviderWindow", "Provider &Active", 0, QApplication::UnicodeUTF8));
    codeLabel->setText(QApplication::translate("ProviderWindow", "Provider ID:", 0, QApplication::UnicodeUTF8));
    firstnameLabel->setText(QApplication::translate("ProviderWindow", "&First Name:", 0, QApplication::UnicodeUTF8));
    streetLabel->setText(QApplication::translate("ProviderWindow", "&Street:", 0, QApplication::UnicodeUTF8));
    lastnameLabel->setText(QApplication::translate("ProviderWindow", "&Last Name:", 0, QApplication::UnicodeUTF8));
    zipLabel->setText(QApplication::translate("ProviderWindow", "&Zip Code:", 0, QApplication::UnicodeUTF8));
    cityLabel->setText(QApplication::translate("ProviderWindow", "C&ity:", 0, QApplication::UnicodeUTF8));
    countryLabel->setText(QApplication::translate("ProviderWindow", "C&ountry:", 0, QApplication::UnicodeUTF8));
    zipdashLabel->setText(QApplication::translate("ProviderWindow", "-", 0, QApplication::UnicodeUTF8));
    stateLabel->setText(QApplication::translate("ProviderWindow", "&State:", 0, QApplication::UnicodeUTF8));
    middleiLabel->setText(QApplication::translate("ProviderWindow", "&M.I.:", 0, QApplication::UnicodeUTF8));
    phonecontactGroupBox->setTitle(QApplication::translate("ProviderWindow", "Phone/Contact Information", 0, QApplication::UnicodeUTF8));
    workphoneEdit->setInputMask(QApplication::translate("ProviderWindow", "(999)999-9999; ", 0, QApplication::UnicodeUTF8));
    workphoneLabel->setText(QApplication::translate("ProviderWindow", "O&ffice:", 0, QApplication::UnicodeUTF8));
    faxLabel->setText(QApplication::translate("ProviderWindow", "Fa&x;", 0, QApplication::UnicodeUTF8));
    faxEdit->setInputMask(QApplication::translate("ProviderWindow", "(999)999-9999; ", 0, QApplication::UnicodeUTF8));
    homephoneLabel->setText(QApplication::translate("ProviderWindow", "Ho&me:", 0, QApplication::UnicodeUTF8));
    mobilephoneLabel->setText(QApplication::translate("ProviderWindow", "Mo&bile:", 0, QApplication::UnicodeUTF8));
    homephoneEdit->setInputMask(QApplication::translate("ProviderWindow", "(999)999-9999; ", 0, QApplication::UnicodeUTF8));
    mobilephoneEdit->setInputMask(QApplication::translate("ProviderWindow", "(999)999-9999; ", 0, QApplication::UnicodeUTF8));
    emailLabel->setText(QApplication::translate("ProviderWindow", "&E-Mail:", 0, QApplication::UnicodeUTF8));
    mainTab->setTabText(mainTab->indexOf(nameTab), QApplication::translate("ProviderWindow", "Name/Co&ntact Information", 0, QApplication::UnicodeUTF8));
    sofdateLabel->setText(QApplication::translate("ProviderWindow", "S&ignature Date:", 0, QApplication::UnicodeUTF8));
    sofdateEdit->setDisplayFormat(QApplication::translate("ProviderWindow", "MM/dd/yyyy", 0, QApplication::UnicodeUTF8));
    birthdateEdit->setDisplayFormat(QApplication::translate("ProviderWindow", "MM/dd/yyyy", 0, QApplication::UnicodeUTF8));
    ssnLabel->setText(QApplication::translate("ProviderWindow", "S&SN:", 0, QApplication::UnicodeUTF8));
    datecreatedLabel->setText(QApplication::translate("ProviderWindow", "&Date Created:", 0, QApplication::UnicodeUTF8));
    datecreatedEdit->setDisplayFormat(QApplication::translate("ProviderWindow", "MM/dd/yyyy", 0, QApplication::UnicodeUTF8));
    birthdateLabel->setText(QApplication::translate("ProviderWindow", "&Birth Date:", 0, QApplication::UnicodeUTF8));
    sofCheckBox->setText(QApplication::translate("ProviderWindow", "Si&gnature on File", 0, QApplication::UnicodeUTF8));
    licensenumberLabel->setText(QApplication::translate("ProviderWindow", "License#:", 0, QApplication::UnicodeUTF8));
    ssnEdit->setInputMask(QApplication::translate("ProviderWindow", "999-99-9999; ", 0, QApplication::UnicodeUTF8));
    otherinformationGroupBox->setTitle(QApplication::translate("ProviderWindow", "Other Information", 0, QApplication::UnicodeUTF8));
    sexComboBox->addItem(QApplication::translate("ProviderWindow", "", 0, QApplication::UnicodeUTF8));
    sexComboBox->addItem(QApplication::translate("ProviderWindow", "M", 0, QApplication::UnicodeUTF8));
    sexComboBox->addItem(QApplication::translate("ProviderWindow", "F", 0, QApplication::UnicodeUTF8));
    sexLabel->setText(QApplication::translate("ProviderWindow", "Sex:", 0, QApplication::UnicodeUTF8));
    mainTab->setTabText(mainTab->indexOf(otherTab), QApplication::translate("ProviderWindow", "Ot&her", 0, QApplication::UnicodeUTF8));
    mainTab->setTabText(mainTab->indexOf(appointmentTab), QApplication::translate("ProviderWindow", "A&ppointments", 0, QApplication::UnicodeUTF8));
    appointmentButton->setText(QApplication::translate("ProviderWindow", "Appointments", 0, QApplication::UnicodeUTF8));
    deleteButton->setText(QApplication::translate("ProviderWindow", "Delete Provider", 0, QApplication::UnicodeUTF8));
    cancelButton->setText(QApplication::translate("ProviderWindow", "C&ancel", 0, QApplication::UnicodeUTF8));
    saveButton->setText(QApplication::translate("ProviderWindow", "&Save", 0, QApplication::UnicodeUTF8));
    helpButton->setText(QApplication::translate("ProviderWindow", "&Help", 0, QApplication::UnicodeUTF8));



// My Modifications After the past from providerwindow.ui


if(record->getType() != PROVIDER_NEW)
{
	deleteButton->setEnabled(true);
}

codeLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
firstnameLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
streetLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
lastnameLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
zipLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
cityLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
countryLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
zipdashLabel->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
workphoneLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
faxLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
homephoneLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
mobilephoneLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
homephoneLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
emailLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
sofdateLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
datecreatedLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
ssnLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
licensenumberLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
sexLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);

}
Exemplo n.º 4
0
void
MainWindow::makeUI()
{
    setObjectName(QString::fromUtf8("MainWindow"));
#if 1
    action_Exit = new QAction(this);
    action_Exit->setObjectName(QString::fromUtf8("action_Exit"));
	//connect(action_Exit, SIGNAL(triggered()), qApp, SLOT(quit()));
	connect(action_Exit, SIGNAL(triggered()), this, SLOT(close()));
#endif

    centralwidget = new QWidget(this);
    centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
	
    widget = new QWidget(centralwidget);
    widget->setObjectName(QString::fromUtf8("widget"));
    widget->setGeometry(QRect(190, 0, 1080, 821));
    widget->setMinimumSize(QSize(400, 0));
    vboxLayout = new QVBoxLayout(widget);
    vboxLayout->setSpacing(0);
    vboxLayout->setMargin(0);
    vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
    dockWidget = new QDockWidget(widget);
    dockWidget->setObjectName(QString::fromUtf8("dockWidget"));
    QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
    sizePolicy.setHorizontalStretch(0);
    sizePolicy.setVerticalStretch(0);
    sizePolicy.setHeightForWidth(dockWidget->sizePolicy().hasHeightForWidth());
    dockWidget->setSizePolicy(sizePolicy);
    dockWidgetContents = new QWidget(dockWidget);
    dockWidgetContents->setObjectName(QString::fromUtf8("dockWidgetContents"));

    vdockLayout = new QVBoxLayout(widget);
    vdockLayout->setSpacing(0);
    vdockLayout->setMargin(0);
    vdockLayout->setObjectName(QString::fromUtf8("vdockLayout"));

    stackedWidget = new QStackedWidget(dockWidgetContents);
    stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
    stackedWidget->setGeometry(QRect(0, 0, 1080, 821));
    dockWidget->setWidget(dockWidgetContents);

    vboxLayout->addWidget(dockWidget);

	dockWidgetContents->setLayout(vdockLayout);
	vdockLayout->addWidget(stackedWidget);

    tabWidget = new QTabWidget(centralwidget);
    tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
    tabWidget->setGeometry(QRect(0, 0, 190, 821));
    QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(5));
    sizePolicy1.setHorizontalStretch(0);
    sizePolicy1.setVerticalStretch(0);
    sizePolicy1.setHeightForWidth(tabWidget->sizePolicy().hasHeightForWidth());

    tabWidget->setSizePolicy(sizePolicy1);
    tabWidget->setMaximumSize(QSize(16777215, 16777215));
    tabWidget->setTabPosition(QTabWidget::West);
    tabWidget->setTabShape(QTabWidget::Triangular);
    tabWidget->setElideMode(Qt::ElideNone);

    tab_0 = new QWidget();
    tab_0->setObjectName(QString::fromUtf8("tab_0"));
    QFont font;
    font.setPointSize(14);
    vboxLayout0 = new QVBoxLayout(tab_0);
    vboxLayout0->setSpacing(6);
    vboxLayout0->setMargin(9);
    vboxLayout0->setAlignment(Qt::AlignTop);
    vboxLayout0->setObjectName(QString::fromUtf8("vboxLayout0"));

    pushButton[0] = new QPushButton(tab_0);
    pushButton[0]->setObjectName(QString::fromUtf8("pushButton_0"));
    pushButton[0]->setFont(font);
    pushButton[0]->setText(QApplication::translate("MainWindow", "PMS In Board", 0, QApplication::UnicodeUTF8));
    vboxLayout0->addWidget(pushButton[0]);

    pushButton[1] = new QPushButton(tab_0);
    pushButton[1]->setObjectName(QString::fromUtf8("pushButton_1"));
    pushButton[1]->setFont(font);
    pushButton[1]->setText(QApplication::translate("MainWindow", "PMS Out Board", 0, QApplication::UnicodeUTF8));
    vboxLayout0->addWidget(pushButton[1]);

    QSpacerItem *spacerItem;
    //spacerItem = new QSpacerItem(31, 61, QSizePolicy::Minimum, QSizePolicy::Expanding);
    spacerItem = new QSpacerItem(31, 61, QSizePolicy::Minimum, QSizePolicy::Fixed);
    vboxLayout0->addItem(spacerItem);

	//Add Code.
    archiveList = new QComboBox(tab_0);
    archiveList->setObjectName(QString::fromUtf8("archiveList"));
    vboxLayout0->addWidget(archiveList);

    Start_dateTime = new QDateTimeEdit(tab_0);
    Start_dateTime->setObjectName(QString::fromUtf8("Start_dateTime"));
    Start_dateTime->setDisplayFormat("yyyy/MM/dd hh:mm:ss");
    Start_dateTime->setDateTime(QDateTime(QDate(2012,5,29), QTime(12,0,0)));
    vboxLayout0->addWidget(Start_dateTime);

    End_dateTime = new QDateTimeEdit(tab_0);
    End_dateTime->setObjectName(QString::fromUtf8("End_dateTime"));
    End_dateTime->setDisplayFormat("yyyy/MM/dd hh:mm:ss");
    End_dateTime->setDateTime(QDateTime(QDate(2012,5,29), QTime(13,0,0)));
    vboxLayout0->addWidget(End_dateTime);

    RButton = new QPushButton(tab_0);
    RButton->setObjectName(QString::fromUtf8("RButton"));
    RButton->setText("OK");
	if(RButton!=0) connect(RButton, SIGNAL(clicked()), this, SLOT(getChannelValues()));
    //RButton->setGeometry(QRect(980, 20, 80, 27));
    vboxLayout0->addWidget(RButton);


    currentTimeLabel = new QLabel(tab_0);
    currentTimeLabel->setObjectName(QString::fromUtf8("currentTimeLabel"));
    currentTimeLabel->setText("Current Index Time");
    //currentTimeLabel->setGeometry(QRect(760, 7, 161, 21));
    vboxLayout0->addWidget(currentTimeLabel);

    timeSlider = new QSlider(tab_0);
    timeSlider->setObjectName(QString::fromUtf8("timeSlider"));
    //timeSlider->setGeometry(QRect(760, 24, 201, 16));
    timeSlider->setValue(-1);
    timeSlider->setOrientation(Qt::Horizontal);
	connect(timeSlider, SIGNAL(valueChanged(int)), this, SLOT(readValue(int)));
    vboxLayout0->addWidget(timeSlider);

	//--> Splitter
    splitter = new QSplitter(tab_0);
    splitter->setObjectName(QString::fromUtf8("splitter"));
    splitter->setOrientation(Qt::Horizontal);

    incButtonDouble = new QPushButton(splitter);
    incButtonDouble->setObjectName(QString::fromUtf8("incButtonDouble"));
    QSizePolicy sizePol(QSizePolicy::Fixed, QSizePolicy::Fixed);
    sizePol.setHeightForWidth(incButtonDouble->sizePolicy().hasHeightForWidth());
    incButtonDouble->setSizePolicy(sizePol);
    incButtonDouble->setText("<<");
	connect(incButtonDouble,SIGNAL(clicked()), this, SLOT(decDouble()));
    splitter->addWidget(incButtonDouble);

    incButton = new QPushButton(splitter);
    incButton->setObjectName(QString::fromUtf8("incButton"));
    sizePol.setHeightForWidth(incButton->sizePolicy().hasHeightForWidth());
    incButton->setSizePolicy(sizePol);
    incButton->setText("<");
	connect(incButton,SIGNAL(clicked()), this, SLOT(decrease()));
    splitter->addWidget(incButton);

    decButton = new QPushButton(splitter);
    decButton->setObjectName(QString::fromUtf8("decButton"));
    sizePol.setHeightForWidth(decButton->sizePolicy().hasHeightForWidth());
    decButton->setSizePolicy(sizePol);
    decButton->setText(">");
	connect(decButton,SIGNAL(clicked()), this, SLOT(increase()));
    splitter->addWidget(decButton);

    decButtonDouble = new QPushButton(splitter);
    decButtonDouble->setObjectName(QString::fromUtf8("decButtonDouble"));
    sizePol.setHeightForWidth(decButtonDouble->sizePolicy().hasHeightForWidth());
    decButtonDouble->setSizePolicy(sizePol);
    decButtonDouble->setText(">>");
	connect(decButtonDouble,SIGNAL(clicked()), this, SLOT(incDouble()));
    splitter->addWidget(decButtonDouble);

    vboxLayout0->addWidget(splitter);
	//<-- Splitter

    splitter2 = new QSplitter(tab_0);
    splitter2->setObjectName(QString::fromUtf8("splitter2"));
    splitter2->setOrientation(Qt::Horizontal);

    stopButton = new QPushButton(splitter2);
    stopButton->setObjectName(QString::fromUtf8("stopButton"));
    sizePol.setHeightForWidth(stopButton->sizePolicy().hasHeightForWidth());
    stopButton->setSizePolicy(sizePol);
    stopButton->setText("Stop");
	connect(stopButton,SIGNAL(clicked()), this, SLOT(timerStop()));
    splitter2->addWidget(stopButton);

    startButton = new QPushButton(splitter2);
    startButton->setObjectName(QString::fromUtf8("startButton"));
    sizePol.setHeightForWidth(startButton->sizePolicy().hasHeightForWidth());
    startButton->setSizePolicy(sizePol);
    startButton->setText("Run");
	connect(startButton,SIGNAL(clicked()), this, SLOT(timerRun()));
    splitter2->addWidget(startButton);

    vboxLayout0->addWidget(splitter2);

    tabWidget->addTab(tab_0, QApplication::translate("MainWindow", "PMS Panel", 0, QApplication::UnicodeUTF8));

    menubar = new QMenuBar(this);
    menubar->setObjectName(QString::fromUtf8("menubar"));
    menubar->setGeometry(QRect(0, 0, 1280, 30));
    menu_File = new QMenu(menubar);
    menu_File->setObjectName(QString::fromUtf8("menu_File"));
    menu_Util = new QMenu(menubar);
    menu_Util->setObjectName(QString::fromUtf8("menu_Util"));

	menu_Help = new QMenu(menubar);
	menu_Help->setObjectName(QString::fromUtf8("menu_Help"));
    setMenuBar(menubar);

    QLabel *slabel1 = new QLabel("Set your mouse on the dynamic value to read PVNAME.");
    slabel1->setAlignment(Qt::AlignHCenter);
    slabel1->setMinimumSize(slabel1->sizeHint());
    slabel1->setFrameStyle(QFrame::Panel | QFrame::Plain);

    QFrame *sframe = new QFrame();
    QVBoxLayout *svlayout = new QVBoxLayout(sframe);
    svlayout->setSpacing(1);
    svlayout->setMargin(2);

    statusBar()->addWidget(sframe,1);
    
    toolBar = new QToolBar(this);
    toolBar->setObjectName(QString::fromUtf8("toolBar"));
    QPalette palette;
    QBrush brush(QColor(108, 147, 255, 100));
    brush.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Active, QPalette::Base, brush);
    palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush);
    QBrush brush1(QColor(44, 51, 91, 100));
    brush1.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Active, QPalette::Window, brush1);
    QBrush brush2(QColor(108, 147, 255, 100));
    brush2.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Inactive, QPalette::Base, brush2);
    QBrush brush3(QColor(44, 51, 91, 100));
    brush3.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Inactive, QPalette::Window, brush3);
    QBrush brush4(QColor(44, 51, 91, 100));
    brush4.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Disabled, QPalette::Base, brush4);
    QBrush brush5(QColor(44, 51, 91, 100));
    brush5.setStyle(Qt::SolidPattern);
    palette.setBrush(QPalette::Disabled, QPalette::Window, brush5);
    toolBar->setPalette(palette);
    toolBar->setOrientation(Qt::Horizontal);
    addToolBar(static_cast<Qt::ToolBarArea>(4), toolBar);

    menubar->addAction(menu_File->menuAction());
    menubar->addAction(menu_Util->menuAction());
	menubar->addSeparator();
    menubar->addAction(menu_Help->menuAction());


    menu_File->addAction(action_Exit);

    QSize size(1280, 1024);
    size = size.expandedTo(minimumSizeHint());
    resize(size);
    tabWidget->setCurrentIndex(0);
    QMetaObject::connectSlotsByName(this);

    msgframe = new QFrame(centralwidget);
    msgframe->setObjectName(QString::fromUtf8("msgframe"));
    QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(5));
    sizePolicy4.setHorizontalStretch(0);
    sizePolicy4.setVerticalStretch(0);
    msgframe->setGeometry(QRect(19, 820, 1255, 90));
    //msgframe->setSizePolicy(sizePolicy4);
    //msgframe->setGeometry(QRect(18, 880, 1254, 70));
    //msgframe->setMinimumSize(QSize(1164, 90));
    //msgframe->setFrameShape(QFrame::StyledPanel);
    //msgframe->setFrameShadow(QFrame::Raised);

	setCentralWidget(centralwidget);

	QObject::connect(tabWidget, SIGNAL(currentChanged(int)), SLOT(setDefaultIndex(int))); 

	// Set Object Text.
	setWindowTitle(QApplication::translate("MainWindow", "PMS (Plant Monitoring System)", 0, QApplication::UnicodeUTF8));
    action_Exit->setText(QApplication::translate("MainWindow", "e&Xit", 0, QApplication::UnicodeUTF8));
    tabWidget->setTabText(tabWidget->indexOf(tab_0), QApplication::translate("MainWindow", "PMS Data Retrieval", 0, QApplication::UnicodeUTF8));
    menu_File->setTitle(QApplication::translate("MainWindow", "&File", 0, QApplication::UnicodeUTF8));
    menu_Util->setTitle(QApplication::translate("MainWindow", "&Util", 0, QApplication::UnicodeUTF8));
    menu_Help->setTitle(QApplication::translate("MainWindow", "&Help", 0, QApplication::UnicodeUTF8));

} // makeUI