Пример #1
0
KCMKOrgSummary::KCMKOrgSummary(QWidget *parent, const char *name)
    : KCModule(parent, name)
{
    initGUI();

    customDaysChanged(1);

    connect(mCalendarGroup, SIGNAL(clicked(int)), SLOT(modified()));
    connect(mCalendarGroup, SIGNAL(clicked(int)), SLOT(buttonClicked(int)));
    connect(mTodoGroup, SIGNAL(clicked(int)), SLOT(modified()));
    connect(mCustomDays, SIGNAL(valueChanged(int)), SLOT(modified()));
    connect(mCustomDays, SIGNAL(valueChanged(int)), SLOT(customDaysChanged(int)));

    KAcceleratorManager::manage(this);

    load();

    KAboutData *about = new KAboutData(I18N_NOOP("kcmkorgsummary"),
                                       I18N_NOOP("Schedule Configuration Dialog"),
                                       0, 0, KAboutData::License_GPL,
                                       I18N_NOOP("(c) 2003 - 2004 Tobias Koenig"));

    about->addAuthor("Tobias Koenig", 0, "*****@*****.**");
    setAboutData(about);
}
Пример #2
0
KCMTodoSummary::KCMTodoSummary( const KComponentData &inst, QWidget *parent )
  : KCModule( inst, parent )
{
  setupUi( this );

  customDaysChanged( 7 );

  connect( mDateTodayButton, SIGNAL(clicked(bool)), SLOT(modified()) );
  connect( mDateMonthButton, SIGNAL(clicked(bool)), SLOT(modified()) );
  connect( mDateRangeButton, SIGNAL(clicked(bool)), SLOT(modified()) );

  connect( mHideCompletedBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideOpenEndedBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideUnstartedBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideInProgressBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideOverdueBox, SIGNAL(stateChanged(int)), SLOT(modified()) );

  connect( mCustomDays, SIGNAL(valueChanged(int)), SLOT(modified()) );
  connect( mCustomDays, SIGNAL(valueChanged(int)), SLOT(customDaysChanged(int)) );

  connect( mShowMineOnly, SIGNAL(stateChanged(int)), SLOT(modified()) );

  KAcceleratorManager::manage( this );

  load();
}
Пример #3
0
KCMSDSummary::KCMSDSummary(QWidget *parent, const char *name)
    : KCModule(parent, name)
{
    initGUI();

    customDaysChanged(1);

    connect(mDaysGroup, SIGNAL(clicked(int)), SLOT(modified()));
    connect(mDaysGroup, SIGNAL(clicked(int)), SLOT(buttonClicked(int)));
    connect(mCalendarGroup, SIGNAL(clicked(int)), SLOT(modified()));
    connect(mContactGroup, SIGNAL(clicked(int)), SLOT(modified()));
    connect(mCustomDays, SIGNAL(valueChanged(int)), SLOT(modified()));
    connect(mCustomDays, SIGNAL(valueChanged(int)), SLOT(customDaysChanged(int)));

    KAcceleratorManager::manage(this);

    load();
}
KCMPlanner::KCMPlanner( const KComponentData &inst, QWidget *parent )
  : KCModule( inst, parent )
{
  setupUi( this );

  customDaysChanged( 7 );

  connect( mShowRecurrence, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mShowReminder, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mUnderline, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mTodo, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mSd, SIGNAL(stateChanged(int)), SLOT(modified()) );

  connect( mDateTodayButton, SIGNAL(clicked(bool)), SLOT(modified()) );
  connect( mDateMonthButton, SIGNAL(clicked(bool)), SLOT(modified()) );
  connect( mDateRangeButton, SIGNAL(clicked(bool)), SLOT(modified()) );

  connect( mHideCompletedBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideOpenEndedBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideUnstartedBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideInProgressBox, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHideOverdueBox, SIGNAL(stateChanged(int)), SLOT(modified()) );

  connect( mCustomDays, SIGNAL(valueChanged(int)), SLOT(modified()) );
  connect( mCustomDays, SIGNAL(valueChanged(int)), SLOT(customDaysChanged(int)) );

//   connect( mBirthdayCal, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mBirthdayConList, SIGNAL(stateChanged(int)), SLOT(modified()) );
//   connect( mAnniversariesCal, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mAnniversariesConList, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mHolidaysCal, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mSpecialOccasionsCal, SIGNAL(stateChanged(int)), SLOT(modified()) );

  connect( mShowMyEventsOnly, SIGNAL(stateChanged(int)), SLOT(modified()) );
  connect( mShowMyTodosOnly, SIGNAL(stateChanged(int)), SLOT(modified()) );

  load();
}