diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 23:12:56 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 23:12:56 -0600 |
commit | ece35c015c54312eb13f583cc247cdd9a4051b4d (patch) | |
tree | 2c0599b8705e881f2b53678f48e97ffe4f616d22 /kexi/plugins/forms/kexiactionselectiondialog.cpp | |
parent | c260bb1b22af487f2410c2c7f6c35db3fe1d57b9 (diff) | |
download | koffice-ece35c015c54312eb13f583cc247cdd9a4051b4d.tar.gz koffice-ece35c015c54312eb13f583cc247cdd9a4051b4d.zip |
Rename many classes and header files to avoid conflicts with KDE4
Diffstat (limited to 'kexi/plugins/forms/kexiactionselectiondialog.cpp')
-rw-r--r-- | kexi/plugins/forms/kexiactionselectiondialog.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kexi/plugins/forms/kexiactionselectiondialog.cpp b/kexi/plugins/forms/kexiactionselectiondialog.cpp index 59cfefa5..4ba3b859 100644 --- a/kexi/plugins/forms/kexiactionselectiondialog.cpp +++ b/kexi/plugins/forms/kexiactionselectiondialog.cpp @@ -27,8 +27,8 @@ #include <kexipart.h> #include <kexiactioncategories.h> -#include <klistview.h> -#include <kaction.h> +#include <tdelistview.h> +#include <tdeaction.h> #include <kiconloader.h> #include <kdebug.h> #include <kstdguiitem.h> @@ -41,7 +41,7 @@ #include <tqtooltip.h> #include <tqwidgetstack.h> -#include <widget/utils/klistviewitemtemplate.h> +#include <widget/utils/tdelistviewitemtemplate.h> #include <widget/kexibrowser.h> #include <widget/kexibrowseritem.h> #include <kexiutils/utils.h> @@ -194,7 +194,7 @@ public: TQListViewItem *item = new ActionSelectorDialogListItem("noaction", this, i18n("No action") ); const TQPixmap noIcon( KexiUtils::emptyIcon(KIcon::Small) ); item->setPixmap(0, noIcon); - item = new ActionSelectorDialogListItem("kaction", this, i18n("Application actions") ); + item = new ActionSelectorDialogListItem("tdeaction", this, i18n("Application actions") ); item->setPixmap(0, SmallIcon("form_action")); KexiPart::PartInfoList *pl = Kexi::partManager().partInfoList(); @@ -331,7 +331,7 @@ class KexiActionSelectionDialog::KexiActionSelectionDialogPrivate { public: KexiActionSelectionDialogPrivate() - : kactionPageWidget(0), kactionListView(0), objectsListView(0) + : tdeactionPageWidget(0), tdeactionListView(0), objectsListView(0) , currentFormActionsPageWidget(0) , currentFormActionsListView(0) , secondAnd3rdColumnMainWidget(0) @@ -376,8 +376,8 @@ public: KexiMainWindow* mainWin; TQString actionWidgetName; ActionCategoriesListView* actionCategoriesListView; //!< for column #1 - TQWidget *kactionPageWidget; - TDEActionsListView* kactionListView; //!< for column #2 + TQWidget *tdeactionPageWidget; + TDEActionsListView* tdeactionListView; //!< for column #2 KexiBrowser* objectsListView; //!< for column #2 TQWidget *currentFormActionsPageWidget; //!< for column #2 CurrentFormActionsListView* currentFormActionsListView; //!< for column #2 @@ -419,9 +419,9 @@ KexiActionSelectionDialog::KexiActionSelectionDialog(KexiMainWindow* mainWin, TQ \______________________________________________/ glyr [a]- TQWidgetStack *secondAnd3rdColumnStack, - - for displaying TDEActions, the stack contains d->kactionPageWidget TQWidget + - for displaying TDEActions, the stack contains d->tdeactionPageWidget TQWidget - for displaying objects, the stack contains secondAnd3rdColumnMainWidget TQWidget and TQGridLayout *secondAnd3rdColumnGrLyr - - kactionPageWidget contains only a TQVBoxLayout and label+kactionListView + - tdeactionPageWidget contains only a TQVBoxLayout and label+tdeactionListView */ d->glyr = new TQGridLayout(mainWidget, 2, 2, KDialog::marginHint(), KDialog::spacingHint()); d->glyr->setRowStretch(1, 1); @@ -495,9 +495,9 @@ KexiActionSelectionDialog::KexiActionSelectionDialog(KexiMainWindow* mainWin, TQ KexiPart::Info* partInfo = action.decodeString(actionType, actionArg, ok); if (ok) { d->actionCategoriesListView->selectAction(actionType); - if (actionType=="kaction") { - d->kactionListView->selectAction(actionArg); - d->kactionListView->setFocus(); + if (actionType=="tdeaction") { + d->tdeactionListView->selectAction(actionArg); + d->tdeactionListView->setFocus(); } else if (actionType=="currentForm") { d->currentFormActionsListView->selectAction(actionArg); @@ -574,34 +574,34 @@ void KexiActionSelectionDialog::slotActionToExecuteItemSelected(TQListViewItem*) void KexiActionSelectionDialog::slotActionCategorySelected(TQListViewItem* item) { ActionSelectorDialogListItem *simpleItem = dynamic_cast<ActionSelectorDialogListItem*>(item); - // simple case: part-less item, e.g. kaction: + // simple case: part-less item, e.g. tdeaction: if (simpleItem) { d->updateSelectActionToBeExecutedMessage(simpleItem->data); TQString selectActionToBeExecutedMsg( i18n("&Select action to be executed after clicking \"%1\" button:")); // msg for a label - if (simpleItem->data == "kaction") { - if (!d->kactionPageWidget) { + if (simpleItem->data == "tdeaction") { + if (!d->tdeactionPageWidget) { //create lbl+list view with a vlayout - d->kactionPageWidget = new TQWidget(); - d->kactionPageWidget->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum); - TQVBoxLayout *vlyr = new TQVBoxLayout(d->kactionPageWidget, 0, KDialog::spacingHint()); - d->kactionListView = new TDEActionsListView(d->kactionPageWidget, d->mainWin); - d->kactionListView->init(); - TQLabel *lbl = new TQLabel(d->kactionListView, selectActionToBeExecutedMsg.arg(d->actionWidgetName), - d->kactionPageWidget); + d->tdeactionPageWidget = new TQWidget(); + d->tdeactionPageWidget->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum); + TQVBoxLayout *vlyr = new TQVBoxLayout(d->tdeactionPageWidget, 0, KDialog::spacingHint()); + d->tdeactionListView = new TDEActionsListView(d->tdeactionPageWidget, d->mainWin); + d->tdeactionListView->init(); + TQLabel *lbl = new TQLabel(d->tdeactionListView, selectActionToBeExecutedMsg.arg(d->actionWidgetName), + d->tdeactionPageWidget); lbl->setAlignment(TQt::AlignTop|TQt::AlignLeft|TQt::WordBreak); lbl->setMinimumHeight(lbl->fontMetrics().height()*2); vlyr->addWidget(lbl); - vlyr->addWidget(d->kactionListView); - d->secondAnd3rdColumnStack->addWidget(d->kactionPageWidget); - connect(d->kactionListView, TQT_SIGNAL(executed(TQListViewItem*)), + vlyr->addWidget(d->tdeactionListView); + d->secondAnd3rdColumnStack->addWidget(d->tdeactionPageWidget); + connect(d->tdeactionListView, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(slotTDEActionItemExecuted(TQListViewItem*))); - connect( d->kactionListView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + connect( d->tdeactionListView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotTDEActionItemSelected(TQListViewItem*))); } d->setActionToExecuteSectionVisible(false); - d->raiseWidget(d->kactionPageWidget); - slotTDEActionItemSelected(d->kactionListView->selectedItem()); //to refresh column #3 + d->raiseWidget(d->tdeactionPageWidget); + slotTDEActionItemSelected(d->tdeactionListView->selectedItem()); //to refresh column #3 } else if (simpleItem->data == "currentForm") { if (!d->currentFormActionsPageWidget) { @@ -669,12 +669,12 @@ KexiFormEventAction::ActionData KexiActionSelectionDialog::currentAction() const KexiFormEventAction::ActionData data; ActionSelectorDialogListItem *simpleItem = dynamic_cast<ActionSelectorDialogListItem*>( d->actionCategoriesListView->selectedItem()); - // simple case: part-less item, e.g. kaction: + // simple case: part-less item, e.g. tdeaction: if (simpleItem) { - if (simpleItem->data == "kaction") { - if (d->kactionListView->selectedItem()) { - data.string = TQString("kaction:") - + dynamic_cast<ActionSelectorDialogListItem*>( d->kactionListView->selectedItem() )->data; + if (simpleItem->data == "tdeaction") { + if (d->tdeactionListView->selectedItem()) { + data.string = TQString("tdeaction:") + + dynamic_cast<ActionSelectorDialogListItem*>( d->tdeactionListView->selectedItem() )->data; return data; } } |