|
|
|
@ -140,16 +140,16 @@ Kima::Kima(const TQString& inConfigFile, Type inType, int inActions, TQWidget* i
|
|
|
|
|
|
|
|
|
|
TDEActionCollection* actionCollection = new TDEActionCollection(this, "actionCollection", kapp);
|
|
|
|
|
|
|
|
|
|
TDEAction* action = KStdAction::preferences(this, TQT_SLOT(preferences()), actionCollection);
|
|
|
|
|
TDEAction* action = KStdAction::preferences(this, TQ_SLOT(preferences()), actionCollection);
|
|
|
|
|
action->setText(i18n("&Preferences"));
|
|
|
|
|
action->plug(mMenu);
|
|
|
|
|
|
|
|
|
|
action = KStdAction::aboutApp(this, TQT_SLOT(about()), actionCollection);
|
|
|
|
|
action = KStdAction::aboutApp(this, TQ_SLOT(about()), actionCollection);
|
|
|
|
|
action->setText(i18n("&About Kima"));
|
|
|
|
|
action->plug(mMenu);
|
|
|
|
|
|
|
|
|
|
//menu->insertSeparator();
|
|
|
|
|
//KStdAction::quit( kapp, TQT_SLOT( quit() ), actionCollection )->plug( menu );
|
|
|
|
|
//KStdAction::quit( kapp, TQ_SLOT( quit() ), actionCollection )->plug( menu );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Kima::~Kima() {
|
|
|
|
@ -222,9 +222,9 @@ void Kima::preferences() {
|
|
|
|
|
//setup the dialog
|
|
|
|
|
//mPrefsDlg->setFixedSize(mPrefs->size());
|
|
|
|
|
mPrefsDlg->setMainWidget(mPrefs); //embed the uic generated class into the kde dialog
|
|
|
|
|
connect(mPrefsDlg, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(savePreferences()));
|
|
|
|
|
connect(mPrefsDlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(savePreferences()));
|
|
|
|
|
connect(mPrefsDlg, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(cancelPreferences()));
|
|
|
|
|
connect(mPrefsDlg, TQ_SIGNAL(applyClicked()), this, TQ_SLOT(savePreferences()));
|
|
|
|
|
connect(mPrefsDlg, TQ_SIGNAL(okClicked()), this, TQ_SLOT(savePreferences()));
|
|
|
|
|
connect(mPrefsDlg, TQ_SIGNAL(cancelClicked()), this, TQ_SLOT(cancelPreferences()));
|
|
|
|
|
|
|
|
|
|
// create new list items and the widgetStack widgets
|
|
|
|
|
TQPtrListIterator<Source> it(mSources);
|
|
|
|
@ -238,8 +238,8 @@ void Kima::preferences() {
|
|
|
|
|
// and connect the apply/ok signals to the item, so it can change it's text to a potentially
|
|
|
|
|
// new source name.
|
|
|
|
|
SourceListItem * item = new SourceListItem(source, mPrefs->sourceListView, TQCheckListItem::CheckBox);
|
|
|
|
|
connect(mPrefsDlg, TQT_SIGNAL(applyClicked()), item, TQT_SLOT(updateText()));
|
|
|
|
|
connect(mPrefsDlg, TQT_SIGNAL(okClicked()), item, TQT_SLOT(updateText()));
|
|
|
|
|
connect(mPrefsDlg, TQ_SIGNAL(applyClicked()), item, TQ_SLOT(updateText()));
|
|
|
|
|
connect(mPrefsDlg, TQ_SIGNAL(okClicked()), item, TQ_SLOT(updateText()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(mPrefs->sourceListView->firstChild()){
|
|
|
|
@ -247,7 +247,7 @@ void Kima::preferences() {
|
|
|
|
|
raiseSourcePrefsWidget(mPrefs->sourceListView->firstChild()); // raise that item
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
connect(mPrefs->sourceListView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(raiseSourcePrefsWidget(TQListViewItem*)));
|
|
|
|
|
connect(mPrefs->sourceListView, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(raiseSourcePrefsWidget(TQListViewItem*)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// update prefs gui
|
|
|
|
@ -410,7 +410,7 @@ void Kima::registerSource(Source* source) {
|
|
|
|
|
displaySource(source->isEnabled() && source->showOnApplet(), source);
|
|
|
|
|
|
|
|
|
|
// connection to add and remove sources from mLayout
|
|
|
|
|
connect(source, TQT_SIGNAL(displaySource(bool, Source*)), this, TQT_SLOT(displaySource(bool, Source*)));
|
|
|
|
|
connect(source, TQ_SIGNAL(displaySource(bool, Source*)), this, TQ_SLOT(displaySource(bool, Source*)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Kima::maybeTip(const TQPoint& inPos){
|
|
|
|
|