summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--knights/accel.cpp2
-rw-r--r--knights/accel.h2
-rw-r--r--knights/challenge_graph.cpp2
-rw-r--r--knights/challenge_graph.h4
-rw-r--r--knights/knights.cpp14
-rw-r--r--knights/knights.h16
-rw-r--r--knights/knightstextview.cpp2
-rw-r--r--knights/knightstextview.h4
-rw-r--r--knights/list_pgn.cpp6
-rw-r--r--knights/list_pgn.h6
-rw-r--r--knights/setpagedisplay.cpp24
-rw-r--r--knights/setpageengines.cpp2
-rw-r--r--knights/setpageengines.h2
-rw-r--r--knights/setpageservers.cpp2
-rw-r--r--knights/setpageservers.h2
-rw-r--r--knights/tab_seeklist.cpp6
-rw-r--r--knights/tab_seeklist.h4
-rw-r--r--knights/thinbuttons.cpp2
-rw-r--r--knights/thinbuttons.h2
19 files changed, 52 insertions, 52 deletions
diff --git a/knights/accel.cpp b/knights/accel.cpp
index bbda5d4..99aca35 100644
--- a/knights/accel.cpp
+++ b/knights/accel.cpp
@@ -18,7 +18,7 @@
#include "accel.moc"
#include <klocale.h>
-Accel::Accel( TQWidget *parent, TQObject *target ) : KAccel( parent )
+Accel::Accel( TQWidget *parent, TQObject *target ) : TDEAccel( parent )
{
insertItem( i18n("Previous Move"), "Previous Move", Key_Up, TRUE );
insertItem( i18n("Next Move"), "Next Move", Key_Down, TRUE );
diff --git a/knights/accel.h b/knights/accel.h
index 2a6d924..9ba61fa 100644
--- a/knights/accel.h
+++ b/knights/accel.h
@@ -24,7 +24,7 @@
*@author Troy Corbin Jr.
*/
-class Accel : public KAccel
+class Accel : public TDEAccel
{
Q_OBJECT
diff --git a/knights/challenge_graph.cpp b/knights/challenge_graph.cpp
index b248c40..b3b92ca 100644
--- a/knights/challenge_graph.cpp
+++ b/knights/challenge_graph.cpp
@@ -70,7 +70,7 @@ Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *
myStatusBar->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
clear();
- menuSeek = new KPopupMenu( this );
+ menuSeek = new TDEPopupMenu( this );
menuSeek->setCheckable( TRUE );
menuSeek->insertItem( i18n("Seek Matches"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_SEEK );
menuSeek->insertSeparator();
diff --git a/knights/challenge_graph.h b/knights/challenge_graph.h
index f499dac..6fd92ff 100644
--- a/knights/challenge_graph.h
+++ b/knights/challenge_graph.h
@@ -26,7 +26,7 @@
#include "resource.h"
#include "challenge_game.h"
-class KPopupMenu;
+class TDEPopupMenu;
class TQCanvas;
class TQLabel;
class Challenge_Graph_View;
@@ -74,7 +74,7 @@ class Challenge_Graph : public TQVBox
TQLabel *myStatusBar;
TQPixmap background;
- KPopupMenu *menuSeek;
+ TDEPopupMenu *menuSeek;
int selectedMatchID;
TQString selectedPlayerName;
/*
diff --git a/knights/knights.cpp b/knights/knights.cpp
index bf83dff..a8ae6ef 100644
--- a/knights/knights.cpp
+++ b/knights/knights.cpp
@@ -40,7 +40,7 @@
#include <tqframe.h>
#include <tqstyle.h>
-Knights::Knights(TDECmdLineArgs *Args, TQWidget *parent, const char *name) : KMainWindow(parent, name)
+Knights::Knights(TDECmdLineArgs *Args, TQWidget *parent, const char *name) : TDEMainWindow(parent, name)
{
InitAll = TRUE;
ResizeFlag = TRUE;
@@ -71,11 +71,11 @@ void Knights::BirthAll(void)
topMenu = menuBar();
myAccel = new Accel( this, Resource->myAccel );
help = helpMenu();
- fileMenu = new KPopupMenu( this , "fileMenu");
- settingsMenu = new KPopupMenu( this, "settingsMenu");
- matchMenu = new KPopupMenu( this, "matchMenu");
- drawMenu = new KPopupMenu( this, "drawMenu");
- tutorialMenu = new KPopupMenu( this, "tutorialMenu");
+ fileMenu = new TDEPopupMenu( this , "fileMenu");
+ settingsMenu = new TDEPopupMenu( this, "settingsMenu");
+ matchMenu = new TDEPopupMenu( this, "matchMenu");
+ drawMenu = new TDEPopupMenu( this, "drawMenu");
+ tutorialMenu = new TDEPopupMenu( this, "tutorialMenu");
MainFrame = new TQFrame( this, "MainFrame" );
Core = new core( MainFrame, "Core", Resource );
Message = new TQLabel( MainFrame, "Message");
@@ -428,7 +428,7 @@ bool Knights::event( TQEvent *e )
netConnect();
return TRUE;
}
- return KMainWindow::event( e );
+ return TDEMainWindow::event( e );
}
///////////////////////////////////////
//
diff --git a/knights/knights.h b/knights/knights.h
index 50e5719..811269b 100644
--- a/knights/knights.h
+++ b/knights/knights.h
@@ -40,7 +40,7 @@
#include "accel.h"
class KMenuBar;
-class KPopupMenu;
+class TDEPopupMenu;
class KComboBox;
class TQLabel;
class TQFrame;
@@ -54,7 +54,7 @@ class splash;
It is responsable for creating the menu bar and it's contents,
as well as creating an instance of the game itself ( class Grid )
**/
-class Knights : public KMainWindow
+class Knights : public TDEMainWindow
{
Q_OBJECT
@@ -119,12 +119,12 @@ class Knights : public KMainWindow
private:
TDECmdLineArgs *args;
KMenuBar *topMenu;
- KPopupMenu *help;
- KPopupMenu *fileMenu;
- KPopupMenu *settingsMenu;
- KPopupMenu *matchMenu;
- KPopupMenu *drawMenu;
- KPopupMenu *tutorialMenu;
+ TDEPopupMenu *help;
+ TDEPopupMenu *fileMenu;
+ TDEPopupMenu *settingsMenu;
+ TDEPopupMenu *matchMenu;
+ TDEPopupMenu *drawMenu;
+ TDEPopupMenu *tutorialMenu;
KComboBox *notationBar;
TQFrame *MainFrame;
TQLabel *whiteTimeLabel;
diff --git a/knights/knightstextview.cpp b/knights/knightstextview.cpp
index c6b9669..de8e506 100644
--- a/knights/knightstextview.cpp
+++ b/knights/knightstextview.cpp
@@ -36,7 +36,7 @@ KnightsTextView::KnightsTextView(TQWidget *parent, resource *Rsrc ) : TQTextBrow
myResource = Rsrc;
setReadOnly( TRUE );
setTextFormat( TQt::RichText );
- menuView = new KPopupMenu( this );
+ menuView = new TDEPopupMenu( this );
/*
Configure functions in the View right click menu
*/
diff --git a/knights/knightstextview.h b/knights/knightstextview.h
index 49e3838..98fb440 100644
--- a/knights/knightstextview.h
+++ b/knights/knightstextview.h
@@ -25,7 +25,7 @@
*@author Troy Corbin Jr./Alexander Wels
*/
-class KPopupMenu;
+class TDEPopupMenu;
class resource;
class KnightsTextView : public TQTextBrowser
@@ -49,7 +49,7 @@ class KnightsTextView : public TQTextBrowser
protected:
void viewportMousePressEvent( TQMouseEvent *e );
resource *myResource;
- KPopupMenu *menuView;
+ TDEPopupMenu *menuView;
};
#endif
diff --git a/knights/list_pgn.cpp b/knights/list_pgn.cpp
index 4534089..6e255ea 100644
--- a/knights/list_pgn.cpp
+++ b/knights/list_pgn.cpp
@@ -25,7 +25,7 @@
list_pgn::list_pgn(TQWidget *parent, const char *name) : TQVBox(parent,name)
{
- listView = new KListView( this, "listView" );
+ listView = new TDEListView( this, "listView" );
listView->addColumn( i18n( "Result" ) );
listView->addColumn( i18n( "White" ) );
listView->addColumn( i18n( "Black" ) );
@@ -45,7 +45,7 @@ list_pgn::list_pgn(TQWidget *parent, const char *name) : TQVBox(parent,name)
a 12 second load time and a 40 second load time. dummyView is
just a placeholder for listView while scanning.
*/
- dummyView = new KListView( this, "dummyView" );
+ dummyView = new TDEListView( this, "dummyView" );
dummyView->addColumn( i18n( "Result" ) );
dummyView->addColumn( i18n( "White" ) );
dummyView->addColumn( i18n( "Black" ) );
@@ -132,7 +132,7 @@ void list_pgn::timerEvent( TQTimerEvent* )
}
else
{
- (void) new KListViewItem( listView,
+ (void) new TDEListViewItem( listView,
tmpPGN.TAG_Result,
tmpPGN.TAG_White,
tmpPGN.TAG_Black,
diff --git a/knights/list_pgn.h b/knights/list_pgn.h
index dc04e82..a715e76 100644
--- a/knights/list_pgn.h
+++ b/knights/list_pgn.h
@@ -29,7 +29,7 @@
class match_param;
class KStatusBar;
class KProgress;
-class KListView;
+class TDEListView;
class TQHBox;
class list_pgn : public TQVBox
@@ -57,8 +57,8 @@ class list_pgn : public TQVBox
private:
TQString myURL;
TQHBox *statusBox;
- KListView *listView;
- KListView *dummyView;
+ TDEListView *listView;
+ TDEListView *dummyView;
KStatusBar *status;
KProgress *progress;
pgn tmpPGN;
diff --git a/knights/setpagedisplay.cpp b/knights/setpagedisplay.cpp
index a2ea5a7..abd3901 100644
--- a/knights/setpagedisplay.cpp
+++ b/knights/setpagedisplay.cpp
@@ -263,48 +263,48 @@ void setPageDisplay::slot_setDefault(void)
///////////////////////////////////////
void setPageDisplay::slot_Font_Standard(void)
{
- int value = KFontDialog::getFont( Resource->FONT_Standard );
- if( value != KFontDialog::Accepted ) return;
+ int value = TDEFontDialog::getFont( Resource->FONT_Standard );
+ if( value != TDEFontDialog::Accepted ) return;
resetSampleConsole();
rebuildConsole = TRUE;
emit enableApply();
}
void setPageDisplay::slot_Font_PrivateTell(void)
{
- int value = KFontDialog::getFont( Resource->FONT_PrivateTell );
- if( value != KFontDialog::Accepted ) return;
+ int value = TDEFontDialog::getFont( Resource->FONT_PrivateTell );
+ if( value != TDEFontDialog::Accepted ) return;
resetSampleConsole();
rebuildConsole = TRUE;
emit enableApply();
}
void setPageDisplay::slot_Font_ChannelTell(void)
{
- int value = KFontDialog::getFont( Resource->FONT_ChannelTell );
- if( value != KFontDialog::Accepted ) return;
+ int value = TDEFontDialog::getFont( Resource->FONT_ChannelTell );
+ if( value != TDEFontDialog::Accepted ) return;
resetSampleConsole();
rebuildConsole = TRUE;
emit enableApply();
}
void setPageDisplay::slot_Font_Shout(void)
{
- int value = KFontDialog::getFont( Resource->FONT_Shout );
- if( value != KFontDialog::Accepted ) return;
+ int value = TDEFontDialog::getFont( Resource->FONT_Shout );
+ if( value != TDEFontDialog::Accepted ) return;
resetSampleConsole();
rebuildConsole = TRUE;
emit enableApply();
}
void setPageDisplay::slot_Font_Whisper(void)
{
- int value = KFontDialog::getFont( Resource->FONT_Whisper );
- if( value != KFontDialog::Accepted ) return;
+ int value = TDEFontDialog::getFont( Resource->FONT_Whisper );
+ if( value != TDEFontDialog::Accepted ) return;
resetSampleConsole();
rebuildConsole = TRUE;
emit enableApply();
}
void setPageDisplay::slot_Font_Notification(void)
{
- int value = KFontDialog::getFont( Resource->FONT_Notification );
- if( value != KFontDialog::Accepted ) return;
+ int value = TDEFontDialog::getFont( Resource->FONT_Notification );
+ if( value != TDEFontDialog::Accepted ) return;
resetSampleConsole();
rebuildConsole = TRUE;
emit enableApply();
diff --git a/knights/setpageengines.cpp b/knights/setpageengines.cpp
index b3fe11b..c652819 100644
--- a/knights/setpageengines.cpp
+++ b/knights/setpageengines.cpp
@@ -58,7 +58,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
parent );
addWidget( GROUP_Engines );
- Engines_ListView = new KListView( GROUP_Engines );
+ Engines_ListView = new TDEListView( GROUP_Engines );
Engines_ListView->addColumn( i18n( "Name" ) );
Engines_ListView->addColumn( i18n( "Protocol" ) );
Engines_ListView->addColumn( i18n( "Wins" ) );
diff --git a/knights/setpageengines.h b/knights/setpageengines.h
index 05f322b..29d7125 100644
--- a/knights/setpageengines.h
+++ b/knights/setpageengines.h
@@ -80,7 +80,7 @@ class setPageEngines : public TQVBoxLayout
KComboBox *Engines_Black_Book;
TQGroupBox *GROUP_Engines;
- KListView *Engines_ListView;
+ TDEListView *Engines_ListView;
KButtonBox *Engines_ButtonBox;
TQPushButton *Engines_Button_Add;
TQPushButton *Engines_Button_Change;
diff --git a/knights/setpageservers.cpp b/knights/setpageservers.cpp
index ffd6a4f..ec2a50f 100644
--- a/knights/setpageservers.cpp
+++ b/knights/setpageservers.cpp
@@ -65,7 +65,7 @@ void setPageServers::initTab1( void )
i18n( "Chess Servers" ),
Tab1 );
- Servers_ListView = new KListView( GROUP_Servers );
+ Servers_ListView = new TDEListView( GROUP_Servers );
Servers_ListView->addColumn( i18n( "Name" ) );
Servers_ListView->addColumn( i18n( "URL" ) );
Servers_ListView->setAllColumnsShowFocus( TRUE );
diff --git a/knights/setpageservers.h b/knights/setpageservers.h
index d54c395..1653124 100644
--- a/knights/setpageservers.h
+++ b/knights/setpageservers.h
@@ -88,7 +88,7 @@ class setPageServers : public TQVBoxLayout
TQGroupBox *GROUP_Current;
TQGroupBox *GROUP_Servers;
KComboBox *Servers;
- KListView *Servers_ListView;
+ TDEListView *Servers_ListView;
KButtonBox *Servers_ButtonBox;
TQPushButton *Servers_Button_Add;
TQPushButton *Servers_Button_Change;
diff --git a/knights/tab_seeklist.cpp b/knights/tab_seeklist.cpp
index 539a124..7f275b0 100644
--- a/knights/tab_seeklist.cpp
+++ b/knights/tab_seeklist.cpp
@@ -20,7 +20,7 @@
#include <kiconloader.h>
#include <tqregexp.h>
-tab_SeekList::tab_SeekList(TQWidget *parent, const char *name, resource *Rsrc ) : KListView(parent,name)
+tab_SeekList::tab_SeekList(TQWidget *parent, const char *name, resource *Rsrc ) : TDEListView(parent,name)
{
myResource = Rsrc;
seek = FALSE;
@@ -35,7 +35,7 @@ tab_SeekList::tab_SeekList(TQWidget *parent, const char *name, resource *Rsrc )
setMultiSelection( FALSE );
restoreLayout( kapp->config(), "Sought_ListView" );
- menuSeek = new KPopupMenu( this );
+ menuSeek = new TDEPopupMenu( this );
menuSeek->setCheckable( TRUE );
menuSeek->insertItem( i18n("Seek Matches"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_SEEK );
menuSeek->insertSeparator();
@@ -93,7 +93,7 @@ void tab_SeekList::updateSoughtList( void )
clear();
for( loop = 0; loop < SF_01.count(); loop++ )
{
- (void) new KListViewItem( this,
+ (void) new TDEListViewItem( this,
SF_01[loop],
SF_02[loop],
SF_03[loop],
diff --git a/knights/tab_seeklist.h b/knights/tab_seeklist.h
index 2d9ba09..6308870 100644
--- a/knights/tab_seeklist.h
+++ b/knights/tab_seeklist.h
@@ -30,14 +30,14 @@
class resource;
-class tab_SeekList : public KListView
+class tab_SeekList : public TDEListView
{
Q_OBJECT
private:
resource *myResource;
- KPopupMenu *menuSeek;
+ TDEPopupMenu *menuSeek;
bool seek;
int selectedMatchID;
TQString selectedPlayerName;
diff --git a/knights/thinbuttons.cpp b/knights/thinbuttons.cpp
index ba899ac..3bfe297 100644
--- a/knights/thinbuttons.cpp
+++ b/knights/thinbuttons.cpp
@@ -27,7 +27,7 @@ thinbuttons::thinbuttons(TQWidget *parent, const char *name, resource *Rsrc ) :
setFixedSize( 8, 8 );
/* Build the pop-up menu */
- matchMenu = new KPopupMenu( this );
+ matchMenu = new TDEPopupMenu( this );
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ),
i18n("&Save Match"), MENU_SAVE );
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ),
diff --git a/knights/thinbuttons.h b/knights/thinbuttons.h
index 24e6736..5367f61 100644
--- a/knights/thinbuttons.h
+++ b/knights/thinbuttons.h
@@ -63,7 +63,7 @@ class thinbuttons : public TQFrame
private:
resource *Resource;
- KPopupMenu *matchMenu;
+ TDEPopupMenu *matchMenu;
TQList<Buttons> buttons;
int buttWidth;
int rightClickID;