summaryrefslogtreecommitdiffstats
path: root/src/kreplacements
diff options
context:
space:
mode:
Diffstat (limited to 'src/kreplacements')
-rw-r--r--src/kreplacements/kreplacements.cpp170
-rw-r--r--src/kreplacements/kreplacements.h94
2 files changed, 132 insertions, 132 deletions
diff --git a/src/kreplacements/kreplacements.cpp b/src/kreplacements/kreplacements.cpp
index fae9723..bceee94 100644
--- a/src/kreplacements/kreplacements.cpp
+++ b/src/kreplacements/kreplacements.cpp
@@ -286,7 +286,7 @@ TQString KFileDialog::getSaveFileName (const TQString &startDir,
}
-KToolBar::BarPosition KToolBar::barPos()
+TDEToolBar::BarPosition TDEToolBar::barPos()
{
if ( m_pMainWindow->leftDock()->hasDockWindow(this) ) return Left;
if ( m_pMainWindow->rightDock()->hasDockWindow(this) ) return Right;
@@ -295,7 +295,7 @@ KToolBar::BarPosition KToolBar::barPos()
return Top;
}
-void KToolBar::setBarPos(BarPosition bp)
+void TDEToolBar::setBarPos(BarPosition bp)
{
if ( bp == Left ) m_pMainWindow->moveDockWindow( this, DockLeft );
else if ( bp == Right ) m_pMainWindow->moveDockWindow( this, DockRight );
@@ -303,14 +303,14 @@ void KToolBar::setBarPos(BarPosition bp)
else if ( bp == Top ) m_pMainWindow->moveDockWindow( this, DockTop );
}
-KToolBar::KToolBar( TQMainWindow* parent )
+TDEToolBar::TDEToolBar( TQMainWindow* parent )
: TQToolBar( parent )
{
m_pMainWindow = parent;
}
-KMainWindow::KMainWindow( TQWidget* parent, const char* name )
+TDEMainWindow::TDEMainWindow( TQWidget* parent, const char* name )
: TQMainWindow( parent, name ), m_actionCollection(this)
{
fileMenu = new TQPopupMenu();
@@ -334,30 +334,30 @@ KMainWindow::KMainWindow( TQWidget* parent, const char* name )
helpMenu = new TQPopupMenu();
menuBar()->insertItem(i18n("&Help"), helpMenu);
- m_pToolBar = new KToolBar(this);
+ m_pToolBar = new TDEToolBar(this);
- memberList = new TQList<KMainWindow>;
+ memberList = new TQList<TDEMainWindow>;
memberList->append(this);
}
-KToolBar* KMainWindow::toolBar(const TQString&)
+TDEToolBar* TDEMainWindow::toolBar(const TQString&)
{
return m_pToolBar;
}
-KActionCollection* KMainWindow::actionCollection()
+TDEActionCollection* TDEMainWindow::actionCollection()
{
return &m_actionCollection;
}
-void KMainWindow::createGUI()
+void TDEMainWindow::createGUI()
{
KStdAction::help(this, TQT_SLOT(slotHelp()), actionCollection());
KStdAction::about(this, TQT_SLOT(slotAbout()), actionCollection());
KStdAction::aboutTQt(actionCollection());
}
-void KMainWindow::slotAbout()
+void TDEMainWindow::slotAbout()
{
TQTabDialog d;
d.setCaption("About " + s_appName);
@@ -417,7 +417,7 @@ void KMainWindow::slotAbout()
*/
}
-void KMainWindow::slotHelp()
+void TDEMainWindow::slotHelp()
{
showHelp();
}
@@ -472,11 +472,11 @@ void TDEConfig::setGroup(const TQString&)
{
}
-void KAction::init(TQObject* receiver, const char* slot, KActionCollection* actionCollection,
+void TDEAction::init(TQObject* receiver, const char* slot, TDEActionCollection* actionCollection,
const char* name, bool bToggle, bool bMenu)
{
TQString n(name);
- KMainWindow* p = actionCollection->m_pMainWindow;
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
if( slot!=0 )
{
if (!bToggle)
@@ -521,20 +521,20 @@ void KAction::init(TQObject* receiver, const char* slot, KActionCollection* acti
}
-KAction::KAction(const TQString& text, const TQIconSet& icon, int accel,
- TQObject* receiver, const char* slot, KActionCollection* actionCollection,
+TDEAction::TDEAction(const TQString& text, const TQIconSet& icon, int accel,
+ TQObject* receiver, const char* slot, TDEActionCollection* actionCollection,
const char* name, bool bToggle, bool bMenu
)
: TQAction ( text, icon, text, accel, actionCollection->m_pMainWindow, name, bToggle )
{
- KMainWindow* p = actionCollection->m_pMainWindow;
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
if ( !icon.isNull() && p ) this->addTo( p->m_pToolBar );
init(receiver,slot,actionCollection,name,bToggle,bMenu);
}
-KAction::KAction(const TQString& text, int accel,
- TQObject* receiver, const char* slot, KActionCollection* actionCollection,
+TDEAction::TDEAction(const TQString& text, int accel,
+ TQObject* receiver, const char* slot, TDEActionCollection* actionCollection,
const char* name, bool bToggle, bool bMenu
)
: TQAction ( text, text, accel, actionCollection->m_pMainWindow, name, bToggle )
@@ -542,39 +542,39 @@ KAction::KAction(const TQString& text, int accel,
init(receiver,slot,actionCollection,name,bToggle,bMenu);
}
-void KAction::setStatusText(const TQString&)
+void TDEAction::setStatusText(const TQString&)
{
}
-void KAction::plug(TQPopupMenu* menu)
+void TDEAction::plug(TQPopupMenu* menu)
{
addTo(menu);
}
-KToggleAction::KToggleAction(const TQString& text, const TQIconSet& icon, int accel, TQObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bMenu)
-: KAction( text, icon, accel, receiver, slot, actionCollection, name, true, bMenu)
+TDEToggleAction::TDEToggleAction(const TQString& text, const TQIconSet& icon, int accel, TQObject* receiver, const char* slot, TDEActionCollection* actionCollection, const char* name, bool bMenu)
+: TDEAction( text, icon, accel, receiver, slot, actionCollection, name, true, bMenu)
{
}
-KToggleAction::KToggleAction(const TQString& text, int accel, TQObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bMenu)
-: KAction( text, accel, receiver, slot, actionCollection, name, true, bMenu)
+TDEToggleAction::TDEToggleAction(const TQString& text, int accel, TQObject* receiver, const char* slot, TDEActionCollection* actionCollection, const char* name, bool bMenu)
+: TDEAction( text, accel, receiver, slot, actionCollection, name, true, bMenu)
{
}
-KToggleAction::KToggleAction(const TQString& text, const TQIconSet& icon, int accel, KActionCollection* actionCollection, const char* name, bool bMenu)
-: KAction( text, icon, accel, 0, 0, actionCollection, name, true, bMenu)
+TDEToggleAction::TDEToggleAction(const TQString& text, const TQIconSet& icon, int accel, TDEActionCollection* actionCollection, const char* name, bool bMenu)
+: TDEAction( text, icon, accel, 0, 0, actionCollection, name, true, bMenu)
{
}
-void KToggleAction::setChecked(bool bChecked)
+void TDEToggleAction::setChecked(bool bChecked)
{
blockSignals( true );
setOn( bChecked );
blockSignals( false );
}
-bool KToggleAction::isChecked()
+bool TDEToggleAction::isChecked()
{
return isOn();
}
@@ -582,144 +582,144 @@ bool KToggleAction::isChecked()
//static
-KAction* KStdAction::open( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::open( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
#include "../xpm/fileopen.xpm"
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Open"), TQIconSet(TQPixmap(fileopen)), TQt::CTRL+TQt::Key_O, parent, slot, actionCollection, "open", false, false);
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Open"), TQIconSet(TQPixmap(fileopen)), TQt::CTRL+TQt::Key_O, parent, slot, actionCollection, "open", false, false);
if(p){ a->addTo( p->fileMenu ); }
return a;
}
-KAction* KStdAction::save( TQWidget* parent, const char* slot, KActionCollection* actionCollection )
+TDEAction* KStdAction::save( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection )
{
#include "../xpm/filesave.xpm"
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Save"), TQIconSet(TQPixmap(filesave)), TQt::CTRL+TQt::Key_S, parent, slot, actionCollection, "save", false, false);
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Save"), TQIconSet(TQPixmap(filesave)), TQt::CTRL+TQt::Key_S, parent, slot, actionCollection, "save", false, false);
if(p){ a->addTo( p->fileMenu ); }
return a;
}
-KAction* KStdAction::saveAs( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::saveAs( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Save As..."), 0, parent, slot, actionCollection, "saveas", false, false);
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Save As..."), 0, parent, slot, actionCollection, "saveas", false, false);
if(p) a->addTo( p->fileMenu );
return a;
}
-KAction* KStdAction::print( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::print( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
#include "../xpm/fileprint.xpm"
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Print..."), TQIconSet(TQPixmap(fileprint)),TQt::CTRL+TQt::Key_P, parent, slot, actionCollection, "print", false, false);
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Print..."), TQIconSet(TQPixmap(fileprint)),TQt::CTRL+TQt::Key_P, parent, slot, actionCollection, "print", false, false);
if(p) a->addTo( p->fileMenu );
return a;
}
-KAction* KStdAction::quit( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::quit( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Quit"), TQt::CTRL+TQt::Key_Q, parent, slot, actionCollection, "quit", false, false);
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Quit"), TQt::CTRL+TQt::Key_Q, parent, slot, actionCollection, "quit", false, false);
if(p) a->addTo( p->fileMenu );
return a;
}
-KAction* KStdAction::cut( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::cut( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Cut"), TQt::CTRL+TQt::Key_X, parent, slot, actionCollection, "cut", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Cut"), TQt::CTRL+TQt::Key_X, parent, slot, actionCollection, "cut", false, false );
if(p) a->addTo( p->editMenu );
return a;
}
-KAction* KStdAction::copy( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::copy( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Copy"), TQt::CTRL+TQt::Key_C, parent, slot, actionCollection, "copy", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Copy"), TQt::CTRL+TQt::Key_C, parent, slot, actionCollection, "copy", false, false );
if(p) a->addTo( p->editMenu );
return a;
}
-KAction* KStdAction::paste( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::paste( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Paste"), TQt::CTRL+TQt::Key_V, parent, slot, actionCollection, "paste", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Paste"), TQt::CTRL+TQt::Key_V, parent, slot, actionCollection, "paste", false, false );
if(p) a->addTo( p->editMenu );
return a;
}
-KAction* KStdAction::selectAll( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::selectAll( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Select All"), TQt::CTRL+TQt::Key_A, parent, slot, actionCollection, "selectall", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Select All"), TQt::CTRL+TQt::Key_A, parent, slot, actionCollection, "selectall", false, false );
if(p) a->addTo( p->editMenu );
return a;
}
-KToggleAction* KStdAction::showToolbar( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEToggleAction* KStdAction::showToolbar( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KToggleAction* a = new KToggleAction( i18n("Show Toolbar"), 0, parent, slot, actionCollection, "showtoolbar", false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEToggleAction* a = new TDEToggleAction( i18n("Show Toolbar"), 0, parent, slot, actionCollection, "showtoolbar", false );
if(p) a->addTo( p->settingsMenu );
return a;
}
-KToggleAction* KStdAction::showStatusbar( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEToggleAction* KStdAction::showStatusbar( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KToggleAction* a = new KToggleAction( i18n("Show &Statusbar"), 0, parent, slot, actionCollection, "showstatusbar", false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEToggleAction* a = new TDEToggleAction( i18n("Show &Statusbar"), 0, parent, slot, actionCollection, "showstatusbar", false );
if(p) a->addTo( p->settingsMenu );
return a;
}
-KAction* KStdAction::preferences( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::preferences( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("&Configure %1...").arg("KDiff3"), 0, parent, slot, actionCollection, "settings", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("&Configure %1...").arg("KDiff3"), 0, parent, slot, actionCollection, "settings", false, false );
if(p) a->addTo( p->settingsMenu );
return a;
}
-KAction* KStdAction::keyBindings( TQWidget*, const char*, KActionCollection*)
+TDEAction* KStdAction::keyBindings( TQWidget*, const char*, TDEActionCollection*)
{
return 0;
}
-KAction* KStdAction::about( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::about( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("About")+" KDiff3", 0, parent, slot, actionCollection, "about_kdiff3", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("About")+" KDiff3", 0, parent, slot, actionCollection, "about_kdiff3", false, false );
if(p) a->addTo( p->helpMenu );
return a;
}
-KAction* KStdAction::aboutTQt( KActionCollection* actionCollection )
+TDEAction* KStdAction::aboutTQt( TDEActionCollection* actionCollection )
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("About")+" TQt", 0, tqApp, TQT_SLOT(aboutTQt()), actionCollection, "about_qt", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("About")+" TQt", 0, tqApp, TQT_SLOT(aboutTQt()), actionCollection, "about_qt", false, false );
if(p) a->addTo( p->helpMenu );
return a;
}
-KAction* KStdAction::help( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::help( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Help"), TQt::Key_F1, parent, slot, actionCollection, "help", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Help"), TQt::Key_F1, parent, slot, actionCollection, "help", false, false );
if(p) a->addTo( p->helpMenu );
return a;
}
-KAction* KStdAction::find( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::find( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Find"), TQt::CTRL+TQt::Key_F, parent, slot, actionCollection, "find", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Find"), TQt::CTRL+TQt::Key_F, parent, slot, actionCollection, "find", false, false );
if(p) a->addTo( p->editMenu );
return a;
}
-KAction* KStdAction::findNext( TQWidget* parent, const char* slot, KActionCollection* actionCollection)
+TDEAction* KStdAction::findNext( TQWidget* parent, const char* slot, TDEActionCollection* actionCollection)
{
- KMainWindow* p = actionCollection->m_pMainWindow;
- KAction* a = new KAction( i18n("Find Next"), TQt::Key_F3, parent, slot, actionCollection, "findNext", false, false );
+ TDEMainWindow* p = actionCollection->m_pMainWindow;
+ TDEAction* a = new TDEAction( i18n("Find Next"), TQt::Key_F3, parent, slot, actionCollection, "findNext", false, false );
if(p) a->addTo( p->editMenu );
return a;
}
@@ -727,7 +727,7 @@ KAction* KStdAction::findNext( TQWidget* parent, const char* slot, KActionCollec
-KFontChooser::KFontChooser( TQWidget* pParent, const TQString& /*name*/, bool, const TQStringList&, bool, int )
+TDEFontChooser::TDEFontChooser( TQWidget* pParent, const TQString& /*name*/, bool, const TQStringList&, bool, int )
: TQWidget(pParent)
{
m_pParent = pParent;
@@ -745,19 +745,19 @@ KFontChooser::KFontChooser( TQWidget* pParent, const TQString& /*name*/, bool, c
pLayout->addWidget(m_pLabel);
}
-TQFont KFontChooser::font()
+TQFont TDEFontChooser::font()
{
return m_font;//TQFont("courier",10);
}
-void KFontChooser::setFont( const TQFont& font, bool )
+void TDEFontChooser::setFont( const TQFont& font, bool )
{
m_font = font;
m_pLabel->setFont( m_font );
//update();
}
-void KFontChooser::slotSelectFont()
+void TDEFontChooser::slotSelectFont()
{
for(;;)
{
@@ -1145,7 +1145,7 @@ namespace TDEIO
TransferJob* put( KURL, int, bool, bool, bool ){return (TransferJob*)0;}
};
-KActionCollection* KParts::Part::actionCollection()
+TDEActionCollection* KParts::Part::actionCollection()
{
return 0;
}
diff --git a/src/kreplacements/kreplacements.h b/src/kreplacements/kreplacements.h
index b3bcfaf..0275a1b 100644
--- a/src/kreplacements/kreplacements.h
+++ b/src/kreplacements/kreplacements.h
@@ -40,7 +40,7 @@
TQString getTranslationDir();
-class KMainWindow;
+class TDEMainWindow;
class KURL
{
@@ -83,7 +83,7 @@ public:
#define RESTORE(x)
#define _UNLOAD(x)
-typedef TQPopupMenu KPopupMenu;
+typedef TQPopupMenu TDEPopupMenu;
class KDialogBase : public TQTabDialog
{
@@ -137,10 +137,10 @@ public:
typedef TQStatusBar KStatusBar;
-class KToolBar : public TQToolBar
+class TDEToolBar : public TQToolBar
{
public:
- KToolBar(TQMainWindow* parent);
+ TDEToolBar(TQMainWindow* parent);
enum BarPosition {Top, Bottom, Left, Right};
BarPosition barPos();
@@ -149,19 +149,19 @@ private:
TQMainWindow* m_pMainWindow;
};
-class KActionCollection
+class TDEActionCollection
{
public:
- KMainWindow* m_pMainWindow;
- KActionCollection( KMainWindow* p){ m_pMainWindow=p; }
+ TDEMainWindow* m_pMainWindow;
+ TDEActionCollection( TDEMainWindow* p){ m_pMainWindow=p; }
};
class KKeyDialog
{
public:
static void configure(void*, TQWidget*){}
- static void configureKeys(KActionCollection*, const TQString&){}
- static void configure(KActionCollection*, const TQString&){}
+ static void configureKeys(TDEActionCollection*, const TQString&){}
+ static void configure(TDEActionCollection*, const TQString&){}
};
namespace KParts
@@ -169,13 +169,13 @@ namespace KParts
class ReadWritePart;
}
-class KMainWindow : public TQMainWindow
+class TDEMainWindow : public TQMainWindow
{
Q_OBJECT
private:
KStatusBar m_statusBar;
- KActionCollection m_actionCollection;
+ TDEActionCollection m_actionCollection;
protected:
virtual bool queryClose() = 0;
virtual bool queryExit() = 0;
@@ -192,15 +192,15 @@ public:
TQPopupMenu* settingsMenu;
TQPopupMenu* helpMenu;
- KToolBar* m_pToolBar;
+ TDEToolBar* m_pToolBar;
- KMainWindow( TQWidget* parent, const char* name );
- KToolBar* toolBar(const TQString& s = TQString());
- KActionCollection* actionCollection();
+ TDEMainWindow( TQWidget* parent, const char* name );
+ TDEToolBar* toolBar(const TQString& s = TQString());
+ TDEActionCollection* actionCollection();
void createGUI();
void createGUI(KParts::ReadWritePart*){createGUI();}
- TQList<KMainWindow>* memberList;
+ TQList<TDEMainWindow>* memberList;
public slots:
void slotHelp();
void slotAbout();
@@ -217,25 +217,25 @@ public:
void setGroup(const TQString&);
};
-class KAction : public TQAction
+class TDEAction : public TQAction
{
Q_OBJECT
public:
- KAction(const TQString& text, const TQIconSet& icon, int accel, TQObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bToggle=false, bool bMenu=true);
- KAction(const TQString& text, int accel, TQObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bToggle=false, bool bMenu=true);
- void init(TQObject* receiver, const char* slot, KActionCollection* actionCollection,
+ TDEAction(const TQString& text, const TQIconSet& icon, int accel, TQObject* receiver, const char* slot, TDEActionCollection* actionCollection, const char* name, bool bToggle=false, bool bMenu=true);
+ TDEAction(const TQString& text, int accel, TQObject* receiver, const char* slot, TDEActionCollection* actionCollection, const char* name, bool bToggle=false, bool bMenu=true);
+ void init(TQObject* receiver, const char* slot, TDEActionCollection* actionCollection,
const char* name, bool bToggle, bool bMenu);
void setStatusText(const TQString&);
void plug(TQPopupMenu*);
};
-class KToggleAction : public KAction
+class TDEToggleAction : public TDEAction
{
public:
- KToggleAction(const TQString& text, const TQIconSet& icon, int accel, TQObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bMenu=true);
- KToggleAction(const TQString& text, int accel, TQObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bMenu=true);
- KToggleAction(const TQString& text, const TQIconSet& icon, int accel, KActionCollection* actionCollection, const char* name, bool bMenu=true);
+ TDEToggleAction(const TQString& text, const TQIconSet& icon, int accel, TQObject* receiver, const char* slot, TDEActionCollection* actionCollection, const char* name, bool bMenu=true);
+ TDEToggleAction(const TQString& text, int accel, TQObject* receiver, const char* slot, TDEActionCollection* actionCollection, const char* name, bool bMenu=true);
+ TDEToggleAction(const TQString& text, const TQIconSet& icon, int accel, TDEActionCollection* actionCollection, const char* name, bool bMenu=true);
void setChecked(bool);
bool isChecked();
};
@@ -244,24 +244,24 @@ public:
class KStdAction
{
public:
- static KAction* open( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* save( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* saveAs( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* print( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* quit( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* cut( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* copy( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* paste( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* selectAll( TQWidget* parent, const char* slot, KActionCollection* );
- static KToggleAction* showToolbar( TQWidget* parent, const char* slot, KActionCollection* );
- static KToggleAction* showStatusbar( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* preferences( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* about( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* aboutTQt( KActionCollection* );
- static KAction* help( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* find( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* findNext( TQWidget* parent, const char* slot, KActionCollection* );
- static KAction* keyBindings( TQWidget* parent, const char* slot, KActionCollection* );
+ static TDEAction* open( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* save( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* saveAs( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* print( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* quit( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* cut( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* copy( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* paste( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* selectAll( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEToggleAction* showToolbar( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEToggleAction* showStatusbar( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* preferences( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* about( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* aboutTQt( TDEActionCollection* );
+ static TDEAction* help( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* find( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* findNext( TQWidget* parent, const char* slot, TDEActionCollection* );
+ static TDEAction* keyBindings( TQWidget* parent, const char* slot, TDEActionCollection* );
};
class KIcon
@@ -270,7 +270,7 @@ public:
enum {SizeMedium,Small};
};
-class KFontChooser : public TQWidget
+class TDEFontChooser : public TQWidget
{
Q_OBJECT
@@ -279,7 +279,7 @@ class KFontChooser : public TQWidget
TQLabel* m_pLabel;
TQWidget* m_pParent;
public:
- KFontChooser( TQWidget* pParent, const TQString& name, bool, const TQStringList&, bool, int );
+ TDEFontChooser( TQWidget* pParent, const TQString& name, bool, const TQStringList&, bool, int );
TQFont font();
void setFont( const TQFont&, bool );
private slots:
@@ -458,10 +458,10 @@ public:
namespace KParts
{
- class MainWindow : public KMainWindow
+ class MainWindow : public TDEMainWindow
{
public:
- MainWindow( TQWidget* parent, const char* name ) : KMainWindow(parent,name) {}
+ MainWindow( TQWidget* parent, const char* name ) : TDEMainWindow(parent,name) {}
void setXMLFile(const TQString&){}
void setAutoSaveSettings(){}
void saveMainWindowSettings(TDEConfig*){}
@@ -472,7 +472,7 @@ namespace KParts
class Part : public TQObject
{
public:
- KActionCollection* actionCollection();
+ TDEActionCollection* actionCollection();
TDEApplication* instance();
void setWidget( TQWidget* w ){ m_pWidget=w; }
TQWidget* widget(){return m_pWidget;}