#include <kdialog.h>
#include <klocale.h>

/********************************************************************************
** Form generated from reading UI file 'kpttaskgeneralpanelbase.ui'
**
** Created by: Qt User Interface Compiler version 4.8.7
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_KPTTASKGENERALPANELBASE_H
#define UI_KPTTASKGENERALPANELBASE_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDateEdit>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QTimeEdit>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "kcombobox.h"
#include "klineedit.h"
#include "kptdurationspinbox.h"

namespace KPlato {

class Ui_TaskGeneralPanelBase
{
public:
    QVBoxLayout *verticalLayout;
    QGridLayout *gridLayout_2;
    QLabel *wbslabel;
    QLabel *wbsfield;
    QLabel *namelabel;
    KLineEdit *namefield;
    QLabel *leaderlabel;
    QHBoxLayout *hboxLayout;
    KLineEdit *leaderfield;
    QPushButton *chooseLeader;
    QGroupBox *schedulingGroup;
    QGridLayout *gridLayout;
    QFrame *frame;
    QGridLayout *gridLayout1;
    QLabel *textLabel3;
    KComboBox *scheduleType;
    QTimeEdit *scheduleStartTime;
    QTimeEdit *scheduleEndTime;
    QDateEdit *scheduleStartDate;
    QDateEdit *scheduleEndDate;
    QSpacerItem *horizontalSpacer;
    QFrame *frame_2;
    QGridLayout *gridLayout_3;
    QLabel *textLabel3_2;
    DurationSpinBox *estimate;
    KComboBox *estimateType;
    KComboBox *calendarCombo;
    QLabel *textLabel3_2_3;
    KComboBox *risk;
    QLabel *textLabel1_2;
    QSpinBox *optimisticValue;
    QLabel *textLabel2_2;
    QSpinBox *pessimisticValue;
    QSpacerItem *horizontalSpacer_2;
    QSpacerItem *verticalSpacer;

    void setupUi(QWidget *KPlato__TaskGeneralPanelBase)
    {
        if (KPlato__TaskGeneralPanelBase->objectName().isEmpty())
            KPlato__TaskGeneralPanelBase->setObjectName(QString::fromUtf8("KPlato__TaskGeneralPanelBase"));
        KPlato__TaskGeneralPanelBase->resize(405, 240);
        verticalLayout = new QVBoxLayout(KPlato__TaskGeneralPanelBase);
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        gridLayout_2 = new QGridLayout();
        gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
        wbslabel = new QLabel(KPlato__TaskGeneralPanelBase);
        wbslabel->setObjectName(QString::fromUtf8("wbslabel"));
        wbslabel->setWordWrap(false);
        wbslabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout_2->addWidget(wbslabel, 0, 0, 1, 1);

        wbsfield = new QLabel(KPlato__TaskGeneralPanelBase);
        wbsfield->setObjectName(QString::fromUtf8("wbsfield"));
        wbsfield->setFrameShape(QFrame::StyledPanel);
        wbsfield->setFrameShadow(QFrame::Sunken);
        wbsfield->setWordWrap(false);

        gridLayout_2->addWidget(wbsfield, 0, 1, 1, 1);

        namelabel = new QLabel(KPlato__TaskGeneralPanelBase);
        namelabel->setObjectName(QString::fromUtf8("namelabel"));
        namelabel->setWordWrap(false);
        namelabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout_2->addWidget(namelabel, 1, 0, 1, 1);

        namefield = new KLineEdit(KPlato__TaskGeneralPanelBase);
        namefield->setObjectName(QString::fromUtf8("namefield"));

        gridLayout_2->addWidget(namefield, 1, 1, 1, 1);

        leaderlabel = new QLabel(KPlato__TaskGeneralPanelBase);
        leaderlabel->setObjectName(QString::fromUtf8("leaderlabel"));
        leaderlabel->setWordWrap(false);
        leaderlabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout_2->addWidget(leaderlabel, 2, 0, 1, 1);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setContentsMargins(0, 0, 0, 0);
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        leaderfield = new KLineEdit(KPlato__TaskGeneralPanelBase);
        leaderfield->setObjectName(QString::fromUtf8("leaderfield"));

        hboxLayout->addWidget(leaderfield);

        chooseLeader = new QPushButton(KPlato__TaskGeneralPanelBase);
        chooseLeader->setObjectName(QString::fromUtf8("chooseLeader"));

        hboxLayout->addWidget(chooseLeader);


        gridLayout_2->addLayout(hboxLayout, 2, 1, 1, 1);


        verticalLayout->addLayout(gridLayout_2);

        schedulingGroup = new QGroupBox(KPlato__TaskGeneralPanelBase);
        schedulingGroup->setObjectName(QString::fromUtf8("schedulingGroup"));
        gridLayout = new QGridLayout(schedulingGroup);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        frame = new QFrame(schedulingGroup);
        frame->setObjectName(QString::fromUtf8("frame"));
        frame->setFrameShape(QFrame::NoFrame);
        frame->setFrameShadow(QFrame::Raised);
        gridLayout1 = new QGridLayout(frame);
        gridLayout1->setContentsMargins(0, 0, 0, 0);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        textLabel3 = new QLabel(frame);
        textLabel3->setObjectName(QString::fromUtf8("textLabel3"));
        textLabel3->setWordWrap(false);
        textLabel3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        scheduleType = new KComboBox(frame);
        scheduleType->setObjectName(QString::fromUtf8("scheduleType"));
        QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(scheduleType->sizePolicy().hasHeightForWidth());
        scheduleType->setSizePolicy(sizePolicy);

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

        scheduleStartTime = new QTimeEdit(frame);
        scheduleStartTime->setObjectName(QString::fromUtf8("scheduleStartTime"));

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

        scheduleEndTime = new QTimeEdit(frame);
        scheduleEndTime->setObjectName(QString::fromUtf8("scheduleEndTime"));

        gridLayout1->addWidget(scheduleEndTime, 1, 3, 1, 1);

        scheduleStartDate = new QDateEdit(frame);
        scheduleStartDate->setObjectName(QString::fromUtf8("scheduleStartDate"));
        scheduleStartDate->setCalendarPopup(true);

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

        scheduleEndDate = new QDateEdit(frame);
        scheduleEndDate->setObjectName(QString::fromUtf8("scheduleEndDate"));
        scheduleEndDate->setCalendarPopup(true);

        gridLayout1->addWidget(scheduleEndDate, 1, 2, 1, 1);

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

        gridLayout1->addItem(horizontalSpacer, 0, 4, 1, 1);


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

        frame_2 = new QFrame(schedulingGroup);
        frame_2->setObjectName(QString::fromUtf8("frame_2"));
        frame_2->setFrameShape(QFrame::NoFrame);
        frame_2->setFrameShadow(QFrame::Raised);
        gridLayout_3 = new QGridLayout(frame_2);
        gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
        textLabel3_2 = new QLabel(frame_2);
        textLabel3_2->setObjectName(QString::fromUtf8("textLabel3_2"));
        textLabel3_2->setWordWrap(false);
        textLabel3_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout_3->addWidget(textLabel3_2, 0, 0, 1, 1);

        estimate = new DurationSpinBox(frame_2);
        estimate->setObjectName(QString::fromUtf8("estimate"));

        gridLayout_3->addWidget(estimate, 0, 1, 1, 1);

        estimateType = new KComboBox(frame_2);
        estimateType->setObjectName(QString::fromUtf8("estimateType"));
        sizePolicy.setHeightForWidth(estimateType->sizePolicy().hasHeightForWidth());
        estimateType->setSizePolicy(sizePolicy);
        estimateType->setEditable(false);

        gridLayout_3->addWidget(estimateType, 0, 2, 1, 2);

        calendarCombo = new KComboBox(frame_2);
        calendarCombo->setObjectName(QString::fromUtf8("calendarCombo"));

        gridLayout_3->addWidget(calendarCombo, 0, 4, 1, 2);

        textLabel3_2_3 = new QLabel(frame_2);
        textLabel3_2_3->setObjectName(QString::fromUtf8("textLabel3_2_3"));
        textLabel3_2_3->setWordWrap(false);
        textLabel3_2_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout_3->addWidget(textLabel3_2_3, 1, 0, 1, 1);

        risk = new KComboBox(frame_2);
        risk->setObjectName(QString::fromUtf8("risk"));
        sizePolicy.setHeightForWidth(risk->sizePolicy().hasHeightForWidth());
        risk->setSizePolicy(sizePolicy);
        risk->setEditable(false);

        gridLayout_3->addWidget(risk, 1, 1, 1, 1);

        textLabel1_2 = new QLabel(frame_2);
        textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
        textLabel1_2->setWordWrap(false);
        textLabel1_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout_3->addWidget(textLabel1_2, 1, 2, 1, 1);

        optimisticValue = new QSpinBox(frame_2);
        optimisticValue->setObjectName(QString::fromUtf8("optimisticValue"));
        optimisticValue->setMinimum(-99);
        optimisticValue->setMaximum(0);

        gridLayout_3->addWidget(optimisticValue, 1, 3, 1, 1);

        textLabel2_2 = new QLabel(frame_2);
        textLabel2_2->setObjectName(QString::fromUtf8("textLabel2_2"));
        textLabel2_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
        textLabel2_2->setWordWrap(false);

        gridLayout_3->addWidget(textLabel2_2, 1, 4, 1, 1);

        pessimisticValue = new QSpinBox(frame_2);
        pessimisticValue->setObjectName(QString::fromUtf8("pessimisticValue"));
        pessimisticValue->setMaximum(999);

        gridLayout_3->addWidget(pessimisticValue, 1, 5, 1, 1);

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

        gridLayout_3->addItem(horizontalSpacer_2, 1, 6, 1, 1);


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


        verticalLayout->addWidget(schedulingGroup);

        verticalSpacer = new QSpacerItem(20, 42, QSizePolicy::Minimum, QSizePolicy::Expanding);

        verticalLayout->addItem(verticalSpacer);

#ifndef UI_QT_NO_SHORTCUT
        namelabel->setBuddy(namefield);
        leaderlabel->setBuddy(leaderfield);
        textLabel3->setBuddy(scheduleType);
        textLabel3_2_3->setBuddy(risk);
        textLabel1_2->setBuddy(optimisticValue);
        textLabel2_2->setBuddy(pessimisticValue);
#endif // QT_NO_SHORTCUT
        QWidget::setTabOrder(namefield, leaderfield);
        QWidget::setTabOrder(leaderfield, chooseLeader);
        QWidget::setTabOrder(chooseLeader, scheduleType);
        QWidget::setTabOrder(scheduleType, scheduleStartDate);
        QWidget::setTabOrder(scheduleStartDate, scheduleStartTime);
        QWidget::setTabOrder(scheduleStartTime, scheduleEndDate);
        QWidget::setTabOrder(scheduleEndDate, scheduleEndTime);
        QWidget::setTabOrder(scheduleEndTime, estimate);
        QWidget::setTabOrder(estimate, estimateType);
        QWidget::setTabOrder(estimateType, calendarCombo);
        QWidget::setTabOrder(calendarCombo, risk);
        QWidget::setTabOrder(risk, optimisticValue);
        QWidget::setTabOrder(optimisticValue, pessimisticValue);

        retranslateUi(KPlato__TaskGeneralPanelBase);

        QMetaObject::connectSlotsByName(KPlato__TaskGeneralPanelBase);
    } // setupUi

    void retranslateUi(QWidget *KPlato__TaskGeneralPanelBase)
    {
#ifndef UI_QT_NO_TOOLTIP
        wbslabel->setToolTip(tr2i18n("Work Breakdown Structure", 0));
#endif // QT_NO_TOOLTIP
        wbslabel->setText(tr2i18n("WBS:", 0));
        wbsfield->setText(QString());
#ifndef UI_QT_NO_WHATSTHIS
        namelabel->setWhatsThis(tr2i18n("The name of the Task.", 0));
#endif // QT_NO_WHATSTHIS
        namelabel->setText(tr2i18n("Name:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        namefield->setWhatsThis(tr2i18n("The name of the Task.", 0));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_WHATSTHIS
        leaderlabel->setWhatsThis(tr2i18n("The person responsible for this task.\n"
"\n"
"This is not limited to persons available in a resource group but can be anyone. You can even directly access your address book with the Choose button.", 0));
#endif // QT_NO_WHATSTHIS
        leaderlabel->setText(tr2i18n("Responsible:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        leaderfield->setWhatsThis(tr2i18n("The person responsible for this task.\n"
"\n"
"This is not limited to persons available in a resource group but can be anyone. You can even directly access your address book with the Choose button.", 0));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_TOOLTIP
        chooseLeader->setToolTip(tr2i18n("Insert a person from your address book", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        chooseLeader->setWhatsThis(tr2i18n("Insert a person from your address book.", 0));
#endif // QT_NO_WHATSTHIS
        chooseLeader->setText(tr2i18n("Choose...", 0));
        chooseLeader->setShortcut(QString());
#ifndef UI_QT_NO_WHATSTHIS
        schedulingGroup->setWhatsThis(tr2i18n("Scheduling Configuration. These settings affect the actual scheduling of the task.\n"
"\n"
"The estimation can be either effort based or duration based. If it is effort based, the final duration will depend on the resources assigned to the task. For duration based estimation, the assigned resources do not affect the fixed duration of the task, but only the costs.", 0));
#endif // QT_NO_WHATSTHIS
        schedulingGroup->setTitle(tr2i18n("Timing", 0));
        textLabel3->setText(tr2i18n("Schedule:", 0));
        scheduleType->clear();
        scheduleType->insertItems(0, QStringList()
         << tr2i18n("As Soon as Possible", 0)
         << tr2i18n("As Late as Possible", 0)
         << tr2i18n("Must Start On", 0)
         << tr2i18n("Must Finish On", 0)
         << tr2i18n("Start Not Earlier Than", 0)
         << tr2i18n("Finish Not Later Than", 0)
         << tr2i18n("Fixed Interval", 0)
        );
        textLabel3_2->setText(tr2i18n("Estimate:", 0));
        estimateType->clear();
        estimateType->insertItems(0, QStringList()
         << tr2i18n("Effort", 0)
         << tr2i18n("Duration", 0)
        );
#ifndef UI_QT_NO_TOOLTIP
        textLabel3_2_3->setToolTip(tr2i18n("Risk controls the PERT distribution used when calculating the actual estimate for this task.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        textLabel3_2_3->setWhatsThis(tr2i18n("<p>Risk controls the PERT distribution used when calculating the actual estimate for the task.\n"
"<b>None</b> means the Expected estimate is used as is.\n"
"<b>Low risk</b> means that a normal distribution is used.\n"
"<b>High risk</b> means that the estimate will be slightly pessimistic compared to Low risk.</p>", 0));
#endif // QT_NO_WHATSTHIS
        textLabel3_2_3->setText(tr2i18n("Risk:", 0));
        risk->clear();
        risk->insertItems(0, QStringList()
         << tr2i18n("None", 0)
         << tr2i18n("Low", 0)
         << tr2i18n("High", 0)
        );
#ifndef UI_QT_NO_TOOLTIP
        risk->setToolTip(tr2i18n("Risk controls the PERT distribution used when calculating the actual estimate for this task.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        risk->setWhatsThis(tr2i18n("<p>Risk controles the PERT distribution used when calculating the actual estimate for the task.\n"
"<b>None</b> means the Expected estimate is used as is.\n"
"<b>Low risk</b> means that a normal distribution is used.\n"
"<b>High risk</b> means that the estimate will be slightly pessimistic compared to Low risk.</p>", 0));
#endif // QT_NO_WHATSTHIS
        textLabel1_2->setText(tr2i18n("Optimistic:", 0));
        optimisticValue->setSuffix(tr2i18n("%", 0));
        textLabel2_2->setText(tr2i18n("Pessimistic:", 0));
        pessimisticValue->setSuffix(tr2i18n("%", 0));
        Q_UNUSED(KPlato__TaskGeneralPanelBase);
    } // retranslateUi

};

} // namespace KPlato

namespace KPlato {
namespace Ui {
    class TaskGeneralPanelBase: public Ui_TaskGeneralPanelBase {};
} // namespace Ui
} // namespace KPlato

#endif // KPTTASKGENERALPANELBASE_H

