summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/kexiactionselectiondialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/kexiactionselectiondialog.cpp')
-rw-r--r--kexi/plugins/forms/kexiactionselectiondialog.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kexi/plugins/forms/kexiactionselectiondialog.cpp b/kexi/plugins/forms/kexiactionselectiondialog.cpp
index bec4de7d..59cfefa5 100644
--- a/kexi/plugins/forms/kexiactionselectiondialog.cpp
+++ b/kexi/plugins/forms/kexiactionselectiondialog.cpp
@@ -46,7 +46,7 @@
#include <widget/kexibrowseritem.h>
#include <kexiutils/utils.h>
-typedef KListViewItemTemplate<TQString> ActionSelectorDialogListItemBase;
+typedef TDEListViewItemTemplate<TQString> ActionSelectorDialogListItemBase;
class ActionSelectorDialogListItem : public ActionSelectorDialogListItemBase
{
@@ -79,7 +79,7 @@ protected:
//---------------------------------------
ActionsListViewBase::ActionsListViewBase(TQWidget* parent)
- : KListView(parent)
+ : TDEListView(parent)
{
setResizeMode(TQListView::AllColumns);
addColumn("");
@@ -115,27 +115,27 @@ void ActionsListViewBase::selectAction(const TQString& actionName)
//---------------------------------------
-KActionsListViewBase::KActionsListViewBase(TQWidget* parent, KexiMainWindow* mainWin)
+TDEActionsListViewBase::TDEActionsListViewBase(TQWidget* parent, KexiMainWindow* mainWin)
: ActionsListViewBase(parent)
, m_mainWin(mainWin)
{
}
-KActionsListViewBase::~KActionsListViewBase() {}
+TDEActionsListViewBase::~TDEActionsListViewBase() {}
-void KActionsListViewBase::init()
+void TDEActionsListViewBase::init()
{
setSorting(0);
const TQPixmap noIcon( KexiUtils::emptyIcon(KIcon::Small) );
- KActionPtrList sharedActions( m_mainWin->allActions() );
+ TDEActionPtrList sharedActions( m_mainWin->allActions() );
const Kexi::ActionCategories *acat = Kexi::actionCategories();
- foreach (KActionPtrList::ConstIterator, it, sharedActions) {
+ foreach (TDEActionPtrList::ConstIterator, it, sharedActions) {
// kdDebug() << (*it)->name() << " " << (*it)->text() << endl;
//! @todo group actions
- //! @todo: store KAction* here?
+ //! @todo: store TDEAction* here?
const int actionCategories = acat->actionCategories((*it)->name());
if (actionCategories==-1) {
- kexipluginswarn << "KActionsListViewBase(): no category declared for action \""
+ kexipluginswarn << "TDEActionsListViewBase(): no category declared for action \""
<< (*it)->name() << "\"! Fix this!" << endl;
continue;
}
@@ -152,15 +152,15 @@ void KActionsListViewBase::init()
//---------------------------------------
-//! @internal Used to display KActions (in column 2)
-class KActionsListView : public KActionsListViewBase
+//! @internal Used to display TDEActions (in column 2)
+class TDEActionsListView : public TDEActionsListViewBase
{
public:
- KActionsListView(TQWidget* parent, KexiMainWindow* mainWin)
- : KActionsListViewBase(parent, mainWin)
+ TDEActionsListView(TQWidget* parent, KexiMainWindow* mainWin)
+ : TDEActionsListViewBase(parent, mainWin)
{
}
- virtual ~KActionsListView() {}
+ virtual ~TDEActionsListView() {}
virtual bool isActionVisible(const char* actionName, int actionCategories) const {
Q_UNUSED(actionName);
@@ -168,12 +168,12 @@ public:
}
};
-//! @internal Used to display KActions (in column 2)
-class CurrentFormActionsListView : public KActionsListViewBase
+//! @internal Used to display TDEActions (in column 2)
+class CurrentFormActionsListView : public TDEActionsListViewBase
{
public:
CurrentFormActionsListView(TQWidget* parent, KexiMainWindow* mainWin)
- : KActionsListViewBase(parent, mainWin)
+ : TDEActionsListViewBase(parent, mainWin)
{
}
virtual ~CurrentFormActionsListView() {}
@@ -276,7 +276,7 @@ class ActionToExecuteListView : public ActionsListViewBase
ActionSelectorDialogListItem *printItem = new ActionSelectorDialogListItem(
"print", this, i18n("Print"));
printItem->setPixmap(0, SmallIcon("fileprint"));
- KAction *a = KStdAction::printPreview(0, 0, 0);
+ TDEAction *a = KStdAction::printPreview(0, 0, 0);
item = new ActionSelectorDialogListItem("printPreview", printItem,
a->text().replace("&", "").replace("...", ""));
item->setPixmap(0, SmallIcon(a->icon()));
@@ -377,7 +377,7 @@ public:
TQString actionWidgetName;
ActionCategoriesListView* actionCategoriesListView; //!< for column #1
TQWidget *kactionPageWidget;
- KActionsListView* kactionListView; //!< for column #2
+ TDEActionsListView* kactionListView; //!< for column #2
KexiBrowser* objectsListView; //!< for column #2
TQWidget *currentFormActionsPageWidget; //!< for column #2
CurrentFormActionsListView* currentFormActionsListView; //!< for column #2
@@ -419,7 +419,7 @@ KexiActionSelectionDialog::KexiActionSelectionDialog(KexiMainWindow* mainWin, TQ
\______________________________________________/
glyr
[a]- TQWidgetStack *secondAnd3rdColumnStack,
- - for displaying KActions, the stack contains d->kactionPageWidget TQWidget
+ - for displaying TDEActions, the stack contains d->kactionPageWidget TQWidget
- for displaying objects, the stack contains secondAnd3rdColumnMainWidget TQWidget and TQGridLayout *secondAnd3rdColumnGrLyr
- kactionPageWidget contains only a TQVBoxLayout and label+kactionListView
*/
@@ -530,12 +530,12 @@ KexiActionSelectionDialog::~KexiActionSelectionDialog()
delete d;
}
-void KexiActionSelectionDialog::slotKActionItemExecuted(TQListViewItem*)
+void KexiActionSelectionDialog::slotTDEActionItemExecuted(TQListViewItem*)
{
accept();
}
-void KexiActionSelectionDialog::slotKActionItemSelected(TQListViewItem*)
+void KexiActionSelectionDialog::slotTDEActionItemSelected(TQListViewItem*)
{
d->setActionToExecuteSectionVisible(false);
updateOKButtonStatus();
@@ -585,7 +585,7 @@ void KexiActionSelectionDialog::slotActionCategorySelected(TQListViewItem* item)
d->kactionPageWidget = new TQWidget();
d->kactionPageWidget->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
TQVBoxLayout *vlyr = new TQVBoxLayout(d->kactionPageWidget, 0, KDialog::spacingHint());
- d->kactionListView = new KActionsListView(d->kactionPageWidget, d->mainWin);
+ d->kactionListView = new TDEActionsListView(d->kactionPageWidget, d->mainWin);
d->kactionListView->init();
TQLabel *lbl = new TQLabel(d->kactionListView, selectActionToBeExecutedMsg.arg(d->actionWidgetName),
d->kactionPageWidget);
@@ -595,13 +595,13 @@ void KexiActionSelectionDialog::slotActionCategorySelected(TQListViewItem* item)
vlyr->addWidget(d->kactionListView);
d->secondAnd3rdColumnStack->addWidget(d->kactionPageWidget);
connect(d->kactionListView, TQT_SIGNAL(executed(TQListViewItem*)),
- this, TQT_SLOT(slotKActionItemExecuted(TQListViewItem*)));
+ this, TQT_SLOT(slotTDEActionItemExecuted(TQListViewItem*)));
connect( d->kactionListView, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
- this, TQT_SLOT(slotKActionItemSelected(TQListViewItem*)));
+ this, TQT_SLOT(slotTDEActionItemSelected(TQListViewItem*)));
}
d->setActionToExecuteSectionVisible(false);
d->raiseWidget(d->kactionPageWidget);
- slotKActionItemSelected(d->kactionListView->selectedItem()); //to refresh column #3
+ slotTDEActionItemSelected(d->kactionListView->selectedItem()); //to refresh column #3
}
else if (simpleItem->data == "currentForm") {
if (!d->currentFormActionsPageWidget) {