summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:14:58 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:14:58 -0600
commit9e5c87c89567a98c3344c90e392a27715437334c (patch)
tree6c1dd96ae0ba38b7e8f0a492d591881f44f474da
parent53904b41cf005abbae3d468532db9adc2b04a9b4 (diff)
downloadtdeutils-9e5c87c89567a98c3344c90e392a27715437334c.tar.gz
tdeutils-9e5c87c89567a98c3344c90e392a27715437334c.zip
Rename a number of classes to enhance compatibility with KDE4
-rw-r--r--ark/ChangeLog2
-rw-r--r--ark/ark_part.cpp26
-rw-r--r--ark/ark_part.h36
-rw-r--r--ark/arkwidget.cpp2
-rw-r--r--ark/arkwidget.h6
-rw-r--r--ark/filelistview.cpp30
-rw-r--r--ark/filelistview.h10
-rw-r--r--ark/mainwindow.cpp6
-rw-r--r--ark/mainwindow.h12
-rw-r--r--ark/searchbar.cpp6
-rw-r--r--ark/searchbar.h8
-rw-r--r--kcalc/ChangeLog2
-rw-r--r--kcalc/dlabel.cpp2
-rw-r--r--kcalc/dlabel.h10
-rw-r--r--kcalc/kcalc.cpp24
-rw-r--r--kcalc/kcalc.h10
-rw-r--r--kcalc/kcalc_const_button.cpp2
-rw-r--r--kcalc/kcalc_const_button.h2
-rw-r--r--kcharselect/kcharselectdia.cc20
-rw-r--r--kcharselect/kcharselectdia.h2
-rw-r--r--kdelirc/irkick/irkick.h4
-rw-r--r--kdelirc/kcmlirc/addaction.cpp8
-rw-r--r--kdelirc/kcmlirc/addactionbase.ui14
-rw-r--r--kdelirc/kcmlirc/kcmlirc.cpp14
-rw-r--r--kdelirc/kcmlirc/kcmlirc.h4
-rw-r--r--kdelirc/kcmlirc/kcmlircbase.ui8
-rw-r--r--kdelirc/kcmlirc/modeslist.cpp2
-rw-r--r--kdelirc/kcmlirc/modeslist.h2
-rw-r--r--kdelirc/kcmlirc/newmode.ui2
-rw-r--r--kdelirc/kcmlirc/selectprofile.ui2
-rw-r--r--kdf/kdf.cpp6
-rw-r--r--kdf/kdf.h2
-rw-r--r--kdf/kdfwidget.cpp2
-rw-r--r--kdf/kdfwidget.h4
-rw-r--r--kdf/listview.cpp2
-rw-r--r--kdf/listview.h2
-rw-r--r--kedit/kedit.cpp10
-rw-r--r--kedit/kedit.h16
-rw-r--r--kedit/ktextfiledlg.cpp16
-rw-r--r--kgpg/conf_servers.ui2
-rw-r--r--kgpg/groupedit.ui4
-rw-r--r--kgpg/keyservers.cpp4
-rw-r--r--kgpg/keyservers.h4
-rw-r--r--kgpg/kgpg.cpp28
-rw-r--r--kgpg/kgpg.h6
-rw-r--r--kgpg/kgpgeditor.cpp20
-rw-r--r--kgpg/kgpgeditor.h14
-rw-r--r--kgpg/kgpglibrary.cpp2
-rw-r--r--kgpg/kgpglibrary.h2
-rw-r--r--kgpg/kgpgoptions.cpp2
-rw-r--r--kgpg/kgpgoptions.h4
-rw-r--r--kgpg/listkeys.cpp124
-rw-r--r--kgpg/listkeys.h18
-rw-r--r--kgpg/popuppublic.cpp20
-rw-r--r--kgpg/popuppublic.h6
-rw-r--r--kgpg/searchres.ui2
-rw-r--r--khexedit/hexviewwidget.cc2
-rw-r--r--khexedit/lib/kbufferranges.h2
-rw-r--r--khexedit/lib/kselection.h42
-rw-r--r--khexedit/listview.cc2
-rw-r--r--khexedit/listview.h2
-rw-r--r--khexedit/optiondialog.cc6
-rw-r--r--khexedit/optiondialog.h6
-rw-r--r--khexedit/parts/kpart/khepart.cpp16
-rw-r--r--khexedit/parts/kpart/khepart.h20
-rw-r--r--khexedit/toplevel.cc112
-rw-r--r--khexedit/toplevel.h162
-rw-r--r--kjots/KJotsMain.cpp56
-rw-r--r--kjots/KJotsMain.h24
-rw-r--r--kjots/confpagefont.ui2
-rw-r--r--kjots/kjotsedit.cpp2
-rw-r--r--kjots/kjotsedit.h4
-rw-r--r--kjots/kjotsentry.cpp18
-rw-r--r--kjots/kjotsentry.h10
-rw-r--r--klaptopdaemon/daemondock.cpp2
-rw-r--r--klaptopdaemon/daemondock.h4
-rw-r--r--kmilo/generic/generic_monitor.cpp26
-rw-r--r--kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.cpp2
-rw-r--r--kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.h2
-rw-r--r--kregexpeditor/KMultiFormListBox/widgetwindow.cpp6
-rw-r--r--kregexpeditor/KMultiFormListBox/widgetwindow.h8
-rw-r--r--kregexpeditor/qt-only/compat.h2
-rw-r--r--ksim/monitorprefs.cpp4
-rw-r--r--ksim/monitorprefs.h2
-rw-r--r--ksim/monitors/cpu/ksimcpu.cpp2
-rw-r--r--ksim/monitors/cpu/ksimcpu.h4
-rw-r--r--ksim/monitors/disk/ksimdisk.cpp2
-rw-r--r--ksim/monitors/disk/ksimdisk.h4
-rw-r--r--ksim/monitors/filesystem/fsystemconfig.cpp2
-rw-r--r--ksim/monitors/filesystem/fsystemconfig.h4
-rw-r--r--ksim/monitors/filesystem/ksimfsystem.h2
-rw-r--r--ksim/monitors/lm_sensors/sensorsconfig.cpp8
-rw-r--r--ksim/monitors/lm_sensors/sensorsconfig.h6
-rw-r--r--ksim/monitors/net/netconfig.cpp8
-rw-r--r--ksim/monitors/net/netconfig.h6
-rw-r--r--ksim/monitors/snmp/browsedialogbase.ui2
-rw-r--r--ksim/monitors/snmp/configwidget.ui4
-rw-r--r--ksim/monitors/snmp/proberesultdialogbase.ui2
-rw-r--r--ksim/themeprefs.cpp10
-rw-r--r--ksim/themeprefs.h4
-rw-r--r--superkaramba/src/karamba.cpp34
-rw-r--r--superkaramba/src/karamba.h22
-rw-r--r--superkaramba/src/karamba_python.cpp2
-rw-r--r--superkaramba/src/karamba_python.h4
-rw-r--r--superkaramba/src/karambaapp.cpp4
-rw-r--r--superkaramba/src/menu_python.cpp20
-rw-r--r--tdewallet/allyourbase.cpp8
-rw-r--r--tdewallet/allyourbase.h8
-rw-r--r--tdewallet/konfigurator/konfigurator.cpp2
-rw-r--r--tdewallet/kwmapeditor.cpp4
-rw-r--r--tdewallet/kwmapeditor.h8
-rw-r--r--tdewallet/tdewalleteditor.cpp18
-rw-r--r--tdewallet/tdewalleteditor.h12
-rw-r--r--tdewallet/tdewalletmanager.cpp20
-rw-r--r--tdewallet/tdewalletmanager.h6
-rw-r--r--tdewallet/tdewalletpopup.cpp16
-rw-r--r--tdewallet/tdewalletpopup.h2
117 files changed, 703 insertions, 703 deletions
diff --git a/ark/ChangeLog b/ark/ChangeLog
index 394ec6c..aa440bd 100644
--- a/ark/ChangeLog
+++ b/ark/ChangeLog
@@ -112,7 +112,7 @@
to extract a symlink??)
2000-04-06: Emily Ezust <[email protected]>
- * Switched to KListView
+ * Switched to TDEListView
* Some work on settings and archive-specific actions
* Couldn't load LHA archives with files that were symlinks; fixed
* Added more entries to the Settings and RMB menu. Toggle menu bar will
diff --git a/ark/ark_part.cpp b/ark/ark_part.cpp
index 6e3ff5f..062d1a3 100644
--- a/ark/ark_part.cpp
+++ b/ark/ark_part.cpp
@@ -116,47 +116,47 @@ ArkPart::~ArkPart()
void
ArkPart::setupActions()
{
- addFileAction = new KAction(i18n("Add &File..."), "ark_addfile", 0, TQT_TQOBJECT(awidget),
+ addFileAction = new TDEAction(i18n("Add &File..."), "ark_addfile", 0, TQT_TQOBJECT(awidget),
TQT_SLOT(action_add()), actionCollection(), "addfile");
- addDirAction = new KAction(i18n("Add Folde&r..."), "ark_adddir", 0, TQT_TQOBJECT(awidget),
+ addDirAction = new TDEAction(i18n("Add Folde&r..."), "ark_adddir", 0, TQT_TQOBJECT(awidget),
TQT_SLOT(action_add_dir()), actionCollection(), "adddir");
- extractAction = new KAction(i18n("E&xtract..."), "ark_extract", 0, TQT_TQOBJECT(awidget),
+ extractAction = new TDEAction(i18n("E&xtract..."), "ark_extract", 0, TQT_TQOBJECT(awidget),
TQT_SLOT(action_extract()), actionCollection(), "extract");
- deleteAction = new KAction(i18n("De&lete"), "ark_delete", KShortcut(TQt::Key_Delete), TQT_TQOBJECT(awidget),
+ deleteAction = new TDEAction(i18n("De&lete"), "ark_delete", TDEShortcut(TQt::Key_Delete), TQT_TQOBJECT(awidget),
TQT_SLOT(action_delete()), actionCollection(), "delete");
- viewAction = new KAction(i18n("to view something","&View"), "ark_view", 0, TQT_TQOBJECT(awidget),
+ viewAction = new TDEAction(i18n("to view something","&View"), "ark_view", 0, TQT_TQOBJECT(awidget),
TQT_SLOT(action_view()), actionCollection(), "view");
- openWithAction = new KAction(i18n("&Open With..."), 0, TQT_TQOBJECT(awidget),
+ openWithAction = new TDEAction(i18n("&Open With..."), 0, TQT_TQOBJECT(awidget),
TQT_SLOT(slotOpenWith()), actionCollection(), "open_with");
- editAction = new KAction(i18n("Edit &With..."), 0, TQT_TQOBJECT(awidget),
+ editAction = new TDEAction(i18n("Edit &With..."), 0, TQT_TQOBJECT(awidget),
TQT_SLOT(action_edit()), actionCollection(), "edit");
- testAction = new KAction(i18n("&Test integrity"), 0, awidget,
+ testAction = new TDEAction(i18n("&Test integrity"), 0, awidget,
TQT_SLOT(action_test()), actionCollection(), "test");
selectAllAction = KStdAction::selectAll(TQT_TQOBJECT(awidget->fileList()), TQT_SLOT(selectAll()), actionCollection(), "select_all");
- deselectAllAction = new KAction(i18n("&Unselect All"), 0, TQT_TQOBJECT(awidget->fileList()),TQT_SLOT(unselectAll()), actionCollection(), "deselect_all");
+ deselectAllAction = new TDEAction(i18n("&Unselect All"), 0, TQT_TQOBJECT(awidget->fileList()),TQT_SLOT(unselectAll()), actionCollection(), "deselect_all");
- invertSelectionAction = new KAction(i18n("&Invert Selection"), 0, TQT_TQOBJECT(awidget->fileList()),TQT_SLOT(invertSelection()), actionCollection(), "invert_selection");
+ invertSelectionAction = new TDEAction(i18n("&Invert Selection"), 0, TQT_TQOBJECT(awidget->fileList()),TQT_SLOT(invertSelection()), actionCollection(), "invert_selection");
saveAsAction = KStdAction::saveAs(this, TQT_SLOT(file_save_as()), actionCollection());
//KStdAction::preferences(awidget, TQT_SLOT(showSettings()), actionCollection());
- ( void ) new KAction( i18n( "Configure &Ark..." ), "configure" , 0, TQT_TQOBJECT(awidget),
+ ( void ) new TDEAction( i18n( "Configure &Ark..." ), "configure" , 0, TQT_TQOBJECT(awidget),
TQT_SLOT( showSettings() ), actionCollection(), "options_configure_ark" );
- showSearchBar = new KToggleAction( i18n( "Show Search Bar" ), KShortcut(), actionCollection(), "options_show_search_bar" );
+ showSearchBar = new TDEToggleAction( i18n( "Show Search Bar" ), TDEShortcut(), actionCollection(), "options_show_search_bar" );
showSearchBar->setCheckedState(i18n("Hide Search Bar"));
showSearchBar->setChecked( ArkSettings::showSearchBar() );
@@ -319,7 +319,7 @@ bool ArkPart::closeURL()
void ArkPart::slotFilePopup( const TQPoint &pPoint )
{
if ( factory() )
- static_cast<KPopupMenu *>(factory()->container("file_popup", this))->popup(pPoint);
+ static_cast<TDEPopupMenu *>(factory()->container("file_popup", this))->popup(pPoint);
}
void ArkPart::transferStarted( TDEIO::Job *job )
diff --git a/ark/ark_part.h b/ark/ark_part.h
index 1057395..3ea711e 100644
--- a/ark/ark_part.h
+++ b/ark/ark_part.h
@@ -127,24 +127,24 @@ private:
ArkBrowserExtension *m_ext;
ArkStatusBarExtension *m_bar;
- KAction *saveAsAction;
- KAction *addFileAction;
- KAction *addDirAction;
- KAction *extractAction;
- KAction *deleteAction;
- KAction *selectAllAction;
- KAction *viewAction;
- KAction *helpAction;
- KAction *openWithAction;
- KAction *deselectAllAction;
- KAction *invertSelectionAction;
- KAction *editAction;
- KAction *testAction;
-
- // the following have different enable rules from the above KActions
- KAction *popupViewAction;
- KAction *popupOpenWithAction;
- KToggleAction *showSearchBar;
+ TDEAction *saveAsAction;
+ TDEAction *addFileAction;
+ TDEAction *addDirAction;
+ TDEAction *extractAction;
+ TDEAction *deleteAction;
+ TDEAction *selectAllAction;
+ TDEAction *viewAction;
+ TDEAction *helpAction;
+ TDEAction *openWithAction;
+ TDEAction *deselectAllAction;
+ TDEAction *invertSelectionAction;
+ TDEAction *editAction;
+ TDEAction *testAction;
+
+ // the following have different enable rules from the above TDEActions
+ TDEAction *popupViewAction;
+ TDEAction *popupOpenWithAction;
+ TDEToggleAction *showSearchBar;
TDEIO::Job *m_job;
};
diff --git a/ark/arkwidget.cpp b/ark/arkwidget.cpp
index 33aa57f..9c5eec8 100644
--- a/ark/arkwidget.cpp
+++ b/ark/arkwidget.cpp
@@ -127,7 +127,7 @@ ArkWidget::ArkWidget( TQWidget *parent, const char *name )
m_tmpDir = NULL;
}
- m_searchToolBar = new KToolBar( this, "searchBar" );
+ m_searchToolBar = new TDEToolBar( this, "searchBar" );
m_searchToolBar->boxLayout()->setSpacing( KDialog::spacingHint() );
TQLabel * l1 = new TQLabel( i18n( "&Search:" ), m_searchToolBar, "kde toolbar widget" );
diff --git a/ark/arkwidget.h b/ark/arkwidget.h
index a0f2ab5..6d7bd5e 100644
--- a/ark/arkwidget.h
+++ b/ark/arkwidget.h
@@ -44,13 +44,13 @@ class TQListViewItem;
class TQDragMoveEvent;
class TQDropEvent;
-class KPopupMenu;
+class TDEPopupMenu;
class TDEProcess;
class KURL;
class KRun;
class KTempFile;
class KTempDir;
-class KToolBar;
+class TDEToolBar;
class FileListView;
class SearchBar;
@@ -292,7 +292,7 @@ private: // data
bool m_modified;
- KToolBar * m_searchToolBar;
+ TDEToolBar * m_searchToolBar;
SearchBar * m_searchBar;
Arch * arch;
diff --git a/ark/filelistview.cpp b/ark/filelistview.cpp
index 384a259..51e1704 100644
--- a/ark/filelistview.cpp
+++ b/ark/filelistview.cpp
@@ -45,15 +45,15 @@
// FileLVI implementation
/////////////////////////////////////////////////////////////////////
-FileLVI::FileLVI( KListView* lv )
- : KListViewItem( lv ), m_fileSize( 0 ), m_packedFileSize( 0 ),
+FileLVI::FileLVI( TDEListView* lv )
+ : TDEListViewItem( lv ), m_fileSize( 0 ), m_packedFileSize( 0 ),
m_ratio( 0 ), m_timeStamp( TQDateTime() ), m_entryName( TQString() )
{
}
-FileLVI::FileLVI( KListViewItem* lvi )
- : KListViewItem( lvi ), m_fileSize( 0 ), m_packedFileSize( 0 ),
+FileLVI::FileLVI( TDEListViewItem* lvi )
+ : TDEListViewItem( lvi ), m_fileSize( 0 ), m_packedFileSize( 0 ),
m_ratio( 0 ), m_timeStamp( TQDateTime() ), m_entryName( TQString() )
{
}
@@ -77,7 +77,7 @@ int FileLVI::compare( TQListViewItem * i, int column, bool ascending ) const
return 1;
if ( column == 0 )
- return KListViewItem::compare( i, column, ascending );
+ return TDEListViewItem::compare( i, column, ascending );
columnName colName = ( static_cast< FileListView * > ( listView() ) )->nameOfColumn( column );
switch ( colName )
@@ -115,7 +115,7 @@ int FileLVI::compare( TQListViewItem * i, int column, bool ascending ) const
}
default:
- return KListViewItem::compare( i, column, ascending );
+ return TDEListViewItem::compare( i, column, ascending );
}
}
@@ -170,7 +170,7 @@ void FileLVI::setText( int column, const TQString &text )
TQListViewItem::setText(column, text);
}
-static FileLVI* folderLVI( KListViewItem *parent, const TQString& name )
+static FileLVI* folderLVI( TDEListViewItem *parent, const TQString& name )
{
FileLVI *folder = new FileLVI( parent );
@@ -181,7 +181,7 @@ static FileLVI* folderLVI( KListViewItem *parent, const TQString& name )
return folder;
}
-static FileLVI* folderLVI( KListView *parent, const TQString& name )
+static FileLVI* folderLVI( TDEListView *parent, const TQString& name )
{
FileLVI *folder = new FileLVI( parent );
folder->setText( 0, name );
@@ -195,7 +195,7 @@ static FileLVI* folderLVI( KListView *parent, const TQString& name )
FileListView::FileListView(TQWidget *parent, const char* name)
- : KListView(parent, name)
+ : TDEListView(parent, name)
{
TQWhatsThis::add( this,
i18n( "This area is for displaying information about the files contained within an archive." )
@@ -214,7 +214,7 @@ FileListView::FileListView(TQWidget *parent, const char* name)
int FileListView::addColumn ( const TQString & label, int width )
{
- int index = KListView::addColumn( label, width );
+ int index = TDEListView::addColumn( label, width );
if ( label == SIZE_COLUMN.first )
{
m_columnMap[ index ] = sizeCol;
@@ -246,7 +246,7 @@ void FileListView::removeColumn( int index )
}
m_columnMap.remove( m_columnMap[ m_columnMap.count() - 1 ] );
- KListView::removeColumn( index );
+ TDEListView::removeColumn( index );
}
columnName FileListView::nameOfColumn( int index )
@@ -337,14 +337,14 @@ FileListView::contentsMousePressEvent(TQMouseEvent *e)
m_presspos = e->pos();
}
- KListView::contentsMousePressEvent(e);
+ TDEListView::contentsMousePressEvent(e);
}
void
FileListView::contentsMouseReleaseEvent(TQMouseEvent *e)
{
m_pressed = false;
- KListView::contentsMouseReleaseEvent(e);
+ TDEListView::contentsMouseReleaseEvent(e);
}
void
@@ -352,7 +352,7 @@ FileListView::contentsMouseMoveEvent(TQMouseEvent *e)
{
if(!m_pressed)
{
- KListView::contentsMouseMoveEvent(e);
+ TDEListView::contentsMouseMoveEvent(e);
}
else if( ( m_presspos - e->pos() ).manhattanLength() > TDEGlobalSettings::dndEventDelay() )
{
@@ -363,7 +363,7 @@ FileListView::contentsMouseMoveEvent(TQMouseEvent *e)
}
TQStringList dragFiles = selectedFilenames();
emit startDragRequest( dragFiles );
- KListView::contentsMouseMoveEvent(e);
+ TDEListView::contentsMouseMoveEvent(e);
}
}
diff --git a/ark/filelistview.h b/ark/filelistview.h
index 9c84e43..8cc5140 100644
--- a/ark/filelistview.h
+++ b/ark/filelistview.h
@@ -45,11 +45,11 @@ class TQPoint;
enum columnName { sizeCol = 1 , packedStrCol, ratioStrCol, timeStampStrCol, otherCol };
-class FileLVI : public KListViewItem
+class FileLVI : public TDEListViewItem
{
public:
- FileLVI( KListView* lv );
- FileLVI( KListViewItem* lvi );
+ FileLVI( TDEListView* lv );
+ FileLVI( TDEListViewItem* lvi );
TQString fileName() const { return m_entryName; }
TDEIO::filesize_t fileSize() const { return m_fileSize; }
@@ -71,14 +71,14 @@ class FileLVI : public KListViewItem
typedef TQValueList< TQPair< TQString, TQt::AlignmentFlags > > ColumnList;
-class FileListView: public KListView
+class FileListView: public TDEListView
{
Q_OBJECT
public:
FileListView( TQWidget *parent = 0, const char* name = 0 );
- FileLVI *currentItem() {return ((FileLVI *) KListView::currentItem());}
+ FileLVI *currentItem() {return ((FileLVI *) TDEListView::currentItem());}
/**
* Returns the full names of the selected files.
diff --git a/ark/mainwindow.cpp b/ark/mainwindow.cpp
index 1198562..40ccdae 100644
--- a/ark/mainwindow.cpp
+++ b/ark/mainwindow.cpp
@@ -109,13 +109,13 @@ MainWindow::~MainWindow()
void
MainWindow::setupActions()
{
- newWindowAction = new KAction(i18n("New &Window"), "window_new", KShortcut(), TQT_TQOBJECT(this),
+ newWindowAction = new TDEAction(i18n("New &Window"), "window_new", TDEShortcut(), TQT_TQOBJECT(this),
TQT_SLOT(file_newWindow()), actionCollection(), "new_window");
newArchAction = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(file_new()), actionCollection());
openAction = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(file_open()), actionCollection());
- reloadAction = new KAction(i18n("Re&load"), "reload", KStdAccel::shortcut( KStdAccel::Reload ), TQT_TQOBJECT(this),
+ reloadAction = new TDEAction(i18n("Re&load"), "reload", TDEStdAccel::shortcut( TDEStdAccel::Reload ), TQT_TQOBJECT(this),
TQT_SLOT(file_reload()), actionCollection(), "reload_arch");
closeAction = KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(file_close()), actionCollection(), "file_close");
@@ -204,7 +204,7 @@ MainWindow::slotConfigureKeyBindings()
void
MainWindow::slotArchivePopup( const TQPoint &pPoint)
{
- static_cast<KPopupMenu *>(factory()->container("archive_popup", this))->popup(pPoint);
+ static_cast<TDEPopupMenu *>(factory()->container("archive_popup", this))->popup(pPoint);
}
// see if the ark is already open in another window
diff --git a/ark/mainwindow.h b/ark/mainwindow.h
index c878942..21952fd 100644
--- a/ark/mainwindow.h
+++ b/ark/mainwindow.h
@@ -98,12 +98,12 @@ private: // data
KParts::ReadWritePart *m_part;
ArkWidget *m_widget; //the parts widget
- KAction *newWindowAction;
- KAction *newArchAction;
- KAction *openAction;
- KAction *closeAction;
- KAction *reloadAction;
- KRecentFilesAction *recent;
+ TDEAction *newWindowAction;
+ TDEAction *newArchAction;
+ TDEAction *openAction;
+ TDEAction *closeAction;
+ TDEAction *reloadAction;
+ TDERecentFilesAction *recent;
//progress dialog for konqs service menus / commmand line
KProgressDialog *progressDialog;
diff --git a/ark/searchbar.cpp b/ark/searchbar.cpp
index 3efc79a..1d13a58 100644
--- a/ark/searchbar.cpp
+++ b/ark/searchbar.cpp
@@ -32,10 +32,10 @@
#include <tqapplication.h>
#include <tqvaluelist.h>
-SearchBar::SearchBar( TQWidget* parent, KActionCollection* aC, const char * name )
- : KListViewSearchLine( parent, 0, name )
+SearchBar::SearchBar( TQWidget* parent, TDEActionCollection* aC, const char * name )
+ : TDEListViewSearchLine( parent, 0, name )
{
- KAction *resetSearch = new KAction( i18n( "Reset Search" ), TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, TQT_TQOBJECT(this), TQT_SLOT( clear() ), aC, "reset_search" );
+ TDEAction *resetSearch = new TDEAction( i18n( "Reset Search" ), TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, TQT_TQOBJECT(this), TQT_SLOT( clear() ), aC, "reset_search" );
resetSearch->plug( parent );
resetSearch->setWhatsThis( i18n( "Reset Search\n"
diff --git a/ark/searchbar.h b/ark/searchbar.h
index 1b9aa03..52a6d56 100644
--- a/ark/searchbar.h
+++ b/ark/searchbar.h
@@ -25,16 +25,16 @@
#include <tqwidget.h>
-class KListView;
+class TDEListView;
class KComboBox;
-class KActionCollection;
+class TDEActionCollection;
-class SearchBar: public KListViewSearchLine
+class SearchBar: public TDEListViewSearchLine
{
Q_OBJECT
public:
- SearchBar( TQWidget* parent, KActionCollection* aC, const char * name = 0 );
+ SearchBar( TQWidget* parent, TDEActionCollection* aC, const char * name = 0 );
~SearchBar();
};
diff --git a/kcalc/ChangeLog b/kcalc/ChangeLog
index 4e96f0c..89d8e23 100644
--- a/kcalc/ChangeLog
+++ b/kcalc/ChangeLog
@@ -239,7 +239,7 @@
* Caption is set via signal/slots
* Fixed "%"-mode to make it again more conformant with documentation.
"x^y%" does still not work. Did it ever?
- * Number-keys are now handled by KAccel instead of keyPressEvent
+ * Number-keys are now handled by TDEAccel instead of keyPressEvent
* ConfigDialog is modal
2003-08-27 Klaus Niederkr�ger <[email protected]>
diff --git a/kcalc/dlabel.cpp b/kcalc/dlabel.cpp
index 157a387..f2e476c 100644
--- a/kcalc/dlabel.cpp
+++ b/kcalc/dlabel.cpp
@@ -35,7 +35,7 @@
DispLogic::DispLogic(TQWidget *parent, const char *name,
- KActionCollection *coll)
+ TDEActionCollection *coll)
:KCalcDisplay(parent,name), _history_index(0)
{
KNumber::setDefaultFloatOutput(true);
diff --git a/kcalc/dlabel.h b/kcalc/dlabel.h
index 9656dc5..fe226b5 100644
--- a/kcalc/dlabel.h
+++ b/kcalc/dlabel.h
@@ -32,8 +32,8 @@
#include "kcalcdisplay.h"
class CalcEngine;
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
class DispLogic : public KCalcDisplay
{
@@ -42,7 +42,7 @@ Q_OBJECT
public:
DispLogic(TQWidget *parent, const char *name,
- KActionCollection *coll);
+ TDEActionCollection *coll);
~DispLogic();
void changeSettings();
@@ -58,8 +58,8 @@ private:
TQValueVector<KNumber> _history_list;
int _history_index;
- KAction *_forward;
- KAction *_back;
+ TDEAction *_forward;
+ TDEAction *_back;
};
#endif
diff --git a/kcalc/kcalc.cpp b/kcalc/kcalc.cpp
index 7d84ecb..b18882d 100644
--- a/kcalc/kcalc.cpp
+++ b/kcalc/kcalc.cpp
@@ -79,14 +79,14 @@ static const char version[] = KCALCVERSION;
KCalculator::KCalculator(TQWidget *parent, const char *name)
- : KMainWindow(parent, name), inverse(false),
+ : TDEMainWindow(parent, name), inverse(false),
hyp_mode(false), memory_num(0.0), calc_display(NULL),
mInternalSpacing(4), core()
{
/* central widget to contain all the elements */
TQWidget *central = new TQWidget(this);
setCentralWidget(central);
- KAcceleratorManager::setNoAccel( central );
+ TDEAcceleratorManager::setNoAccel( central );
// Detect color change
connect(kapp,TQT_SIGNAL(kdisplayPaletteChanged()), TQT_SLOT(set_colors()));
@@ -132,7 +132,7 @@ KCalculator::KCalculator(TQWidget *parent, const char *name)
TQToolTip::add(pbAngleChoose, i18n("Choose the unit for the angle measure"));
pbAngleChoose->setAutoDefault(false);
- KPopupMenu *angle_menu = new KPopupMenu(pbAngleChoose, "AngleMode-Selection-Menu");
+ TDEPopupMenu *angle_menu = new TDEPopupMenu(pbAngleChoose, "AngleMode-Selection-Menu");
angle_menu->insertItem(i18n("Degrees"), 0);
angle_menu->insertItem(i18n("Radians"), 1);
angle_menu->insertItem(i18n("Gradians"), 2);
@@ -417,35 +417,35 @@ void KCalculator::setupMainActions(void)
KStdAction::paste(TQT_TQOBJECT(calc_display), TQT_SLOT(slotPaste()), actionCollection());
// settings menu
- actionStatshow = new KToggleAction(i18n("&Statistic Buttons"), 0,
+ actionStatshow = new TDEToggleAction(i18n("&Statistic Buttons"), 0,
actionCollection(), "show_stat");
actionStatshow->setChecked(true);
connect(actionStatshow, TQT_SIGNAL(toggled(bool)),
TQT_SLOT(slotStatshow(bool)));
- actionScientificshow = new KToggleAction(i18n("Science/&Engineering Buttons"),
+ actionScientificshow = new TDEToggleAction(i18n("Science/&Engineering Buttons"),
0, actionCollection(), "show_science");
actionScientificshow->setChecked(true);
connect(actionScientificshow, TQT_SIGNAL(toggled(bool)),
TQT_SLOT(slotScientificshow(bool)));
- actionLogicshow = new KToggleAction(i18n("&Logic Buttons"), 0,
+ actionLogicshow = new TDEToggleAction(i18n("&Logic Buttons"), 0,
actionCollection(), "show_logic");
actionLogicshow->setChecked(true);
connect(actionLogicshow, TQT_SIGNAL(toggled(bool)),
TQT_SLOT(slotLogicshow(bool)));
- actionConstantsShow = new KToggleAction(i18n("&Constants Buttons"), 0,
+ actionConstantsShow = new TDEToggleAction(i18n("&Constants Buttons"), 0,
actionCollection(), "show_constants");
actionConstantsShow->setChecked(true);
connect(actionConstantsShow, TQT_SIGNAL(toggled(bool)),
TQT_SLOT(slotConstantsShow(bool)));
- (void) new KAction(i18n("&Show All"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotShowAll()),
+ (void) new TDEAction(i18n("&Show All"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotShowAll()),
actionCollection(), "show_all");
- (void) new KAction(i18n("&Hide All"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotHideAll()),
+ (void) new TDEAction(i18n("&Hide All"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotHideAll()),
actionCollection(), "hide_all");
KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showSettings()), actionCollection());
@@ -1825,8 +1825,8 @@ void KCalculator::showSettings()
TQWidget *fontWidget = new TQWidget(0,"Font");
TQVBoxLayout *fontLayout = new TQVBoxLayout(fontWidget);
- KFontChooser *mFontChooser =
- new KFontChooser(fontWidget, "kcfg_Font", false, TQStringList(), false, 6);
+ TDEFontChooser *mFontChooser =
+ new TDEFontChooser(fontWidget, "kcfg_Font", false, TQStringList(), false, 6);
fontLayout->addWidget(mFontChooser);
dialog->addPage(fontWidget, i18n("Font"), "fonts", i18n("Select Display Font"));
@@ -2253,7 +2253,7 @@ bool KCalculator::eventFilter(TQObject *o, TQEvent *e)
}
else
{
- return KMainWindow::eventFilter(o, e);
+ return TDEMainWindow::eventFilter(o, e);
}
}
diff --git a/kcalc/kcalc.h b/kcalc/kcalc.h
index ab0acec..d19e141 100644
--- a/kcalc/kcalc.h
+++ b/kcalc/kcalc.h
@@ -58,7 +58,7 @@ class Constants;
#include "kcalc_button.h"
#include "kcalc_const_button.h"
-class KCalculator : public KMainWindow
+class KCalculator : public TDEMainWindow
{
Q_OBJECT
@@ -222,10 +222,10 @@ private:
// ConstButtonGroup C1-C6
TQButtonGroup* ConstButtonGroup;
- KToggleAction *actionStatshow;
- KToggleAction *actionScientificshow;
- KToggleAction *actionLogicshow;
- KToggleAction *actionConstantsShow;
+ TDEToggleAction *actionStatshow;
+ TDEToggleAction *actionScientificshow;
+ TDEToggleAction *actionLogicshow;
+ TDEToggleAction *actionConstantsShow;
TQPtrList<KCalcButton> mFunctionButtonList;
TQPtrList<KCalcButton> mStatButtonList;
diff --git a/kcalc/kcalc_const_button.cpp b/kcalc/kcalc_const_button.cpp
index 071bb71..8294526 100644
--- a/kcalc/kcalc_const_button.cpp
+++ b/kcalc/kcalc_const_button.cpp
@@ -70,7 +70,7 @@ void KCalcConstButton::initPopupMenu(void)
{
KCalcConstMenu *tmp_menu = new KCalcConstMenu(this);
- _popup = new KPopupMenu(this, "set const-cutton");
+ _popup = new TDEPopupMenu(this, "set const-cutton");
_popup->insertItem(i18n("Set Name"), 0);
_popup->insertItem(i18n("Choose From List"), tmp_menu, 1);
diff --git a/kcalc/kcalc_const_button.h b/kcalc/kcalc_const_button.h
index f557c61..a30b657 100644
--- a/kcalc/kcalc_const_button.h
+++ b/kcalc/kcalc_const_button.h
@@ -51,7 +51,7 @@ Q_OBJECT
private:
void initPopupMenu(void);
- KPopupMenu* _popup;
+ TDEPopupMenu* _popup;
int _button_num;
};
diff --git a/kcharselect/kcharselectdia.cc b/kcharselect/kcharselectdia.cc
index f5086d6..dd24702 100644
--- a/kcharselect/kcharselectdia.cc
+++ b/kcharselect/kcharselectdia.cc
@@ -24,7 +24,7 @@
KCharSelectDia::KCharSelectDia(TQWidget *parent,const char *name,
const TQChar &_chr,const TQString &_font,
int _tableNum, bool direction)
- : KMainWindow(parent,name), vChr(_chr), vFont(_font)
+ : TDEMainWindow(parent,name), vChr(_chr), vFont(_font)
{
setCaption(TQString()); // Standard caption
@@ -79,25 +79,25 @@ KCharSelectDia::KCharSelectDia(TQWidget *parent,const char *name,
// Build menu
KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(_exit()), actionCollection() );
- new KAction(i18n("&To Clipboard"), "editcopy",
- KStdAccel::shortcut(KStdAccel::Copy), TQT_TQOBJECT(this), TQT_SLOT(toClip()), actionCollection(), "copy_clip" );
+ new TDEAction(i18n("&To Clipboard"), "editcopy",
+ TDEStdAccel::shortcut(TDEStdAccel::Copy), TQT_TQOBJECT(this), TQT_SLOT(toClip()), actionCollection(), "copy_clip" );
- (void)new KAction(i18n("To Clipboard &UTF-8"), 0, TQT_TQOBJECT(this),
+ (void)new TDEAction(i18n("To Clipboard &UTF-8"), 0, TQT_TQOBJECT(this),
TQT_SLOT(toClipUTF8()), actionCollection(), "copy_utf_8" );
- (void)new KAction(i18n("To Clipboard &HTML"), 0, TQT_TQOBJECT(this),
+ (void)new TDEAction(i18n("To Clipboard &HTML"), 0, TQT_TQOBJECT(this),
TQT_SLOT(toClipHTML()), actionCollection(), "copy_html" );
- new KAction(i18n("&From Clipboard"), "editpaste",
- KStdAccel::shortcut(KStdAccel::Paste), TQT_TQOBJECT(this), TQT_SLOT(fromClip()), actionCollection(), "from_clip" );
- (void)new KAction(i18n("From Clipboard UTF-8"), 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&From Clipboard"), "editpaste",
+ TDEStdAccel::shortcut(TDEStdAccel::Paste), TQT_TQOBJECT(this), TQT_SLOT(fromClip()), actionCollection(), "from_clip" );
+ (void)new TDEAction(i18n("From Clipboard UTF-8"), 0, TQT_TQOBJECT(this),
TQT_SLOT(fromClipUTF8()), actionCollection(), "from_clip_utf8" );
i18n("From Clipboard HTML"); // Intended for future use
KStdAction::clear(TQT_TQOBJECT(this), TQT_SLOT(clear()), actionCollection(), "clear");
- (void)new KAction(i18n("&Flip"), 0, TQT_TQOBJECT(this),
+ (void)new TDEAction(i18n("&Flip"), 0, TQT_TQOBJECT(this),
TQT_SLOT(flipText()), actionCollection(), "flip" );
- (void)new KAction(i18n("&Alignment"), 0, TQT_TQOBJECT(this),
+ (void)new TDEAction(i18n("&Alignment"), 0, TQT_TQOBJECT(this),
TQT_SLOT(toggleEntryDirection()), actionCollection(), "alignment" );
charSelect->setFocus();
diff --git a/kcharselect/kcharselectdia.h b/kcharselect/kcharselectdia.h
index a6a298b..5fddec4 100644
--- a/kcharselect/kcharselectdia.h
+++ b/kcharselect/kcharselectdia.h
@@ -22,7 +22,7 @@ static const char *version = "v1.1";
/* class KCharSelectDia */
/******************************************************************/
-class KCharSelectDia : public KMainWindow
+class KCharSelectDia : public TDEMainWindow
{
Q_OBJECT
diff --git a/kdelirc/irkick/irkick.h b/kdelirc/irkick/irkick.h
index f581508..2dd568b 100644
--- a/kdelirc/irkick/irkick.h
+++ b/kdelirc/irkick/irkick.h
@@ -33,8 +33,8 @@ class IRKTrayIcon: public KSystemTray
void mousePressEvent(TQMouseEvent *e);
public:
- KPopupMenu* contextMenu() const { return KSystemTray::contextMenu(); }
- KActionCollection* actionCollection() { return KSystemTray::actionCollection(); }
+ TDEPopupMenu* contextMenu() const { return KSystemTray::contextMenu(); }
+ TDEActionCollection* actionCollection() { return KSystemTray::actionCollection(); }
IRKTrayIcon(TQWidget *parent = 0, const char *name = 0): KSystemTray(parent, name) {}
};
diff --git a/kdelirc/kcmlirc/addaction.cpp b/kdelirc/kcmlirc/addaction.cpp
index 7281251..9e4f21d 100644
--- a/kdelirc/kcmlirc/addaction.cpp
+++ b/kdelirc/kcmlirc/addaction.cpp
@@ -228,7 +228,7 @@ void AddAction::updateParameters()
{
Prototype p(theFunctions->currentItem()->text(2));
for(unsigned k = 0; k < p.count(); k++)
- { new KListViewItem(theParameters, p.name(k).isEmpty() ? i18n( "<anonymous>" ) : p.name(k), "", p.type(k), TQString().setNum(k + 1));
+ { new TDEListViewItem(theParameters, p.name(k).isEmpty() ? i18n( "<anonymous>" ) : p.name(k), "", p.type(k), TQString().setNum(k + 1));
theArguments.append(TQVariant(""));
theArguments.back().cast(TQVariant::nameToType(p.type(k).utf8()));
}
@@ -346,14 +346,14 @@ void AddAction::updateObjects()
if(names.contains(name)) continue;
names += name;
- KListViewItem *a = new KListViewItem(theObjects, name);
+ TDEListViewItem *a = new TDEListViewItem(theObjects, name);
uniqueProgramMap[a] = name == TQString(*i);
nameProgramMap[a] = *i;
QCStringList theObjects = theClient->remoteObjects(*i);
for(QCStringList::iterator j = theObjects.begin(); j != theObjects.end(); ++j)
if(*j != "tdesycoca" && *j != "qt")// && getFunctions(*i, *j).count())
- new KListViewItem(a, *j);
+ new TDEListViewItem(a, *j);
}
updateFunctions();
}
@@ -365,7 +365,7 @@ void AddAction::updateFunctions()
{ TQStringList functions = getFunctions(nameProgramMap[theObjects->currentItem()->parent()], theObjects->currentItem()->text(0));
for(TQStringList::iterator i = functions.begin(); i != functions.end(); ++i)
{ Prototype p((TQString)(*i));
- new KListViewItem(theFunctions, p.name(), p.argumentList(), *i);
+ new TDEListViewItem(theFunctions, p.name(), p.argumentList(), *i);
}
}
updateOptions();
diff --git a/kdelirc/kcmlirc/addactionbase.ui b/kdelirc/kcmlirc/addactionbase.ui
index ee500a6..57f3c38 100644
--- a/kdelirc/kcmlirc/addactionbase.ui
+++ b/kdelirc/kcmlirc/addactionbase.ui
@@ -88,7 +88,7 @@
</size>
</property>
</spacer>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Applications</string>
@@ -252,7 +252,7 @@
</size>
</property>
</spacer>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Button</string>
@@ -318,7 +318,7 @@
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Program</string>
@@ -423,7 +423,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Function</string>
@@ -535,7 +535,7 @@
</size>
</property>
</spacer>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Function</string>
@@ -626,7 +626,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Option Description</string>
@@ -1241,7 +1241,7 @@
</size>
</property>
</spacer>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Mode</string>
diff --git a/kdelirc/kcmlirc/kcmlirc.cpp b/kdelirc/kcmlirc/kcmlirc.cpp
index 74856d0..49bc252 100644
--- a/kdelirc/kcmlirc/kcmlirc.cpp
+++ b/kdelirc/kcmlirc/kcmlirc.cpp
@@ -78,7 +78,7 @@ KCMLirc::KCMLirc(TQWidget *parent, const char *name, TQStringList /*args*/) : DC
connect(theKCMLircBase->theActions, TQT_SIGNAL( currentChanged(TQListViewItem *) ), this, TQT_SLOT( updateActionsStatus(TQListViewItem *) ));
connect(theKCMLircBase->theExtensions, TQT_SIGNAL( selectionChanged(TQListViewItem *) ), this, TQT_SLOT( updateInformation() ));
connect(theKCMLircBase->theModes, TQT_SIGNAL( itemRenamed(TQListViewItem *) ), this, TQT_SLOT( slotRenamed(TQListViewItem *) ));
- connect(theKCMLircBase->theModes, TQT_SIGNAL(dropped(KListView*, TQDropEvent*, TQListViewItem*, TQListViewItem*)), this, TQT_SLOT(slotDrop(KListView*, TQDropEvent*, TQListViewItem*, TQListViewItem*)));
+ connect(theKCMLircBase->theModes, TQT_SIGNAL(dropped(TDEListView*, TQDropEvent*, TQListViewItem*, TQListViewItem*)), this, TQT_SLOT(slotDrop(TDEListView*, TQDropEvent*, TQListViewItem*, TQListViewItem*)));
connect((TQObject *)(theKCMLircBase->theAddActions), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddActions() ));
connect((TQObject *)(theKCMLircBase->theAddAction), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddAction() ));
connect((TQObject *)(theKCMLircBase->theEditAction), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEditAction() ));
@@ -170,7 +170,7 @@ void KCMLirc::slotAddAction()
theDialog.theModes->setEnabled(item->firstChild());
theDialog.theSwitchMode->setEnabled(item->firstChild());
for(item = item->firstChild(); item; item = item->nextSibling())
- { KListViewItem *a = new KListViewItem(theDialog.theModes, item->text(0));
+ { TDEListViewItem *a = new TDEListViewItem(theDialog.theModes, item->text(0));
if(item->isSelected()) { a->setSelected(true); theDialog.theModes->setCurrentItem(a); }
}
@@ -286,7 +286,7 @@ void KCMLirc::slotAddMode()
TQListViewItem *tr = theKCMLircBase->theModes->selectedItem();
if(tr) if(tr->parent()) tr = tr->parent();
for(TQListViewItem *i = theKCMLircBase->theModes->firstChild(); i; i = i->nextSibling())
- { KListViewItem *a = new KListViewItem(theDialog.theRemotes, i->text(0));
+ { TDEListViewItem *a = new TDEListViewItem(theDialog.theRemotes, i->text(0));
remoteMap[a] = modeMap[i].remote();
if(i == tr) { a->setSelected(true); theDialog.theRemotes->setCurrentItem(a); }
}
@@ -349,7 +349,7 @@ void KCMLirc::slotSetDefaultMode()
emit changed(true);
}
-void KCMLirc::slotDrop(KListView *, TQDropEvent *, TQListViewItem *, TQListViewItem *after)
+void KCMLirc::slotDrop(TDEListView *, TQDropEvent *, TQListViewItem *, TQListViewItem *after)
{
Mode m = modeMap[after];
@@ -380,7 +380,7 @@ void KCMLirc::updateActions()
theKCMLircBase->theModeLabel->setText(m.remoteName() + ": " + (m.name().isEmpty() ? i18n("Actions <i>always</i> available") : i18n("Actions available only in mode <b>%1</b>").arg(m.name())));
IRAItList l = allActions.findByMode(m);
for(IRAItList::iterator i = l.begin(); i != l.end(); ++i)
- { TQListViewItem *b = new KListViewItem(theKCMLircBase->theActions, (**i).buttonName(), (**i).application(), (**i).function(), (**i).arguments().toString(), (**i).notes());
+ { TQListViewItem *b = new TDEListViewItem(theKCMLircBase->theActions, (**i).buttonName(), (**i).application(), (**i).function(), (**i).arguments().toString(), (**i).notes());
actionMap[b] = *i;
if(*i == oldCurrent) { b->setSelected(true); theKCMLircBase->theActions->setCurrentItem(b); }
}
@@ -411,7 +411,7 @@ void KCMLirc::updateModes()
theKCMLircBase->theMainLabel->setMaximumSize(0, 0);
for(TQStringList::iterator i = remotes.begin(); i != remotes.end(); ++i)
{ Mode mode = allModes.getMode(*i, "");
- TQListViewItem *a = new KListViewItem(theKCMLircBase->theModes, RemoteServer::remoteServer()->getRemoteName(*i), allModes.isDefault(mode) ? "Default" : "", mode.iconFile().isNull() ? "" : "");
+ TQListViewItem *a = new TDEListViewItem(theKCMLircBase->theModes, RemoteServer::remoteServer()->getRemoteName(*i), allModes.isDefault(mode) ? "Default" : "", mode.iconFile().isNull() ? "" : "");
if(!mode.iconFile().isNull())
a->setPixmap(2, KIconLoader().loadIcon(mode.iconFile(), KIcon::Panel));
modeMap[a] = mode; // the null mode
@@ -420,7 +420,7 @@ void KCMLirc::updateModes()
ModeList l = allModes.getModes(*i);
for(ModeList::iterator j = l.begin(); j != l.end(); ++j)
if(!(*j).name().isEmpty())
- { TQListViewItem *b = new KListViewItem(a, (*j).name(), allModes.isDefault(*j) ? i18n("Default") : "", (*j).iconFile().isNull() ? "" : "");
+ { TQListViewItem *b = new TDEListViewItem(a, (*j).name(), allModes.isDefault(*j) ? i18n("Default") : "", (*j).iconFile().isNull() ? "" : "");
if(!(*j).iconFile().isNull())
b->setPixmap(2, KIconLoader().loadIcon((*j).iconFile(), KIcon::Panel));
modeMap[b] = *j;
diff --git a/kdelirc/kcmlirc/kcmlirc.h b/kdelirc/kcmlirc/kcmlirc.h
index 71209d6..207c995 100644
--- a/kdelirc/kcmlirc/kcmlirc.h
+++ b/kdelirc/kcmlirc/kcmlirc.h
@@ -23,7 +23,7 @@
#include "modes.h"
class TQListViewItem;
-class KListView;
+class TDEListView;
class TQDropEvent;
class Profile;
class Remote;
@@ -58,7 +58,7 @@ public slots:
void slotAddActions();
void slotEditAction();
void slotRemoveAction();
- void slotDrop(KListView *, TQDropEvent *, TQListViewItem *, TQListViewItem *after);
+ void slotDrop(TDEListView *, TQDropEvent *, TQListViewItem *, TQListViewItem *after);
void slotRenamed(TQListViewItem *item);
void slotEditMode();
diff --git a/kdelirc/kcmlirc/kcmlircbase.ui b/kdelirc/kcmlirc/kcmlircbase.ui
index b8c8128..760f4e0 100644
--- a/kdelirc/kcmlirc/kcmlircbase.ui
+++ b/kdelirc/kcmlirc/kcmlircbase.ui
@@ -104,7 +104,7 @@
<string>Remote controls and modes:</string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>New Column</string>
@@ -221,7 +221,7 @@
<string></string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Button</string>
@@ -405,7 +405,7 @@
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Name</string>
@@ -446,7 +446,7 @@
<string></string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Name</string>
diff --git a/kdelirc/kcmlirc/modeslist.cpp b/kdelirc/kcmlirc/modeslist.cpp
index 83678d1..1665e64 100644
--- a/kdelirc/kcmlirc/modeslist.cpp
+++ b/kdelirc/kcmlirc/modeslist.cpp
@@ -16,7 +16,7 @@
#include "modeslist.h"
-ModesList::ModesList(TQWidget *parent, const char *name) : KListView(parent, name)
+ModesList::ModesList(TQWidget *parent, const char *name) : TDEListView(parent, name)
{
setAcceptDrops(true);
setDropVisualizer(false);
diff --git a/kdelirc/kcmlirc/modeslist.h b/kdelirc/kcmlirc/modeslist.h
index 742b0c5..d81b928 100644
--- a/kdelirc/kcmlirc/modeslist.h
+++ b/kdelirc/kcmlirc/modeslist.h
@@ -22,7 +22,7 @@
@author Gav Wood
*/
-class ModesList : public KListView
+class ModesList : public TDEListView
{
Q_OBJECT
diff --git a/kdelirc/kcmlirc/newmode.ui b/kdelirc/kcmlirc/newmode.ui
index 913b912..649cb88 100644
--- a/kdelirc/kcmlirc/newmode.ui
+++ b/kdelirc/kcmlirc/newmode.ui
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Remote Controls</string>
diff --git a/kdelirc/kcmlirc/selectprofile.ui b/kdelirc/kcmlirc/selectprofile.ui
index 8731a66..a045921 100644
--- a/kdelirc/kcmlirc/selectprofile.ui
+++ b/kdelirc/kcmlirc/selectprofile.ui
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Profile Name</string>
diff --git a/kdf/kdf.cpp b/kdf/kdf.cpp
index c2499c6..26e4fbb 100644
--- a/kdf/kdf.cpp
+++ b/kdf/kdf.cpp
@@ -37,11 +37,11 @@ static const char version[] = "v0.5";
/***************************************************************/
KDFTopLevel::KDFTopLevel(TQWidget *, const char *name)
- : KMainWindow(0, name)
+ : TDEMainWindow(0, name)
{
kdf = new KDFWidget(this,"kdf",FALSE);
TQ_CHECK_PTR(kdf);
- (void) new KAction( i18n( "&Update" ), 0, TQT_TQOBJECT(kdf), TQT_SLOT( updateDF() ), actionCollection(), "updatedf" );
+ (void) new TDEAction( i18n( "&Update" ), 0, TQT_TQOBJECT(kdf), TQT_SLOT( updateDF() ), actionCollection(), "updatedf" );
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
KStdAction::preferences(TQT_TQOBJECT(kdf), TQT_SLOT(settingsBtnClicked()), actionCollection());
@@ -50,7 +50,7 @@ actionCollection());
setCentralWidget(kdf);
// kdf->setMinimumSize(kdf->sizeHint());
kdf->resize(kdf->sizeHint());
- setupGUI(KMainWindow::Keys | StatusBar | Save | Create);
+ setupGUI(TDEMainWindow::Keys | StatusBar | Save | Create);
}
diff --git a/kdf/kdf.h b/kdf/kdf.h
index 25aa2e6..282f52e 100644
--- a/kdf/kdf.h
+++ b/kdf/kdf.h
@@ -28,7 +28,7 @@
#include "kdfwidget.h"
/***************************************************************/
-class KDFTopLevel : public KMainWindow
+class KDFTopLevel : public TDEMainWindow
{
Q_OBJECT
diff --git a/kdf/kdfwidget.cpp b/kdf/kdfwidget.cpp
index 9b0d11a..d9aaffd 100644
--- a/kdf/kdfwidget.cpp
+++ b/kdf/kdfwidget.cpp
@@ -464,7 +464,7 @@ void KDFWidget::popupMenu( TQListViewItem *item, const TQPoint &p )
return;
}
- mPopup = new KPopupMenu( 0 );
+ mPopup = new TDEPopupMenu( 0 );
mPopup->insertTitle( disk->mountPoint() );
mPopup->insertItem( i18n("Mount Device"), 0 );
mPopup->insertItem( i18n("Unmount Device"), 1 );
diff --git a/kdf/kdfwidget.h b/kdf/kdfwidget.h
index 3afd033..872379f 100644
--- a/kdf/kdfwidget.h
+++ b/kdf/kdfwidget.h
@@ -39,7 +39,7 @@
class CListView;
class COptionDialog;
class TQTimer;
-class KPopupMenu;
+class TDEPopupMenu;
/**************************************************************/
@@ -143,7 +143,7 @@ class KDFWidget : public TQWidget
TQMemArray<CTabEntry*> mTabProp;
CListView *mList;
COptionDialog *mOptionDialog;
- KPopupMenu *mPopup;
+ TDEPopupMenu *mPopup;
TQTimer *mTimer;
DiskList mDiskList;
bool mIsTopLevel;
diff --git a/kdf/listview.cpp b/kdf/listview.cpp
index b9274c3..ab688db 100644
--- a/kdf/listview.cpp
+++ b/kdf/listview.cpp
@@ -35,7 +35,7 @@
template class TQDict<TQPixmap>;
CListView::CListView( TQWidget *parent, const char *name, int visibleItem )
- :KListView( parent, name ), mVisibleItem(TQMAX( 1, visibleItem ))
+ :TDEListView( parent, name ), mVisibleItem(TQMAX( 1, visibleItem ))
{
setVisibleItem(visibleItem);
mPixDict.setAutoDelete(true);
diff --git a/kdf/listview.h b/kdf/listview.h
index fa85dde..196fc17 100644
--- a/kdf/listview.h
+++ b/kdf/listview.h
@@ -25,7 +25,7 @@
#include <klistview.h>
-class CListView : public KListView
+class CListView : public TDEListView
{
Q_OBJECT
diff --git a/kedit/kedit.cpp b/kedit/kedit.cpp
index dd59fa9..b2b3e79 100644
--- a/kedit/kedit.cpp
+++ b/kedit/kedit.cpp
@@ -61,7 +61,7 @@ TQPtrList<TopLevel> *TopLevel::windowList = 0;
int default_open = TopLevel::OPEN_READWRITE;
TopLevel::TopLevel (TQWidget *, const char *name)
- : KMainWindow ( 0,name ), tdespellconfigOptions(0),
+ : TDEMainWindow ( 0,name ), tdespellconfigOptions(0),
eframe(0), newWindow(false), tdespell(0)
{
if (!windowList)
@@ -217,11 +217,11 @@ void TopLevel::setupActions()
KStdAction::findNext(TQT_TQOBJECT(this), TQT_SLOT(search_again()), actionCollection());
KStdAction::replace(TQT_TQOBJECT(this), TQT_SLOT(replace()), actionCollection());
- (void)new KAction(i18n("&Insert File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(file_insert()),
+ (void)new TDEAction(i18n("&Insert File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(file_insert()),
actionCollection(), "insert_file");
- (void)new KAction(i18n("In&sert Date"), 0, TQT_TQOBJECT(this), TQT_SLOT(insertDate()),
+ (void)new TDEAction(i18n("In&sert Date"), 0, TQT_TQOBJECT(this), TQT_SLOT(insertDate()),
actionCollection(), "insert_date");
- (void)new KAction(i18n("Cl&ean Spaces"), 0, TQT_TQOBJECT(this), TQT_SLOT(clean_space()),
+ (void)new TDEAction(i18n("Cl&ean Spaces"), 0, TQT_TQOBJECT(this), TQT_SLOT(clean_space()),
actionCollection(), "clean_spaces");
// setup Tools menu
@@ -1324,7 +1324,7 @@ SettingsDialog::SettingsDialog(TQWidget *parent, const char *name,TDEConfigSkele
// Font
TQWidget *font = new TQWidget(0, "FontSetting");
TQVBoxLayout *topLayout = new TQVBoxLayout(font, 0, KDialog::spacingHint());
- KFontChooser *mFontChooser = new KFontChooser(font, "kcfg_Font", false, TQStringList(), false, 6);
+ TDEFontChooser *mFontChooser = new TDEFontChooser(font, "kcfg_Font", false, TQStringList(), false, 6);
topLayout->addWidget(mFontChooser);
addPage(font, i18n("Font"), "fonts", i18n("Editor Font"));
diff --git a/kedit/kedit.h b/kedit/kedit.h
index b931615..30791c3 100644
--- a/kedit/kedit.h
+++ b/kedit/kedit.h
@@ -35,8 +35,8 @@ class KEdit;
class KSpell;
class KSpellConfig;
class TQTimer;
-class KAction;
-class KRecentFilesAction;
+class TDEAction;
+class TDERecentFilesAction;
namespace TDEIO { class Job; }
@@ -45,7 +45,7 @@ namespace TDEIO { class Job; }
#define ID_INS_OVR 2
#define ID_GENERAL 3
-class TopLevel : public KMainWindow
+class TopLevel : public TDEMainWindow
{
Q_OBJECT
@@ -128,11 +128,11 @@ private:
bool newWindow;
int statusID, toolID, indentID;
TQTimer *statusbar_timer;
- KRecentFilesAction *recent;
- KAction *cutAction;
- KAction *copyAction;
- KAction *undoAction;
- KAction *redoAction;
+ TDERecentFilesAction *recent;
+ TDEAction *cutAction;
+ TDEAction *copyAction;
+ TDEAction *undoAction;
+ TDEAction *redoAction;
int open_mode;
diff --git a/kedit/ktextfiledlg.cpp b/kedit/ktextfiledlg.cpp
index 47dbd07..3e1c4fe 100644
--- a/kedit/ktextfiledlg.cpp
+++ b/kedit/ktextfiledlg.cpp
@@ -38,7 +38,7 @@ KTextFileDialog::KTextFileDialog(const TQString& startDir,
{
/*
// insert encoding action into toolbar
- KSelectAction *mEncoding = new KSelectAction(
+ TDESelectAction *mEncoding = new TDESelectAction(
i18n( "Set &Encoding" ), 0, this,
TQT_SLOT( slotSetEncoding() ), this,
"encoding" );
@@ -57,17 +57,17 @@ KTextFileDialog::KTextFileDialog(const TQString& startDir,
i++;
}
- KToolBar *tb = toolBar();
+ TDEToolBar *tb = toolBar();
mEncoding->plug( tb, 7 );
*/
- KAction* mEncoding = new KAction(
+ TDEAction* mEncoding = new TDEAction(
i18n("Select Encoding..."), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotShowEncCombo() ), TQT_TQOBJECT(this), "encoding");
mEncoding->setIcon( TQString::fromLatin1("charset") );
- KToolBar *tb = toolBar();
+ TDEToolBar *tb = toolBar();
mEncoding->plug( tb, pathComboIndex() - 1 );
}
@@ -162,9 +162,9 @@ KURL KTextFileDialog::getOpenURLwithEncoding(
KURL url = dlg.selectedURL();
if (url.isValid()) {
if ( url.isLocalFile() )
- KRecentDocument::add( url.path(-1) );
+ TDERecentDocument::add( url.path(-1) );
else
- KRecentDocument::add( url.url(-1), true );
+ TDERecentDocument::add( url.url(-1), true );
}
// append encoding to the URL params
@@ -191,9 +191,9 @@ KURL KTextFileDialog::getSaveURLwithEncoding(
KURL url = dlg.selectedURL();
if (url.isValid()) {
if ( url.isLocalFile() )
- KRecentDocument::add( url.path(-1) );
+ TDERecentDocument::add( url.path(-1) );
else
- KRecentDocument::add( url.url(-1) );
+ TDERecentDocument::add( url.url(-1) );
}
// append encoding to the URL params
diff --git a/kgpg/conf_servers.ui b/kgpg/conf_servers.ui
index f93b871..121f468 100644
--- a/kgpg/conf_servers.ui
+++ b/kgpg/conf_servers.ui
@@ -67,7 +67,7 @@
<string>Delete</string>
</property>
</widget>
- <widget class="KListBox" row="0" column="0" rowspan="4" colspan="1">
+ <widget class="TDEListBox" row="0" column="0" rowspan="4" colspan="1">
<property name="name">
<cstring>ServerBox</cstring>
</property>
diff --git a/kgpg/groupedit.ui b/kgpg/groupedit.ui
index fe6d178..794a310 100644
--- a/kgpg/groupedit.ui
+++ b/kgpg/groupedit.ui
@@ -22,7 +22,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="KListView" row="1" column="0" rowspan="1" colspan="4">
+ <widget class="TDEListView" row="1" column="0" rowspan="1" colspan="4">
<column>
<property name="text">
<string>Name</string>
@@ -142,7 +142,7 @@
<string>&lt;b&gt;Keys in the Group&lt;/b&gt;</string>
</property>
</widget>
- <widget class="KListView" row="3" column="0" rowspan="1" colspan="4">
+ <widget class="TDEListView" row="3" column="0" rowspan="1" colspan="4">
<column>
<property name="text">
<string>Name</string>
diff --git a/kgpg/keyservers.cpp b/kgpg/keyservers.cpp
index 55135dd..c731fbe 100644
--- a/kgpg/keyservers.cpp
+++ b/kgpg/keyservers.cpp
@@ -304,7 +304,7 @@ void keyServer::slotsearchread(KProcIO *p)
keymail=TQString();
keyname=fullname;
}
- kitem=new KListViewItem(listpop->kLVsearch,keyname,keymail,TQString(),TQString());
+ kitem=new TDEListViewItem(listpop->kLVsearch,keyname,keymail,TQString(),TQString());
keyNumbers++;
count=0;
required=TQString();
@@ -332,7 +332,7 @@ void keyServer::slotsearchread(KProcIO *p)
keymail=TQString();
keyname=subkey;
}
- KListViewItem *subk = new KListViewItem(kitem,keyname,keymail,TQString(),TQString());
+ TDEListViewItem *subk = new TDEListViewItem(kitem,keyname,keymail,TQString(),TQString());
subk->setSelectable(false);
}
required=TQString();
diff --git a/kgpg/keyservers.h b/kgpg/keyservers.h
index 2387b2a..4a089f8 100644
--- a/kgpg/keyservers.h
+++ b/kgpg/keyservers.h
@@ -21,7 +21,7 @@
#include <kdialogbase.h>
#include "keyserver.h"
-class KListViewItem;
+class TDEListViewItem;
class KSimpleConfig;
class KProcIO;
class TDEProcess;
@@ -71,7 +71,7 @@ private:
searchRes *listpop;
int count;
bool cycle,autoCloseWindow;
- KListViewItem *kitem;
+ TDEListViewItem *kitem;
KDialogBase *dialogServer;
signals:
diff --git a/kgpg/kgpg.cpp b/kgpg/kgpg.cpp
index 44ff121..d3eecbc 100644
--- a/kgpg/kgpg.cpp
+++ b/kgpg/kgpg.cpp
@@ -80,10 +80,10 @@ MyView::MyView( TQWidget *parent, const char *name )
setBackgroundMode( X11ParentRelative );
openTasks=0;
- KAction *saveDecrypt=new KAction(i18n("&Decrypt && Save File"),"decrypted",0,TQT_TQOBJECT(this), TQT_SLOT(decryptDroppedFile()),TQT_TQOBJECT(this),"decrypt_file");
- KAction *showDecrypt=new KAction(i18n("&Show Decrypted File"),"edit",0,TQT_TQOBJECT(this), TQT_SLOT(showDroppedFile()),TQT_TQOBJECT(this),"show_file");
- KAction *encrypt=new KAction(i18n("&Encrypt File"),"encrypted",0,TQT_TQOBJECT(this), TQT_SLOT(encryptDroppedFile()),TQT_TQOBJECT(this),"encrypt_file");
- KAction *sign=new KAction(i18n("&Sign File"), "signature",0,TQT_TQOBJECT(this), TQT_SLOT(signDroppedFile()),TQT_TQOBJECT(this),"sign_file");
+ TDEAction *saveDecrypt=new TDEAction(i18n("&Decrypt && Save File"),"decrypted",0,TQT_TQOBJECT(this), TQT_SLOT(decryptDroppedFile()),TQT_TQOBJECT(this),"decrypt_file");
+ TDEAction *showDecrypt=new TDEAction(i18n("&Show Decrypted File"),"edit",0,TQT_TQOBJECT(this), TQT_SLOT(showDroppedFile()),TQT_TQOBJECT(this),"show_file");
+ TDEAction *encrypt=new TDEAction(i18n("&Encrypt File"),"encrypted",0,TQT_TQOBJECT(this), TQT_SLOT(encryptDroppedFile()),TQT_TQOBJECT(this),"encrypt_file");
+ TDEAction *sign=new TDEAction(i18n("&Sign File"), "signature",0,TQT_TQOBJECT(this), TQT_SLOT(signDroppedFile()),TQT_TQOBJECT(this),"sign_file");
//TQToolTip::add(this,i18n("KGpg drag & drop encryption applet"));
readOptions();
@@ -306,7 +306,7 @@ TQBoxLayout *layout=new TQBoxLayout(page,TQBoxLayout::TopToBottom,0);
layout->setAutoAdd(true);
(void) new KActiveLabel( i18n("Do you really want to <a href=\"whatsthis:%1\">shred</a> these files?").arg(i18n( "<qt><p>You must be aware that <b>shredding is not secure</b> on all file systems, and that parts of the file may have been saved in a temporary file or in the spooler of your printer if you previously opened it in an editor or tried to print it. Only works on files (not on folders).</p></qt>")),page);
-KListBox *lb=new KListBox(page);
+TDEListBox *lb=new TDEListBox(page);
lb->insertStringList(droppedUrls.toStringList());
if (shredConfirm->exec()==TQDialog::Accepted)
{
@@ -776,18 +776,18 @@ kgpgapplet::kgpgapplet(TQWidget *parent, const char *name)
{
w=new MyView(this);
w->show();
- KPopupMenu *conf_menu=contextMenu();
- KgpgEncryptClipboard = new KAction(i18n("&Encrypt Clipboard"), "kgpg", 0,TQT_TQOBJECT(w), TQT_SLOT(clipEncrypt()),actionCollection(),"clip_encrypt");
- KgpgDecryptClipboard = new KAction(i18n("&Decrypt Clipboard"), 0, 0,TQT_TQOBJECT(w), TQT_SLOT(clipDecrypt()),actionCollection(),"clip_decrypt");
- KgpgSignClipboard = new KAction(i18n("&Sign/Verify Clipboard"), "signature", 0,TQT_TQOBJECT(w), TQT_SLOT(clipSign()),actionCollection(),"clip_sign");
- KAction *KgpgOpenEditor;
+ TDEPopupMenu *conf_menu=contextMenu();
+ KgpgEncryptClipboard = new TDEAction(i18n("&Encrypt Clipboard"), "kgpg", 0,TQT_TQOBJECT(w), TQT_SLOT(clipEncrypt()),actionCollection(),"clip_encrypt");
+ KgpgDecryptClipboard = new TDEAction(i18n("&Decrypt Clipboard"), 0, 0,TQT_TQOBJECT(w), TQT_SLOT(clipDecrypt()),actionCollection(),"clip_decrypt");
+ KgpgSignClipboard = new TDEAction(i18n("&Sign/Verify Clipboard"), "signature", 0,TQT_TQOBJECT(w), TQT_SLOT(clipSign()),actionCollection(),"clip_sign");
+ TDEAction *KgpgOpenEditor;
if (KGpgSettings::leftClick()==KGpgSettings::EnumLeftClick::KeyManager)
- KgpgOpenEditor = new KAction(i18n("&Open Editor"), "edit", 0,TQT_TQOBJECT(parent), TQT_SLOT(slotOpenEditor()),actionCollection(),"kgpg_editor");
+ KgpgOpenEditor = new TDEAction(i18n("&Open Editor"), "edit", 0,TQT_TQOBJECT(parent), TQT_SLOT(slotOpenEditor()),actionCollection(),"kgpg_editor");
else
- KgpgOpenEditor = new KAction(i18n("&Open Key Manager"), "kgpg", 0,TQT_TQOBJECT(this), TQT_SLOT(slotOpenKeyManager()),actionCollection(),"kgpg_editor");
+ KgpgOpenEditor = new TDEAction(i18n("&Open Key Manager"), "kgpg", 0,TQT_TQOBJECT(this), TQT_SLOT(slotOpenKeyManager()),actionCollection(),"kgpg_editor");
- KAction *KgpgOpenServer = new KAction(i18n("&Key Server Dialog"), "network", 0,TQT_TQOBJECT(this), TQT_SLOT(slotOpenServerDialog()),actionCollection(),"kgpg_server");
- KAction *KgpgPreferences=KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showOptions()), actionCollection());
+ TDEAction *KgpgOpenServer = new TDEAction(i18n("&Key Server Dialog"), "network", 0,TQT_TQOBJECT(this), TQT_SLOT(slotOpenServerDialog()),actionCollection(),"kgpg_server");
+ TDEAction *KgpgPreferences=KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showOptions()), actionCollection());
connect (conf_menu,TQT_SIGNAL(aboutToShow()),TQT_TQOBJECT(this),TQT_SLOT(checkMenu()));
diff --git a/kgpg/kgpg.h b/kgpg/kgpg.h
index 973296b..c39ca0e 100644
--- a/kgpg/kgpg.h
+++ b/kgpg/kgpg.h
@@ -53,7 +53,7 @@ public:
KURL droppedUrl;
KURL::List droppedUrls;
KTempFile *kgpgfoldertmp;
- KShortcut goDefaultKey;
+ TDEShortcut goDefaultKey;
TQClipboard::Mode clipboardMode;
private:
@@ -132,7 +132,7 @@ public:
private:
KSystemTray *kgpgapp;
- KAction *KgpgEncryptClipboard, *KgpgDecryptClipboard, *KgpgSignClipboard;
+ TDEAction *KgpgEncryptClipboard, *KgpgDecryptClipboard, *KgpgSignClipboard;
private slots:
void slotOpenKeyManager();
@@ -154,7 +154,7 @@ public:
int newInstance ();
KURL::List urlList;
bool running;
- KShortcut goHome;
+ TDEShortcut goHome;
protected:
TDECmdLineArgs *args;
diff --git a/kgpg/kgpgeditor.cpp b/kgpg/kgpgeditor.cpp
index 897bf44..1351933 100644
--- a/kgpg/kgpgeditor.cpp
+++ b/kgpg/kgpgeditor.cpp
@@ -53,7 +53,7 @@
#include "listkeys.h"
#include "kgpglibrary.h"
-KgpgApp::KgpgApp(TQWidget *parent, const char *name, WFlags f,KShortcut goHome,bool mainWindow):KMainWindow(parent, name,f)
+KgpgApp::KgpgApp(TQWidget *parent, const char *name, WFlags f,TDEShortcut goHome,bool mainWindow):TDEMainWindow(parent, name,f)
{
isMainWindow=mainWindow;
textEncoding=TQString();
@@ -94,7 +94,7 @@ void KgpgApp::closeEvent ( TQCloseEvent * e )
if (!isMainWindow)
{
kapp->ref();
- KMainWindow::closeEvent( e );
+ TDEMainWindow::closeEvent( e );
}
else e->accept();
}
@@ -140,19 +140,19 @@ void KgpgApp::initActions()
//KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(slotConfigureToolbars()), actionCollection());
fileSave = KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(slotFileSave()), actionCollection());
- (void) new KAction(i18n("&Encrypt File..."), "encrypted", 0,TQT_TQOBJECT(this), TQT_SLOT(slotFilePreEnc()), actionCollection(),"file_encrypt");
- (void) new KAction(i18n("&Decrypt File..."), "decrypted", 0,TQT_TQOBJECT(this), TQT_SLOT(slotFilePreDec()), actionCollection(),"file_decrypt");
- (void) new KAction(i18n("&Open Key Manager"), "kgpg", 0,TQT_TQOBJECT(this), TQT_SLOT(slotKeyManager()), actionCollection(),"key_manage");
+ (void) new TDEAction(i18n("&Encrypt File..."), "encrypted", 0,TQT_TQOBJECT(this), TQT_SLOT(slotFilePreEnc()), actionCollection(),"file_encrypt");
+ (void) new TDEAction(i18n("&Decrypt File..."), "decrypted", 0,TQT_TQOBJECT(this), TQT_SLOT(slotFilePreDec()), actionCollection(),"file_decrypt");
+ (void) new TDEAction(i18n("&Open Key Manager"), "kgpg", 0,TQT_TQOBJECT(this), TQT_SLOT(slotKeyManager()), actionCollection(),"key_manage");
editUndo = KStdAction::undo(TQT_TQOBJECT(this), TQT_SLOT(slotundo()), actionCollection());
editRedo = KStdAction::redo(TQT_TQOBJECT(this), TQT_SLOT(slotredo()), actionCollection());
- //(void) new KAction(i18n("&Manage Keys"), "kgpg_manage", CTRL+Key_K,TQT_TQOBJECT(this), TQT_SLOT(slotManageKey()), actionCollection(),"keys_manage");
- (void) new KAction(i18n("&Generate Signature..."),0, TQT_TQOBJECT(this), TQT_SLOT(slotPreSignFile()), actionCollection(), "sign_generate");
- (void) new KAction(i18n("&Verify Signature..."),0, TQT_TQOBJECT(this), TQT_SLOT(slotPreVerifyFile()), actionCollection(), "sign_verify");
- (void) new KAction(i18n("&Check MD5 Sum..."), 0,TQT_TQOBJECT(this), TQT_SLOT(slotCheckMd5()), actionCollection(), "sign_check");
+ //(void) new TDEAction(i18n("&Manage Keys"), "kgpg_manage", CTRL+Key_K,TQT_TQOBJECT(this), TQT_SLOT(slotManageKey()), actionCollection(),"keys_manage");
+ (void) new TDEAction(i18n("&Generate Signature..."),0, TQT_TQOBJECT(this), TQT_SLOT(slotPreSignFile()), actionCollection(), "sign_generate");
+ (void) new TDEAction(i18n("&Verify Signature..."),0, TQT_TQOBJECT(this), TQT_SLOT(slotPreVerifyFile()), actionCollection(), "sign_verify");
+ (void) new TDEAction(i18n("&Check MD5 Sum..."), 0,TQT_TQOBJECT(this), TQT_SLOT(slotCheckMd5()), actionCollection(), "sign_check");
KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection());
// comment out for now, only confusing
- //encodingAction=new KToggleAction(i18n("&Unicode (utf-8) Encoding"), 0, 0,this, TQT_SLOT(slotSetCharset()),actionCollection(),"charsets");
+ //encodingAction=new TDEToggleAction(i18n("&Unicode (utf-8) Encoding"), 0, 0,this, TQT_SLOT(slotSetCharset()),actionCollection(),"charsets");
}
void KgpgApp::slotSetFont(TQFont myFont)
diff --git a/kgpg/kgpgeditor.h b/kgpg/kgpgeditor.h
index 6123847..e480207 100644
--- a/kgpg/kgpgeditor.h
+++ b/kgpg/kgpgeditor.h
@@ -29,11 +29,11 @@
class KPassivePopup;
class KComboBox;
-class KToggleAction;
-class KAction;
+class TDEToggleAction;
+class TDEAction;
class KgpgView;
-class KgpgApp : public KMainWindow
+class KgpgApp : public TDEMainWindow
{
Q_OBJECT
@@ -43,7 +43,7 @@ class KgpgApp : public KMainWindow
public:
/** construtor of KgpgApp, calls all init functions to create the application.
*/
- KgpgApp(TQWidget *parent=0, const char *name=0,WFlags f = 0,KShortcut goHome=TQKeySequence(CTRL+TQt::Key_Home),bool mainWindow=false);
+ KgpgApp(TQWidget *parent=0, const char *name=0,WFlags f = 0,TDEShortcut goHome=TQKeySequence(CTRL+TQt::Key_Home),bool mainWindow=false);
~KgpgApp();
/** opens a file specified by commandline option
*/
@@ -56,7 +56,7 @@ public:
int version;
TQString messages;
KgpgView *view;
- KShortcut goDefaultKey;
+ TDEShortcut goDefaultKey;
protected:
@@ -105,9 +105,9 @@ public slots:
private:
TQStringList customDecrypt;
- //KToggleAction *encodingAction ;
+ //TDEToggleAction *encodingAction ;
KURL urlselected;
- KAction* fileSave, *editUndo, *editRedo;
+ TDEAction* fileSave, *editUndo, *editRedo;
KComboBox *fontCombo;
bool isMainWindow;
TQString textEncoding;
diff --git a/kgpg/kgpglibrary.cpp b/kgpg/kgpglibrary.cpp
index 924c91b..ad0ee00 100644
--- a/kgpg/kgpglibrary.cpp
+++ b/kgpg/kgpglibrary.cpp
@@ -45,7 +45,7 @@ KgpgLibrary::~KgpgLibrary()
{}
-void KgpgLibrary::slotFileEnc(KURL::List urls,TQStringList opts,TQStringList defaultKey,KShortcut goDefaultKey)
+void KgpgLibrary::slotFileEnc(KURL::List urls,TQStringList opts,TQStringList defaultKey,TDEShortcut goDefaultKey)
{
///////////////////////////////////////////////////////////////////////// encode file file
if (!urls.empty()) {
diff --git a/kgpg/kgpglibrary.h b/kgpg/kgpglibrary.h
index e29563a..0785945 100644
--- a/kgpg/kgpglibrary.h
+++ b/kgpg/kgpglibrary.h
@@ -43,7 +43,7 @@ public:
KURL::List urlselecteds;
public slots:
- void slotFileEnc(KURL::List urls=KURL(""),TQStringList opts=TQString(),TQStringList defaultKey=TQString(),KShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
+ void slotFileEnc(KURL::List urls=KURL(""),TQStringList opts=TQString(),TQStringList defaultKey=TQString(),TDEShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
void slotFileDec(KURL srcUrl,KURL destUrl,TQStringList customDecryptOption=TQStringList());
void shredprocessenc(KURL::List filesToShred);
diff --git a/kgpg/kgpgoptions.cpp b/kgpg/kgpgoptions.cpp
index 749f3c5..9a4d6ed 100644
--- a/kgpg/kgpgoptions.cpp
+++ b/kgpg/kgpgoptions.cpp
@@ -91,7 +91,7 @@ kdDebug(2100)<<"Adding pages"<<endl;
page6=new ServerConf();
page7=new MiscConf();
TQBoxLayout *fontLayout=new TQBoxLayout(page3->tabWidget3->page(1),TQBoxLayout::TopToBottom,10);
- kfc=new KFontChooser(page3->tabWidget3->page(1),"kcfg_Font",false,TQStringList(),false);
+ kfc=new TDEFontChooser(page3->tabWidget3->page(1),"kcfg_Font",false,TQStringList(),false);
fontLayout->addWidget(kfc);
page7->shredInfo->setText(i18n( "<qt><p>You must be aware that <b>shredding is not secure</b> on all file systems, and that parts of the file may have been saved in a temporary file or in the spooler of your printer if you previously opened it in an editor or tried to print it. Only works on files (not on folders).</p></qt>"));
diff --git a/kgpg/kgpgoptions.h b/kgpg/kgpgoptions.h
index 0231ba1..5b981de 100644
--- a/kgpg/kgpgoptions.h
+++ b/kgpg/kgpgoptions.h
@@ -32,7 +32,7 @@ class GPGConf;
class ServerConf;
class ColorsConf;
class MiscConf;
-class KFontChooser;
+class TDEFontChooser;
class TDEConfig;
class KSimpleConfig;
@@ -50,7 +50,7 @@ public:
GPGConf *page4;
ServerConf *page6;
MiscConf *page7;
- KFontChooser *kfc;
+ TDEFontChooser *kfc;
private:
TDEConfig *config;
diff --git a/kgpg/listkeys.cpp b/kgpg/listkeys.cpp
index 6a9979c..acfe42e 100644
--- a/kgpg/listkeys.cpp
+++ b/kgpg/listkeys.cpp
@@ -97,9 +97,9 @@
#include "kgpgoptions.h"
#include "keyinfowidget.h"
-////////////// KListviewItem special
+////////////// TDEListviewItem special
-class UpdateViewItem : public KListViewItem
+class UpdateViewItem : public TDEListViewItem
{
public:
UpdateViewItem(TQListView *parent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id,bool isdefault,bool isexpired);
@@ -111,7 +111,7 @@ public:
};
UpdateViewItem::UpdateViewItem(TQListView *parent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id,bool isdefault,bool isexpired)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
def=isdefault;
exp=isexpired;
@@ -125,7 +125,7 @@ UpdateViewItem::UpdateViewItem(TQListView *parent, TQString name,TQString email,
}
UpdateViewItem::UpdateViewItem(TQListViewItem *parent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
setText(0,name);
setText(1,email);
@@ -157,7 +157,7 @@ void UpdateViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,int column,
}
- KListViewItem::paintCell(p,_cg, column, width, alignment);
+ TDEListViewItem::paintCell(p,_cg, column, width, alignment);
}
#include <iostream>
@@ -223,7 +223,7 @@ KDialogBase( parent, name, true,i18n("Private Key List"),Ok | Cancel)
keyPair=loader->loadIcon("kgpg_key2",KIcon::Small,20);
setMinimumSize(350,100);
- keysListpr = new KListView( page );
+ keysListpr = new TDEListView( page );
keysListpr->setRootIsDecorated(true);
keysListpr->addColumn( i18n( "Name" ));
keysListpr->addColumn( i18n( "Email" ));
@@ -244,7 +244,7 @@ KDialogBase( parent, name, true,i18n("Private Key List"),Ok | Cancel)
bool selectedok=false;
bool warn=false;
- KListViewItem *item;
+ TDEListViewItem *item;
fp = popen("gpg --no-tty --with-colons --list-secret-keys", "r");
while ( fgets( line, sizeof(line), fp)) {
@@ -296,9 +296,9 @@ KDialogBase( parent, name, true,i18n("Private Key List"),Ok | Cancel)
keyName=KgpgInterface::checkForUtf8(keyName);
- item=new KListViewItem(keysListpr,keyName,keyMail,id);
- //KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, expiration: %3").arg(id).arg(trust).arg(val));
- KListViewItem *sub= new KListViewItem(item,i18n("Expiration:"),val);
+ item=new TDEListViewItem(keysListpr,keyName,keyMail,id);
+ //TDEListViewItem *sub= new TDEListViewItem(item,i18n("ID: %1, trust: %2, expiration: %3").arg(id).arg(trust).arg(val));
+ TDEListViewItem *sub= new TDEListViewItem(item,i18n("Expiration:"),val);
sub->setSelectable(false);
item->setPixmap(0,keyPair);
if (preselected.find(id,0,false)!=-1) {
@@ -393,7 +393,7 @@ TQString KgpgSelKey::getkeyMail()
/////////////////////////////////////////////////////////////////////////////////////////////
KeyView::KeyView( TQWidget *parent, const char *name )
- : KListView( parent, name )
+ : TDEListView( parent, name )
{
KIconLoader *loader = TDEGlobal::iconLoader();
@@ -477,7 +477,7 @@ void KeyView::startDrag()
mySearchLine::mySearchLine(TQWidget *parent, KeyView *listView, const char *name)
-:KListViewSearchLine(parent,listView,name)
+:TDEListViewSearchLine(parent,listView,name)
{
searchListView=listView;
setKeepParentsVisible(false);
@@ -490,14 +490,14 @@ mySearchLine::~ mySearchLine()
bool mySearchLine::itemMatches(const TQListViewItem *item, const TQString & s) const
{
if (item->depth()!=0) return true;
-else return KListViewSearchLine::itemMatches(item,s);
+else return TDEListViewSearchLine::itemMatches(item,s);
}
void mySearchLine::updateSearch(const TQString& s)
{
- KListViewSearchLine::updateSearch(s);
+ TDEListViewSearchLine::updateSearch(s);
if (searchListView->displayOnlySecret || !searchListView->displayDisabled)
{
int disabledSerial=searchListView->trustbad.serialNumber();
@@ -519,7 +519,7 @@ void mySearchLine::updateSearch(const TQString& s)
/////////////////////////////////////////////////////////////////////////////////////// main window for key management
-listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterface" ), KMainWindow(parent, name,0)
+listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterface" ), TDEMainWindow(parent, name,0)
{
//KWin::setType(TQt::WDestructiveClose);
@@ -533,63 +533,63 @@ listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterfa
installEventFilter(this);
setCaption(i18n("Key Management"));
- (void) new KAction(i18n("&Open Editor"), "edit",0,TQT_TQOBJECT(this), TQT_SLOT(slotOpenEditor()),actionCollection(),"kgpg_editor");
- KAction *exportPublicKey = new KAction(i18n("E&xport Public Keys..."), "kgpg_export", KStdAccel::shortcut(KStdAccel::Copy),TQT_TQOBJECT(this), TQT_SLOT(slotexport()),actionCollection(),"key_export");
- KAction *deleteKey = new KAction(i18n("&Delete Keys"),"editdelete", TQt::Key_Delete,TQT_TQOBJECT(this), TQT_SLOT(confirmdeletekey()),actionCollection(),"key_delete");
- signKey = new KAction(i18n("&Sign Keys..."), "kgpg_sign", 0,TQT_TQOBJECT(this), TQT_SLOT(signkey()),actionCollection(),"key_sign");
- KAction *delSignKey = new KAction(i18n("Delete Sign&ature"),"editdelete", 0,TQT_TQOBJECT(this), TQT_SLOT(delsignkey()),actionCollection(),"key_delsign");
- KAction *infoKey = new KAction(i18n("&Edit Key"), "kgpg_info", TQt::Key_Return,TQT_TQOBJECT(this), TQT_SLOT(listsigns()),actionCollection(),"key_info");
- KAction *importKey = new KAction(i18n("&Import Key..."), "kgpg_import", KStdAccel::shortcut(KStdAccel::Paste),TQT_TQOBJECT(this), TQT_SLOT(slotPreImportKey()),actionCollection(),"key_import");
- KAction *setDefaultKey = new KAction(i18n("Set as De&fault Key"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotSetDefKey()),actionCollection(),"key_default");
- importSignatureKey = new KAction(i18n("Import Key From Keyserver"),"network", 0,TQT_TQOBJECT(this), TQT_SLOT(preimportsignkey()),actionCollection(),"key_importsign");
- importAllSignKeys = new KAction(i18n("Import &Missing Signatures From Keyserver"),"network", 0,TQT_TQOBJECT(this), TQT_SLOT(importallsignkey()),actionCollection(),"key_importallsign");
- refreshKey = new KAction(i18n("&Refresh Keys From Keyserver"),"reload", 0,TQT_TQOBJECT(this), TQT_SLOT(refreshKeyFromServer()),actionCollection(),"key_server_refresh");
-
- KAction *createGroup=new KAction(i18n("&Create Group with Selected Keys..."), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(createNewGroup()),actionCollection(),"create_group");
- KAction *delGroup= new KAction(i18n("&Delete Group"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(deleteGroup()),actionCollection(),"delete_group");
- KAction *editCurrentGroup= new KAction(i18n("&Edit Group"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(editGroup()),actionCollection(),"edit_group");
-
- KAction *newContact=new KAction(i18n("&Create New Contact in Address Book"), "kaddressbook", 0,TQT_TQOBJECT(this), TQT_SLOT(addToKAB()),actionCollection(),"add_kab");
- (void) new KAction(i18n("&Go to Default Key"), "gohome",TQKeySequence(CTRL+TQt::Key_Home) ,TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actionCollection(),"go_default_key");
+ (void) new TDEAction(i18n("&Open Editor"), "edit",0,TQT_TQOBJECT(this), TQT_SLOT(slotOpenEditor()),actionCollection(),"kgpg_editor");
+ TDEAction *exportPublicKey = new TDEAction(i18n("E&xport Public Keys..."), "kgpg_export", TDEStdAccel::shortcut(TDEStdAccel::Copy),TQT_TQOBJECT(this), TQT_SLOT(slotexport()),actionCollection(),"key_export");
+ TDEAction *deleteKey = new TDEAction(i18n("&Delete Keys"),"editdelete", TQt::Key_Delete,TQT_TQOBJECT(this), TQT_SLOT(confirmdeletekey()),actionCollection(),"key_delete");
+ signKey = new TDEAction(i18n("&Sign Keys..."), "kgpg_sign", 0,TQT_TQOBJECT(this), TQT_SLOT(signkey()),actionCollection(),"key_sign");
+ TDEAction *delSignKey = new TDEAction(i18n("Delete Sign&ature"),"editdelete", 0,TQT_TQOBJECT(this), TQT_SLOT(delsignkey()),actionCollection(),"key_delsign");
+ TDEAction *infoKey = new TDEAction(i18n("&Edit Key"), "kgpg_info", TQt::Key_Return,TQT_TQOBJECT(this), TQT_SLOT(listsigns()),actionCollection(),"key_info");
+ TDEAction *importKey = new TDEAction(i18n("&Import Key..."), "kgpg_import", TDEStdAccel::shortcut(TDEStdAccel::Paste),TQT_TQOBJECT(this), TQT_SLOT(slotPreImportKey()),actionCollection(),"key_import");
+ TDEAction *setDefaultKey = new TDEAction(i18n("Set as De&fault Key"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotSetDefKey()),actionCollection(),"key_default");
+ importSignatureKey = new TDEAction(i18n("Import Key From Keyserver"),"network", 0,TQT_TQOBJECT(this), TQT_SLOT(preimportsignkey()),actionCollection(),"key_importsign");
+ importAllSignKeys = new TDEAction(i18n("Import &Missing Signatures From Keyserver"),"network", 0,TQT_TQOBJECT(this), TQT_SLOT(importallsignkey()),actionCollection(),"key_importallsign");
+ refreshKey = new TDEAction(i18n("&Refresh Keys From Keyserver"),"reload", 0,TQT_TQOBJECT(this), TQT_SLOT(refreshKeyFromServer()),actionCollection(),"key_server_refresh");
+
+ TDEAction *createGroup=new TDEAction(i18n("&Create Group with Selected Keys..."), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(createNewGroup()),actionCollection(),"create_group");
+ TDEAction *delGroup= new TDEAction(i18n("&Delete Group"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(deleteGroup()),actionCollection(),"delete_group");
+ TDEAction *editCurrentGroup= new TDEAction(i18n("&Edit Group"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(editGroup()),actionCollection(),"edit_group");
+
+ TDEAction *newContact=new TDEAction(i18n("&Create New Contact in Address Book"), "kaddressbook", 0,TQT_TQOBJECT(this), TQT_SLOT(addToKAB()),actionCollection(),"add_kab");
+ (void) new TDEAction(i18n("&Go to Default Key"), "gohome",TQKeySequence(CTRL+TQt::Key_Home) ,TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actionCollection(),"go_default_key");
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quitApp()), actionCollection());
KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(findKey()), actionCollection());
KStdAction::findNext(TQT_TQOBJECT(this), TQT_SLOT(findNextKey()), actionCollection());
- (void) new KAction(i18n("&Refresh List"), "reload", KStdAccel::reload(),TQT_TQOBJECT(this), TQT_SLOT(refreshkey()),actionCollection(),"key_refresh");
- KAction *openPhoto= new KAction(i18n("&Open Photo"), "image", 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowPhoto()),actionCollection(),"key_photo");
- KAction *deletePhoto= new KAction(i18n("&Delete Photo"), "delete", 0,TQT_TQOBJECT(this), TQT_SLOT(slotDeletePhoto()),actionCollection(),"delete_photo");
- KAction *addPhoto= new KAction(i18n("&Add Photo"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotAddPhoto()),actionCollection(),"add_photo");
+ (void) new TDEAction(i18n("&Refresh List"), "reload", TDEStdAccel::reload(),TQT_TQOBJECT(this), TQT_SLOT(refreshkey()),actionCollection(),"key_refresh");
+ TDEAction *openPhoto= new TDEAction(i18n("&Open Photo"), "image", 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowPhoto()),actionCollection(),"key_photo");
+ TDEAction *deletePhoto= new TDEAction(i18n("&Delete Photo"), "delete", 0,TQT_TQOBJECT(this), TQT_SLOT(slotDeletePhoto()),actionCollection(),"delete_photo");
+ TDEAction *addPhoto= new TDEAction(i18n("&Add Photo"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotAddPhoto()),actionCollection(),"add_photo");
- KAction *addUid= new KAction(i18n("&Add User Id"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotAddUid()),actionCollection(),"add_uid");
- KAction *delUid= new KAction(i18n("&Delete User Id"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotDelUid()),actionCollection(),"del_uid");
+ TDEAction *addUid= new TDEAction(i18n("&Add User Id"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotAddUid()),actionCollection(),"add_uid");
+ TDEAction *delUid= new TDEAction(i18n("&Delete User Id"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotDelUid()),actionCollection(),"del_uid");
- KAction *editKey = new KAction(i18n("Edit Key in &Terminal"), "kgpg_term", TQKeySequence(ALT+TQt::Key_Return),TQT_TQOBJECT(this), TQT_SLOT(slotedit()),actionCollection(),"key_edit");
- KAction *exportSecretKey = new KAction(i18n("Export Secret Key..."), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotexportsec()),actionCollection(),"key_sexport");
- KAction *revokeKey = new KAction(i18n("Revoke Key..."), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(revokeWidget()),actionCollection(),"key_revoke");
+ TDEAction *editKey = new TDEAction(i18n("Edit Key in &Terminal"), "kgpg_term", TQKeySequence(ALT+TQt::Key_Return),TQT_TQOBJECT(this), TQT_SLOT(slotedit()),actionCollection(),"key_edit");
+ TDEAction *exportSecretKey = new TDEAction(i18n("Export Secret Key..."), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotexportsec()),actionCollection(),"key_sexport");
+ TDEAction *revokeKey = new TDEAction(i18n("Revoke Key..."), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(revokeWidget()),actionCollection(),"key_revoke");
- KAction *deleteKeyPair = new KAction(i18n("Delete Key Pair"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(deleteseckey()),actionCollection(),"key_pdelete");
- KAction *generateKey = new KAction(i18n("&Generate Key Pair..."), "kgpg_gen", KStdAccel::shortcut(KStdAccel::New),TQT_TQOBJECT(this), TQT_SLOT(slotgenkey()),actionCollection(),"key_gener");
+ TDEAction *deleteKeyPair = new TDEAction(i18n("Delete Key Pair"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(deleteseckey()),actionCollection(),"key_pdelete");
+ TDEAction *generateKey = new TDEAction(i18n("&Generate Key Pair..."), "kgpg_gen", TDEStdAccel::shortcut(TDEStdAccel::New),TQT_TQOBJECT(this), TQT_SLOT(slotgenkey()),actionCollection(),"key_gener");
- KAction *regeneratePublic = new KAction(i18n("&Regenerate Public Key"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotregenerate()),actionCollection(),"key_regener");
+ TDEAction *regeneratePublic = new TDEAction(i18n("&Regenerate Public Key"), 0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotregenerate()),actionCollection(),"key_regener");
- (void) new KAction(i18n("&Key Server Dialog"), "network", 0,TQT_TQOBJECT(this), TQT_SLOT(showKeyServer()),actionCollection(),"key_server");
+ (void) new TDEAction(i18n("&Key Server Dialog"), "network", 0,TQT_TQOBJECT(this), TQT_SLOT(showKeyServer()),actionCollection(),"key_server");
KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showOptions()), actionCollection(),"options_configure");
- (void) new KAction(i18n("Tip of the &Day"), "idea", 0,TQT_TQOBJECT(this), TQT_SLOT(slotTip()), actionCollection(),"help_tipofday");
- (void) new KAction(i18n("View GnuPG Manual"), "contents", 0,TQT_TQOBJECT(this), TQT_SLOT(slotManpage()),actionCollection(),"gpg_man");
+ (void) new TDEAction(i18n("Tip of the &Day"), "idea", 0,TQT_TQOBJECT(this), TQT_SLOT(slotTip()), actionCollection(),"help_tipofday");
+ (void) new TDEAction(i18n("View GnuPG Manual"), "contents", 0,TQT_TQOBJECT(this), TQT_SLOT(slotManpage()),actionCollection(),"gpg_man");
- (void) new KToggleAction(i18n("&Show only Secret Keys"), "kgpg_show", 0,TQT_TQOBJECT(this), TQT_SLOT(slotToggleSecret()),actionCollection(),"show_secret");
+ (void) new TDEToggleAction(i18n("&Show only Secret Keys"), "kgpg_show", 0,TQT_TQOBJECT(this), TQT_SLOT(slotToggleSecret()),actionCollection(),"show_secret");
keysList2->displayOnlySecret=false;
- (void) new KToggleAction(i18n("&Hide Expired/Disabled Keys"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotToggleDisabled()),actionCollection(),"hide_disabled");
+ (void) new TDEToggleAction(i18n("&Hide Expired/Disabled Keys"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotToggleDisabled()),actionCollection(),"hide_disabled");
keysList2->displayDisabled=true;
- sTrust=new KToggleAction(i18n("Trust"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowTrust()),actionCollection(),"show_trust");
- sSize=new KToggleAction(i18n("Size"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowSize()),actionCollection(),"show_size");
- sCreat=new KToggleAction(i18n("Creation"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowCreat()),actionCollection(),"show_creat");
- sExpi=new KToggleAction(i18n("Expiration"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowExpi()),actionCollection(),"show_expi");
+ sTrust=new TDEToggleAction(i18n("Trust"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowTrust()),actionCollection(),"show_trust");
+ sSize=new TDEToggleAction(i18n("Size"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowSize()),actionCollection(),"show_size");
+ sCreat=new TDEToggleAction(i18n("Creation"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowCreat()),actionCollection(),"show_creat");
+ sExpi=new TDEToggleAction(i18n("Expiration"),0, 0,TQT_TQOBJECT(this), TQT_SLOT(slotShowExpi()),actionCollection(),"show_expi");
- photoProps = new KSelectAction(i18n("&Photo ID's"),"kgpg_photo", actionCollection(), "photo_settings");
+ photoProps = new TDESelectAction(i18n("&Photo ID's"),"kgpg_photo", actionCollection(), "photo_settings");
connect(photoProps, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetPhotoSize(int)));
// Keep the list in kgpg.kcfg in sync with this one!
@@ -616,7 +616,7 @@ listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterfa
keysList2->setAllColumnsShowFocus(true);
keysList2->setFullWidth(true);
keysList2->setAcceptDrops (true) ;
- keysList2->setSelectionModeExt(KListView::Extended);
+ keysList2->setSelectionModeExt(TDEListView::Extended);
popup=new TQPopupMenu();
@@ -693,7 +693,7 @@ listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterfa
/////////////// get all keys data
keyStatusBar=statusBar();
- setupGUI(KMainWindow::Create | Save | ToolBar | StatusBar | Keys, "listkeys.rc");
+ setupGUI(TDEMainWindow::Create | Save | ToolBar | StatusBar | Keys, "listkeys.rc");
toolBar()->insertLineSeparator();
TQToolButton *clearSearch = new TQToolButton(toolBar());
@@ -705,7 +705,7 @@ listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterfa
connect(clearSearch, TQT_SIGNAL(pressed()), TQT_TQOBJECT(listViewSearch), TQT_SLOT(clear()));
- (void)new KAction(i18n("Filter Search"), TQt::Key_F6, TQT_TQOBJECT(listViewSearch), TQT_SLOT(setFocus()),actionCollection(), "search_focus");
+ (void)new TDEAction(i18n("Filter Search"), TQt::Key_F6, TQT_TQOBJECT(listViewSearch), TQT_SLOT(setFocus()),actionCollection(), "search_focus");
sTrust->setChecked(KGpgSettings::showTrust());
sSize->setChecked(KGpgSettings::showSize());
@@ -1191,8 +1191,8 @@ void listKeys::slotTip()
void listKeys::closeEvent ( TQCloseEvent * e )
{
- //kapp->ref(); // prevent KMainWindow from closing the app
- //KMainWindow::closeEvent( e );
+ //kapp->ref(); // prevent TDEMainWindow from closing the app
+ //TDEMainWindow::closeEvent( e );
e->accept();
// hide();
// e->ignore();
@@ -1791,13 +1791,13 @@ void listKeys::editGroup()
return;
if (item->pixmap(2)) {
if (item->pixmap(2)->serialNumber()==keysList2->trustgood.serialNumber())
- (void) new KListViewItem(gEdit->availableKeys,item->text(0),item->text(1),item->text(6));
+ (void) new TDEListViewItem(gEdit->availableKeys,item->text(0),item->text(1),item->text(6));
}
while (item->nextSibling()) {
item=item->nextSibling();
if (item->pixmap(2)) {
if (item->pixmap(2)->serialNumber()==keysList2->trustgood.serialNumber())
- (void) new KListViewItem(gEdit->availableKeys,item->text(0),item->text(1),item->text(6));
+ (void) new TDEListViewItem(gEdit->availableKeys,item->text(0),item->text(1),item->text(6));
}
}
keysGroup=KgpgInterface::getGpgGroupSetting(keysList2->currentItem()->text(0),KGpgSettings::gpgConfigPath());
diff --git a/kgpg/listkeys.h b/kgpg/listkeys.h
index c006198..73e9818 100644
--- a/kgpg/listkeys.h
+++ b/kgpg/listkeys.h
@@ -49,7 +49,7 @@ class KgpgApp;
class keyServer;
class groupEdit;
class KgpgInterface;
-class KSelectAction;
+class TDESelectAction;
struct gpgKey
{
@@ -72,7 +72,7 @@ class KgpgSelKey : public KDialogBase
public:
KgpgSelKey( TQWidget *parent = 0, const char *name = 0,bool allowMultipleSelection=false, TQString preselected=TQString());
- KListView *keysListpr;
+ TDEListView *keysListpr;
TQPixmap keyPair;
TQCheckBox *local;
TQVBoxLayout *vbox;
@@ -89,7 +89,7 @@ public slots:
-class KeyView : public KListView
+class KeyView : public TDEListView
{
Q_OBJECT
@@ -141,7 +141,7 @@ protected:
virtual void contentsDropEvent (TQDropEvent*);
};
-class mySearchLine: public KListViewSearchLine
+class mySearchLine: public TDEListViewSearchLine
{
Q_OBJECT
@@ -158,7 +158,7 @@ virtual bool itemMatches(const TQListViewItem *item, const TQString & s) const;
};
-class listKeys : public KMainWindow, virtual public KeyInterface
+class listKeys : public TDEMainWindow, virtual public KeyInterface
{
friend class KeyView;
Q_OBJECT
@@ -173,20 +173,20 @@ public:
TQString message;
TQStringList keynames;
KPassivePopup *pop;
- KToggleAction *sTrust,*sCreat,*sExpi,*sSize;
- KSelectAction *photoProps;
+ TDEToggleAction *sTrust,*sCreat,*sExpi,*sSize;
+ TDESelectAction *photoProps;
KStatusBar *keyStatusBar;
KgpgApp *s_kgpgEditor;
private:
TQPushButton *bouton1,*bouton2,*bouton0;
TQString tempKeyFile,newKeyMail,newKeyName,newkeyFinger,newkeyID;
- KListViewSearchLine* listViewSearch;
+ TDEListViewSearchLine* listViewSearch;
bool continueSearch;
bool showPhoto;
keyServer *kServer;
KTempFile *kgpgtmp;
- KAction *importSignatureKey,*importAllSignKeys,*signKey,*refreshKey;
+ TDEAction *importSignatureKey,*importAllSignKeys,*signKey,*refreshKey;
TQPtrList<TQListViewItem> signList,keysList;
uint globalCount,keyCount;
int globalChecked;
diff --git a/kgpg/popuppublic.cpp b/kgpg/popuppublic.cpp
index c4f436f..46a9f61 100644
--- a/kgpg/popuppublic.cpp
+++ b/kgpg/popuppublic.cpp
@@ -51,7 +51,7 @@
///////////////// klistviewitem special
-class UpdateViewItem2 : public KListViewItem
+class UpdateViewItem2 : public TDEListViewItem
{
public:
UpdateViewItem2(TQListView *parent, TQString name,TQString mail,TQString id,bool isDefault);
@@ -61,7 +61,7 @@ public:
};
UpdateViewItem2::UpdateViewItem2(TQListView *parent, TQString name,TQString mail,TQString id,bool isDefault)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
def=isDefault;
setText(0,name);
@@ -77,7 +77,7 @@ void UpdateViewItem2::paintCell(TQPainter *p, const TQColorGroup &cg,int column,
font.setBold(true);
p->setFont(font);
}
- KListViewItem::paintCell(p, cg, column, width, alignment);
+ TDEListViewItem::paintCell(p, cg, column, width, alignment);
}
TQString UpdateViewItem2 :: key(int c,bool ) const
@@ -87,7 +87,7 @@ TQString UpdateViewItem2 :: key(int c,bool ) const
/////////////// main view
-popupPublic::popupPublic(TQWidget *parent, const char *name,TQString sfile,bool filemode,KShortcut goDefaultKey):
+popupPublic::popupPublic(TQWidget *parent, const char *name,TQString sfile,bool filemode,TDEShortcut goDefaultKey):
KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent, name,true)
{
@@ -119,11 +119,11 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
clearSearch->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left"
: "locationbar_erase"));
(void) new TQLabel(i18n("Search: "),hBar);
- KListViewSearchLine* listViewSearch = new KListViewSearchLine(hBar);
+ TDEListViewSearchLine* listViewSearch = new TDEListViewSearchLine(hBar);
connect(clearSearch, TQT_SIGNAL(pressed()), listViewSearch, TQT_SLOT(clear()));
#endif
- keysList = new KListView( page );
+ keysList = new TDEListView( page );
keysList->addColumn(i18n("Name"));
keysList->addColumn(i18n("Email"));
keysList->addColumn(i18n("ID"));
@@ -137,7 +137,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
keysList->setShowSortIndicator(true);
keysList->setFullWidth(true);
keysList->setAllColumnsShowFocus(true);
- keysList->setSelectionModeExt(KListView::Extended);
+ keysList->setSelectionModeExt(TDEListView::Extended);
keysList->setColumnWidthMode(0,TQListView::Manual);
keysList->setColumnWidthMode(1,TQListView::Manual);
keysList->setColumnWidth(0,210);
@@ -145,8 +145,8 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
boutonboxoptions=new TQButtonGroup(5,Qt::Vertical ,page,0);
- KActionCollection *actcol=new KActionCollection(this);
- (void) new KAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key");
+ TDEActionCollection *actcol=new TDEActionCollection(this);
+ (void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key");
CBarmor=new TQCheckBox(i18n("ASCII armored encryption"),boutonboxoptions);
@@ -431,7 +431,7 @@ void popupPublic::slotprocread(KProcIO *p)
bool isDefaultKey=false;
if (id.right(8)==defaultKey) isDefaultKey=true;
UpdateViewItem2 *item=new UpdateViewItem2(keysList,keyname,keymail,id,isDefaultKey);
- //KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").arg(id).arg(tr).arg(val));
+ //TDEListViewItem *sub= new TDEListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").arg(id).arg(tr).arg(val));
//sub->setSelectable(false);
if (seclist.find(tst,0,FALSE)!=-1)
item->setPixmap(0,keyPair);
diff --git a/kgpg/popuppublic.h b/kgpg/popuppublic.h
index a732f4c..9bf910c 100644
--- a/kgpg/popuppublic.h
+++ b/kgpg/popuppublic.h
@@ -25,7 +25,7 @@
class TQPushButton;
class TQCheckBox;
-class KListView;
+class TDEListView;
class TQButtonGroup;
class KProcIO;
@@ -35,9 +35,9 @@ class popupPublic : public KDialogBase //TQDialog
public:
- popupPublic(TQWidget *parent=0, const char *name=0,TQString sfile="",bool filemode=false,KShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
+ popupPublic(TQWidget *parent=0, const char *name=0,TQString sfile="",bool filemode=false,TDEShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
~popupPublic();
- KListView *keysList;
+ TDEListView *keysList;
TQCheckBox *CBarmor,*CBuntrusted,*CBshred,*CBsymmetric,*CBhideid;
bool fmode,trusted;
TQPixmap keyPair,keySingle,keyGroup;
diff --git a/kgpg/searchres.ui b/kgpg/searchres.ui
index a41947c..8fd7379 100644
--- a/kgpg/searchres.ui
+++ b/kgpg/searchres.ui
@@ -40,7 +40,7 @@
<cstring>kLEID</cstring>
</property>
</widget>
- <widget class="KListView" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TDEListView" row="1" column="0" rowspan="1" colspan="2">
<column>
<property name="text">
<string>Name</string>
diff --git a/khexedit/hexviewwidget.cc b/khexedit/hexviewwidget.cc
index 5ebd75b..50ce5cc 100644
--- a/khexedit/hexviewwidget.cc
+++ b/khexedit/hexviewwidget.cc
@@ -1091,7 +1091,7 @@ int CHexViewWidget::bookmarkMenu( const TQString &title )
}
TQString text;
- KPopupMenu *popup = new KPopupMenu( 0 );
+ TDEPopupMenu *popup = new TDEPopupMenu( 0 );
popup->insertTitle( title );
for( uint i=0; i < list.count(); i++ )
{
diff --git a/khexedit/lib/kbufferranges.h b/khexedit/lib/kbufferranges.h
index 8a215ed..622ff4a 100644
--- a/khexedit/lib/kbufferranges.h
+++ b/khexedit/lib/kbufferranges.h
@@ -96,7 +96,7 @@ class TDEBufferRanges
bool Modified;
KSection Marking;
- KSelection Selection;
+ TDESelection Selection;
/** memories first selected word on wordwise selection */
KSection FirstWordSelection;
diff --git a/khexedit/lib/kselection.h b/khexedit/lib/kselection.h
index 19b8a99..7e69d9b 100644
--- a/khexedit/lib/kselection.h
+++ b/khexedit/lib/kselection.h
@@ -34,20 +34,20 @@ namespace KHE
*
*@author Friedrich W. H. Kossebau
*/
-class KSelection : public KSection
+class TDESelection : public KSection
{
public:
/** creates a selection with a given start.
* @param Index index in front of which the selection begins
*/
- KSelection( int Index );
+ TDESelection( int Index );
/** creates an invalid selection */
- KSelection();
- ~KSelection();
+ TDESelection();
+ ~TDESelection();
public:
- KSelection &operator=( const KSelection &S );
- KSelection &operator=( const KSection &S );
+ TDESelection &operator=( const TDESelection &S );
+ TDESelection &operator=( const KSection &S );
public: // modification access
/** starts the selection.
@@ -103,18 +103,18 @@ class KSelection : public KSection
};
-inline KSelection::KSelection() : Anchor( -1 ) {}
-inline KSelection::KSelection( int Index ) : Anchor( Index ) {}
-inline KSelection::~KSelection() {}
+inline TDESelection::TDESelection() : Anchor( -1 ) {}
+inline TDESelection::TDESelection( int Index ) : Anchor( Index ) {}
+inline TDESelection::~TDESelection() {}
-inline KSelection &KSelection::operator=( const KSelection &S )
+inline TDESelection &TDESelection::operator=( const TDESelection &S )
{
KSection::operator=(S);
Anchor = S.Anchor;
return *this;
}
-inline KSelection &KSelection::operator=( const KSection &S )
+inline TDESelection &TDESelection::operator=( const KSection &S )
{
KSection::operator=(S);
Anchor = start();
@@ -122,14 +122,14 @@ inline KSelection &KSelection::operator=( const KSection &S )
}
-inline void KSelection::setStart( int Index )
+inline void TDESelection::setStart( int Index )
{
Anchor = Index;
unset();
}
-inline void KSelection::setEnd( int Index )
+inline void TDESelection::setEnd( int Index )
{
// nothing selected?
if( Index == Anchor )
@@ -148,30 +148,30 @@ inline void KSelection::setEnd( int Index )
}
}
-inline void KSelection::reverse()
+inline void TDESelection::reverse()
{
Anchor = isForward() ? end()+1 : start();
}
-inline void KSelection::setForward()
+inline void TDESelection::setForward()
{
Anchor = start();
}
-inline void KSelection::setBackward()
+inline void TDESelection::setBackward()
{
Anchor = end()+1;
}
-inline int KSelection::anchor() const { return Anchor; }
+inline int TDESelection::anchor() const { return Anchor; }
-inline void KSelection::cancel() { Anchor = -1; unset(); }
+inline void TDESelection::cancel() { Anchor = -1; unset(); }
-inline bool KSelection::started() const { return Anchor != -1; }
+inline bool TDESelection::started() const { return Anchor != -1; }
-inline bool KSelection::justStarted() const { return Anchor != -1 && start() == -1; }
+inline bool TDESelection::justStarted() const { return Anchor != -1 && start() == -1; }
-inline bool KSelection::isForward() const { return Anchor == start(); }
+inline bool TDESelection::isForward() const { return Anchor == start(); }
}
diff --git a/khexedit/listview.cc b/khexedit/listview.cc
index 63f18d8..f9ff882 100644
--- a/khexedit/listview.cc
+++ b/khexedit/listview.cc
@@ -25,7 +25,7 @@
CListView::CListView( TQWidget *parent, const char *name, int visibleItem )
- :KListView( parent, name ), mVisibleItem(TQMAX( 1, visibleItem ))
+ :TDEListView( parent, name ), mVisibleItem(TQMAX( 1, visibleItem ))
{
setVisibleItem(visibleItem);
}
diff --git a/khexedit/listview.h b/khexedit/listview.h
index 7f687cb..acb020d 100644
--- a/khexedit/listview.h
+++ b/khexedit/listview.h
@@ -23,7 +23,7 @@
#include <klistview.h>
-class CListView : public KListView
+class CListView : public TDEListView
{
Q_OBJECT
diff --git a/khexedit/optiondialog.cc b/khexedit/optiondialog.cc
index b0360a3..94c18d1 100644
--- a/khexedit/optiondialog.cc
+++ b/khexedit/optiondialog.cc
@@ -33,7 +33,7 @@
#include <kcolordialog.h>
#include <kcolordrag.h>
-#include <kfontdialog.h> // For KFontChooser
+#include <kfontdialog.h> // For TDEFontChooser
#include <kiconloader.h>
#include <klocale.h>
#include <kglobalsettings.h>
@@ -390,7 +390,7 @@ void COptionDialog::setupFontPage( void )
hline->setFrameStyle( TQFrame::Sunken | TQFrame::HLine );
topLayout->addWidget( hline );
- mFont.chooser = new KFontChooser( page, "font", true, TQStringList(), false, 4 );
+ mFont.chooser = new TDEFontChooser( page, "font", true, TQStringList(), false, 4 );
topLayout->addWidget( mFont.chooser );
TQFont fixFont( TDEGlobalSettings::fixedFont() );
fixFont.setBold(true);
@@ -1051,7 +1051,7 @@ SDisplayCursor::EFocusMode COptionDialog::cursorFocusMode( void )
CColorListBox::CColorListBox( TQWidget *parent, const char *name, WFlags f )
- :KListBox( parent, name, f ), mCurrentOnDragEnter(-1)
+ :TDEListBox( parent, name, f ), mCurrentOnDragEnter(-1)
{
connect( this, TQT_SIGNAL(selected(int)), this, TQT_SLOT(newColor(int)) );
setAcceptDrops( true);
diff --git a/khexedit/optiondialog.h b/khexedit/optiondialog.h
index b9c649e..31debab 100644
--- a/khexedit/optiondialog.h
+++ b/khexedit/optiondialog.h
@@ -31,7 +31,7 @@ class TQPushbutton;
class TQRadioButton;
class TQSpinBox;
class TQComboBox;
-class KFontChooser;
+class TDEFontChooser;
#include <kdialogbase.h>
@@ -40,7 +40,7 @@ class KFontChooser;
-class CColorListBox : public KListBox
+class CColorListBox : public TDEListBox
{
Q_OBJECT
@@ -198,7 +198,7 @@ class COptionDialog : public KDialogBase
struct SFontWidgets
{
TQCheckBox *checkSystem;
- KFontChooser *chooser;
+ TDEFontChooser *chooser;
TQLineEdit *nonPrintInput;
};
struct SFileWidgets
diff --git a/khexedit/parts/kpart/khepart.cpp b/khexedit/parts/kpart/khepart.cpp
index a204671..7fb6a33 100644
--- a/khexedit/parts/kpart/khepart.cpp
+++ b/khexedit/parts/kpart/khepart.cpp
@@ -72,7 +72,7 @@ void KHexEditPart::setupTools( bool BrowserViewWanted )
if( !BrowserViewWanted ) new TDEClipboardTool( this );
new KZoomToolet( this );
- new KSelectToolet( this );
+ new TDESelectToolet( this );
new KHEValueCodingToolet( this );
new KHECharEncodingToolet( this );
new KHEResizeStyleToolet( this );
@@ -81,7 +81,7 @@ void KHexEditPart::setupTools( bool BrowserViewWanted )
*/
void KHexEditPart::setupActions( bool BrowserViewWanted )
{
- KActionCollection *AC = actionCollection();
+ TDEActionCollection *AC = actionCollection();
// create our actions
CopyAction = BrowserViewWanted ? 0 : KStdAction::copy( TQT_TQOBJECT(HexEdit), TQT_SLOT(copy()), AC );
@@ -89,7 +89,7 @@ void KHexEditPart::setupActions( bool BrowserViewWanted )
KStdAction::deselect( this, TQT_SLOT(slotUnselect()), AC );
// value encoding
- CodingAction = new KSelectAction( i18n("&Value Coding"), 0, AC, "view_valuecoding" );
+ CodingAction = new TDESelectAction( i18n("&Value Coding"), 0, AC, "view_valuecoding" );
TQStringList List;
List.append( i18n("&Hexadecimal") );
List.append( i18n("&Decimal") );
@@ -99,17 +99,17 @@ void KHexEditPart::setupActions( bool BrowserViewWanted )
connect( CodingAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetCoding(int)) );
// document encoding
- EncodingAction = new KSelectAction( i18n("&Char Encoding"), 0, AC, "view_charencoding" );
+ EncodingAction = new TDESelectAction( i18n("&Char Encoding"), 0, AC, "view_charencoding" );
EncodingAction->setItems( KCharCodec::codecNames() );
connect( EncodingAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetEncoding(int)) );
- ShowUnprintableAction = new KToggleAction( i18n("Show &Unprintable Chars (<32)"), 0, this, TQT_SLOT(slotSetShowUnprintable()), actionCollection(), "view_showunprintable" );
+ ShowUnprintableAction = new TDEToggleAction( i18n("Show &Unprintable Chars (<32)"), 0, this, TQT_SLOT(slotSetShowUnprintable()), actionCollection(), "view_showunprintable" );
KStdAction::zoomIn( TQT_TQOBJECT(HexEdit), TQT_SLOT(zoomIn()), actionCollection() );
KStdAction::zoomOut( TQT_TQOBJECT(HexEdit), TQT_SLOT(zoomOut()), actionCollection() );
// resize style
- ResizeStyleAction = new KSelectAction( i18n("&Resize Style"), 0, AC, "resizestyle" );
+ ResizeStyleAction = new TDESelectAction( i18n("&Resize Style"), 0, AC, "resizestyle" );
List.clear();
List.append( i18n("&No Resize") );
List.append( i18n("&Lock Groups") );
@@ -117,10 +117,10 @@ void KHexEditPart::setupActions( bool BrowserViewWanted )
ResizeStyleAction->setItems( List );
connect( ResizeStyleAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetResizeStyle(int)) );
- ShowOffsetColumnAction = new KToggleAction( i18n("&Line Offset"), Key_F11, this, TQT_SLOT(slotToggleOffsetColumn()), AC, "view_lineoffset" );
+ ShowOffsetColumnAction = new TDEToggleAction( i18n("&Line Offset"), Key_F11, this, TQT_SLOT(slotToggleOffsetColumn()), AC, "view_lineoffset" );
// show buffer columns
- ToggleColumnsAction = new KSelectAction( i18n("&Columns"), 0, AC, "togglecolumns" );
+ ToggleColumnsAction = new TDESelectAction( i18n("&Columns"), 0, AC, "togglecolumns" );
List.clear();
List.append( i18n("&Values Column") );
List.append( i18n("&Chars Column") );
diff --git a/khexedit/parts/kpart/khepart.h b/khexedit/parts/kpart/khepart.h
index ccbd038..dcdba24 100644
--- a/khexedit/parts/kpart/khepart.h
+++ b/khexedit/parts/kpart/khepart.h
@@ -24,9 +24,9 @@
#include "kbigbuffer.h"
// forward declarations
-class KRadioAction;
-class KToggleAction;
-class KSelectAction;
+class TDERadioAction;
+class TDEToggleAction;
+class TDESelectAction;
namespace KHE
{
@@ -80,15 +80,15 @@ class KHexEditPart : public KParts::ReadOnlyPart
KBigBuffer Wrapping;
// edit menu
- KAction *CopyAction;
+ TDEAction *CopyAction;
// view menu
- KSelectAction *CodingAction;
- KSelectAction *EncodingAction;
- KToggleAction *ShowUnprintableAction;
+ TDESelectAction *CodingAction;
+ TDESelectAction *EncodingAction;
+ TDEToggleAction *ShowUnprintableAction;
// settings menu
- KSelectAction *ResizeStyleAction;
- KToggleAction *ShowOffsetColumnAction;
- KSelectAction *ToggleColumnsAction;
+ TDESelectAction *ResizeStyleAction;
+ TDEToggleAction *ShowOffsetColumnAction;
+ TDESelectAction *ToggleColumnsAction;
};
}
diff --git a/khexedit/toplevel.cc b/khexedit/toplevel.cc
index cd92779..ded9e20 100644
--- a/khexedit/toplevel.cc
+++ b/khexedit/toplevel.cc
@@ -46,7 +46,7 @@
TQPtrList<KHexEdit> KHexEdit::mWindowList;
KHexEdit::KHexEdit( void )
- : KMainWindow(0, "toplevel"), mStartupOffset(0),
+ : TDEMainWindow(0, "toplevel"), mStartupOffset(0),
mIsModified(0)
{
mWindowList.append( this );
@@ -130,7 +130,7 @@ void KHexEdit::setupActions( void )
KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()),
actionCollection());
- mAction.insert = new KAction( i18n("&Insert..."), CTRL+Key_I,
+ mAction.insert = new TDEAction( i18n("&Insert..."), CTRL+Key_I,
TQT_TQOBJECT(editor()), TQT_SLOT(insertFile()), actionCollection(), "insert_file" );
mAction.openRecent = KStdAction::openRecent( TQT_TQOBJECT(this), TQT_SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
mAction.save = KStdAction::save( TQT_TQOBJECT(editor()), TQT_SLOT(save()), actionCollection() );
@@ -140,17 +140,17 @@ actionCollection());
mAction.close = KStdAction::close( TQT_TQOBJECT(editor()), TQT_SLOT(close()), actionCollection() );
mAction.print = KStdAction::print( TQT_TQOBJECT(editor()), TQT_SLOT(print()), actionCollection() );
- mAction.exportData = new KAction( i18n("E&xport..."), 0,
+ mAction.exportData = new TDEAction( i18n("E&xport..."), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(exportDialog()), actionCollection(), "export" );
- mAction.cancel = new KAction( i18n("&Cancel Operation"),
+ mAction.cancel = new TDEAction( i18n("&Cancel Operation"),
"stop", 0, TQT_TQOBJECT(editor()), TQT_SLOT(stop()), actionCollection(), "cancel" );
- mAction.readOnly = new KToggleAction( i18n("&Read Only"),
+ mAction.readOnly = new TDEToggleAction( i18n("&Read Only"),
0, TQT_TQOBJECT(editor()), TQT_SLOT(toggleWriteProtection()),actionCollection(), "read_only" );
- mAction.resizeLock = new KToggleAction( i18n("&Allow Resize"),
+ mAction.resizeLock = new TDEToggleAction( i18n("&Allow Resize"),
0, TQT_TQOBJECT(editor()), TQT_SLOT(toggleResizeLock()),actionCollection(), "resize_lock" );
- mAction.newWindow = new KAction( i18n("N&ew Window"),
+ mAction.newWindow = new TDEAction( i18n("N&ew Window"),
0, TQT_TQOBJECT(this), TQT_SLOT(newWindow()),actionCollection(), "new_window" );
- mAction.closeWindow= new KAction( i18n("Close &Window"),
+ mAction.closeWindow= new TDEAction( i18n("Close &Window"),
0, TQT_TQOBJECT(this), TQT_SLOT(closeWindow()),actionCollection(), "close_window" );
mAction.quit = KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(closeProgram()), actionCollection() );
@@ -165,27 +165,27 @@ actionCollection());
mAction.findNext = KStdAction::findNext( TQT_TQOBJECT(editor()), TQT_SLOT(findNext()), actionCollection() );
mAction.findPrev = KStdAction::findPrev( TQT_TQOBJECT(editor()),TQT_SLOT(findPrevious()),actionCollection() );
mAction.replace = KStdAction::replace( TQT_TQOBJECT(editor()), TQT_SLOT(replace()), actionCollection() );
- mAction.gotoOffset = new KAction( i18n("&Goto Offset..."), CTRL+Key_G,
+ mAction.gotoOffset = new TDEAction( i18n("&Goto Offset..."), CTRL+Key_G,
TQT_TQOBJECT(editor()), TQT_SLOT(gotoOffset()),actionCollection(), "goto_offset" );
- mAction.insertPattern = new KAction( i18n("&Insert Pattern..."), CTRL+Key_Insert,
+ mAction.insertPattern = new TDEAction( i18n("&Insert Pattern..."), CTRL+Key_Insert,
TQT_TQOBJECT(editor()), TQT_SLOT(insertPattern()), actionCollection(), "insert_pattern" );
- mAction.copyAsText = new KAction( i18n("Copy as &Text"), 0,
+ mAction.copyAsText = new TDEAction( i18n("Copy as &Text"), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(copyText()), actionCollection(), "copy_as_text" );
- mAction.pasteToNewFile = new KAction( i18n("Paste into New &File"), 0,
+ mAction.pasteToNewFile = new TDEAction( i18n("Paste into New &File"), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(pasteNewFile()), actionCollection(), "paste_into_new_file" );
- mAction.pasteToNewWindow = new KAction( i18n("Paste into New &Window"), 0,
+ mAction.pasteToNewWindow = new TDEAction( i18n("Paste into New &Window"), 0,
TQT_TQOBJECT(this), TQT_SLOT(pasteNewWindow()), actionCollection(), "paste_into_new_window" );
- mAction.hexadecimal = new KRadioAction( i18n("&Hexadecimal"),
+ mAction.hexadecimal = new TDERadioAction( i18n("&Hexadecimal"),
0, TQT_TQOBJECT(this), TQT_SLOT(setDisplayMode()), actionCollection(), "mode_hex" );
- mAction.decimal = new KRadioAction( i18n("&Decimal"),
+ mAction.decimal = new TDERadioAction( i18n("&Decimal"),
0, TQT_TQOBJECT(this), TQT_SLOT(setDisplayMode()), actionCollection(), "mode_dec" );
- mAction.octal = new KRadioAction( i18n("&Octal"),
+ mAction.octal = new TDERadioAction( i18n("&Octal"),
0, TQT_TQOBJECT(this), TQT_SLOT(setDisplayMode()), actionCollection(), "mode_oct" );
- mAction.binary = new KRadioAction( i18n("&Binary"),
+ mAction.binary = new TDERadioAction( i18n("&Binary"),
0, TQT_TQOBJECT(this), TQT_SLOT(setDisplayMode()), actionCollection(), "mode_bin" );
- mAction.textOnly = new KRadioAction( i18n("&Text"),
+ mAction.textOnly = new TDERadioAction( i18n("&Text"),
0, TQT_TQOBJECT(this), TQT_SLOT(setDisplayMode()), actionCollection(), "mode_text" );
mAction.hexadecimal->setExclusiveGroup( "displayMode" );
mAction.decimal->setExclusiveGroup( "displayMode" );
@@ -193,87 +193,87 @@ actionCollection());
mAction.binary->setExclusiveGroup( "displayMode" );
mAction.textOnly->setExclusiveGroup( "displayMode" );
- mAction.showOffsetColumn = new KToggleAction( i18n("Show O&ffset Column"),
+ mAction.showOffsetColumn = new TDEToggleAction( i18n("Show O&ffset Column"),
0, TQT_TQOBJECT(editor()), TQT_SLOT(toggleOffsetColumnVisibility()),actionCollection(), "show_offset_column" );
- mAction.showTextColumn = new KToggleAction( i18n("Show Te&xt Field"),
+ mAction.showTextColumn = new TDEToggleAction( i18n("Show Te&xt Field"),
0, TQT_TQOBJECT(editor()), TQT_SLOT(toggleTextColumnVisibility()),actionCollection(), "show_text_field" );
- mAction.offsetAsDecimal = new KToggleAction( i18n("Off&set as Decimal"),
+ mAction.offsetAsDecimal = new TDEToggleAction( i18n("Off&set as Decimal"),
0, TQT_TQOBJECT(editor()), TQT_SLOT(toggleOffsetAsDecimal()),actionCollection(), "offset_as_decimal" );
- mAction.dataUppercase = new KToggleAction( i18n("&Upper Case (Data)"),
+ mAction.dataUppercase = new TDEToggleAction( i18n("&Upper Case (Data)"),
0, TQT_TQOBJECT(editor()), TQT_SLOT(toggleDataUppercase()),actionCollection(), "upper_case_data" );
- mAction.offsetUppercase = new KToggleAction( i18n("Upper &Case (Offset)"),
+ mAction.offsetUppercase = new TDEToggleAction( i18n("Upper &Case (Offset)"),
0, TQT_TQOBJECT(editor()), TQT_SLOT(toggleOffsetUppercase()),actionCollection(), "upper_case_offset" );
- mAction.defaultEncoding = new KRadioAction( i18n("&Default encoding", "&Default"),
+ mAction.defaultEncoding = new TDERadioAction( i18n("&Default encoding", "&Default"),
0, TQT_TQOBJECT(this), TQT_SLOT( setEncoding()), actionCollection(), "enc_default" );
- mAction.usAsciiEncoding = new KRadioAction( i18n("US-&ASCII (7 bit)"),
+ mAction.usAsciiEncoding = new TDERadioAction( i18n("US-&ASCII (7 bit)"),
0, TQT_TQOBJECT(this), TQT_SLOT( setEncoding()), actionCollection(), "enc_ascii");
- mAction.ebcdicEncoding = new KRadioAction( i18n("&EBCDIC"),
+ mAction.ebcdicEncoding = new TDERadioAction( i18n("&EBCDIC"),
0, TQT_TQOBJECT(this), TQT_SLOT( setEncoding()), actionCollection(), "enc_ebcdic" );
-// mAction.customEncoding = new KAction( i18n("&Custom..."),
+// mAction.customEncoding = new TDEAction( i18n("&Custom..."),
// 0, TQT_TQOBJECT(editor()), TQT_SLOT( encoding()), actionCollection(), "enc_custom" );
mAction.defaultEncoding->setExclusiveGroup( "encodingMode" );
mAction.usAsciiEncoding->setExclusiveGroup( "encodingMode" );
mAction.ebcdicEncoding->setExclusiveGroup( "encodingMode" );
- mAction.strings = new KAction( i18n("&Extract Strings..."), 0,
+ mAction.strings = new TDEAction( i18n("&Extract Strings..."), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(strings()), actionCollection(), "extract_strings" );
-// mAction.recordViewer = new KAction( i18n("&Record Viewer"), 0,
+// mAction.recordViewer = new TDEAction( i18n("&Record Viewer"), 0,
// TQT_TQOBJECT(editor()), TQT_SLOT(recordView()), actionCollection(), "record_viewer" );
- mAction.filter = new KAction( i18n("&Binary Filter..."), 0,
+ mAction.filter = new TDEAction( i18n("&Binary Filter..."), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(filter()), actionCollection(), "binary_filter" );
- mAction.characterTable = new KAction( i18n("&Character Table"), 0,
+ mAction.characterTable = new TDEAction( i18n("&Character Table"), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(chart()), actionCollection(), "char_table" );
- mAction.converter = new KAction( i18n("C&onverter"), 0,
+ mAction.converter = new TDEAction( i18n("C&onverter"), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(converter()), actionCollection(), "converter" );
- mAction.statistics = new KAction( i18n("&Statistics"), 0,
+ mAction.statistics = new TDEAction( i18n("&Statistics"), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(statistics()), actionCollection(), "statistics" );
mAction.addBookmark = KStdAction::addBookmark( TQT_TQOBJECT(editor()),
TQT_SLOT(addBookmark()), actionCollection() );
- mAction.replaceBookmark = new KAction( i18n("&Replace Bookmark"), CTRL+Key_E,
+ mAction.replaceBookmark = new TDEAction( i18n("&Replace Bookmark"), CTRL+Key_E,
TQT_TQOBJECT(editor()), TQT_SLOT(replaceBookmark()), actionCollection(), "replace_bookmark");
- mAction.removeBookmark = new KAction( i18n("R&emove Bookmark"), CTRL+Key_U,
+ mAction.removeBookmark = new TDEAction( i18n("R&emove Bookmark"), CTRL+Key_U,
TQT_TQOBJECT(editor()), TQT_SLOT(removeBookmark()), actionCollection(), "remove_bookmark" );
- mAction.removeAllBookmark = new KAction( i18n("Re&move All"), 0,
+ mAction.removeAllBookmark = new TDEAction( i18n("Re&move All"), 0,
TQT_TQOBJECT(editor()), TQT_SLOT(removeAllBookmark()), actionCollection(), "remove_all_bookmarks" );
- mAction.nextBookmark = new KAction( i18n("Goto &Next Bookmark"),
+ mAction.nextBookmark = new TDEAction( i18n("Goto &Next Bookmark"),
ALT+Key_Down, TQT_TQOBJECT(editor()),
TQT_SLOT(gotoNextBookmark()), actionCollection(), "next_bookmark" );
- mAction.prevBookmark = new KAction( i18n("Goto &Previous Bookmark"),
+ mAction.prevBookmark = new TDEAction( i18n("Goto &Previous Bookmark"),
ALT+Key_Up, TQT_TQOBJECT(editor()),
TQT_SLOT(gotoPrevBookmark()), actionCollection(), "prev_bookmark" );
createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true);
- mAction.showFullPath = new KToggleAction( i18n("Show F&ull Path"),
+ mAction.showFullPath = new TDEToggleAction( i18n("Show F&ull Path"),
0, TQT_TQOBJECT(this), TQT_SLOT(showFullPath()), actionCollection(), "show_full_path" );
- mAction.tabHide = new KRadioAction( i18n("&Hide"),
+ mAction.tabHide = new TDERadioAction( i18n("&Hide"),
0, TQT_TQOBJECT(this), TQT_SLOT(showDocumentTabs()), actionCollection(), "doctab_hide" );
- mAction.tabShowAboveEditor = new KRadioAction( i18n("&Above Editor"),
+ mAction.tabShowAboveEditor = new TDERadioAction( i18n("&Above Editor"),
0, TQT_TQOBJECT(this), TQT_SLOT(showDocumentTabs()), actionCollection(), "doctab_above" );
- mAction.tabShowBelowEditor = new KRadioAction( i18n("&Below Editor"),
+ mAction.tabShowBelowEditor = new TDERadioAction( i18n("&Below Editor"),
0, TQT_TQOBJECT(this), TQT_SLOT(showDocumentTabs()), actionCollection(), "doctab_below" );
mAction.tabHide->setExclusiveGroup( "editorTab" );
mAction.tabShowAboveEditor->setExclusiveGroup( "editorTab" );
mAction.tabShowBelowEditor->setExclusiveGroup( "editorTab" );
- mAction.conversionHide = new KRadioAction( i18n("&Hide"),
+ mAction.conversionHide = new TDERadioAction( i18n("&Hide"),
0, TQT_TQOBJECT(this), TQT_SLOT(showConversionField()), actionCollection(), "conversion_field_hide");
- mAction.conversionFloat = new KRadioAction( i18n("&Floating"),
+ mAction.conversionFloat = new TDERadioAction( i18n("&Floating"),
0, TQT_TQOBJECT(this), TQT_SLOT(showConversionField()), actionCollection(), "conversion_field_float");
- mAction.conversionEmbed = new KRadioAction( i18n("&Embed in Main Window"),
+ mAction.conversionEmbed = new TDERadioAction( i18n("&Embed in Main Window"),
0, TQT_TQOBJECT(this), TQT_SLOT(showConversionField()), actionCollection(), "conversion_field_embed");
mAction.conversionHide->setExclusiveGroup( "conversionField" );
mAction.conversionFloat->setExclusiveGroup( "conversionField" );
mAction.conversionEmbed->setExclusiveGroup( "conversionField" );
- mAction.searchHide = new KRadioAction( i18n("&Hide"),
+ mAction.searchHide = new TDERadioAction( i18n("&Hide"),
0, TQT_TQOBJECT(this), TQT_SLOT(showSearchBar()), actionCollection(), "searchbar_hide" );
- mAction.searchShowAboveEditor = new KRadioAction( i18n("&Above Editor"),
+ mAction.searchShowAboveEditor = new TDERadioAction( i18n("&Above Editor"),
Key_F5, TQT_TQOBJECT(this), TQT_SLOT(showSearchBar()), actionCollection(), "searchbar_above" );
- mAction.searchShowBelowEditor = new KRadioAction( i18n("&Below Editor"),
+ mAction.searchShowBelowEditor = new TDERadioAction( i18n("&Below Editor"),
Key_F6, TQT_TQOBJECT(this), TQT_SLOT(showSearchBar()), actionCollection(), "searchbar_below" );
mAction.searchHide->setExclusiveGroup( "searchBar" );
mAction.searchShowAboveEditor->setExclusiveGroup( "searchBar" );
@@ -281,7 +281,7 @@ actionCollection());
KStdAction::saveOptions(TQT_TQOBJECT(this), TQT_SLOT(writeConfiguration()), actionCollection());
KStdAction::preferences(TQT_TQOBJECT(editor()) ,TQT_SLOT(options()),actionCollection() );
-// mAction.favorites = new KAction( i18n("P&rofiles..."), 0,
+// mAction.favorites = new TDEAction( i18n("P&rofiles..."), 0,
// TQT_TQOBJECT(editor()), TQT_SLOT(favorites()), actionCollection(), "favorites" );
KStdAction::help( TQT_TQOBJECT(this), TQT_SLOT(appHelpActivated()), actionCollection() );
@@ -376,7 +376,7 @@ void KHexEdit::initialize( bool openFiles )
if ( openFiles && editor()->openFile() != SDisplayMisc::none )
{
- // Code modified from tdelibs/tdeui/kactionclasses.cpp KRecentFilesAction::loadEntries
+ // Code modified from tdelibs/tdeui/kactionclasses.cpp TDERecentFilesAction::loadEntries
TDEConfig* config = kapp->config();
@@ -809,7 +809,7 @@ void KHexEdit::fileState( SFileState &state )
void KHexEdit::layoutChanged( const SDisplayLayout &layout )
{
- KRadioAction *radioAction;
+ TDERadioAction *radioAction;
if( layout.primaryMode == SDisplayLayout::hexadecimal )
{
@@ -914,7 +914,7 @@ void KHexEdit::bookmarkChanged( TQPtrList<SCursorOffset> &list )
return;
}
- mAction.bookmarkList.append(new KActionSeparator());
+ mAction.bookmarkList.append(new TDEActionSeparator());
TQString text, offset;
int i=0;
@@ -923,11 +923,11 @@ void KHexEdit::bookmarkChanged( TQPtrList<SCursorOffset> &list )
{
offset.sprintf("%04X:%04X", p->offset>>16, p->offset&0x0000FFFF );
text = i18n("Offset: %1").arg(offset);
- KAction *action = new KAction(text, 0, mAction.bookmarkMapper, TQT_SLOT(map()), TQT_TQOBJECT(this), text.latin1());
+ TDEAction *action = new TDEAction(text, 0, mAction.bookmarkMapper, TQT_SLOT(map()), TQT_TQOBJECT(this), text.latin1());
int key = acceleratorNumKey( i );
if( key > 0 )
{
- action->setShortcut(KShortcut(ALT+key));
+ action->setShortcut(TDEShortcut(ALT+key));
}
mAction.bookmarkMapper->setMapping(action, i);
mAction.bookmarkList.append(action);
@@ -996,7 +996,7 @@ void KHexEdit::editMode( CHexBuffer::EEditMode editMode )
void KHexEdit::encodingChanged( const SEncodeState &encodeState )
{
- KRadioAction *radioAction;
+ TDERadioAction *radioAction;
if( encodeState.mode == CConversion::cnvDefault )
{
@@ -1324,7 +1324,7 @@ bool KHexEdit::eventFilter( TQObject *o, TQEvent *event )
return( true );
}
- return KMainWindow::eventFilter( o, event );
+ return TDEMainWindow::eventFilter( o, event );
}
diff --git a/khexedit/toplevel.h b/khexedit/toplevel.h
index 8af4f0d..e92503d 100644
--- a/khexedit/toplevel.h
+++ b/khexedit/toplevel.h
@@ -35,17 +35,17 @@
#include "statusbarprogress.h"
class TQSignalMapper;
-class KAction;
-class KRecentFilesAction;
-class KRadioAction;
-class KSelectAction;
-class KToggleAction;
-class KToolBarButton;
+class TDEAction;
+class TDERecentFilesAction;
+class TDERadioAction;
+class TDESelectAction;
+class TDEToggleAction;
+class TDEToolBarButton;
class KURL;
class CDragLabel;
-class KHexEdit : public KMainWindow
+class KHexEdit : public TDEMainWindow
{
Q_OBJECT
@@ -64,79 +64,79 @@ class KHexEdit : public KMainWindow
struct SActionList
{
- KAction *insert;
- KRecentFilesAction *openRecent;
- KAction *save;
- KAction *saveAs;
- KAction *revert;
- KAction *close;
- KAction *print;
- KAction *exportData;
- KAction *cancel;
- KToggleAction *readOnly;
- KToggleAction *resizeLock;
- KAction *newWindow;
- KAction *closeWindow;
- KAction *quit;
- KAction *undo;
- KAction *redo;
- KAction *cut;
- KAction *copy;
- KAction *paste;
- KAction *selectAll;
- KAction *unselect;
- KAction *find;
- KAction *findNext;
- KAction *findPrev;
- KAction *replace;
- KAction *gotoOffset;
- KAction *insertPattern;
- KAction *copyAsText;
- KAction *pasteToNewFile;
- KAction *pasteToNewWindow;
- KRadioAction *hexadecimal;
- KRadioAction *decimal;
- KRadioAction *octal;
- KRadioAction *binary;
- KRadioAction *textOnly;
- KToggleAction *showOffsetColumn;
- KToggleAction *showTextColumn;
- KToggleAction *offsetAsDecimal;
- KToggleAction *dataUppercase;
- KToggleAction *offsetUppercase;
- KRadioAction *defaultEncoding;
- KRadioAction *usAsciiEncoding;
- KRadioAction *ebcdicEncoding;
-// KAction *customEncoding;
-
- KAction *strings;
-// KAction *recordViewer;
- KAction *filter;
- KAction *characterTable;
- KAction *converter;
- KAction *statistics;
-
- KAction *addBookmark;
- KAction *replaceBookmark;
- KAction *removeBookmark;
- KAction *removeAllBookmark;
- KAction *nextBookmark;
- KAction *prevBookmark;
-
- KToggleAction *showFullPath;
- KRadioAction *tabHide;
- KRadioAction *tabShowBelowEditor;
- KRadioAction *tabShowAboveEditor;
- KRadioAction *conversionHide;
- KRadioAction *conversionFloat;
- KRadioAction *conversionEmbed;
- KRadioAction *searchHide;
- KRadioAction *searchShowAboveEditor;
- KRadioAction *searchShowBelowEditor;
-
-// KAction *favorites;
-
- TQPtrList< KAction > bookmarkList;
+ TDEAction *insert;
+ TDERecentFilesAction *openRecent;
+ TDEAction *save;
+ TDEAction *saveAs;
+ TDEAction *revert;
+ TDEAction *close;
+ TDEAction *print;
+ TDEAction *exportData;
+ TDEAction *cancel;
+ TDEToggleAction *readOnly;
+ TDEToggleAction *resizeLock;
+ TDEAction *newWindow;
+ TDEAction *closeWindow;
+ TDEAction *quit;
+ TDEAction *undo;
+ TDEAction *redo;
+ TDEAction *cut;
+ TDEAction *copy;
+ TDEAction *paste;
+ TDEAction *selectAll;
+ TDEAction *unselect;
+ TDEAction *find;
+ TDEAction *findNext;
+ TDEAction *findPrev;
+ TDEAction *replace;
+ TDEAction *gotoOffset;
+ TDEAction *insertPattern;
+ TDEAction *copyAsText;
+ TDEAction *pasteToNewFile;
+ TDEAction *pasteToNewWindow;
+ TDERadioAction *hexadecimal;
+ TDERadioAction *decimal;
+ TDERadioAction *octal;
+ TDERadioAction *binary;
+ TDERadioAction *textOnly;
+ TDEToggleAction *showOffsetColumn;
+ TDEToggleAction *showTextColumn;
+ TDEToggleAction *offsetAsDecimal;
+ TDEToggleAction *dataUppercase;
+ TDEToggleAction *offsetUppercase;
+ TDERadioAction *defaultEncoding;
+ TDERadioAction *usAsciiEncoding;
+ TDERadioAction *ebcdicEncoding;
+// TDEAction *customEncoding;
+
+ TDEAction *strings;
+// TDEAction *recordViewer;
+ TDEAction *filter;
+ TDEAction *characterTable;
+ TDEAction *converter;
+ TDEAction *statistics;
+
+ TDEAction *addBookmark;
+ TDEAction *replaceBookmark;
+ TDEAction *removeBookmark;
+ TDEAction *removeAllBookmark;
+ TDEAction *nextBookmark;
+ TDEAction *prevBookmark;
+
+ TDEToggleAction *showFullPath;
+ TDERadioAction *tabHide;
+ TDERadioAction *tabShowBelowEditor;
+ TDERadioAction *tabShowAboveEditor;
+ TDERadioAction *conversionHide;
+ TDERadioAction *conversionFloat;
+ TDERadioAction *conversionEmbed;
+ TDERadioAction *searchHide;
+ TDERadioAction *searchShowAboveEditor;
+ TDERadioAction *searchShowBelowEditor;
+
+// TDEAction *favorites;
+
+ TQPtrList< TDEAction > bookmarkList;
TQSignalMapper *bookmarkMapper;
};
@@ -234,7 +234,7 @@ protected:
SActionList mAction;
CDragLabel *mDragLabel;
- KToolBarButton *mWriteProtectButton;
+ TDEToolBarButton *mWriteProtectButton;
bool mIsModified;
bool mShowFullPath;
diff --git a/kjots/KJotsMain.cpp b/kjots/KJotsMain.cpp
index f674d7e..95fe7d7 100644
--- a/kjots/KJotsMain.cpp
+++ b/kjots/KJotsMain.cpp
@@ -56,7 +56,7 @@ extern KIconLoader* global_pix_loader;
// KJOTSMAIN
//----------------------------------------------------------------------
KJotsMain::KJotsMain(const char* name)
- : KMainWindow(0,name),
+ : TDEMainWindow(0,name),
currentEntry(0),
invalidMoveFlag(false)
{
@@ -70,7 +70,7 @@ KJotsMain::KJotsMain(const char* name)
splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
// the subject list
- subjectList = new KListView(splitter, "subjectList");
+ subjectList = new TDEListView(splitter, "subjectList");
subjectList->setRootIsDecorated(true);
subjectList->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding));
subjectList->setMinimumWidth(subjectList->fontMetrics().maxWidth() * 10 + 5);
@@ -104,42 +104,42 @@ KJotsMain::KJotsMain(const char* name)
splitter->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding, 2, 1));
// create actions
- actions[ACTION_NEXT_BOOK] = new KAction(i18n("Next Book"), TQString(), CTRL + Key_D, TQT_TQOBJECT(this),
+ actions[ACTION_NEXT_BOOK] = new TDEAction(i18n("Next Book"), TQString(), CTRL + Key_D, TQT_TQOBJECT(this),
TQT_SLOT(nextBook()), actionCollection(), "go_next_book");
- actions[ACTION_PREV_BOOK] = new KAction(i18n("Previous Book"), TQString(), CTRL + SHIFT + Key_D, TQT_TQOBJECT(this),
+ actions[ACTION_PREV_BOOK] = new TDEAction(i18n("Previous Book"), TQString(), CTRL + SHIFT + Key_D, TQT_TQOBJECT(this),
TQT_SLOT(prevBook()), actionCollection(), "go_prev_book");
- actions[ACTION_NEXT_PAGE] = new KAction(i18n("Next Page"), TQString(), CTRL + Key_PageDown, TQT_TQOBJECT(this),
+ actions[ACTION_NEXT_PAGE] = new TDEAction(i18n("Next Page"), TQString(), CTRL + Key_PageDown, TQT_TQOBJECT(this),
TQT_SLOT(nextPage()), actionCollection(), "go_next_page");
- actions[ACTION_PREV_PAGE] = new KAction(i18n("Previous Page"), TQString(), CTRL + Key_PageUp, TQT_TQOBJECT(this),
+ actions[ACTION_PREV_PAGE] = new TDEAction(i18n("Previous Page"), TQString(), CTRL + Key_PageUp, TQT_TQOBJECT(this),
TQT_SLOT(prevPage()), actionCollection(), "go_prev_page");
actions[ACTION_NEW_PAGE] = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(newEntry()), actionCollection());
actions[ACTION_NEW_PAGE]->setText(i18n("&New Page"));
- actions[ACTION_NEW_BOOK] = new KAction(i18n("New &Book..."), "contents", CTRL + SHIFT + Key_N, TQT_TQOBJECT(this),
+ actions[ACTION_NEW_BOOK] = new TDEAction(i18n("New &Book..."), "contents", CTRL + SHIFT + Key_N, TQT_TQOBJECT(this),
TQT_SLOT(createNewBook()), actionCollection(), "new_book");
- exportPageMenu = new KActionMenu(i18n("Export Page"), actionCollection(), "save_page_to");
- actions[ACTION_PAGE2TEXT] = new KAction(i18n("To Text File..."), TQString(), 0, TQT_TQOBJECT(this),
+ exportPageMenu = new TDEActionMenu(i18n("Export Page"), actionCollection(), "save_page_to");
+ actions[ACTION_PAGE2TEXT] = new TDEAction(i18n("To Text File..."), TQString(), 0, TQT_TQOBJECT(this),
TQT_SLOT(writePage()), actionCollection(), "save_page_to_ascii");
actions[ACTION_PAGE2TEXT]->plug(exportPageMenu->popupMenu());
- actions[ACTION_PAGE2HTML] = new KAction(i18n("To HTML File..."), TQString(), 0, TQT_TQOBJECT(this),
+ actions[ACTION_PAGE2HTML] = new TDEAction(i18n("To HTML File..."), TQString(), 0, TQT_TQOBJECT(this),
TQT_SLOT(writePageToHTML()), actionCollection(), "save_page_to_html");
actions[ACTION_PAGE2HTML]->plug(exportPageMenu->popupMenu());
- exportBookMenu = new KActionMenu(i18n("Export Book"), actionCollection(), "save_book_to");
- actions[ACTION_BOOK2TEXT] = new KAction(i18n("To Text File..."), TQString(), 0, TQT_TQOBJECT(this),
+ exportBookMenu = new TDEActionMenu(i18n("Export Book"), actionCollection(), "save_book_to");
+ actions[ACTION_BOOK2TEXT] = new TDEAction(i18n("To Text File..."), TQString(), 0, TQT_TQOBJECT(this),
TQT_SLOT(writeBook()), actionCollection(), "save_book_to_ascii");
actions[ACTION_BOOK2TEXT]->plug(exportBookMenu->popupMenu());
- actions[ACTION_BOOK2HTML] = new KAction(i18n("To HTML File..."), TQString(), 0, TQT_TQOBJECT(this),
+ actions[ACTION_BOOK2HTML] = new TDEAction(i18n("To HTML File..."), TQString(), 0, TQT_TQOBJECT(this),
TQT_SLOT(writeBookToHTML()), actionCollection(), "save_book_to_html");
actions[ACTION_BOOK2HTML]->plug(exportBookMenu->popupMenu());
- actions[ACTION_DELETE_PAGE] = new KAction(i18n("&Delete Page"), "editdelete", CTRL + Key_Delete, TQT_TQOBJECT(this),
+ actions[ACTION_DELETE_PAGE] = new TDEAction(i18n("&Delete Page"), "editdelete", CTRL + Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(deleteEntry()), actionCollection(), "del_page");
- actions[ACTION_DELETE_BOOK] = new KAction(i18n("Delete Boo&k"), "editdelete", CTRL + SHIFT + Key_Delete, TQT_TQOBJECT(this),
+ actions[ACTION_DELETE_BOOK] = new TDEAction(i18n("Delete Boo&k"), "editdelete", CTRL + SHIFT + Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(deleteBook()), actionCollection(), "del_folder");
- actions[ACTION_MANUAL_SAVE] = new KAction(i18n("Manual Save"), 0, KStdAccel::save(),
+ actions[ACTION_MANUAL_SAVE] = new TDEAction(i18n("Manual Save"), 0, TDEStdAccel::save(),
TQT_TQOBJECT(this), TQT_SLOT(autoSave()), actionCollection(), "manual_save");
actions[ACTION_PRINT] = KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(slotPrint()), actionCollection());
actions[ACTION_QUIT] = KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotQuit()), actionCollection());
@@ -150,7 +150,7 @@ KJotsMain::KJotsMain(const char* name)
actions[ACTION_COPY] = KStdAction::copy(TQT_TQOBJECT(me_text), TQT_SLOT(copy()), actionCollection());
connect(me_text, TQT_SIGNAL(copyAvailable(bool)), actions[ACTION_COPY], TQT_SLOT(setEnabled(bool)));
actions[ACTION_COPY]->setEnabled(false);
- actions[ACTION_PASTE2TITLE] = new KAction(i18n("Copy &into Page Title"), "editcopy", CTRL+Key_T, TQT_TQOBJECT(this),
+ actions[ACTION_PASTE2TITLE] = new TDEAction(i18n("Copy &into Page Title"), "editcopy", CTRL+Key_T, TQT_TQOBJECT(this),
TQT_SLOT(copySelection()), actionCollection(), "copyIntoTitle");
connect(me_text, TQT_SIGNAL(copyAvailable(bool)), actions[ACTION_PASTE2TITLE], TQT_SLOT(setEnabled(bool)));
actions[ACTION_PASTE2TITLE]->setEnabled(false);
@@ -161,14 +161,14 @@ KJotsMain::KJotsMain(const char* name)
actions[ACTION_FIND_NEXT]->setEnabled(false);
actions[ACTION_REPLACE] = KStdAction::replace( TQT_TQOBJECT(this), TQT_SLOT( slotReplace() ), actionCollection() );
- actions[ACTION_RENAME] = new KAction(i18n("Rename..."), TQString(), CTRL + Key_M, TQT_TQOBJECT(this),
+ actions[ACTION_RENAME] = new TDEAction(i18n("Rename..."), TQString(), CTRL + Key_M, TQT_TQOBJECT(this),
TQT_SLOT(slotRenameEntry()), actionCollection(), "rename_entry");
- actions[ACTION_INSERT_DATE] = new KAction(i18n("Insert Date"), "date", CTRL + Key_I, TQT_TQOBJECT(this),
+ actions[ACTION_INSERT_DATE] = new TDEAction(i18n("Insert Date"), "date", CTRL + Key_I, TQT_TQOBJECT(this),
TQT_SLOT(insertDate()), actionCollection(), "insert_date");
KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()), actionCollection());
- bookmarkMenu = new KActionMenu(i18n("&Bookmarks"), "bookmarks", actionCollection(), "bookmarks");
+ bookmarkMenu = new TDEActionMenu(i18n("&Bookmarks"), "bookmarks", actionCollection(), "bookmarks");
KJotsBookmarks* bookmarks = new KJotsBookmarks(this);
connect(bookmarks, TQT_SIGNAL(openPage(const TQString&)), TQT_SLOT(jumpToBookmark(const TQString&)));
new KBookmarkMenu(KBookmarkManager::managerForFile(locateLocal("appdata","bookmarks.xml")),
@@ -177,7 +177,7 @@ KJotsMain::KJotsMain(const char* name)
setupGUI();
/*
* TODO: add a bookmark bar, something like this
- KToolBar* bar = dynamic_cast<KToolBar *>(child("bookmarkToolBar", "KToolBar"));
+ TDEToolBar* bar = dynamic_cast<TDEToolBar *>(child("bookmarkToolBar", "TDEToolBar"));
new KBookmarkBar(KBookmarkManager::managerForFile(locateLocal("appdata","bookmarks.xml")),
bookmarks, bar, actionCollection(), this, "BookmarkBar");
if (bar->count() == 0)
@@ -215,8 +215,8 @@ KJotsMain::KJotsMain(const char* name)
this, TQT_SLOT(slotExpandBook(TQListViewItem*)));
connect(subjectList, TQT_SIGNAL(collapsed(TQListViewItem*)),
this, TQT_SLOT(slotCollapseBook(TQListViewItem*)));
- connect(subjectList, TQT_SIGNAL(contextMenu(KListView*,TQListViewItem*,const TQPoint&)),
- this, TQT_SLOT(showListviewContextMenu(KListView*,TQListViewItem*,const TQPoint&)));
+ connect(subjectList, TQT_SIGNAL(contextMenu(TDEListView*,TQListViewItem*,const TQPoint&)),
+ this, TQT_SLOT(showListviewContextMenu(TDEListView*,TQListViewItem*,const TQPoint&)));
connect(subjectList, TQT_SIGNAL(itemRenamed(TQListViewItem*,const TQString&,int)),
this, TQT_SLOT(slotItemRenamed(TQListViewItem*,const TQString&,int)));
connect(roTextView, TQT_SIGNAL(urlClick(const TQString&)),
@@ -654,10 +654,10 @@ void KJotsMain::slotFindSuccessful()
actions[ACTION_FIND_NEXT]->setEnabled(true);
}
-void KJotsMain::showListviewContextMenu(KListView*, TQListViewItem* i, const TQPoint& p)
+void KJotsMain::showListviewContextMenu(TDEListView*, TQListViewItem* i, const TQPoint& p)
{
if ( invalidMoveFlag ) return; //Prevent race condition
- KActionMenu* am = new KActionMenu(TQT_TQOBJECT(this));
+ TDEActionMenu* am = new TDEActionMenu(TQT_TQOBJECT(this));
if (!i)
{
@@ -670,7 +670,7 @@ void KJotsMain::showListviewContextMenu(KListView*, TQListViewItem* i, const TQP
am->insert(actions[ACTION_NEW_PAGE]);
am->insert(actions[ACTION_RENAME]);
am->insert(exportBookMenu);
- am->insert(new KActionSeparator(am));
+ am->insert(new TDEActionSeparator(am));
am->insert(actions[ACTION_DELETE_BOOK]);
}
else
@@ -679,7 +679,7 @@ void KJotsMain::showListviewContextMenu(KListView*, TQListViewItem* i, const TQP
am->insert(actions[ACTION_NEW_PAGE]);
am->insert(actions[ACTION_RENAME]);
am->insert(exportPageMenu);
- am->insert(new KActionSeparator(am));
+ am->insert(new TDEActionSeparator(am));
am->insert(actions[ACTION_DELETE_PAGE]);
}
@@ -1173,7 +1173,7 @@ KJotsBook* KJotsMain::currentBook()
{
return dynamic_cast<KJotsBook*>(e);
}
- e = dynamic_cast<KJotsEntryBase*>(e->KListViewItem::parent());
+ e = dynamic_cast<KJotsEntryBase*>(e->TDEListViewItem::parent());
}
return 0;
diff --git a/kjots/KJotsMain.h b/kjots/KJotsMain.h
index bc36d2d..565ab32 100644
--- a/kjots/KJotsMain.h
+++ b/kjots/KJotsMain.h
@@ -32,18 +32,18 @@
class TQGroupBox;
class TQWidgetStack;
class KTextBrowser;
-class KAccel;
+class TDEAccel;
class KJotsMain;
-class KToolBar;
-class KListBox;
-class KListView;
-class KPopupMenu;
+class TDEToolBar;
+class TDEListBox;
+class TDEListView;
+class TDEPopupMenu;
class ConfigureDialog;
class KEdFind;
class KEdReplace;
class TQTimer;
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
class KJotsPage;
class KJotsBook;
@@ -79,7 +79,7 @@ class KJotsEdit;
#define ACTION_INSERT_DATE 23
#define ACTION_MAX 24
-class KJotsMain : public KMainWindow
+class KJotsMain : public TDEMainWindow
{
Q_OBJECT
@@ -131,7 +131,7 @@ class KJotsMain : public KMainWindow
void prevPage();
// handling page changes in the listview
- void showListviewContextMenu(KListView* l, TQListViewItem* i, const TQPoint& p);
+ void showListviewContextMenu(TDEListView* l, TQListViewItem* i, const TQPoint& p);
void linkClicked(const TQString&);
void autoSave(void);
@@ -150,7 +150,7 @@ class KJotsMain : public KMainWindow
TQButtonGroup *bg_top;
KJotsEdit *me_text;
KTextBrowser *roTextView;
- KListView *subjectList;
+ TDEListView *subjectList;
KJotsEntryBase *currentEntry;
TQSplitter *splitter;
TQWidgetStack *textStack;
@@ -158,8 +158,8 @@ class KJotsMain : public KMainWindow
TQTimer* m_autosaveTimer;
bool invalidMoveFlag; //!< Used to fix a race condition. See Bug #109299
- KAction* actions[ACTION_MAX];
- KActionMenu *exportPageMenu, *exportBookMenu, *bookmarkMenu;
+ TDEAction* actions[ACTION_MAX];
+ TDEActionMenu *exportPageMenu, *exportBookMenu, *bookmarkMenu;
};
#endif // KJotsMain_included
diff --git a/kjots/confpagefont.ui b/kjots/confpagefont.ui
index d057ae0..c82914e 100644
--- a/kjots/confpagefont.ui
+++ b/kjots/confpagefont.ui
@@ -22,7 +22,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="KFontChooser">
+ <widget class="TDEFontChooser">
<property name="name">
<cstring>kcfg_Font</cstring>
</property>
diff --git a/kjots/kjotsedit.cpp b/kjots/kjotsedit.cpp
index 643fd92..f6be76f 100644
--- a/kjots/kjotsedit.cpp
+++ b/kjots/kjotsedit.cpp
@@ -44,7 +44,7 @@ KJotsEdit::KJotsEdit (TQWidget* parent, const char* name)
setTextFormat(TQt::PlainText);
setWordWrap(TQTextEdit::WidgetWidth);
setLinkUnderline(true);
- web_menu = new KPopupMenu(this);;
+ web_menu = new TDEPopupMenu(this);;
web_menu->insertItem(i18n("Open URL"), this, TQT_SLOT(openUrl()) );
}
diff --git a/kjots/kjotsedit.h b/kjots/kjotsedit.h
index d5edf2a..a85d3d0 100644
--- a/kjots/kjotsedit.h
+++ b/kjots/kjotsedit.h
@@ -24,7 +24,7 @@
#define __KJOTSEDIT_H
#include <keditcl.h>
-class KPopupMenu;
+class TDEPopupMenu;
class KJotsPage;
class KJotsEdit : public KEdit
@@ -47,7 +47,7 @@ class KJotsEdit : public KEdit
protected:
virtual void mousePressEvent (TQMouseEvent *e);
- KPopupMenu *web_menu;
+ TDEPopupMenu *web_menu;
KJotsPage *m_entry; //!< The entry we are editing. It needs to be kept informed.
};
diff --git a/kjots/kjotsentry.cpp b/kjots/kjotsentry.cpp
index 35d6ddf..d1f94e2 100644
--- a/kjots/kjotsentry.cpp
+++ b/kjots/kjotsentry.cpp
@@ -69,16 +69,16 @@ TQString htmlFooter()
// KJotsEntryBase
//
-KJotsEntryBase::KJotsEntryBase(KListView* parent, TQListViewItem* after=0)
- :KListViewItem(parent,after)
+KJotsEntryBase::KJotsEntryBase(TDEListView* parent, TQListViewItem* after=0)
+ :TDEListViewItem(parent,after)
{
m_id = 0;
m_saveInProgress = m_dirty = false;
m_parent = 0;
}
-KJotsEntryBase::KJotsEntryBase(KListViewItem* parent, TQListViewItem* after=0)
- :KListViewItem(parent,after)
+KJotsEntryBase::KJotsEntryBase(TDEListViewItem* parent, TQListViewItem* after=0)
+ :TDEListViewItem(parent,after)
{
m_id = 0;
m_saveInProgress = m_dirty = false;
@@ -93,9 +93,9 @@ void KJotsEntryBase::setSubject(const TQString& subj)
void KJotsEntryBase::setText(int column, const TQString& text)
{
if (column == 0 && text.isEmpty())
- KListViewItem::setText(0, defaultSubject());
+ TDEListViewItem::setText(0, defaultSubject());
else
- KListViewItem::setText(column, text);
+ TDEListViewItem::setText(column, text);
}
/*!
@@ -217,13 +217,13 @@ int KJotsEntryBase::printTitleBox(TQString title, KPrinter& printer, TQPainter&
// KJotsBook
//
-KJotsBook::KJotsBook(KListView* parent, TQListViewItem* after)
+KJotsBook::KJotsBook(TDEListView* parent, TQListViewItem* after)
: KJotsEntryBase(parent, after)
{
init();
}
-KJotsBook::KJotsBook(KListViewItem* parent, TQListViewItem* after)
+KJotsBook::KJotsBook(TDEListViewItem* parent, TQListViewItem* after)
: KJotsEntryBase(parent, after)
{
init();
@@ -982,7 +982,7 @@ void KJotsPage::slotSaveResult(TDEIO::Job *)
void KJotsPage::print(TQFont& defaultFont)
{
- KJotsEntryBase* book = dynamic_cast<KJotsEntryBase*>(KListViewItem::parent());
+ KJotsEntryBase* book = dynamic_cast<KJotsEntryBase*>(TDEListViewItem::parent());
TQString docName = book->subject();
if (!subject().isNull())
diff --git a/kjots/kjotsentry.h b/kjots/kjotsentry.h
index a0260c8..d80a219 100644
--- a/kjots/kjotsentry.h
+++ b/kjots/kjotsentry.h
@@ -46,13 +46,13 @@ namespace TDEIO
class Job;
}
-class KJotsEntryBase : public TQObject, public KListViewItem
+class KJotsEntryBase : public TQObject, public TDEListViewItem
{
Q_OBJECT
public:
- KJotsEntryBase(KListView*, TQListViewItem*);
- KJotsEntryBase(KListViewItem*, TQListViewItem*);
+ KJotsEntryBase(TDEListView*, TQListViewItem*);
+ KJotsEntryBase(TDEListViewItem*, TQListViewItem*);
public:
virtual void setSubject(const TQString&);
@@ -101,8 +101,8 @@ class KJotsBook : public KJotsEntryBase
Q_OBJECT
public:
- KJotsBook(KListView*, TQListViewItem* after = 0);
- KJotsBook(KListViewItem*, TQListViewItem* after = 0);
+ KJotsBook(TDEListView*, TQListViewItem* after = 0);
+ KJotsBook(TDEListViewItem*, TQListViewItem* after = 0);
~KJotsBook();
static bool isBookFile(const TQString& book);
diff --git a/klaptopdaemon/daemondock.cpp b/klaptopdaemon/daemondock.cpp
index f91d43d..f1e901d 100644
--- a/klaptopdaemon/daemondock.cpp
+++ b/klaptopdaemon/daemondock.cpp
@@ -479,7 +479,7 @@ void laptop_dock::mouseReleaseEvent( TQMouseEvent *e )
// fall through
case Qt::RightButton:
{
- KPopupMenu *menu = contextMenu();
+ TDEPopupMenu *menu = contextMenu();
contextMenuAboutToShow( menu );
menu->popup( e->globalPos() );
}
diff --git a/klaptopdaemon/daemondock.h b/klaptopdaemon/daemondock.h
index f35e9fd..920ae26 100644
--- a/klaptopdaemon/daemondock.h
+++ b/klaptopdaemon/daemondock.h
@@ -34,7 +34,7 @@ class KPCMCIACard;
class TQPopupMenu;
class TQVBox;
class TQSlider;
-class KPopupMenu;
+class TDEPopupMenu;
#include <tqmap.h>
@@ -102,7 +102,7 @@ private:
_insertActions;
TDEInstance *instance; // handle so we get our pretty icons right
- KPopupMenu *rightPopup;
+ TDEPopupMenu *rightPopup;
};
#endif
diff --git a/kmilo/generic/generic_monitor.cpp b/kmilo/generic/generic_monitor.cpp
index b44ab7e..28138ec 100644
--- a/kmilo/generic/generic_monitor.cpp
+++ b/kmilo/generic/generic_monitor.cpp
@@ -79,23 +79,23 @@ bool GenericMonitor::init()
return false; // exit early if we are not supposed to run
static const ShortcutInfo shortcuts[] = {
- { "Search", KShortcut("XF86Search"), TQT_SLOT(launchSearch()) },
- { "Home Folder", KShortcut("XF86MyComputer"), TQT_SLOT(launchHomeFolder()) },
- { "Mail", KShortcut("XF86Mail"), TQT_SLOT(launchMail()) },
- { "Audio Media", KShortcut("XF86AudioMedia"), TQT_SLOT(launchMusic()) },
- { "Music", KShortcut("XF86Music"), TQT_SLOT(launchMusic()) },
- { "Browser", KShortcut("XF86WWW"), TQT_SLOT(launchBrowser()) },
- { "Calculator", KShortcut("XF86Calculator"), TQT_SLOT(launchCalculator()) },
- { "Terminal", KShortcut("XF86Terminal"), TQT_SLOT(launchTerminal()) },
- { "Eject", KShortcut("XF86Eject"), TQT_SLOT(eject()) },
- { "Help", KShortcut("XF86Launch0"), TQT_SLOT(launchHelp()) },
- { "Light Bulb", KShortcut("XF86LightBulb"), TQT_SLOT(lightBulb()) },
- { "Battery", KShortcut("XF86LaunchB"), TQT_SLOT(pmBattery()) },
+ { "Search", TDEShortcut("XF86Search"), TQT_SLOT(launchSearch()) },
+ { "Home Folder", TDEShortcut("XF86MyComputer"), TQT_SLOT(launchHomeFolder()) },
+ { "Mail", TDEShortcut("XF86Mail"), TQT_SLOT(launchMail()) },
+ { "Audio Media", TDEShortcut("XF86AudioMedia"), TQT_SLOT(launchMusic()) },
+ { "Music", TDEShortcut("XF86Music"), TQT_SLOT(launchMusic()) },
+ { "Browser", TDEShortcut("XF86WWW"), TQT_SLOT(launchBrowser()) },
+ { "Calculator", TDEShortcut("XF86Calculator"), TQT_SLOT(launchCalculator()) },
+ { "Terminal", TDEShortcut("XF86Terminal"), TQT_SLOT(launchTerminal()) },
+ { "Eject", TDEShortcut("XF86Eject"), TQT_SLOT(eject()) },
+ { "Help", TDEShortcut("XF86Launch0"), TQT_SLOT(launchHelp()) },
+ { "Light Bulb", TDEShortcut("XF86LightBulb"), TQT_SLOT(lightBulb()) },
+ { "Battery", TDEShortcut("XF86LaunchB"), TQT_SLOT(pmBattery()) },
{ "FastVolumeUp", TQt::Key_VolumeUp, TQT_SLOT(fastVolumeUp()) },
{ "FastVolumeDown", TQt::Key_VolumeDown, TQT_SLOT(fastVolumeDown()) },
{ "SlowVolumeUp", TQt::CTRL+TQt::Key_VolumeUp, TQT_SLOT(slowVolumeUp()) },
{ "SlowVolumeDown", TQt::CTRL+TQt::Key_VolumeDown, TQT_SLOT(slowVolumeDown()) },
- { "Mute", KShortcut("XF86AudioMute"), TQT_SLOT(mute()) }
+ { "Mute", TDEShortcut("XF86AudioMute"), TQT_SLOT(mute()) }
};
ga = new TDEGlobalAccel(this, "miloGenericAccel");
diff --git a/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.cpp b/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.cpp
index 35627d6..29f2ea3 100644
--- a/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.cpp
+++ b/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.cpp
@@ -37,7 +37,7 @@ KMultiFormListBoxWindowed::KMultiFormListBoxWindowed(KMultiFormListBoxFactory *f
TQHBoxLayout *innerLayout = new TQHBoxLayout();
_layout->addLayout(innerLayout);
- _listbox = new KListBox(this,"listbox");
+ _listbox = new TDEListBox(this,"listbox");
_listbox->setSelectionMode(TQListBox::Single);
innerLayout->addWidget(_listbox);
diff --git a/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.h b/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.h
index b2c0484..9e7c38d 100644
--- a/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.h
+++ b/kregexpeditor/KMultiFormListBox/tdemultiformlistbox-windowed.h
@@ -56,7 +56,7 @@ private:
TQVBoxLayout* _layout;
KMultiFormListBoxFactory* _factory;
TQPtrList<TQPushButton> _buttonList;
- KListBox* _listbox;
+ TDEListBox* _listbox;
virtual void delElement(TQWidget *); // Deletes the given element
virtual void delAnElement();
void addElement();
diff --git a/kregexpeditor/KMultiFormListBox/widgetwindow.cpp b/kregexpeditor/KMultiFormListBox/widgetwindow.cpp
index 73bfcd6..9b055a3 100644
--- a/kregexpeditor/KMultiFormListBox/widgetwindow.cpp
+++ b/kregexpeditor/KMultiFormListBox/widgetwindow.cpp
@@ -19,19 +19,19 @@
#include "windowlistboxitem.h"
#include <iostream>
-WidgetWindow::WidgetWindow(KMultiFormListBoxFactory *factory, KListBox *lb)
+WidgetWindow::WidgetWindow(KMultiFormListBoxFactory *factory, TDEListBox *lb)
:KDialogBase(Plain, i18n("Widget Configuration"), Ok | Cancel, Ok, 0, "ConfigWindow", false)
{
init(factory, lb);
}
-WidgetWindow::WidgetWindow(KMultiFormListBoxFactory *factory, KMultiFormListBoxEntry *widget, KListBox *lb)
+WidgetWindow::WidgetWindow(KMultiFormListBoxFactory *factory, KMultiFormListBoxEntry *widget, TDEListBox *lb)
:KDialogBase(Plain, i18n("Widget Configuration"), Ok | Cancel, Ok, 0, "ConfigWindow", false)
{
init(factory, lb, widget);
}
-void WidgetWindow::init(KMultiFormListBoxFactory *factory, KListBox *lb, KMultiFormListBoxEntry *widget)
+void WidgetWindow::init(KMultiFormListBoxFactory *factory, TDEListBox *lb, KMultiFormListBoxEntry *widget)
{
listbox = lb;
myFact = factory;
diff --git a/kregexpeditor/KMultiFormListBox/widgetwindow.h b/kregexpeditor/KMultiFormListBox/widgetwindow.h
index 2312653..e8998ec 100644
--- a/kregexpeditor/KMultiFormListBox/widgetwindow.h
+++ b/kregexpeditor/KMultiFormListBox/widgetwindow.h
@@ -36,9 +36,9 @@ class WidgetWindow :public KDialogBase
friend class KMultiFormListBoxWindowed;
friend class WindowListboxItem;
- WidgetWindow(KMultiFormListBoxFactory *, KListBox *);
- WidgetWindow(KMultiFormListBoxFactory *, KMultiFormListBoxEntry *widget, KListBox *);
- void init(KMultiFormListBoxFactory *, KListBox *, KMultiFormListBoxEntry *widget = 0);
+ WidgetWindow(KMultiFormListBoxFactory *, TDEListBox *);
+ WidgetWindow(KMultiFormListBoxFactory *, KMultiFormListBoxEntry *widget, TDEListBox *);
+ void init(KMultiFormListBoxFactory *, TDEListBox *, KMultiFormListBoxEntry *widget = 0);
void display();
KMultiFormListBoxEntry *entry();
WidgetWindow *clone();
@@ -52,7 +52,7 @@ private:
KMultiFormListBoxFactory *myFact;
KMultiFormListBoxEntry *myWidget;
TQByteArray _backup;
- KListBox *listbox;
+ TDEListBox *listbox;
WindowListboxItem *myListboxItem;
bool initialShow;
};
diff --git a/kregexpeditor/qt-only/compat.h b/kregexpeditor/qt-only/compat.h
index 7812073..bf8e9ee 100644
--- a/kregexpeditor/qt-only/compat.h
+++ b/kregexpeditor/qt-only/compat.h
@@ -30,7 +30,7 @@ TQString i18n( const TQString& a, const TQString& b);
#define isatty(x) 0
#define KTextBrowser TQTextBrowser
-#define KListBox TQListBox
+#define TDEListBox TQListBox
#define KFileDialog TQFileDialog
#define KPushButton TQPushButton
diff --git a/ksim/monitorprefs.cpp b/ksim/monitorprefs.cpp
index d85be8a..cbddf84 100644
--- a/ksim/monitorprefs.cpp
+++ b/ksim/monitorprefs.cpp
@@ -30,7 +30,7 @@
#include <pluginloader.h>
KSim::MonitorPrefs::MonitorPrefs(TQWidget *parent, const char *name)
- : KListView(parent, name)
+ : TDEListView(parent, name)
{
addColumn(i18n("Monitor"));
addColumn(i18n("Description"));
@@ -44,7 +44,7 @@ KSim::MonitorPrefs::MonitorPrefs(TQWidget *parent, const char *name)
setAllColumnsShowFocus(true);
setSelectionMode(TQListView::Single);
- // Scan for .desktop files and enter them into the KListView
+ // Scan for .desktop files and enter them into the TDEListView
m_locatedFiles = TDEGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop");
m_locatedFiles.sort();
TQStringList::ConstIterator it;
diff --git a/ksim/monitorprefs.h b/ksim/monitorprefs.h
index 07035da..64342a3 100644
--- a/ksim/monitorprefs.h
+++ b/ksim/monitorprefs.h
@@ -27,7 +27,7 @@ namespace KSim
{
class Config;
- class MonitorPrefs : public KListView
+ class MonitorPrefs : public TDEListView
{
Q_OBJECT
diff --git a/ksim/monitors/cpu/ksimcpu.cpp b/ksim/monitors/cpu/ksimcpu.cpp
index 7a092e1..ecd19f5 100644
--- a/ksim/monitors/cpu/ksimcpu.cpp
+++ b/ksim/monitors/cpu/ksimcpu.cpp
@@ -367,7 +367,7 @@ CpuConfig::CpuConfig(KSim::PluginObject *parent, const char *name)
TQVBoxLayout * mainLayout = new TQVBoxLayout( this );
mainLayout->setSpacing( 6 );
- m_listView = new KListView(this);
+ m_listView = new TDEListView(this);
m_listView->addColumn(i18n("Available CPUs"));
m_listView->addColumn(i18n("Chart Format"));
m_listView->setAllColumnsShowFocus(true);
diff --git a/ksim/monitors/cpu/ksimcpu.h b/ksim/monitors/cpu/ksimcpu.h
index 315f113..1ca3fca 100644
--- a/ksim/monitors/cpu/ksimcpu.h
+++ b/ksim/monitors/cpu/ksimcpu.h
@@ -35,7 +35,7 @@ class TQLabel;
class TQGroupBox;
class TQTimer;
class TQListViewItem;
-class KListView;
+class TDEListView;
class CpuPlugin : public KSim::PluginObject
{
@@ -216,7 +216,7 @@ class CpuConfig : public KSim::PluginPage
private:
uint addCpus();
- KListView *m_listView;
+ TDEListView *m_listView;
TQGroupBox *m_legendBox;
TQLabel *m_totalNiceLabel;
TQLabel *m_totalLabel;
diff --git a/ksim/monitors/disk/ksimdisk.cpp b/ksim/monitors/disk/ksimdisk.cpp
index 3a38100..cb19b99 100644
--- a/ksim/monitors/disk/ksimdisk.cpp
+++ b/ksim/monitors/disk/ksimdisk.cpp
@@ -478,7 +478,7 @@ DiskConfig::DiskConfig(KSim::PluginObject *parent, const char *name)
m_layout = new TQVBoxLayout(this);
m_layout->setSpacing(6);
- m_listview = new KListView(this);
+ m_listview = new TDEListView(this);
m_listview->addColumn(i18n("Disks"));
m_layout->addWidget(m_listview);
diff --git a/ksim/monitors/disk/ksimdisk.h b/ksim/monitors/disk/ksimdisk.h
index ea1b2d6..3cf62d1 100644
--- a/ksim/monitors/disk/ksimdisk.h
+++ b/ksim/monitors/disk/ksimdisk.h
@@ -29,7 +29,7 @@
class TQTextStream;
class TQTimer;
-class KListView;
+class TDEListView;
class TQVBoxLayout;
class TQVButtonGroup;
class TQRadioButton;
@@ -146,7 +146,7 @@ class DiskConfig : public KSim::PluginPage
private:
TQVBoxLayout *m_layout;
- KListView *m_listview;
+ TDEListView *m_listview;
TQPushButton *m_add;
TQPushButton *m_remove;
TQVButtonGroup *m_buttonBox;
diff --git a/ksim/monitors/filesystem/fsystemconfig.cpp b/ksim/monitors/filesystem/fsystemconfig.cpp
index d9d55e9..0987237 100644
--- a/ksim/monitors/filesystem/fsystemconfig.cpp
+++ b/ksim/monitors/filesystem/fsystemconfig.cpp
@@ -52,7 +52,7 @@ FsystemConfig::FsystemConfig(KSim::PluginObject *parent, const char *name)
m_mainLayout = new TQGridLayout(this);
m_mainLayout->setSpacing(6);
- m_availableMounts = new KListView(this);
+ m_availableMounts = new TDEListView(this);
m_availableMounts->addColumn(i18n("Mounted Partition"));
m_availableMounts->addColumn(i18n("Device"));
m_availableMounts->addColumn(i18n("Type"));
diff --git a/ksim/monitors/filesystem/fsystemconfig.h b/ksim/monitors/filesystem/fsystemconfig.h
index 0ec124c..fe37957 100644
--- a/ksim/monitors/filesystem/fsystemconfig.h
+++ b/ksim/monitors/filesystem/fsystemconfig.h
@@ -24,7 +24,7 @@
#include "filesystemstats.h"
class KIntSpinBox;
-class KListView;
+class TDEListView;
class TQGridLayout;
class TQCheckBox;
class TQLabel;
@@ -52,7 +52,7 @@ class FsystemConfig : public KSim::PluginPage
TQCheckBox *m_splitNames;
TQLabel *m_intervalLabel;
KIntSpinBox *m_updateTimer;
- KListView *m_availableMounts;
+ TDEListView *m_availableMounts;
TQGridLayout *m_mainLayout;
FilesystemStats::List m_entries;
};
diff --git a/ksim/monitors/filesystem/ksimfsystem.h b/ksim/monitors/filesystem/ksimfsystem.h
index 17ab1f0..1583ba1 100644
--- a/ksim/monitors/filesystem/ksimfsystem.h
+++ b/ksim/monitors/filesystem/ksimfsystem.h
@@ -23,7 +23,7 @@
#include <pluginmodule.h>
#include "fsystemiface.h"
-class KPopupMenu;
+class TDEPopupMenu;
class FilesystemWidget;
class TQTimer;
diff --git a/ksim/monitors/lm_sensors/sensorsconfig.cpp b/ksim/monitors/lm_sensors/sensorsconfig.cpp
index f32fb96..873d6ac 100644
--- a/ksim/monitors/lm_sensors/sensorsconfig.cpp
+++ b/ksim/monitors/lm_sensors/sensorsconfig.cpp
@@ -58,7 +58,7 @@ SensorsConfig::SensorsConfig(KSim::PluginObject *parent, const char *name)
m_layout->setSpacing(6);
m_neverShown = true;
- m_sensorView = new KListView(this);
+ m_sensorView = new TDEListView(this);
m_sensorView->addColumn(i18n("No."));
m_sensorView->addColumn(i18n("Label"));
m_sensorView->addColumn(i18n("Sensors"));
@@ -67,8 +67,8 @@ SensorsConfig::SensorsConfig(KSim::PluginObject *parent, const char *name)
m_sensorView->setColumnWidth(1, 60);
m_sensorView->setColumnWidth(2, 80);
m_sensorView->setAllColumnsShowFocus(true);
- connect(m_sensorView, TQT_SIGNAL(contextMenu(KListView *,
- TQListViewItem *, const TQPoint &)), this, TQT_SLOT(menu(KListView *,
+ connect(m_sensorView, TQT_SIGNAL(contextMenu(TDEListView *,
+ TQListViewItem *, const TQPoint &)), this, TQT_SLOT(menu(TDEListView *,
TQListViewItem *, const TQPoint &)));
connect( m_sensorView, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ),
@@ -134,7 +134,7 @@ void SensorsConfig::readConfig()
}
}
-void SensorsConfig::menu(KListView *, TQListViewItem *, const TQPoint &)
+void SensorsConfig::menu(TDEListView *, TQListViewItem *, const TQPoint &)
{
m_popupMenu = new TQPopupMenu(this);
diff --git a/ksim/monitors/lm_sensors/sensorsconfig.h b/ksim/monitors/lm_sensors/sensorsconfig.h
index 8aeb04c..dff799e 100644
--- a/ksim/monitors/lm_sensors/sensorsconfig.h
+++ b/ksim/monitors/lm_sensors/sensorsconfig.h
@@ -26,7 +26,7 @@ class TQPushButton;
class TQCheckListItem;
class TQGridLayout;
class TQLabel;
-class KListView;
+class TDEListView;
class TQListViewItem;
class TQPopupMenu;
class KIntSpinBox;
@@ -45,7 +45,7 @@ class SensorsConfig : public KSim::PluginPage
void readConfig();
private slots:
- void menu(KListView *, TQListViewItem *, const TQPoint &);
+ void menu(TDEListView *, TQListViewItem *, const TQPoint &);
void initSensors();
void selectAll();
void unSelectAll();
@@ -61,7 +61,7 @@ class SensorsConfig : public KSim::PluginPage
bool m_neverShown;
TQLabel *m_updateLabel;
KIntSpinBox *m_sensorSlider;
- KListView *m_sensorView;
+ TDEListView *m_sensorView;
TQCheckBox *m_fahrenBox;
TQGridLayout *m_layout;
TQPopupMenu *m_popupMenu;
diff --git a/ksim/monitors/net/netconfig.cpp b/ksim/monitors/net/netconfig.cpp
index 4444d4c..6757977 100644
--- a/ksim/monitors/net/netconfig.cpp
+++ b/ksim/monitors/net/netconfig.cpp
@@ -43,15 +43,15 @@ NetConfig::NetConfig(KSim::PluginObject *parent, const char *name)
TQVBoxLayout *mainLayout = new TQVBoxLayout(this);
mainLayout->setSpacing(6);
- usingBox = new KListView(this);
+ usingBox = new TDEListView(this);
usingBox ->addColumn(i18n("Interface"));
usingBox ->addColumn(i18n("Timer"));
usingBox ->addColumn(i18n("Commands"));
usingBox->setAllColumnsShowFocus(true);
- connect(usingBox, TQT_SIGNAL(contextMenu(KListView *,
+ connect(usingBox, TQT_SIGNAL(contextMenu(TDEListView *,
TQListViewItem *, const TQPoint &)),
- TQT_SLOT(menu(KListView *, TQListViewItem *, const TQPoint &)));
+ TQT_SLOT(menu(TDEListView *, TQListViewItem *, const TQPoint &)));
connect(usingBox, TQT_SIGNAL(doubleClicked(TQListViewItem *)),
TQT_SLOT(modifyItem(TQListViewItem *)));
mainLayout->addWidget(usingBox);
@@ -138,7 +138,7 @@ void NetConfig::readConfig()
}
}
-void NetConfig::menu(KListView *, TQListViewItem *item, const TQPoint &)
+void NetConfig::menu(TDEListView *, TQListViewItem *item, const TQPoint &)
{
aboutMenu = new TQPopupMenu(this);
diff --git a/ksim/monitors/net/netconfig.h b/ksim/monitors/net/netconfig.h
index 5bf2716..2a62158 100644
--- a/ksim/monitors/net/netconfig.h
+++ b/ksim/monitors/net/netconfig.h
@@ -26,7 +26,7 @@
class NetDialog;
class TQPopupMenu;
class TQPushButton;
-class KListView;
+class TDEListView;
class TQHBoxLayout;
class TQListViewItem;
@@ -42,7 +42,7 @@ class NetConfig : public KSim::PluginPage
virtual void readConfig();
private slots:
- void menu(KListView *, TQListViewItem *, const TQPoint &);
+ void menu(TDEListView *, TQListViewItem *, const TQPoint &);
void modifyItem(TQListViewItem *);
void removeItem(TQListViewItem *);
void removeCurrent();
@@ -58,7 +58,7 @@ class NetConfig : public KSim::PluginPage
TQPushButton *insertButton;
TQPushButton *removeButton;
TQPushButton *modifyButton;
- KListView *usingBox;
+ TDEListView *usingBox;
NetDialog *netDialog;
Network::List m_networkList;
TQString m_yes;
diff --git a/ksim/monitors/snmp/browsedialogbase.ui b/ksim/monitors/snmp/browsedialogbase.ui
index 07e4fd5..6cc8f72 100644
--- a/ksim/monitors/snmp/browsedialogbase.ui
+++ b/ksim/monitors/snmp/browsedialogbase.ui
@@ -67,7 +67,7 @@
</widget>
</hbox>
</widget>
- <widget class="KListView" row="1" column="0">
+ <widget class="TDEListView" row="1" column="0">
<column>
<property name="text">
<string>Object</string>
diff --git a/ksim/monitors/snmp/configwidget.ui b/ksim/monitors/snmp/configwidget.ui
index 69b94db..5c6ff93 100644
--- a/ksim/monitors/snmp/configwidget.ui
+++ b/ksim/monitors/snmp/configwidget.ui
@@ -51,7 +51,7 @@
<string>Add...</string>
</property>
</widget>
- <widget class="KListView" row="0" column="0" rowspan="1" colspan="4">
+ <widget class="TDEListView" row="0" column="0" rowspan="1" colspan="4">
<column>
<property name="text">
<string>Host</string>
@@ -163,7 +163,7 @@
</size>
</property>
</spacer>
- <widget class="KListView" row="0" column="0" rowspan="1" colspan="4">
+ <widget class="TDEListView" row="0" column="0" rowspan="1" colspan="4">
<column>
<property name="text">
<string>Name</string>
diff --git a/ksim/monitors/snmp/proberesultdialogbase.ui b/ksim/monitors/snmp/proberesultdialogbase.ui
index dcdbd2a..3b950b1 100644
--- a/ksim/monitors/snmp/proberesultdialogbase.ui
+++ b/ksim/monitors/snmp/proberesultdialogbase.ui
@@ -30,7 +30,7 @@
<string></string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Object</string>
diff --git a/ksim/themeprefs.cpp b/ksim/themeprefs.cpp
index dc12f45..b54d761 100644
--- a/ksim/themeprefs.cpp
+++ b/ksim/themeprefs.cpp
@@ -43,11 +43,11 @@
#include <common.h>
#include <themeloader.h>
-class ThemeViewItem : public KListViewItem
+class ThemeViewItem : public TDEListViewItem
{
public:
ThemeViewItem(TQListView *parent, const TQString &text,
- const KURL &url) : KListViewItem(parent, text)
+ const KURL &url) : TDEListViewItem(parent, text)
{
m_url = url;
}
@@ -96,7 +96,7 @@ KSim::ThemePrefs::ThemePrefs(TQWidget *parent, const char *name)
m_authLabel->setText(i18n("None"));
m_themeLayout->addMultiCellWidget(m_authLabel, 3, 3, 1, 4);
- m_listView = new KListView(this);
+ m_listView = new TDEListView(this);
m_listView->addColumn(i18n("Theme"));
m_listView->setFullWidth(true);
connect(m_listView, TQT_SIGNAL(currentChanged(TQListViewItem *)),
@@ -265,8 +265,8 @@ void KSim::ThemePrefs::showFontDialog(int currentItem)
{
if (currentItem == 3) {
TQFont customFont = m_font;
- int result = KFontDialog::getFont(customFont);
- if (result == KFontDialog::Accepted)
+ int result = TDEFontDialog::getFont(customFont);
+ if (result == TDEFontDialog::Accepted)
m_font = customFont;
}
}
diff --git a/ksim/themeprefs.h b/ksim/themeprefs.h
index b03f878..8fca089 100644
--- a/ksim/themeprefs.h
+++ b/ksim/themeprefs.h
@@ -26,7 +26,7 @@
class TQListViewItem;
class TQGridLayout;
class TQLabel;
-class KListView;
+class TDEListView;
class KURLLabel;
class KComboBox;
class KSqueezedTextLabel;
@@ -97,7 +97,7 @@ namespace KSim
void showFontDialog(int);
private:
- KListView *m_listView;
+ TDEListView *m_listView;
KURLLabel *m_urlLabel;
KIntSpinBox *m_altTheme;
KComboBox *m_fontsCombo;
diff --git a/superkaramba/src/karamba.cpp b/superkaramba/src/karamba.cpp
index e32ce00..e4116f1 100644
--- a/superkaramba/src/karamba.cpp
+++ b/superkaramba/src/karamba.cpp
@@ -159,7 +159,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
connect(&taskManager, TQT_SIGNAL(startupRemoved(Startup*)), this,
TQT_SLOT(startupRemoved(Startup*)) );
- themeConfMenu = new KPopupMenu( this);
+ themeConfMenu = new TDEPopupMenu( this);
themeConfMenu -> setCheckable(true);
/* XXX - need to be able to delete all these DesktopChangeSlot objects */
@@ -167,7 +167,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
int mid;
- toDesktopMenu = new KPopupMenu (this);
+ toDesktopMenu = new TDEPopupMenu (this);
toDesktopMenu -> setCheckable(true);
mid = toDesktopMenu -> insertItem (i18n("&All Desktops"),
dslot = new DesktopChangeSlot(TQT_TQOBJECT(this),0),
@@ -186,15 +186,15 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
}
- kpop = new KPopupMenu( this );
+ kpop = new TDEPopupMenu( this );
kpop -> setCheckable(true);
- accColl = new KActionCollection( this );
- menuAccColl = new KActionCollection( this );
+ accColl = new TDEActionCollection( this );
+ menuAccColl = new TDEActionCollection( this );
kpop->insertItem( SmallIconSet("reload"),i18n("Update"), this,
TQT_SLOT(updateSensors()), Key_F5 );
- toggleLocked = new KToggleAction ( i18n("Toggle &Locked Position"),
+ toggleLocked = new TDEToggleAction ( i18n("Toggle &Locked Position"),
SmallIconSet("locked"),
CTRL+Key_L, TQT_TQOBJECT(this),
TQT_SLOT( slotToggleLocked() ),
@@ -204,7 +204,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
toggleLocked->plug(kpop);
- toggleFastTransforms = new KToggleAction(i18n("Use &Fast Image Scaling"),
+ toggleFastTransforms = new TDEToggleAction(i18n("Use &Fast Image Scaling"),
CTRL+Key_F, TQT_TQOBJECT(this),
TQT_SLOT( slotToggleFastTransforms() ),
accColl, "Fast transformations");
@@ -1780,7 +1780,7 @@ void karamba::addMenuConfigOption(TQString key, TQString name)
kpop -> setItemEnabled(THEMECONF, true);
SignalBridge* action = new SignalBridge(TQT_TQOBJECT(this), key, menuAccColl);
- KToggleAction* confItem = new KToggleAction (name, KShortcut::null(),
+ TDEToggleAction* confItem = new TDEToggleAction (name, TDEShortcut::null(),
action, TQT_SLOT(receive()),
menuAccColl, key.ascii());
confItem -> setName(key.ascii());
@@ -1801,7 +1801,7 @@ void karamba::addMenuConfigOption(TQString key, TQString name)
bool karamba::setMenuConfigOption(TQString key, bool value)
{
//tqDebug("karamba::setMenuConfigOption");
- KToggleAction* menuAction = ((KToggleAction*)menuAccColl -> action(key.ascii()));
+ TDEToggleAction* menuAction = ((TDEToggleAction*)menuAccColl -> action(key.ascii()));
if (menuAction == NULL)
{
tqWarning("Menu action %s not found.", key.ascii());
@@ -1817,7 +1817,7 @@ bool karamba::setMenuConfigOption(TQString key, bool value)
bool karamba::readMenuConfigOption(TQString key)
{
//tqDebug("karamba::readMenuConfigOption");
- KToggleAction* menuAction = ((KToggleAction*)menuAccColl -> action(key.ascii()));
+ TDEToggleAction* menuAction = ((TDEToggleAction*)menuAccColl -> action(key.ascii()));
if (menuAction == NULL)
{
tqWarning("Menu action %s not found.", key.ascii());
@@ -1835,17 +1835,17 @@ void karamba::passMenuItemClicked(int id)
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
{
- KPopupMenu* menu = 0;
+ TDEPopupMenu* menu = 0;
for(int i = 0; i < (int)menuList->count(); i++)
{
- KPopupMenu* tmp;
+ TDEPopupMenu* tmp;
if(i==0)
{
- tmp = (KPopupMenu*) menuList->first();
+ tmp = (TDEPopupMenu*) menuList->first();
}
else
{
- tmp = (KPopupMenu*) menuList->next();
+ tmp = (TDEPopupMenu*) menuList->next();
}
if(tmp != 0)
{
@@ -1992,7 +1992,7 @@ void karamba::toggleWidgetUpdate( bool b)
widgetUpdate = b;
}
-SignalBridge::SignalBridge(TQObject* parent, TQString name, KActionCollection* ac)
+SignalBridge::SignalBridge(TQObject* parent, TQString name, TDEActionCollection* ac)
: TQObject(parent, name.ascii()), collection(ac)
{
setName(name.ascii());
@@ -2000,7 +2000,7 @@ SignalBridge::SignalBridge(TQObject* parent, TQString name, KActionCollection* a
void SignalBridge::receive()
{
- emit enabled(name(), ((KToggleAction*)collection -> action(name())) ->
+ emit enabled(name(), ((TDEToggleAction*)collection -> action(name())) ->
isChecked());
}
@@ -2031,7 +2031,7 @@ int DesktopChangeSlot::menuId()
void karamba::showMenuExtension()
{
- kglobal = new KPopupMenu(this);
+ kglobal = new TDEPopupMenu(this);
trayMenuToggleId = kglobal->insertItem(SmallIconSet("superkaramba"),
i18n("Show System Tray Icon"), this,
diff --git a/superkaramba/src/karamba.h b/superkaramba/src/karamba.h
index 682457f..870423a 100644
--- a/superkaramba/src/karamba.h
+++ b/superkaramba/src/karamba.h
@@ -130,8 +130,8 @@ public:
TQString findSensorFromMap(Sensor* sensor);
void deleteMeterFromSensors(Meter* meter);
Sensor* findSensorFromList(Meter* meter);
- KPopupMenu* keditpop;
- KPopupMenu *kpop;
+ TDEPopupMenu* keditpop;
+ TDEPopupMenu *kpop;
TQBitmap* widgetMask;
KarambaRootPixmap *kroot;
TaskManager taskManager;
@@ -225,9 +225,9 @@ private:
// use only the first occurance of KARAMBA in a config file
bool foundKaramba;
- KPopupMenu* themeConfMenu;
- KPopupMenu* toDesktopMenu;
- KPopupMenu* kglobal;
+ TDEPopupMenu* themeConfMenu;
+ TDEPopupMenu* toDesktopMenu;
+ TDEPopupMenu* kglobal;
DCOPClient *client;
TQCString appId;
@@ -237,11 +237,11 @@ private:
TQPainter p;
TQPoint clickPos;
- KActionCollection* accColl;
- KActionCollection* menuAccColl;
- KToggleAction *toggleLocked;
+ TDEActionCollection* accColl;
+ TDEActionCollection* menuAccColl;
+ TDEToggleAction *toggleLocked;
// use highquality scale and rotate algorithms
- KToggleAction *toggleFastTransforms;
+ TDEToggleAction *toggleFastTransforms;
// Python module references
KarambaPython* pythonIface;
@@ -351,7 +351,7 @@ class SignalBridge : public TQObject
public:
- SignalBridge(TQObject* parent, TQString, KActionCollection*);
+ SignalBridge(TQObject* parent, TQString, TDEActionCollection*);
signals:
void enabled(TQString, bool);
@@ -360,7 +360,7 @@ class SignalBridge : public TQObject
void receive();
private:
- KActionCollection* collection;
+ TDEActionCollection* collection;
};
#endif // _KARAMBA_H_
diff --git a/superkaramba/src/karamba_python.cpp b/superkaramba/src/karamba_python.cpp
index 8431cd3..969a278 100644
--- a/superkaramba/src/karamba_python.cpp
+++ b/superkaramba/src/karamba_python.cpp
@@ -520,7 +520,7 @@ bool KarambaPython::menuOptionChanged(karamba* k, TQString key, bool value)
return callObject("menuOptionChanged", pArgs);
}
-bool KarambaPython::menuItemClicked(karamba* k, KPopupMenu* menu, long id)
+bool KarambaPython::menuItemClicked(karamba* k, TDEPopupMenu* menu, long id)
{
PyObject* pArgs = Py_BuildValue((char*)"(lll)", k, menu, id);
return callObject("menuItemClicked", pArgs);
diff --git a/superkaramba/src/karamba_python.h b/superkaramba/src/karamba_python.h
index dbb1620..b3f7a0a 100644
--- a/superkaramba/src/karamba_python.h
+++ b/superkaramba/src/karamba_python.h
@@ -26,7 +26,7 @@
#define KARAMBA_PYTHON_H
class TQString;
-class KPopupMenu;
+class TDEPopupMenu;
class Task;
class Startup;
class karamba;
@@ -67,7 +67,7 @@ public:
bool widgetClicked(karamba* k, int x, int y, int button);
bool keyPressed(karamba* k, const Meter* meter, const TQString& text);
bool widgetMouseMoved(karamba* k, int x, int y, int button);
- bool menuItemClicked(karamba* k, KPopupMenu* menu, long id);
+ bool menuItemClicked(karamba* k, TDEPopupMenu* menu, long id);
bool activeTaskChanged(karamba* k, Task* t);
bool taskAdded(karamba* k, Task* t);
bool taskRemoved(karamba* k, Task* t);
diff --git a/superkaramba/src/karambaapp.cpp b/superkaramba/src/karambaapp.cpp
index 95f810d..b85137c 100644
--- a/superkaramba/src/karambaapp.cpp
+++ b/superkaramba/src/karambaapp.cpp
@@ -129,7 +129,7 @@ void KarambaApplication::checkSuperKarambaDir()
void KarambaApplication::setUpSysTray(TDEAboutData* about)
{
//kdDebug() << k_funcinfo << endl;
- KAction* action;
+ TDEAction* action;
//Create theme list window.
//This will function as the main window for the tray icon
@@ -138,7 +138,7 @@ void KarambaApplication::setUpSysTray(TDEAboutData* about)
//Set up systray icon
sysTrayIcon = new KSystemTray(themeListWindow);
- KPopupMenu *menu = sysTrayIcon->contextMenu();
+ TDEPopupMenu *menu = sysTrayIcon->contextMenu();
menu->insertItem(SmallIconSet("superkaramba"),
i18n("Hide System Tray Icon"), this,
TQT_SLOT(globalHideSysTray()));
diff --git a/superkaramba/src/menu_python.cpp b/superkaramba/src/menu_python.cpp
index e32a2bb..fb103ac 100644
--- a/superkaramba/src/menu_python.cpp
+++ b/superkaramba/src/menu_python.cpp
@@ -37,7 +37,7 @@ long createMenu(long widget)
{
karamba* currTheme = (karamba*)widget;
- KPopupMenu* tmp = new KPopupMenu(currTheme);
+ TDEPopupMenu* tmp = new TDEPopupMenu(currTheme);
currTheme->menuList->append( TQT_TQOBJECT(tmp) );
currTheme->connect(tmp, TQT_SIGNAL(activated(int)), currTheme,
@@ -54,20 +54,20 @@ PyObject* py_create_menu(PyObject *, PyObject *args)
return Py_BuildValue((char*)"l", createMenu(widget));
}
-bool menuExists(karamba* currTheme, KPopupMenu* menu)
+bool menuExists(karamba* currTheme, TDEPopupMenu* menu)
{
bool foundMenu = false;
- KPopupMenu* tmp;
+ TDEPopupMenu* tmp;
for(int i = 0; i < (int)currTheme->menuList->count(); i++)
{
if(i==0)
{
- tmp = (KPopupMenu*) currTheme->menuList->first();
+ tmp = (TDEPopupMenu*) currTheme->menuList->first();
}
else
{
- tmp = (KPopupMenu*) currTheme->menuList->next();
+ tmp = (TDEPopupMenu*) currTheme->menuList->next();
}
if(tmp != 0)
{
@@ -84,7 +84,7 @@ bool menuExists(karamba* currTheme, KPopupMenu* menu)
long deleteMenu(long widget, long menu)
{
karamba* currTheme = (karamba*)widget;
- KPopupMenu* tmp = (KPopupMenu*)menu;
+ TDEPopupMenu* tmp = (TDEPopupMenu*)menu;
currTheme->menuList->removeRef(TQT_TQOBJECT(tmp));
@@ -102,7 +102,7 @@ PyObject* py_delete_menu(PyObject *, PyObject *args)
long addMenuItem(long widget, long menu, TQString text, TQString icon)
{
karamba* currTheme = (karamba*)widget;
- KPopupMenu* tmp = (KPopupMenu*)menu;
+ TDEPopupMenu* tmp = (TDEPopupMenu*)menu;
long id = 0;
if(menuExists(currTheme, tmp))
@@ -129,7 +129,7 @@ PyObject* py_add_menu_item(PyObject *, PyObject *args)
long addMenuSeparator(long widget, long menu)
{
karamba* currTheme = (karamba*)widget;
- KPopupMenu* tmp = (KPopupMenu*)menu;
+ TDEPopupMenu* tmp = (TDEPopupMenu*)menu;
long id = 0;
if(menuExists(currTheme, tmp))
@@ -153,7 +153,7 @@ PyObject* py_add_menu_separator(PyObject *, PyObject *args)
long removeMenuItem(long widget, long menu, long id)
{
karamba* currTheme = (karamba*)widget;
- KPopupMenu* tmp = (KPopupMenu*)menu;
+ TDEPopupMenu* tmp = (TDEPopupMenu*)menu;
if(menuExists(currTheme,tmp))
{
@@ -177,7 +177,7 @@ PyObject* py_remove_menu_item(PyObject *, PyObject *args)
long popupMenu(long widget, long menu, long x, long y)
{
karamba* currTheme = (karamba*)widget;
- KPopupMenu* tmp = (KPopupMenu*)menu;
+ TDEPopupMenu* tmp = (TDEPopupMenu*)menu;
if(menuExists(currTheme,tmp))
{
diff --git a/tdewallet/allyourbase.cpp b/tdewallet/allyourbase.cpp
index 221c9b4..1939f5a 100644
--- a/tdewallet/allyourbase.cpp
+++ b/tdewallet/allyourbase.cpp
@@ -39,7 +39,7 @@
* KWalletFolderItem - ListView items to represent tdewallet folders
*/
KWalletFolderItem::KWalletFolderItem(KWallet::Wallet *w, TQListView* parent, const TQString &name, int entries)
-: KListViewItem(parent),_wallet(w),_name(name),_entries(entries) {
+: TDEListViewItem(parent),_wallet(w),_name(name),_entries(entries) {
setText(0, TQString("%1 (%2)").arg(_name).arg(_entries));
setRenameEnabled(0, false);
setDragEnabled(true);
@@ -122,7 +122,7 @@ KWalletFolderItem::~KWalletFolderItem() {
* passwords, maps, ...
*/
KWalletContainerItem::KWalletContainerItem(TQListViewItem* parent, const TQString &name, KWallet::Wallet::EntryType type)
-: KListViewItem(parent, name), _type(type) {
+: TDEListViewItem(parent, name), _type(type) {
setRenameEnabled(0, false);
setDragEnabled(true);
}
@@ -155,7 +155,7 @@ TQListViewItem *KWalletContainerItem::getItem(const TQString& key) {
* KWalletEntryItem - ListView items to represent tdewallet entries
*/
KWalletEntryItem::KWalletEntryItem(KWallet::Wallet *w, TQListViewItem* parent, const TQString& ename)
-: KListViewItem(parent, ename), _wallet(w), _oldName(ename) {
+: TDEListViewItem(parent, ename), _wallet(w), _oldName(ename) {
setRenameEnabled(0, true);
setDragEnabled(true);
}
@@ -349,7 +349,7 @@ class KWalletFolderDrag : public TQStoredDrag {
* KWalletEntryList - A listview to store wallet entries
*/
KWalletEntryList::KWalletEntryList(TQWidget *parent, const char *name)
-: KListView(parent, name) {
+: TDEListView(parent, name) {
addColumn(i18n("Folders"));
setRootIsDecorated(true);
setDefaultRenameAction(Reject);
diff --git a/tdewallet/allyourbase.h b/tdewallet/allyourbase.h
index fe9bd05..34c37d3 100644
--- a/tdewallet/allyourbase.h
+++ b/tdewallet/allyourbase.h
@@ -37,7 +37,7 @@ enum KWalletListItemClasses {
KWalletUnknownClass = 2000
};
-class KWalletEntryItem : public KListViewItem {
+class KWalletEntryItem : public TDEListViewItem {
public:
KWalletEntryItem(KWallet::Wallet *w, TQListViewItem* parent, const TQString& ename);
virtual ~KWalletEntryItem();
@@ -55,7 +55,7 @@ class KWalletEntryItem : public KListViewItem {
TQString _oldName;
};
-class KWalletContainerItem : public KListViewItem {
+class KWalletContainerItem : public TDEListViewItem {
public:
KWalletContainerItem(TQListViewItem* parent, const TQString& name,
KWallet::Wallet::EntryType type);
@@ -71,7 +71,7 @@ class KWalletContainerItem : public KListViewItem {
KWallet::Wallet::EntryType _type;
};
-class KWalletFolderItem : public KListViewItem {
+class KWalletFolderItem : public TDEListViewItem {
public:
KWalletFolderItem(KWallet::Wallet *w, TQListView* parent,
const TQString& name, int entries);
@@ -95,7 +95,7 @@ class KWalletFolderItem : public KListViewItem {
int _entries;
};
-class KWalletEntryList : public KListView {
+class KWalletEntryList : public TDEListView {
Q_OBJECT
public:
diff --git a/tdewallet/konfigurator/konfigurator.cpp b/tdewallet/konfigurator/konfigurator.cpp
index 04639fa..406a58e 100644
--- a/tdewallet/konfigurator/konfigurator.cpp
+++ b/tdewallet/konfigurator/konfigurator.cpp
@@ -303,7 +303,7 @@ TQString KWalletConfig::quickHelp() const {
void KWalletConfig::contextMenuRequested(TQListViewItem *item, const TQPoint& pos, int col) {
Q_UNUSED(col)
if (item && item->parent()) {
- KPopupMenu *m = new KPopupMenu(this);
+ TDEPopupMenu *m = new TDEPopupMenu(this);
m->insertTitle(item->parent()->text(0));
m->insertItem(i18n("&Delete"), this, TQT_SLOT(deleteEntry()), Key_Delete);
m->popup(pos);
diff --git a/tdewallet/kwmapeditor.cpp b/tdewallet/kwmapeditor.cpp
index 2a9e332..3d85950 100644
--- a/tdewallet/kwmapeditor.cpp
+++ b/tdewallet/kwmapeditor.cpp
@@ -33,7 +33,7 @@
KWMapEditor::KWMapEditor(TQMap<TQString,TQString>& map, TQWidget *parent, const char *name)
: TQTable(0, 3, parent, name), _map(map) {
- _ac = new KActionCollection(this);
+ _ac = new TDEActionCollection(this);
_copyAct = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(copy()), _ac);
connect(this, TQT_SIGNAL(valueChanged(int,int)), this, TQT_SIGNAL(dirty()));
connect(this, TQT_SIGNAL(contextMenuRequested(int,int,const TQPoint&)),
@@ -117,7 +117,7 @@ void KWMapEditor::emitDirty() {
void KWMapEditor::contextMenu(int row, int col, const TQPoint& pos) {
_contextRow = row;
_contextCol = col;
- KPopupMenu *m = new KPopupMenu(this);
+ TDEPopupMenu *m = new TDEPopupMenu(this);
m->insertItem(i18n("&New Entry"), this, TQT_SLOT(addEntry()));
_copyAct->plug(m);
m->popup(pos);
diff --git a/tdewallet/kwmapeditor.h b/tdewallet/kwmapeditor.h
index 0fade7b..cad9c6a 100644
--- a/tdewallet/kwmapeditor.h
+++ b/tdewallet/kwmapeditor.h
@@ -24,8 +24,8 @@
#include <tqstring.h>
#include <tqtable.h>
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
class KWMapEditor : public TQTable {
Q_OBJECT
@@ -55,8 +55,8 @@ class KWMapEditor : public TQTable {
private:
TQMap<TQString,TQString>& _map;
int _contextRow, _contextCol;
- KActionCollection *_ac;
- KAction *_copyAct;
+ TDEActionCollection *_ac;
+ TDEAction *_copyAct;
};
#endif
diff --git a/tdewallet/tdewalleteditor.cpp b/tdewallet/tdewalleteditor.cpp
index ee07ccf..05b6e83 100644
--- a/tdewallet/tdewalleteditor.cpp
+++ b/tdewallet/tdewalleteditor.cpp
@@ -63,7 +63,7 @@
#include <stdlib.h>
KWalletEditor::KWalletEditor(const TQString& wallet, bool isPath, TQWidget *parent, const char *name)
-: KMainWindow(parent, name), _walletName(wallet), _nonLocal(isPath) {
+: TDEMainWindow(parent, name), _walletName(wallet), _nonLocal(isPath) {
_newWallet = false;
_ww = new WalletWidget(this, "Wallet Widget");
_copyPassAction = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(copyPassword()), actionCollection());
@@ -72,7 +72,7 @@ KWalletEditor::KWalletEditor(const TQString& wallet, bool isPath, TQWidget *pare
box->setSpacing( KDialog::spacingHint() );
box->setMargin( KDialog::marginHint() );
_entryList = new KWalletEntryList(_ww->_entryListFrame, "Wallet Entry List");
- box->addWidget(new KListViewSearchLineWidget(_entryList, _ww->_entryListFrame));
+ box->addWidget(new TDEListViewSearchLineWidget(_entryList, _ww->_entryListFrame));
box->addWidget(_entryList);
_ww->_entryStack->setEnabled(true);
@@ -158,13 +158,13 @@ void KWalletEditor::layout() {
}
void KWalletEditor::createActions() {
- _newFolderAction = new KAction(i18n("&New Folder..."), "folder_new",
+ _newFolderAction = new TDEAction(i18n("&New Folder..."), "folder_new",
0, TQT_TQOBJECT(this), TQT_SLOT(createFolder()), actionCollection(),
"create_folder");
connect(this, TQT_SIGNAL(enableFolderActions(bool)),
_newFolderAction, TQT_SLOT(setEnabled(bool)));
- _deleteFolderAction = new KAction(i18n("&Delete Folder"), 0, 0,
+ _deleteFolderAction = new TDEAction(i18n("&Delete Folder"), 0, 0,
TQT_TQOBJECT(this), TQT_SLOT(deleteFolder()), actionCollection(),
"delete_folder");
connect(this, TQT_SIGNAL(enableContextFolderActions(bool)),
@@ -172,25 +172,25 @@ void KWalletEditor::createActions() {
connect(this, TQT_SIGNAL(enableFolderActions(bool)),
_deleteFolderAction, TQT_SLOT(setEnabled(bool)));
- _passwordAction = new KAction(i18n("Change &Password..."), 0, 0, TQT_TQOBJECT(this),
+ _passwordAction = new TDEAction(i18n("Change &Password..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(changePassword()), actionCollection(),
"change_password");
connect(this, TQT_SIGNAL(enableWalletActions(bool)),
_passwordAction, TQT_SLOT(setEnabled(bool)));
- _mergeAction = new KAction(i18n("&Merge Wallet..."), 0, 0, TQT_TQOBJECT(this),
+ _mergeAction = new TDEAction(i18n("&Merge Wallet..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(importWallet()), actionCollection(),
"merge");
connect(this, TQT_SIGNAL(enableWalletActions(bool)),
_mergeAction, TQT_SLOT(setEnabled(bool)));
- _importAction = new KAction(i18n("&Import XML..."), 0, 0, TQT_TQOBJECT(this),
+ _importAction = new TDEAction(i18n("&Import XML..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(importXML()), actionCollection(),
"import");
connect(this, TQT_SIGNAL(enableWalletActions(bool)),
_importAction, TQT_SLOT(setEnabled(bool)));
- _exportAction = new KAction(i18n("&Export..."), 0, 0, TQT_TQOBJECT(this),
+ _exportAction = new TDEAction(i18n("&Export..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(exportXML()), actionCollection(),
"export");
connect(this, TQT_SIGNAL(enableWalletActions(bool)),
@@ -577,7 +577,7 @@ void KWalletEditor::listContextMenuRequested(TQListViewItem *item, const TQPoint
menuClass = static_cast<KWalletListItemClasses>(item->rtti());
}
- KPopupMenu *m = new KPopupMenu(this);
+ TDEPopupMenu *m = new TDEPopupMenu(this);
if (item) {
TQString title = item->text(0);
// I think 200 pixels is wide enough for a title
diff --git a/tdewallet/tdewalleteditor.h b/tdewallet/tdewalleteditor.h
index fa7ea25..6016c95 100644
--- a/tdewallet/tdewalleteditor.h
+++ b/tdewallet/tdewalleteditor.h
@@ -26,7 +26,7 @@
#include <kmainwindow.h>
#include <tqstringlist.h>
-class KAction;
+class TDEAction;
class TQIconViewItem;
class TQListViewItem;
class TQCheckBox;
@@ -34,7 +34,7 @@ class KWalletFolderIconView;
class KWalletEntryList;
class KWMapEditor;
-class KWalletEditor : public KMainWindow {
+class KWalletEditor : public TDEMainWindow {
Q_OBJECT
@@ -84,7 +84,7 @@ class KWalletEditor : public KMainWindow {
void enableWalletActions(bool enable);
void enableFolderActions(bool enable);
void enableContextFolderActions(bool enable);
- void editorClosed(KMainWindow*);
+ void editorClosed(TDEMainWindow*);
public:
TQString _walletName;
@@ -96,9 +96,9 @@ class KWalletEditor : public KMainWindow {
WalletWidget *_ww;
KWalletEntryList *_entryList;
bool _walletIsOpen;
- KAction *_newFolderAction, *_deleteFolderAction;
- KAction *_passwordAction, *_exportAction, *_saveAsAction, *_mergeAction, *_importAction;
- KAction *_copyPassAction;
+ TDEAction *_newFolderAction, *_deleteFolderAction;
+ TDEAction *_passwordAction, *_exportAction, *_saveAsAction, *_mergeAction, *_importAction;
+ TDEAction *_copyPassAction;
TQLabel*_details;
TQString _currentFolder;
TQMap<TQString,TQString> _currentMap; // save memory by storing
diff --git a/tdewallet/tdewalletmanager.cpp b/tdewallet/tdewalletmanager.cpp
index 9b1a7df..25978f5 100644
--- a/tdewallet/tdewalletmanager.cpp
+++ b/tdewallet/tdewalletmanager.cpp
@@ -47,7 +47,7 @@
#include <tqtooltip.h>
KWalletManager::KWalletManager(TQWidget *parent, const char *name, WFlags f)
-: KMainWindow(parent, name, f), DCOPObject("KWalletManager") {
+: TDEMainWindow(parent, name, f), DCOPObject("KWalletManager") {
TDEGlobal::dirs()->addResourceType("tdewallet", "share/apps/tdewallet");
_tdewalletdLaunch = false;
TQAccel *accel = new TQAccel(this, "tdewalletmanager");
@@ -112,16 +112,16 @@ KWalletManager::KWalletManager(TQWidget *parent, const char *name, WFlags f)
// wallet closes before we are done opening. We will then stay
// open. Must check that a wallet is still open here.
- new KAction(i18n("&New Wallet..."), "tdewalletmanager", 0, TQT_TQOBJECT(this),
+ new TDEAction(i18n("&New Wallet..."), "tdewalletmanager", 0, TQT_TQOBJECT(this),
TQT_SLOT(createWallet()), actionCollection(),
"wallet_create");
- KAction *act = new KAction(i18n("Configure &Wallet..."), "configure",
+ TDEAction *act = new TDEAction(i18n("Configure &Wallet..."), "configure",
0, TQT_TQOBJECT(this), TQT_SLOT(setupWallet()), actionCollection(),
"wallet_settings");
if (_tray) {
act->plug(_tray->contextMenu());
}
- act = new KAction(i18n("Close &All Wallets"), 0, 0, TQT_TQOBJECT(this),
+ act = new TDEAction(i18n("Close &All Wallets"), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(closeAllWallets()), actionCollection(),
"close_all_wallets");
if (_tray) {
@@ -256,8 +256,8 @@ void KWalletManager::changeWalletPassword(const TQString& walletName) {
void KWalletManager::openWalletFile(const TQString& path) {
KWalletEditor *we = new KWalletEditor(path, true, this, "Wallet Editor");
if (we->isOpen()) {
- connect(we, TQT_SIGNAL(editorClosed(KMainWindow*)),
- this, TQT_SLOT(editorClosed(KMainWindow*)));
+ connect(we, TQT_SIGNAL(editorClosed(TDEMainWindow*)),
+ this, TQT_SLOT(editorClosed(TDEMainWindow*)));
we->show();
} else {
KMessageBox::sorry(this, i18n("Error opening wallet %1.").arg(path));
@@ -286,7 +286,7 @@ void KWalletManager::openWallet(const TQString& walletName) {
void KWalletManager::openWallet(const TQString& walletName, bool newWallet) {
// Don't allow a wallet to open in two windows
- for (KMainWindow *w = _windows.first(); w; w = _windows.next()) {
+ for (TDEMainWindow *w = _windows.first(); w; w = _windows.next()) {
KWalletEditor *e = static_cast<KWalletEditor*>(w);
if (e->isOpen() && e->_walletName == walletName) {
w->raise();
@@ -297,8 +297,8 @@ void KWalletManager::openWallet(const TQString& walletName, bool newWallet) {
KWalletEditor *we = new KWalletEditor(walletName, false, this, "Wallet Editor");
we->setNewWallet(newWallet);
if (we->isOpen()) {
- connect(we, TQT_SIGNAL(editorClosed(KMainWindow*)),
- this, TQT_SLOT(editorClosed(KMainWindow*)));
+ connect(we, TQT_SIGNAL(editorClosed(TDEMainWindow*)),
+ this, TQT_SLOT(editorClosed(TDEMainWindow*)));
we->show();
_windows.append(we);
} else if (!newWallet) {
@@ -337,7 +337,7 @@ void KWalletManager::possiblyQuit() {
}
-void KWalletManager::editorClosed(KMainWindow* e) {
+void KWalletManager::editorClosed(TDEMainWindow* e) {
_windows.remove(e);
}
diff --git a/tdewallet/tdewalletmanager.h b/tdewallet/tdewalletmanager.h
index 23103d5..0a12f99 100644
--- a/tdewallet/tdewalletmanager.h
+++ b/tdewallet/tdewalletmanager.h
@@ -30,7 +30,7 @@ class TQIconViewItem;
class DCOPRef;
-class KWalletManager : public KMainWindow, public DCOPObject {
+class KWalletManager : public TDEMainWindow, public DCOPObject {
Q_OBJECT
//
K_DCOP
@@ -66,7 +66,7 @@ class KWalletManager : public KMainWindow, public DCOPObject {
private slots:
void shuttingDown();
void possiblyQuit();
- void editorClosed(KMainWindow* e);
+ void editorClosed(TDEMainWindow* e);
void possiblyRescan(const TQCString& app);
void setupWallet();
void openWallet();
@@ -78,7 +78,7 @@ class KWalletManager : public KMainWindow, public DCOPObject {
bool _shuttingDown;
KWalletIconView *_iconView;
DCOPRef *_dcopRef;
- TQPtrList<KMainWindow> _windows;
+ TQPtrList<TDEMainWindow> _windows;
bool _tdewalletdLaunch;
};
diff --git a/tdewallet/tdewalletpopup.cpp b/tdewallet/tdewalletpopup.cpp
index 05f142d..4a2037a 100644
--- a/tdewallet/tdewalletpopup.cpp
+++ b/tdewallet/tdewalletpopup.cpp
@@ -29,26 +29,26 @@
#include <kstdguiitem.h>
KWalletPopup::KWalletPopup(const TQString& wallet, TQWidget *parent, const char *name)
-: KPopupMenu(parent, name), _walletName(wallet) {
+: TDEPopupMenu(parent, name), _walletName(wallet) {
insertTitle(wallet);
- KActionCollection *ac = new KActionCollection(this, "tdewallet context actions");
- KAction *act;
+ TDEActionCollection *ac = new TDEActionCollection(this, "tdewallet context actions");
+ TDEAction *act;
- act = new KAction(i18n("&New Wallet..."), 0, 0, TQT_TQOBJECT(this),
+ act = new TDEAction(i18n("&New Wallet..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(createWallet()), ac, "wallet_create");
act->plug(this);
- act = new KAction(i18n("&Open..."), 0, Key_Return, TQT_TQOBJECT(this),
+ act = new TDEAction(i18n("&Open..."), 0, Key_Return, TQT_TQOBJECT(this),
TQT_SLOT(openWallet()), ac, "wallet_open");
act->plug(this);
- act = new KAction(i18n("Change &Password..."), 0, 0, TQT_TQOBJECT(this),
+ act = new TDEAction(i18n("Change &Password..."), 0, 0, TQT_TQOBJECT(this),
TQT_SLOT(changeWalletPassword()), ac, "wallet_password");
act->plug(this);
TQStringList ul = KWallet::Wallet::users(wallet);
if (!ul.isEmpty()) {
- KPopupMenu *pm = new KPopupMenu(this, "Disconnect Apps");
+ TDEPopupMenu *pm = new TDEPopupMenu(this, "Disconnect Apps");
int id = 7000;
for (TQStringList::Iterator it = ul.begin(); it != ul.end(); ++it) {
_appMap[id] = *it;
@@ -67,7 +67,7 @@ KWalletPopup::KWalletPopup(const TQString& wallet, TQWidget *parent, const char
act->setEnabled(KWallet::Wallet::isOpen(wallet));
act->plug(this);
- act = new KAction(i18n("&Delete"), 0, Key_Delete, TQT_TQOBJECT(this),
+ act = new TDEAction(i18n("&Delete"), 0, Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT(deleteWallet()), ac, "wallet_delete");
act->plug(this);
}
diff --git a/tdewallet/tdewalletpopup.h b/tdewallet/tdewalletpopup.h
index 8ef78b0..c0b5616 100644
--- a/tdewallet/tdewalletpopup.h
+++ b/tdewallet/tdewalletpopup.h
@@ -24,7 +24,7 @@
#include <tqmap.h>
#include <tqstring.h>
-class KWalletPopup : public KPopupMenu {
+class KWalletPopup : public TDEPopupMenu {
Q_OBJECT