diff options
Diffstat (limited to 'kmid/kmidframe.cpp')
-rw-r--r-- | kmid/kmidframe.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kmid/kmidframe.cpp b/kmid/kmidframe.cpp index df2e8320..44a7157d 100644 --- a/kmid/kmidframe.cpp +++ b/kmid/kmidframe.cpp @@ -175,7 +175,7 @@ kmidFrame::kmidFrame(const char *name) setupGUI((ToolBar | Keys | StatusBar | Save | Create ), "kmidui.rc" ); - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); KSelectAction *tmplistaction= ((KSelectAction*)actionCollection()->action("display_events")); @@ -304,7 +304,7 @@ void kmidFrame::song_stopPause() void kmidFrame::options_FileType(int i) { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); cfg->writeEntry("TypeOfMidiFile",i); kmidclient->setSongType(1-i); @@ -312,7 +312,7 @@ void kmidFrame::options_FileType(int i) void kmidFrame::options_DisplayEvents(int i) { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); cfg->writeEntry("TypeOfTextEvents",(i==0)?1:5); cfg->sync(); @@ -321,7 +321,7 @@ void kmidFrame::options_DisplayEvents(int i) void kmidFrame::options_AutomaticText() { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); cfg->writeEntry("AutomaticTextEventChooser",1-cfg->readNumEntry("AutomaticTextEventChooser",1)); } @@ -333,7 +333,7 @@ void kmidFrame::options_FontChange() font=*kmidclient->getFont(); kfd->getFont(font); delete kfd; - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); cfg->writeEntry("KaraokeFont",font); cfg->sync(); @@ -345,7 +345,7 @@ int kmidFrame::autoAddSongToCollection(const TQString& filename,int setactive) int r; SLManager *slman; SongList *sl; - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); if (cfg->readNumEntry("AutoAddToCollection",0)==0) { @@ -429,7 +429,7 @@ void kmidFrame::shuttingDown() kmidclient->saveCollections(); } -void kmidFrame::saveProperties(KConfig *cfg) +void kmidFrame::saveProperties(TDEConfig *cfg) { kmidclient->saveCollections(); int play=kmidclient->isPlaying(); @@ -439,7 +439,7 @@ void kmidFrame::saveProperties(KConfig *cfg) cfg->writeEntry("Playing",play); } -void kmidFrame::readProperties(KConfig *cfg) +void kmidFrame::readProperties(TDEConfig *cfg) { int activecol=cfg->readNumEntry("ActiveCollection",0); int activesong=cfg->readNumEntry("ActiveSong",0); @@ -474,7 +474,7 @@ void kmidFrame::options_MidiSetup() dlg=new MidiConfigDialog(kmidclient->devman(),NULL,"MidiDialog"); if (dlg->exec() == TQDialog::Accepted) { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); cfg->writeEntry("MidiPortNumber",MidiConfigDialog::selecteddevice); kmidclient->setMidiDevice(MidiConfigDialog::selecteddevice); @@ -509,7 +509,7 @@ delete dlg; void kmidFrame::rechooseTextEvent() { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); if ((cfg->readNumEntry("AutomaticTextEventChooser",1))==1) { @@ -524,7 +524,7 @@ void kmidFrame::rechooseTextEvent() void kmidFrame::song_Loop() { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); int i=1-cfg->readNumEntry("Loop",0); cfg->writeEntry("Loop",i); @@ -534,7 +534,7 @@ void kmidFrame::song_Loop() void kmidFrame::collect_PlayOrder(int i) { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); cfg->writeEntry("CollectionPlayMode", i); cfg->sync(); @@ -543,7 +543,7 @@ void kmidFrame::collect_PlayOrder(int i) void kmidFrame::collect_AutoAdd() { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); cfg->writeEntry("AutoAddToCollection",1-cfg->readNumEntry("AutoAddToCollection",0)); cfg->sync(); @@ -584,7 +584,7 @@ void kmidFrame::spacePressed() } void kmidFrame::options_ShowVolumeBar() { - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); cfg->setGroup("KMid"); int i=1-cfg->readNumEntry("ShowVolumeBar",0); cfg->writeEntry("ShowVolumeBar",i); |