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

/********************************************************************************
** Form generated from reading UI file 'skgscheduledpluginwidget_base.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_SKGSCHEDULEDPLUGINWIDGET_BASE_H
#define UI_SKGSCHEDULEDPLUGINWIDGET_BASE_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QToolButton>
#include <QtGui/QWidget>
#include "kcombobox.h"
#include "knuminput.h"
#include "kpushbutton.h"
#include "kseparator.h"
#include "ktitlewidget.h"
#include "skgdateedit.h"
#include "skgfilteredtableview.h"

QT_BEGIN_NAMESPACE

class Ui_skgscheduledplugin_base
{
public:
    QGridLayout *gridLayout;
    KTitleWidget *kTitle;
    SKGFilteredTableView *kView;
    SKGDateEdit *kFirstOccurenceDate;
    QFrame *line_2;
    QCheckBox *kRemindMe;
    KIntSpinBox *kRemindMeVal;
    QLabel *label_3;
    QSpacerItem *horizontalSpacer_2;
    QLabel *label_2;
    KIntSpinBox *kOnceEveryVal;
    KComboBox *kOnceEveryUnit;
    QCheckBox *kAutoWrite;
    KIntSpinBox *kAutoWriteVal;
    QLabel *label_4;
    QCheckBox *kNbTimes;
    QHBoxLayout *horizontalLayout_3;
    KIntSpinBox *kNbTimesVal;
    SKGDateEdit *kLastOccurenceDate;
    QHBoxLayout *horizontalLayout_5;
    QSpacerItem *horizontalSpacer_4;
    KPushButton *kModifyBtn;
    QToolButton *kProcessBtn;
    QPushButton *kJumpBtn;
    QLabel *label;
    KSeparator *kseparator;

    void setupUi(QWidget *skgscheduledplugin_base)
    {
        if (skgscheduledplugin_base->objectName().isEmpty())
            skgscheduledplugin_base->setObjectName(QString::fromUtf8("skgscheduledplugin_base"));
        skgscheduledplugin_base->resize(649, 246);
        gridLayout = new QGridLayout(skgscheduledplugin_base);
        gridLayout->setSpacing(2);
        gridLayout->setContentsMargins(0, 0, 0, 0);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        kTitle = new KTitleWidget(skgscheduledplugin_base);
        kTitle->setObjectName(QString::fromUtf8("kTitle"));

        gridLayout->addWidget(kTitle, 0, 0, 1, 9);

        kView = new SKGFilteredTableView(skgscheduledplugin_base);
        kView->setObjectName(QString::fromUtf8("kView"));

        gridLayout->addWidget(kView, 1, 0, 1, 9);

        kFirstOccurenceDate = new SKGDateEdit(skgscheduledplugin_base);
        kFirstOccurenceDate->setObjectName(QString::fromUtf8("kFirstOccurenceDate"));
        kFirstOccurenceDate->setMinimumSize(QSize(120, 0));
        kFirstOccurenceDate->setMode(SKGDateEdit::NEXT);

        gridLayout->addWidget(kFirstOccurenceDate, 4, 2, 2, 2);

        line_2 = new QFrame(skgscheduledplugin_base);
        line_2->setObjectName(QString::fromUtf8("line_2"));
        line_2->setFrameShape(QFrame::VLine);
        line_2->setFrameShadow(QFrame::Sunken);

        gridLayout->addWidget(line_2, 3, 4, 7, 2);

        kRemindMe = new QCheckBox(skgscheduledplugin_base);
        kRemindMe->setObjectName(QString::fromUtf8("kRemindMe"));

        gridLayout->addWidget(kRemindMe, 5, 5, 1, 1);

        kRemindMeVal = new KIntSpinBox(skgscheduledplugin_base);
        kRemindMeVal->setObjectName(QString::fromUtf8("kRemindMeVal"));
        kRemindMeVal->setEnabled(false);
        kRemindMeVal->setMinimum(0);

        gridLayout->addWidget(kRemindMeVal, 4, 6, 2, 1);

        label_3 = new QLabel(skgscheduledplugin_base);
        label_3->setObjectName(QString::fromUtf8("label_3"));
        label_3->setEnabled(false);

        gridLayout->addWidget(label_3, 4, 7, 2, 1);

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

        gridLayout->addItem(horizontalSpacer_2, 3, 8, 7, 1);

        label_2 = new QLabel(skgscheduledplugin_base);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout->addWidget(label_2, 7, 1, 2, 1);

        kOnceEveryVal = new KIntSpinBox(skgscheduledplugin_base);
        kOnceEveryVal->setObjectName(QString::fromUtf8("kOnceEveryVal"));
        kOnceEveryVal->setMinimumSize(QSize(60, 0));
        kOnceEveryVal->setMaximumSize(QSize(60, 16777215));
        kOnceEveryVal->setMinimum(1);

        gridLayout->addWidget(kOnceEveryVal, 7, 2, 2, 1);

        kOnceEveryUnit = new KComboBox(skgscheduledplugin_base);
        kOnceEveryUnit->setObjectName(QString::fromUtf8("kOnceEveryUnit"));

        gridLayout->addWidget(kOnceEveryUnit, 7, 3, 2, 1);

        kAutoWrite = new QCheckBox(skgscheduledplugin_base);
        kAutoWrite->setObjectName(QString::fromUtf8("kAutoWrite"));

        gridLayout->addWidget(kAutoWrite, 8, 5, 1, 1);

        kAutoWriteVal = new KIntSpinBox(skgscheduledplugin_base);
        kAutoWriteVal->setObjectName(QString::fromUtf8("kAutoWriteVal"));
        kAutoWriteVal->setEnabled(false);
        kAutoWriteVal->setMinimum(0);

        gridLayout->addWidget(kAutoWriteVal, 7, 6, 2, 1);

        label_4 = new QLabel(skgscheduledplugin_base);
        label_4->setObjectName(QString::fromUtf8("label_4"));
        label_4->setEnabled(false);

        gridLayout->addWidget(label_4, 7, 7, 2, 1);

        kNbTimes = new QCheckBox(skgscheduledplugin_base);
        kNbTimes->setObjectName(QString::fromUtf8("kNbTimes"));

        gridLayout->addWidget(kNbTimes, 9, 1, 1, 1);

        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setSpacing(2);
        horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
        kNbTimesVal = new KIntSpinBox(skgscheduledplugin_base);
        kNbTimesVal->setObjectName(QString::fromUtf8("kNbTimesVal"));
        kNbTimesVal->setEnabled(false);
        kNbTimesVal->setMinimumSize(QSize(60, 0));
        kNbTimesVal->setMaximumSize(QSize(60, 16777215));
        kNbTimesVal->setMinimum(0);
        kNbTimesVal->setMaximum(999);

        horizontalLayout_3->addWidget(kNbTimesVal);

        kLastOccurenceDate = new SKGDateEdit(skgscheduledplugin_base);
        kLastOccurenceDate->setObjectName(QString::fromUtf8("kLastOccurenceDate"));
        kLastOccurenceDate->setEnabled(false);
        kLastOccurenceDate->setMinimumSize(QSize(120, 0));

        horizontalLayout_3->addWidget(kLastOccurenceDate);


        gridLayout->addLayout(horizontalLayout_3, 9, 2, 1, 2);

        horizontalLayout_5 = new QHBoxLayout();
        horizontalLayout_5->setSpacing(2);
        horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5"));
        horizontalSpacer_4 = new QSpacerItem(0, 26, QSizePolicy::Expanding, QSizePolicy::Minimum);

        horizontalLayout_5->addItem(horizontalSpacer_4);

        kModifyBtn = new KPushButton(skgscheduledplugin_base);
        kModifyBtn->setObjectName(QString::fromUtf8("kModifyBtn"));
        kModifyBtn->setEnabled(false);

        horizontalLayout_5->addWidget(kModifyBtn);

        kProcessBtn = new QToolButton(skgscheduledplugin_base);
        kProcessBtn->setObjectName(QString::fromUtf8("kProcessBtn"));
        kProcessBtn->setEnabled(false);
        kProcessBtn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);

        horizontalLayout_5->addWidget(kProcessBtn);

        kJumpBtn = new QPushButton(skgscheduledplugin_base);
        kJumpBtn->setObjectName(QString::fromUtf8("kJumpBtn"));
        kJumpBtn->setEnabled(false);

        horizontalLayout_5->addWidget(kJumpBtn);


        gridLayout->addLayout(horizontalLayout_5, 10, 0, 1, 9);

        label = new QLabel(skgscheduledplugin_base);
        label->setObjectName(QString::fromUtf8("label"));
        label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout->addWidget(label, 5, 1, 1, 1);

        kseparator = new KSeparator(skgscheduledplugin_base);
        kseparator->setObjectName(QString::fromUtf8("kseparator"));

        gridLayout->addWidget(kseparator, 2, 1, 1, 8);

#ifndef UI_QT_NO_SHORTCUT
        label_3->setBuddy(kRemindMeVal);
        label_2->setBuddy(kOnceEveryVal);
        label_4->setBuddy(kAutoWriteVal);
        label->setBuddy(kFirstOccurenceDate);
#endif // QT_NO_SHORTCUT
        QWidget::setTabOrder(kFirstOccurenceDate, kOnceEveryVal);
        QWidget::setTabOrder(kOnceEveryVal, kOnceEveryUnit);
        QWidget::setTabOrder(kOnceEveryUnit, kNbTimes);
        QWidget::setTabOrder(kNbTimes, kNbTimesVal);
        QWidget::setTabOrder(kNbTimesVal, kLastOccurenceDate);
        QWidget::setTabOrder(kLastOccurenceDate, kRemindMe);
        QWidget::setTabOrder(kRemindMe, kRemindMeVal);
        QWidget::setTabOrder(kRemindMeVal, kAutoWrite);
        QWidget::setTabOrder(kAutoWrite, kAutoWriteVal);
        QWidget::setTabOrder(kAutoWriteVal, kModifyBtn);
        QWidget::setTabOrder(kModifyBtn, kProcessBtn);

        retranslateUi(skgscheduledplugin_base);
        QObject::connect(kModifyBtn, SIGNAL(clicked()), skgscheduledplugin_base, SLOT(onUpdate()));
        QObject::connect(kNbTimes, SIGNAL(toggled(bool)), kNbTimesVal, SLOT(setEnabled(bool)));
        QObject::connect(kRemindMe, SIGNAL(toggled(bool)), kRemindMeVal, SLOT(setEnabled(bool)));
        QObject::connect(kAutoWrite, SIGNAL(toggled(bool)), kAutoWriteVal, SLOT(setEnabled(bool)));
        QObject::connect(kRemindMe, SIGNAL(toggled(bool)), label_3, SLOT(setEnabled(bool)));
        QObject::connect(kAutoWrite, SIGNAL(toggled(bool)), label_4, SLOT(setEnabled(bool)));
        QObject::connect(kNbTimesVal, SIGNAL(valueChanged(QString)), skgscheduledplugin_base, SLOT(onNbOccurrenceChanged()));
        QObject::connect(kOnceEveryVal, SIGNAL(valueChanged(int)), skgscheduledplugin_base, SLOT(onNbOccurrenceChanged()));
        QObject::connect(kOnceEveryUnit, SIGNAL(currentIndexChanged(int)), skgscheduledplugin_base, SLOT(onNbOccurrenceChanged()));
        QObject::connect(kNbTimes, SIGNAL(toggled(bool)), kLastOccurenceDate, SLOT(setEnabled(bool)));
        QObject::connect(kLastOccurenceDate, SIGNAL(dateChanged(QDate)), skgscheduledplugin_base, SLOT(onNbOccurrenceChanged()));
        QObject::connect(kJumpBtn, SIGNAL(clicked()), skgscheduledplugin_base, SLOT(onJumpToTheOperation()));

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

    void retranslateUi(QWidget *skgscheduledplugin_base)
    {
        kTitle->setText(tr2i18n("First, you have to schedule an operation or a template from the operations page.", 0));
        kRemindMe->setText(tr2i18n("Remind me:", 0));
        label_3->setText(tr2i18n("days before term", 0));
        label_2->setText(tr2i18n("Once every:", 0));
        kOnceEveryUnit->clear();
        kOnceEveryUnit->insertItems(0, QStringList()
         << tr2i18n("day(s)", 0)
         << tr2i18n("week(s)", 0)
         << tr2i18n("month(s)", 0)
         << tr2i18n("year(s)", 0)
        );
        kAutoWrite->setText(tr2i18n("Automatically write:", 0));
        label_4->setText(tr2i18n("days before term", 0));
        kNbTimes->setText(tr2i18n("Number of occurrences:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kModifyBtn->setToolTip(tr2i18n("Update selected operations (Shift+Enter)", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kModifyBtn->setStatusTip(tr2i18n("Update selected operations (Shift+Enter)", 0));
#endif // QT_NO_STATUSTIP
        kModifyBtn->setText(tr2i18n("Modify", 0));
#ifndef UI_QT_NO_TOOLTIP
        kProcessBtn->setToolTip(tr2i18n("Insert scheduled operations", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kProcessBtn->setStatusTip(tr2i18n("Insert scheduled operations", 0));
#endif // QT_NO_STATUSTIP
        kProcessBtn->setText(tr2i18n("Process", 0));
#ifndef UI_QT_NO_TOOLTIP
        kJumpBtn->setToolTip(tr2i18n("Open the operation page with the selected scheduled operations", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kJumpBtn->setStatusTip(tr2i18n("Open the operation page with the selected scheduled operations", 0));
#endif // QT_NO_STATUSTIP
        kJumpBtn->setText(tr2i18n("Jump to the operation", 0));
        label->setText(tr2i18n("Next occurrence:", 0));
        Q_UNUSED(skgscheduledplugin_base);
    } // retranslateUi

};

namespace Ui {
    class skgscheduledplugin_base: public Ui_skgscheduledplugin_base {};
} // namespace Ui

QT_END_NAMESPACE

#endif // SKGSCHEDULEDPLUGINWIDGET_BASE_H

