You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeadmin/kcron/kttask.h

185 lines
3.3 KiB

/***************************************************************************
* KT task editor window header *
* -------------------------------------------------------------------- *
* Copyright (C) 1999, Gary Meyer <gary@meyer.net> *
* -------------------------------------------------------------------- *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef KTTASK_H
#define KTTASK_H
#include <config.h>
#include <kdialog.h>
class TQLabel;
class TQLineEdit;
class TQCheckBox;
class TQButtonGroup;
class TQPushButton;
class TDEAccel;
class CTTask;
/**
* Task editor window.
*/
class KTTask : public KDialog
{
Q_OBJECT
public:
/**
* Initialize from CTTask.
*/
KTTask(CTTask* _cttask = 0, const TQString &_caption="");
/**
* Destroy.
*/
~KTTask();
private slots:
/**
* Browse for command file.
*/
void slotBrowse();
/**
* Command has been changed. Refresh icon.
*/
void slotCommandChanged();
/**
* Daily checkbox has been changed.
*/
void slotDailyChanged();
/**
* Apply changes and close.
*/
void slotOK();
/**
* Cancel and close.
*/
void slotCancel();
/**
* Set or clear all month checkboxes
*/
void slotAllMonths();
/**
* A month checkbox has changed
*/
void slotMonthChanged();
/**
* Set or clear all day of month checkboxes
*/
void slotAllDaysOfMonth();
/**
* A day of month checkbox has changed
*/
void slotDayOfMonthChanged();
/**
* Set or clear all day of week checkboxes
*/
void slotAllDaysOfWeek();
/**
* A day of week checkbox has changed
*/
void slotDayOfWeekChanged();
/**
* Set or clear all hour checkboxes
*/
void slotAllHours();
/**
* An hour checkbox has changed
*/
void slotHourChanged();
/**
* Set or clear all minute checkboxes
*/
void slotAllMinutes();
/**
* A minute checkbox has changed
*/
void slotMinuteChanged();
private:
/**
* Task.
*/
CTTask* cttask;
/**
* Key accelerator.
*/
TDEAccel* key_accel;
// Widgets.
TQLabel* labUser;
TQLineEdit* leUser;
TQLabel* labIcon;
TQLabel* labComment;
TQLineEdit* leComment;
TQLabel* labCommand;
TQLineEdit* leCommand;
TQPushButton* pbBrowse;
TQCheckBox* chkEnabled;
TQButtonGroup* bgMonth;
TQCheckBox* cbMonth[13];
TQPushButton* pbAllMonths;
TQButtonGroup* bgDayOfMonth;
TQPushButton* pbDayOfMonth[32];
TQPushButton* pbAllDaysOfMonth;
TQButtonGroup* bgDayOfWeek;
TQCheckBox* cbDayOfWeek[8];
TQPushButton* pbAllDaysOfWeek;
TQButtonGroup* bgEveryDay;
TQCheckBox* cbEveryDay;
TQButtonGroup* bgHour;
TQLabel* labAM;
TQLabel* labPM;
TQPushButton* pbHour[25];
TQPushButton* pbAllHours;
TQButtonGroup* bgMinute;
TQPushButton* pbMinute[61];
TQPushButton* pbAllMinutes;
TQPushButton* pbOk;
TQPushButton* pbCancel;
};
#endif // KTTASK_H