/*!
	\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);


}
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);

}
Exemple #3
0
/**
  Man constructor

  @param[in] parent The parent window
*/
  Man::Man(QWidget* parent) : QDockWidget ( 0 ) {
    setObjectName("Man");
    setObjectName(QString::fromUtf8("dockManual"));
    setGeometry(QRect(783, 24, 201, 629));
    QSizePolicy sizePolicy5(QSizePolicy::Ignored, QSizePolicy::Ignored);
    sizePolicy5.setHorizontalStretch(0);
    sizePolicy5.setVerticalStretch(0);
    sizePolicy5.setHeightForWidth(sizePolicy().hasHeightForWidth());
    setSizePolicy(sizePolicy5);
    setMinimumSize(QSize(200, 200));
    setMaximumSize(QSize(16777215, 16777215));
    setAllowedAreas(Qt::AllDockWidgetAreas);
    dockManualContents = new QWidget(this);
    dockManualContents->setObjectName(QString::fromUtf8("dockManualContents"));
    dockManualContents->setGeometry(QRect(2, 22, 197, 605));
    verticalLayout = new QVBoxLayout(dockManualContents);
    verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
    verticalLayout->setContentsMargins(0, 0, 0, 0);
    hlFindManPage = new QHBoxLayout();
    hlFindManPage->setObjectName(QString::fromUtf8("hlFindManPage"));
    cbbManPagelist = new KComboBox(dockManualContents);
    cbbManPagelist->setObjectName(QString::fromUtf8("cbbManPagelist"));
    cbbManPagelist->setEditable(true);
    cbbManPagelist->setMaxVisibleItems(50);
    cbbManPagelist->setInsertPolicy(QComboBox::NoInsert);
    cbbManPagelist->setAutoCompletion(false);
    cbbManPagelist->setTrapReturnKey(false);
    hlFindManPage->addWidget(cbbManPagelist);

    btnFindManPage = new KPushButton(dockManualContents);
    btnFindManPage->setObjectName(QString::fromUtf8("btnFindManPage"));
    btnFindManPage->setMaximumSize(QSize(60, 16777215));
    btnFindManPage->setSizeIncrement(QSize(0, 0));
    hlFindManPage->addWidget(btnFindManPage);
    verticalLayout->addLayout(hlFindManPage);

    tbManInfo = new QToolBox(dockManualContents);
    tbManInfo->setObjectName(QString::fromUtf8("tbManInfo"));
    QSizePolicy sizePolicy6(QSizePolicy::Expanding, QSizePolicy::Expanding);
    sizePolicy6.setHorizontalStretch(0);
    sizePolicy6.setVerticalStretch(0);
    sizePolicy6.setHeightForWidth(tbManInfo->sizePolicy().hasHeightForWidth());
    tbManInfo->setSizePolicy(sizePolicy6);
    tbManInfo->setBaseSize(QSize(240, 91));
    tbManInfo->setStyleSheet(QString::fromUtf8(""));
    tbManInfo->setLineWidth(1);
    pageManual = new QWidget();
    pageManual->setObjectName(QString::fromUtf8("pageManual"));
    pageManual->setGeometry(QRect(0, 0, 179, 469));
    verticalLayout_2 = new QVBoxLayout(pageManual);
    verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
    rtfManPage = new QTextBrowser(pageManual);
    rtfManPage->setObjectName(QString::fromUtf8("rtfManPage"));
    verticalLayout_2->addWidget(rtfManPage);

    tbManInfo->addItem(pageManual, "Manuel");
    PageUsage = new QWidget();
    PageUsage->setObjectName(QString::fromUtf8("PageUsage"));
    PageUsage->setGeometry(QRect(0, 0, 179, 469));
    verticalLayout_4 = new QVBoxLayout(PageUsage);
    verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
    tblUsage = new QTableWidget(PageUsage);
    if (tblUsage->columnCount() < 2)
        tblUsage->setColumnCount(2);
    QTableWidgetItem *__colItem = new QTableWidgetItem();
    tblUsage->setHorizontalHeaderItem(0, __colItem);
    QTableWidgetItem *__colItem1 = new QTableWidgetItem();
    tblUsage->setHorizontalHeaderItem(1, __colItem1);
    tblUsage->setObjectName(QString::fromUtf8("tblUsage"));
    tblUsage->setMidLineWidth(0);
    tblUsage->setEditTriggers(QAbstractItemView::NoEditTriggers);
    tblUsage->setSelectionMode(QAbstractItemView::NoSelection);
    tblUsage->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
    tblUsage->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
    verticalLayout_4->addWidget(tblUsage);

    tbManInfo->addItem(PageUsage, "Usage");
    pageOptions = new QWidget();
    pageOptions->setObjectName(QString::fromUtf8("pageOptions"));
    pageOptions->setGeometry(QRect(0, 0, 179, 469));
    verticalLayout_3 = new QVBoxLayout(pageOptions);
    verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
    tblOptions = new QTableWidget(pageOptions);
    if (tblOptions->columnCount() < 2)
        tblOptions->setColumnCount(2);
    QTableWidgetItem *__colItem2 = new QTableWidgetItem();
    tblOptions->setHorizontalHeaderItem(0, __colItem2);
    QTableWidgetItem *__colItem3 = new QTableWidgetItem();
    tblOptions->setHorizontalHeaderItem(1, __colItem3);
    tblOptions->setObjectName(QString::fromUtf8("tblOptions"));
    tblOptions->setEnabled(true);
    tblOptions->setDragEnabled(true);
    tblOptions->setDragDropMode(QAbstractItemView::DragOnly);
    tblOptions->setSelectionMode(QAbstractItemView::NoSelection);
    verticalLayout_3->addWidget(tblOptions);
    tbManInfo->addItem(pageOptions, "Options");

    verticalLayout->addWidget(tbManInfo);
    tblUsage->verticalHeader()->hide();
    tblOptions->verticalHeader()->hide();
    
    setWidget(dockManualContents);
    tbManInfo->setCurrentIndex(0);
    translateUi();

    QSqlQuery query;
    query.exec("SELECT TITLE FROM TMAN_PAGE");
    
     while (query.next()) 
       cbbManPagelist->addItem(query.value(0).toString());
         
    cbbManPagelist->model()->sort(0);
    cbbManPagelist->setCurrentIndex(0);
    QObject::connect(cbbManPagelist, SIGNAL(currentIndexChanged(int)), this, SLOT(loadPage()));
  }