summaryrefslogtreecommitdiffstats
path: root/tdemid/tdemidframe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdemid/tdemidframe.cpp')
-rw-r--r--tdemid/tdemidframe.cpp130
1 files changed, 65 insertions, 65 deletions
diff --git a/tdemid/tdemidframe.cpp b/tdemid/tdemidframe.cpp
index fbfaa4c0..aa10a6e4 100644
--- a/tdemid/tdemidframe.cpp
+++ b/tdemid/tdemidframe.cpp
@@ -68,73 +68,73 @@ tdemidFrame::tdemidFrame(const char *name)
/*
kKeysAccel=new TDEAccel(this);
kKeysAccel->insertItem(i18n("Play/Pause"),"Play/Pause", Key_Space);
- kKeysAccel->connectItem("Play/Pause", TQT_TQOBJECT(this), TQT_SLOT(spacePressed()));
+ kKeysAccel->connectItem("Play/Pause", this, TQ_SLOT(spacePressed()));
kKeysAccel->insertItem(i18n("Stop"),"Stop", Key_Backspace);
- kKeysAccel->connectItem("Stop",tdemidclient,TQT_SLOT(song_Stop()));
+ kKeysAccel->connectItem("Stop",tdemidclient,TQ_SLOT(song_Stop()));
kKeysAccel->insertItem(i18n("Previous Song"),"Previous Song", Key_Left);
- kKeysAccel->connectItem("Previous Song",tdemidclient,TQT_SLOT(song_PlayPrevSong()));
+ kKeysAccel->connectItem("Previous Song",tdemidclient,TQ_SLOT(song_PlayPrevSong()));
kKeysAccel->insertItem(i18n("Next Song"),"Next Song", Key_Right);
- kKeysAccel->connectItem("Next Song",tdemidclient,TQT_SLOT(song_PlayNextSong()));
+ kKeysAccel->connectItem("Next Song",tdemidclient,TQ_SLOT(song_PlayNextSong()));
kKeysAccel->insertItem(i18n("Scroll Down Karaoke"),"Scroll down karaoke",Key_Down);
- kKeysAccel->connectItem("Scroll Down karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollDown()));
+ kKeysAccel->connectItem("Scroll Down karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollDown()));
kKeysAccel->insertItem(i18n("Scroll Up Karaoke"),"Scroll up karaoke",Key_Up);
- kKeysAccel->connectItem("Scroll Up Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollUp()));
+ kKeysAccel->connectItem("Scroll Up Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollUp()));
kKeysAccel->insertItem(i18n("Scroll Page Down Karaoke"),"Scroll page down karaoke",Key_PageDown);
- kKeysAccel->connectItem("Scroll Page Down Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollPageDown()));
+ kKeysAccel->connectItem("Scroll Page Down Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollPageDown()));
kKeysAccel->insertItem(i18n("Scroll Page Up Karaoke"),"Scroll page up karaoke",Key_PageUp);
- kKeysAccel->connectItem("Scroll Page Up Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollPageUp()));
+ kKeysAccel->connectItem("Scroll Page Up Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollPageUp()));
kKeysAccel->readSettings();
*/
- KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(file_Open()), actionCollection());
- (void)new TDEAction(i18n("&Save Lyrics..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(file_SaveLyrics()), actionCollection(), "file_save_lyrics");
- KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
+ KStdAction::open(this, TQ_SLOT(file_Open()), actionCollection());
+ (void)new TDEAction(i18n("&Save Lyrics..."), 0, this,
+ TQ_SLOT(file_SaveLyrics()), actionCollection(), "file_save_lyrics");
+ KStdAction::quit(tdeApp, TQ_SLOT(quit()), actionCollection());
(void)new TDEAction(i18n("&Play"), "media-playback-start", TQt::Key_Space,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotPlay()), actionCollection(), "song_play");
- (void)new TDEAction(i18n("P&ause"), "media-playback-pause", TQt::Key_P, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotPause()), actionCollection(), "song_pause");
+ tdemidclient, TQ_SLOT(slotPlay()), actionCollection(), "song_play");
+ (void)new TDEAction(i18n("P&ause"), "media-playback-pause", TQt::Key_P, tdemidclient,
+ TQ_SLOT(slotPause()), actionCollection(), "song_pause");
(void)new TDEAction(i18n("&Stop"), "media-playback-stop", TQt::Key_Backspace,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotStop()), actionCollection(), "song_stop");
+ tdemidclient, TQ_SLOT(slotStop()), actionCollection(), "song_stop");
(void)new TDEAction(i18n("P&revious Song"), "media-skip-backward", Key_Left,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotPrevSong()), actionCollection(),
+ tdemidclient, TQ_SLOT(slotPrevSong()), actionCollection(),
"song_previous");
(void)new TDEAction(i18n("&Next Song"), "media-skip-forward", Key_Right,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotNextSong()), actionCollection(),
+ tdemidclient, TQ_SLOT(slotNextSong()), actionCollection(),
"song_next");
- (void)new TDEToggleAction(i18n("&Loop"), 0, TQT_TQOBJECT(this), TQT_SLOT(song_Loop()),
+ (void)new TDEToggleAction(i18n("&Loop"), 0, this, TQ_SLOT(song_Loop()),
actionCollection(), "song_loop");
- (void)new TDEAction(i18n("Rewind"), "2leftarrow", 0, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotRewind()), actionCollection(), "song_rewind");
+ (void)new TDEAction(i18n("Rewind"), "2leftarrow", 0, tdemidclient,
+ TQ_SLOT(slotRewind()), actionCollection(), "song_rewind");
- (void)new TDEAction(i18n("Forward"), "2rightarrow", 0, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotForward()), actionCollection(), "song_forward");
+ (void)new TDEAction(i18n("Forward"), "2rightarrow", 0, tdemidclient,
+ TQ_SLOT(slotForward()), actionCollection(), "song_forward");
- (void)new TDEAction(i18n("&Organize..."), 0, TQT_TQOBJECT(this), TQT_SLOT(collect_organize()),
+ (void)new TDEAction(i18n("&Organize..."), 0, this, TQ_SLOT(collect_organize()),
actionCollection(), "collect_organize");
TQStringList playmodes;
playmodes.append(i18n("In Order"));
playmodes.append(i18n("Shuffle"));
- TDESelectAction *act=new TDESelectAction(i18n("Play Order"), 0, /*this, TQT_SLOT(collect_PlayOrder(int)),*/
+ TDESelectAction *act=new TDESelectAction(i18n("Play Order"), 0, /*this, TQ_SLOT(collect_PlayOrder(int)),*/
actionCollection(), "play_order");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(collect_PlayOrder(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(collect_PlayOrder(int)));
act->setItems(playmodes);
- (void)new TDEToggleAction(i18n("Auto-Add to Collection"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(collect_AutoAdd()), actionCollection(), "collect_autoadd");
+ (void)new TDEToggleAction(i18n("Auto-Add to Collection"), 0, this,
+ TQ_SLOT(collect_AutoAdd()), actionCollection(), "collect_autoadd");
playmodes.clear();
playmodes.append(i18n("&General MIDI"));
playmodes.append(i18n("&MT-32"));
- act=new TDESelectAction(i18n("File Type"), 0,/* this, TQT_SLOT(options_FileType(int)),*/
+ act=new TDESelectAction(i18n("File Type"), 0,/* this, TQ_SLOT(options_FileType(int)),*/
actionCollection(), "file_type");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(options_FileType(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(options_FileType(int)));
act->setItems(playmodes);
playmodes.clear();
@@ -142,40 +142,40 @@ tdemidFrame::tdemidFrame(const char *name)
playmodes.append(i18n("&Lyric Events"));
act=new TDESelectAction(i18n("Display Events"), Key_T, /*this,
- TQT_SLOT(options_DisplayEvents(int)),*/ actionCollection(),
+ TQ_SLOT(options_DisplayEvents(int)),*/ actionCollection(),
"display_events");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(options_DisplayEvents(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(options_DisplayEvents(int)));
act->setItems(playmodes);
- (void)new TDEToggleAction(i18n("Automatic Text Chooser"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_AutomaticText()), actionCollection(),
+ (void)new TDEToggleAction(i18n("Automatic Text Chooser"), 0, this,
+ TQ_SLOT(options_AutomaticText()), actionCollection(),
"option_automatictext");
TDEToggleAction* togact = new TDEToggleAction(i18n("Show &Volume Bar"), "volume",
- 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowVolumeBar()), actionCollection(),
+ 0, this, TQ_SLOT(options_ShowVolumeBar()), actionCollection(),
"toggle_volumebar");
togact->setCheckedState(i18n("Hide &Volume Bar"));
togact = new TDEToggleAction(i18n("Show &Channel View"), "piano",
- 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowChannelView()), actionCollection(),
+ 0, this, TQ_SLOT(options_ShowChannelView()), actionCollection(),
"toggle_channelview");
togact->setCheckedState(i18n("Hide &Channel View"));
- (void)new TDEAction(i18n("Channel View &Options..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_ChannelViewOptions()), actionCollection(),
+ (void)new TDEAction(i18n("Channel View &Options..."), 0, this,
+ TQ_SLOT(options_ChannelViewOptions()), actionCollection(),
"channelview_options");
- (void)new TDEAction(i18n("&Font Change..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_FontChange()), actionCollection(),
+ (void)new TDEAction(i18n("&Font Change..."), 0, this,
+ TQ_SLOT(options_FontChange()), actionCollection(),
"change_font");
- (void)new TDEAction(i18n("MIDI &Setup..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_MidiSetup()), actionCollection(), "midi_setup");
+ (void)new TDEAction(i18n("MIDI &Setup..."), 0, this,
+ TQ_SLOT(options_MidiSetup()), actionCollection(), "midi_setup");
setupGUI((ToolBar | Keys | StatusBar | Save | Create ), "tdemidui.rc" );
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
TDESelectAction *tmplistaction=
((TDESelectAction*)actionCollection()->action("display_events"));
@@ -212,14 +212,14 @@ tdemidFrame::tdemidFrame(const char *name)
setAcceptDrops(true);
- connect( tdemidclient, TQT_SIGNAL( mustRechooseTextEvent() ),
- this, TQT_SLOT( rechooseTextEvent() ) );
+ connect( tdemidclient, TQ_SIGNAL( mustRechooseTextEvent() ),
+ this, TQ_SLOT( rechooseTextEvent() ) );
- connect( tdemidclient, TQT_SIGNAL( stopPause() ),
- this, TQT_SLOT( song_stopPause() ) );
+ connect( tdemidclient, TQ_SIGNAL( stopPause() ),
+ this, TQ_SLOT( song_stopPause() ) );
-// connect( tdemidclient, TQT_SIGNAL( channelView_Destroyed() ),
-// this, TQT_SLOT( channelViewDestroyed() ) );
+// connect( tdemidclient, TQ_SIGNAL( channelView_Destroyed() ),
+// this, TQ_SLOT( channelViewDestroyed() ) );
TDECmdLineArgs * args = TDECmdLineArgs::parsedArgs();
@@ -230,7 +230,7 @@ tdemidFrame::tdemidFrame(const char *name)
cfg->writeEntry("AutoAddToCollection",0);
char ttt[40];
- sprintf(ttt,"%d",kapp->argc());
+ sprintf(ttt,"%d",tdeApp->argc());
int i=0;
int c=autoAddSongToCollection( args->url( 0 ).path() , 1 );
i++;
@@ -242,7 +242,7 @@ tdemidFrame::tdemidFrame(const char *name)
tdemidclient->setActiveCollection(c);
- /// tdemidclient->openURL((kapp->argv())[1]);
+ /// tdemidclient->openURL((tdeApp->argv())[1]);
/* if ((cfg->readNumEntry("AutomaticTextEventChooser",1))==1)
{
if (tdemidclient->ChooseTypeOfTextEvents()==1)
@@ -258,11 +258,11 @@ tdemidFrame::tdemidFrame(const char *name)
/*
kKeys->addKey("Play/Pause",Key_Space);
kKeys->registerWidget("KMidFrame",this);
- kKeys->connectFunction("KMidFrame","Play/Pause",this,TQT_SLOT(spacePressed()));
+ kKeys->connectFunction("KMidFrame","Play/Pause",this,TQ_SLOT(spacePressed()));
*/
// kKeysAccel->writeSettings(cfg);
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
if (!client->isRegistered()) // just in case we're embeeded
{
client->attach();
@@ -304,7 +304,7 @@ void tdemidFrame::song_stopPause()
void tdemidFrame::options_FileType(int i)
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
cfg->writeEntry("TypeOfMidiFile",i);
tdemidclient->setSongType(1-i);
@@ -312,7 +312,7 @@ void tdemidFrame::options_FileType(int i)
void tdemidFrame::options_DisplayEvents(int i)
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
cfg->writeEntry("TypeOfTextEvents",(i==0)?1:5);
cfg->sync();
@@ -321,7 +321,7 @@ void tdemidFrame::options_DisplayEvents(int i)
void tdemidFrame::options_AutomaticText()
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
cfg->writeEntry("AutomaticTextEventChooser",1-cfg->readNumEntry("AutomaticTextEventChooser",1));
}
@@ -333,7 +333,7 @@ void tdemidFrame::options_FontChange()
font=*tdemidclient->getFont();
kfd->getFont(font);
delete kfd;
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
cfg->writeEntry("KaraokeFont",font);
cfg->sync();
@@ -345,7 +345,7 @@ int tdemidFrame::autoAddSongToCollection(const TQString& filename,int setactive)
int r;
SLManager *slman;
SongList *sl;
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
if (cfg->readNumEntry("AutoAddToCollection",0)==0)
{
@@ -474,7 +474,7 @@ void tdemidFrame::options_MidiSetup()
dlg=new MidiConfigDialog(tdemidclient->devman(),NULL,"MidiDialog");
if (dlg->exec() == TQDialog::Accepted)
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
cfg->writeEntry("MidiPortNumber",MidiConfigDialog::selecteddevice);
tdemidclient->setMidiDevice(MidiConfigDialog::selecteddevice);
@@ -509,7 +509,7 @@ delete dlg;
void tdemidFrame::rechooseTextEvent()
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
if ((cfg->readNumEntry("AutomaticTextEventChooser",1))==1)
{
@@ -524,7 +524,7 @@ void tdemidFrame::rechooseTextEvent()
void tdemidFrame::song_Loop()
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
int i=1-cfg->readNumEntry("Loop",0);
cfg->writeEntry("Loop",i);
@@ -534,7 +534,7 @@ void tdemidFrame::song_Loop()
void tdemidFrame::collect_PlayOrder(int i)
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
cfg->writeEntry("CollectionPlayMode", i);
cfg->sync();
@@ -543,7 +543,7 @@ void tdemidFrame::collect_PlayOrder(int i)
void tdemidFrame::collect_AutoAdd()
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
cfg->writeEntry("AutoAddToCollection",1-cfg->readNumEntry("AutoAddToCollection",0));
cfg->sync();
@@ -584,7 +584,7 @@ void tdemidFrame::spacePressed()
}
void tdemidFrame::options_ShowVolumeBar()
{
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
int i=1-cfg->readNumEntry("ShowVolumeBar",0);
cfg->writeEntry("ShowVolumeBar",i);
@@ -599,7 +599,7 @@ void tdemidFrame::options_ShowChannelView()
} else
{
tdemidclient->visibleChannelView(1);
- connect (tdemidclient->getChannelView(),TQT_SIGNAL(destroyMe()),this,TQT_SLOT(channelViewDestroyed()));
+ connect (tdemidclient->getChannelView(),TQ_SIGNAL(destroyMe()),this,TQ_SLOT(channelViewDestroyed()));
}
}