summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms')
-rw-r--r--kexi/plugins/forms/kexiactionselectiondialog.cpp52
-rw-r--r--kexi/plugins/forms/kexiactionselectiondialog.h8
-rw-r--r--kexi/plugins/forms/kexiactionselectiondialog_p.h10
-rw-r--r--kexi/plugins/forms/kexidatasourcepage.cpp2
-rw-r--r--kexi/plugins/forms/kexidbfactory.cpp8
-rw-r--r--kexi/plugins/forms/kexidbfactory.h6
-rw-r--r--kexi/plugins/forms/kexiformeventhandler.cpp4
-rw-r--r--kexi/plugins/forms/kexiformeventhandler.h2
-rw-r--r--kexi/plugins/forms/kexiformmanager.cpp6
-rw-r--r--kexi/plugins/forms/kexiformmanager.h2
-rw-r--r--kexi/plugins/forms/kexiformpart.cpp28
-rw-r--r--kexi/plugins/forms/kexiformscrollview.cpp2
-rw-r--r--kexi/plugins/forms/widgets/kexidbdateedit.cpp2
-rw-r--r--kexi/plugins/forms/widgets/kexidbdateedit.h4
-rw-r--r--kexi/plugins/forms/widgets/kexidbdatetimeedit.cpp2
-rw-r--r--kexi/plugins/forms/widgets/kexidbdatetimeedit.h4
-rw-r--r--kexi/plugins/forms/widgets/kexidbimagebox.cpp2
-rw-r--r--kexi/plugins/forms/widgets/kexidbimagebox.h4
-rw-r--r--kexi/plugins/forms/widgets/kexidbtextedit.cpp2
-rw-r--r--kexi/plugins/forms/widgets/kexidbutils.cpp2
-rw-r--r--kexi/plugins/forms/widgets/kexidbutils.h2
21 files changed, 77 insertions, 77 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) {
diff --git a/kexi/plugins/forms/kexiactionselectiondialog.h b/kexi/plugins/forms/kexiactionselectiondialog.h
index 8587287c..9d355562 100644
--- a/kexi/plugins/forms/kexiactionselectiondialog.h
+++ b/kexi/plugins/forms/kexiactionselectiondialog.h
@@ -24,14 +24,14 @@
#include "kexiformeventhandler.h"
class KexiMainWindow;
-class KListView;
+class TDEListView;
namespace KexiPart {
class Item;
}
//! @short A dialog for selecting an action to be executed for a form's command button
/*! Available actions are:
- - application's global actions like "edit->copy" (KAction-based)
+ - application's global actions like "edit->copy" (TDEAction-based)
- opening/printing/executing of selected object (table/query/form/script/macrto, etc.)
*/
class KEXIFORMUTILS_EXPORT KexiActionSelectionDialog : public KDialogBase
@@ -54,8 +54,8 @@ class KEXIFORMUTILS_EXPORT KexiActionSelectionDialog : public KDialogBase
protected slots:
void slotActionCategorySelected(TQListViewItem* item);
- void slotKActionItemExecuted(TQListViewItem*);
- void slotKActionItemSelected(TQListViewItem*);
+ void slotTDEActionItemExecuted(TQListViewItem*);
+ void slotTDEActionItemSelected(TQListViewItem*);
void slotActionToExecuteItemExecuted(TQListViewItem* item);
void slotActionToExecuteItemSelected(TQListViewItem*);
void slotCurrentFormActionItemExecuted(TQListViewItem*);
diff --git a/kexi/plugins/forms/kexiactionselectiondialog_p.h b/kexi/plugins/forms/kexiactionselectiondialog_p.h
index 741bd230..f0527132 100644
--- a/kexi/plugins/forms/kexiactionselectiondialog_p.h
+++ b/kexi/plugins/forms/kexiactionselectiondialog_p.h
@@ -23,7 +23,7 @@
#include <klistview.h>
//! @internal
-class ActionsListViewBase : public KListView
+class ActionsListViewBase : public TDEListView
{
public:
ActionsListViewBase(TQWidget* parent);
@@ -34,14 +34,14 @@ class ActionsListViewBase : public KListView
void selectAction(const TQString& actionName);
};
-//! @internal Used by KActionsListView and CurrentFormActionsListView (in column 2)
-class KActionsListViewBase : public ActionsListViewBase
+//! @internal Used by TDEActionsListView and CurrentFormActionsListView (in column 2)
+class TDEActionsListViewBase : public ActionsListViewBase
{
Q_OBJECT
public:
- KActionsListViewBase(TQWidget* parent, KexiMainWindow* mainWin);
- virtual ~KActionsListViewBase();
+ TDEActionsListViewBase(TQWidget* parent, KexiMainWindow* mainWin);
+ virtual ~TDEActionsListViewBase();
void init();
virtual bool isActionVisible(const char* actionName, int actionCategories) const = 0;
diff --git a/kexi/plugins/forms/kexidatasourcepage.cpp b/kexi/plugins/forms/kexidatasourcepage.cpp
index 5b7e46db..b89031a7 100644
--- a/kexi/plugins/forms/kexidatasourcepage.cpp
+++ b/kexi/plugins/forms/kexidatasourcepage.cpp
@@ -138,7 +138,7 @@ KexiDataSourcePage::KexiDataSourcePage(TQWidget *parent, const char *name)
separator->setFrameShadow(TQFrame::Sunken);
vlyr->addWidget(separator);*/
/*
- KPopupTitle *title = new KPopupTitle(this);
+ TDEPopupTitle *title = new TDEPopupTitle(this);
title->setTitle(i18n("Inserting fields"));
vlyr->addWidget(title);
vlyr->addSpacing(4);*/
diff --git a/kexi/plugins/forms/kexidbfactory.cpp b/kexi/plugins/forms/kexidbfactory.cpp
index bfc70226..8bb55bce 100644
--- a/kexi/plugins/forms/kexidbfactory.cpp
+++ b/kexi/plugins/forms/kexidbfactory.cpp
@@ -425,8 +425,8 @@ KexiDBFactory::createMenuActions(const TQCString &classname, TQWidget *w, TQPopu
{
KexiDBImageBox *imageBox = static_cast<KexiDBImageBox*>(w);
imageBox->contextMenu()->updateActionsAvailability();
- KActionCollection *ac = imageBox->contextMenu()->actionCollection();
- KPopupMenu *subMenu = new KPopupMenu();
+ TDEActionCollection *ac = imageBox->contextMenu()->actionCollection();
+ TDEPopupMenu *subMenu = new TDEPopupMenu();
//! @todo make these actions undoable/redoable
menu->insertItem(i18n("&Image"), subMenu);
ac->action("insert")->plug(subMenu);
@@ -445,10 +445,10 @@ KexiDBFactory::createMenuActions(const TQCString &classname, TQWidget *w, TQPopu
}
void
-KexiDBFactory::createCustomActions(KActionCollection* col)
+KexiDBFactory::createCustomActions(TDEActionCollection* col)
{
//this will create shared instance action for design mode (special collection is provided)
- m_assignAction = new KAction( i18n("&Assign Action..."), SmallIconSet("form_action"),
+ m_assignAction = new TDEAction( i18n("&Assign Action..."), SmallIconSet("form_action"),
0, 0, 0, col, "widget_assign_action");
}
diff --git a/kexi/plugins/forms/kexidbfactory.h b/kexi/plugins/forms/kexidbfactory.h
index a5830593..6be965d5 100644
--- a/kexi/plugins/forms/kexidbfactory.h
+++ b/kexi/plugins/forms/kexidbfactory.h
@@ -23,7 +23,7 @@
#include <formeditor/widgetfactory.h>
-class KAction;
+class TDEAction;
namespace KFormDesigner {
class Form;
@@ -43,7 +43,7 @@ class KexiDBFactory : public KFormDesigner::WidgetFactory
virtual TQWidget *createWidget(const TQCString &classname, TQWidget *parent, const char *name,
KFormDesigner::Container *container, int options = DefaultOptions );
- virtual void createCustomActions(KActionCollection* col);
+ virtual void createCustomActions(TDEActionCollection* col);
virtual bool createMenuActions(const TQCString &classname, TQWidget *w, TQPopupMenu *menu,
KFormDesigner::Container *container);
virtual bool startEditing(const TQCString &classname, TQWidget *w, KFormDesigner::Container *container);
@@ -69,7 +69,7 @@ class KexiDBFactory : public KFormDesigner::WidgetFactory
virtual bool propertySetShouldBeReloadedAfterPropertyChange(const TQCString& classname, TQWidget *w,
const TQCString& property);
- KAction* m_assignAction;
+ TDEAction* m_assignAction;
};
#endif
diff --git a/kexi/plugins/forms/kexiformeventhandler.cpp b/kexi/plugins/forms/kexiformeventhandler.cpp
index 55e999db..365f5cb4 100644
--- a/kexi/plugins/forms/kexiformeventhandler.cpp
+++ b/kexi/plugins/forms/kexiformeventhandler.cpp
@@ -70,7 +70,7 @@ KexiPart::Info* KexiFormEventAction::ActionData::decodeString(
KexiFormEventAction::KexiFormEventAction(KexiMainWindow *mainWin, TQObject* parent,
const TQString& actionName, const TQString& objectName, const TQString& actionOption)
- : KAction(parent), m_mainWin(mainWin), m_actionName(actionName), m_objectName(objectName)
+ : TDEAction(parent), m_mainWin(mainWin), m_actionName(actionName), m_objectName(objectName)
, m_actionOption(actionOption)
{
}
@@ -171,7 +171,7 @@ void KexiFormEventHandler::setMainWidgetForEventHandling(KexiMainWindow *mainWin
if (!ok)
continue;
if (actionType=="kaction" || actionType=="currentForm") {
- KAction *action = mainWin->actionCollection()->action( actionArg.latin1() );
+ TDEAction *action = mainWin->actionCollection()->action( actionArg.latin1() );
if (!action)
continue;
TQObject::disconnect( obj, TQT_SIGNAL(clicked()), action, TQT_SLOT(activate()) ); //safety
diff --git a/kexi/plugins/forms/kexiformeventhandler.h b/kexi/plugins/forms/kexiformeventhandler.h
index e882eeb8..69b9a20c 100644
--- a/kexi/plugins/forms/kexiformeventhandler.h
+++ b/kexi/plugins/forms/kexiformeventhandler.h
@@ -54,7 +54,7 @@ class KEXIFORMUTILS_EXPORT KexiFormEventHandler
};
//! @internal form-level action for handling "on click" actions
-class KEXIFORMUTILS_EXPORT KexiFormEventAction : public KAction
+class KEXIFORMUTILS_EXPORT KexiFormEventAction : public TDEAction
{
public:
//! A structure used in currentActionName()
diff --git a/kexi/plugins/forms/kexiformmanager.cpp b/kexi/plugins/forms/kexiformmanager.cpp
index 8c0c66e7..56d20376 100644
--- a/kexi/plugins/forms/kexiformmanager.cpp
+++ b/kexi/plugins/forms/kexiformmanager.cpp
@@ -51,13 +51,13 @@ KexiFormManager::~KexiFormManager()
{
}
-KAction* KexiFormManager::action( const char* name )
+TDEAction* KexiFormManager::action( const char* name )
{
- KActionCollection *col = m_part->actionCollectionForMode(Kexi::DesignViewMode);
+ TDEActionCollection *col = m_part->actionCollectionForMode(Kexi::DesignViewMode);
if (!col)
return 0;
TQCString n( translateName( name ).latin1() );
- KAction *a = col->action(n.data());
+ TDEAction *a = col->action(n.data());
if (a)
return a;
KexiDBForm *dbform;
diff --git a/kexi/plugins/forms/kexiformmanager.h b/kexi/plugins/forms/kexiformmanager.h
index baeb74d9..1e1b767c 100644
--- a/kexi/plugins/forms/kexiformmanager.h
+++ b/kexi/plugins/forms/kexiformmanager.h
@@ -37,7 +37,7 @@ class KEXIFORMUTILS_EXPORT KexiFormManager : public KFormDesigner::FormManager
KexiFormManager(KexiPart::Part *parent, const char* name = 0);
virtual ~KexiFormManager();
- virtual KAction* action( const char* name );
+ virtual TDEAction* action( const char* name );
virtual void enableAction( const char* name, bool enable );
public slots:
diff --git a/kexi/plugins/forms/kexiformpart.cpp b/kexi/plugins/forms/kexiformpart.cpp
index 911c3374..b96e4814 100644
--- a/kexi/plugins/forms/kexiformpart.cpp
+++ b/kexi/plugins/forms/kexiformpart.cpp
@@ -127,7 +127,7 @@ KFormDesigner::WidgetLibrary* KexiFormPart::library()
}
#if 0
-void KexiFormPart::initPartActions(KActionCollection *collection)
+void KexiFormPart::initPartActions(TDEActionCollection *collection)
{
//this is automatic? -no
//create child guicilent: guiClient()->setXMLFile("kexidatatableui.rc");
@@ -139,12 +139,12 @@ void KexiFormPart::initPartActions(KActionCollection *collection)
//js m_manager->createActions(collection, 0);
}
-void KexiFormPart::initInstanceActions( int mode, KActionCollection *col )
+void KexiFormPart::initInstanceActions( int mode, TDEActionCollection *col )
{
if (mode==Kexi::DesignViewMode) {
KFormDesigner::FormManager::self()->createActions(col, 0);
- new KAction(i18n("Edit Tab Order..."), "tab_order", KShortcut(0), KFormDesigner::FormManager::self(), TQT_SLOT(editTabOrder()), col, "taborder");
- new KAction(i18n("Adjust Size"), "viewmagfit", KShortcut(0), KFormDesigner::FormManager::self(), TQT_SLOT(ajustWidgetSize()), col, "adjust");
+ new TDEAction(i18n("Edit Tab Order..."), "tab_order", TDEShortcut(0), KFormDesigner::FormManager::self(), TQT_SLOT(editTabOrder()), col, "taborder");
+ new TDEAction(i18n("Adjust Size"), "viewmagfit", TDEShortcut(0), KFormDesigner::FormManager::self(), TQT_SLOT(ajustWidgetSize()), col, "adjust");
}
//TODO
}
@@ -152,7 +152,7 @@ void KexiFormPart::initInstanceActions( int mode, KActionCollection *col )
void KexiFormPart::initPartActions()
{
-// new KAction(i18n("Show Form UI Code"), "show_form_ui", CTRL+Key_U, m_manager, TQT_SLOT(showFormUICode()),
+// new TDEAction(i18n("Show Form UI Code"), "show_form_ui", CTRL+Key_U, m_manager, TQT_SLOT(showFormUICode()),
// guiClient()->actionCollection(), "show_form_ui");
}
@@ -161,13 +161,13 @@ void KexiFormPart::initInstanceActions()
#ifdef KEXI_DEBUG_GUI
kapp->config()->setGroup("General");
if (kapp->config()->readBoolEntry("showInternalDebugger", false)) {
- new KAction(i18n("Show Form UI Code"), "compfile",
+ new TDEAction(i18n("Show Form UI Code"), "compfile",
CTRL+Key_U, KFormDesigner::FormManager::self(), TQT_SLOT(showFormUICode()),
actionCollectionForMode(Kexi::DesignViewMode), "show_form_ui");
}
#endif
- KActionCollection *col = actionCollectionForMode(Kexi::DesignViewMode);
+ TDEActionCollection *col = actionCollectionForMode(Kexi::DesignViewMode);
KFormDesigner::FormManager::self()->createActions( library(), col, (KXMLGUIClient*)col->parentGUIClient() ); //guiClient() );
//connect actions provided by widget factories
@@ -180,8 +180,8 @@ void KexiFormPart::initInstanceActions()
// KFormDesigner::CreateLayoutCommand
- KAction *action = createSharedAction(Kexi::DesignViewMode, i18n("Layout Widgets"), "", 0, "formpart_layout_menu", "KActionMenu");
- KActionMenu *menu = static_cast<KActionMenu*>(action);
+ TDEAction *action = createSharedAction(Kexi::DesignViewMode, i18n("Layout Widgets"), "", 0, "formpart_layout_menu", "TDEActionMenu");
+ TDEActionMenu *menu = static_cast<TDEActionMenu*>(action);
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("&Horizontally"),
TQString(), 0, "formpart_layout_hbox"));
@@ -206,19 +206,19 @@ void KexiFormPart::initInstanceActions()
createSharedAction(Kexi::DesignViewMode, i18n("Send Widget to Back"), "lower", 0, "formpart_format_lower");
#ifndef KEXI_NO_UNFINISHED
- action = createSharedAction(Kexi::DesignViewMode, i18n("Other Widgets"), "", 0, "other_widgets_menu", "KActionMenu");
+ action = createSharedAction(Kexi::DesignViewMode, i18n("Other Widgets"), "", 0, "other_widgets_menu", "TDEActionMenu");
#endif
- action = createSharedAction(Kexi::DesignViewMode, i18n("Align Widgets Position"), "aoleft", 0, "formpart_align_menu", "KActionMenu");
- menu = static_cast<KActionMenu*>(action);
+ action = createSharedAction(Kexi::DesignViewMode, i18n("Align Widgets Position"), "aoleft", 0, "formpart_align_menu", "TDEActionMenu");
+ menu = static_cast<TDEActionMenu*>(action);
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Left"), "aoleft", 0, "formpart_align_to_left") );
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Right"), "aoright", 0, "formpart_align_to_right") );
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Top"), "aotop", 0, "formpart_align_to_top") );
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Bottom"), "aobottom", 0, "formpart_align_to_bottom") );
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Grid"), "aopos2grid", 0, "formpart_align_to_grid") );
- action = createSharedAction(Kexi::DesignViewMode, i18n("Adjust Widgets Size"), "aogrid", 0, "formpart_adjust_size_menu", "KActionMenu");
- menu = static_cast<KActionMenu*>(action);
+ action = createSharedAction(Kexi::DesignViewMode, i18n("Adjust Widgets Size"), "aogrid", 0, "formpart_adjust_size_menu", "TDEActionMenu");
+ menu = static_cast<TDEActionMenu*>(action);
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Fit"), "aofit", 0, "formpart_adjust_to_fit") );
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Grid"), "aogrid", 0, "formpart_adjust_size_grid") );
menu->insert( createSharedAction(Kexi::DesignViewMode, i18n("To Shortest"), "aoshortest", 0, "formpart_adjust_height_small") );
diff --git a/kexi/plugins/forms/kexiformscrollview.cpp b/kexi/plugins/forms/kexiformscrollview.cpp
index b4b58f70..b73cf8ea 100644
--- a/kexi/plugins/forms/kexiformscrollview.cpp
+++ b/kexi/plugins/forms/kexiformscrollview.cpp
@@ -51,7 +51,7 @@ KexiFormScrollView::KexiFormScrollView(TQWidget *parent, bool preview)
connect(this, TQT_SIGNAL(resizingStarted()), this, TQT_SLOT(slotResizingStarted()));
- m_popupMenu = new KPopupMenu(this, "contextMenu");
+ m_popupMenu = new TDEPopupMenu(this, "contextMenu");
// setFocusPolicy(NoFocus);
}
diff --git a/kexi/plugins/forms/widgets/kexidbdateedit.cpp b/kexi/plugins/forms/widgets/kexidbdateedit.cpp
index daff9ef9..cf8c1d70 100644
--- a/kexi/plugins/forms/widgets/kexidbdateedit.cpp
+++ b/kexi/plugins/forms/widgets/kexidbdateedit.cpp
@@ -52,7 +52,7 @@ KexiDBDateEdit::KexiDBDateEdit(const TQDate &date, TQWidget *parent, const char
m_dte_date = 0;
#endif
- m_datePickerPopupMenu = new KPopupMenu(0, "date_popup");
+ m_datePickerPopupMenu = new TDEPopupMenu(0, "date_popup");
connect(m_datePickerPopupMenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotShowDatePicker()));
m_datePicker = new KDatePicker(m_datePickerPopupMenu, TQDate::currentDate(), 0);
diff --git a/kexi/plugins/forms/widgets/kexidbdateedit.h b/kexi/plugins/forms/widgets/kexidbdateedit.h
index a9ddd6a3..638b985a 100644
--- a/kexi/plugins/forms/widgets/kexidbdateedit.h
+++ b/kexi/plugins/forms/widgets/kexidbdateedit.h
@@ -24,7 +24,7 @@
#include "kexiformdataiteminterface.h"
#include <tqdatetimeedit.h>
-class KPopupMenu;
+class TDEPopupMenu;
class KDatePicker;
class TQDateTimeEditor;
@@ -109,7 +109,7 @@ class KEXIFORMUTILS_EXPORT KexiDBDateEdit : public TQWidget, public KexiFormData
private:
KDatePicker *m_datePicker;
TQDateEdit *m_edit;
- KPopupMenu *m_datePickerPopupMenu;
+ TDEPopupMenu *m_datePickerPopupMenu;
TQDateTimeEditor *m_dte_date;
bool m_invalidState : 1;
bool m_cleared : 1;
diff --git a/kexi/plugins/forms/widgets/kexidbdatetimeedit.cpp b/kexi/plugins/forms/widgets/kexidbdatetimeedit.cpp
index 627e1172..763bdf02 100644
--- a/kexi/plugins/forms/widgets/kexidbdatetimeedit.cpp
+++ b/kexi/plugins/forms/widgets/kexidbdatetimeedit.cpp
@@ -59,7 +59,7 @@ KexiDBDateTimeEdit::KexiDBDateTimeEdit(const TQDateTime &datetime, TQWidget *par
m_dte_date = 0;
#endif
- m_datePickerPopupMenu = new KPopupMenu(0, "date_popup");
+ m_datePickerPopupMenu = new TDEPopupMenu(0, "date_popup");
connect(m_datePickerPopupMenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotShowDatePicker()));
m_datePicker = new KDatePicker(m_datePickerPopupMenu, TQDate::currentDate(), 0);
diff --git a/kexi/plugins/forms/widgets/kexidbdatetimeedit.h b/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
index c7080a1e..a56bb30e 100644
--- a/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
+++ b/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
@@ -26,7 +26,7 @@
class KDatePicker;
class TQDateTimeEditor;
-class KPopupMenu;
+class TDEPopupMenu;
//! @short A db-aware datetime editor
class KEXIFORMUTILS_EXPORT KexiDBDateTimeEdit : public TQWidget, public KexiFormDataItemInterface
@@ -98,7 +98,7 @@ class KEXIFORMUTILS_EXPORT KexiDBDateTimeEdit : public TQWidget, public KexiForm
TQDateEdit* m_dateEdit;
TQTimeEdit* m_timeEdit;
TQDateTimeEditor *m_dte_date, *m_dte_time;
- KPopupMenu *m_datePickerPopupMenu;
+ TDEPopupMenu *m_datePickerPopupMenu;
bool m_invalidState : 1;
bool m_cleared : 1;
bool m_readOnly : 1;
diff --git a/kexi/plugins/forms/widgets/kexidbimagebox.cpp b/kexi/plugins/forms/widgets/kexidbimagebox.cpp
index 97d36055..eaf91044 100644
--- a/kexi/plugins/forms/widgets/kexidbimagebox.cpp
+++ b/kexi/plugins/forms/widgets/kexidbimagebox.cpp
@@ -779,7 +779,7 @@ bool KexiDBImageBox::keyPressed(TQKeyEvent *ke)
return true;
}
}
-// else if (ke->state() == TQt::ControlButton && KStdAccel::shortcut(KStdAccel::Copy).keyCodeTQt() == (ke->key()|TQt::CTRL)) {
+// else if (ke->state() == TQt::ControlButton && TDEStdAccel::shortcut(TDEStdAccel::Copy).keyCodeTQt() == (ke->key()|TQt::CTRL)) {
// }
return false;
}
diff --git a/kexi/plugins/forms/widgets/kexidbimagebox.h b/kexi/plugins/forms/widgets/kexidbimagebox.h
index 93e7e244..e7a46329 100644
--- a/kexi/plugins/forms/widgets/kexidbimagebox.h
+++ b/kexi/plugins/forms/widgets/kexidbimagebox.h
@@ -254,8 +254,8 @@ class KEXIFORMUTILS_EXPORT KexiDBImageBox :
// TQString m_originalFileName;
KexiDropDownButton *m_chooser;
KexiImageContextMenu *m_popupMenu;
-//moved KActionCollection m_actionCollection;
-//moved KAction *m_insertFromFileAction, *m_saveAsAction, *m_cutAction, *m_copyAction, *m_pasteAction,
+//moved TDEActionCollection m_actionCollection;
+//moved TDEAction *m_insertFromFileAction, *m_saveAsAction, *m_cutAction, *m_copyAction, *m_pasteAction,
// *m_deleteAction, *m_propertiesAction;
// TQTimer m_clickTimer;
int m_alignment;
diff --git a/kexi/plugins/forms/widgets/kexidbtextedit.cpp b/kexi/plugins/forms/widgets/kexidbtextedit.cpp
index b6ab6b03..de928e37 100644
--- a/kexi/plugins/forms/widgets/kexidbtextedit.cpp
+++ b/kexi/plugins/forms/widgets/kexidbtextedit.cpp
@@ -199,7 +199,7 @@ void KexiDBTextEdit::selectAll()
void KexiDBTextEdit::keyPressEvent( TQKeyEvent *ke )
{
// for instance, Windows uses Ctrl+Tab for moving between tabs, so do not steal this shortcut
- if (KStdAccel::tabNext().contains( KKey(ke) ) || KStdAccel::tabPrev().contains( KKey(ke) )) {
+ if (TDEStdAccel::tabNext().contains( KKey(ke) ) || TDEStdAccel::tabPrev().contains( KKey(ke) )) {
ke->ignore();
return;
}
diff --git a/kexi/plugins/forms/widgets/kexidbutils.cpp b/kexi/plugins/forms/widgets/kexidbutils.cpp
index 3f12b3dd..863b5d80 100644
--- a/kexi/plugins/forms/widgets/kexidbutils.cpp
+++ b/kexi/plugins/forms/widgets/kexidbutils.cpp
@@ -53,7 +53,7 @@ void KexiDBWidgetContextMenuExtender::createTitle(TQPopupMenu *menu)
if (!menu)
return;
m_contextMenu = menu;
- KPopupTitle *titleItem = new KPopupTitle();
+ TDEPopupTitle *titleItem = new TDEPopupTitle();
const int id = m_contextMenu->insertItem(titleItem, -1, 0);
m_contextMenu->setItemEnabled(id, false);
TQString icon;
diff --git a/kexi/plugins/forms/widgets/kexidbutils.h b/kexi/plugins/forms/widgets/kexidbutils.h
index f4100c73..ceac5975 100644
--- a/kexi/plugins/forms/widgets/kexidbutils.h
+++ b/kexi/plugins/forms/widgets/kexidbutils.h
@@ -50,7 +50,7 @@ class KexiDBWidgetContextMenuExtender : public TQObject
protected:
KexiDataItemInterface* m_iface;
TQGuardedPtr<TQPopupMenu> m_contextMenu;
- bool m_contextMenuHasTitle; //!< true if KPopupTitle has been added to the context menu.
+ bool m_contextMenuHasTitle; //!< true if TDEPopupTitle has been added to the context menu.
};
class KexiDBAutoField;