@ -47,7 +47,7 @@
// ### soundkonverter 0.4: save file list when kde session gets terminated
// ### soundkonverter 0.4: save file list when kde session gets terminated
soundKonverter : : soundKonverter ( )
soundKonverter : : soundKonverter ( )
: K MainWindow( 0 , " soundkonverter-mainwindow " , WType_TopLevel | WDestructiveClose | WStyle_ContextHelp ) ,
: TDE MainWindow( 0 , " soundkonverter-mainwindow " , WType_TopLevel | WDestructiveClose | WStyle_ContextHelp ) ,
DCOPObject ( " soundkonverter-app " )
DCOPObject ( " soundkonverter-app " )
{
{
// this is our first startup, set instances to zero
// this is our first startup, set instances to zero
@ -113,36 +113,36 @@ soundKonverter::soundKonverter()
options = new Options ( config , i18n ( " Choose your prefered output options and click on \" Add files ... \" ! " ) , widget , " options " ) ;
options = new Options ( config , i18n ( " Choose your prefered output options and click on \" Add files ... \" ! " ) , widget , " options " ) ;
fileList = new FileList ( cdManager , tagEngine , config , options , logger , widget , " fileList " ) ;
fileList = new FileList ( cdManager , tagEngine , config , options , logger , widget , " fileList " ) ;
startAction = new K Action( i18n ( " &Start conversion " ) , " run " , 0 , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( startConversion ( ) ) , actionCollection ( ) , " start " ) ;
startAction = new TDE Action( i18n ( " &Start conversion " ) , " run " , 0 , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( startConversion ( ) ) , actionCollection ( ) , " start " ) ;
startAction - > setEnabled ( false ) ;
startAction - > setEnabled ( false ) ;
new K Action( i18n ( " &Replay Gain Tool ... " ) , " soundkonverter_replaygain " , CTRL + Key_R , TQT_TQOBJECT ( this ) , TQT_SLOT ( showReplayGainScanner ( ) ) , actionCollection ( ) , " replaygainscanner " ) ;
new TDE Action( i18n ( " &Replay Gain Tool ... " ) , " soundkonverter_replaygain " , CTRL + Key_R , TQT_TQOBJECT ( this ) , TQT_SLOT ( showReplayGainScanner ( ) ) , actionCollection ( ) , " replaygainscanner " ) ;
//new K Action( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, TQT_TQOBJECT(this), TQT_SLOT(showRepairTool()), actionCollection(), "repairtool" );
//new TDE Action( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, TQT_TQOBJECT(this), TQT_SLOT(showRepairTool()), actionCollection(), "repairtool" );
new K Action( i18n ( " C&uesheet Editor ... " ) , " kwrite " , CTRL + Key_U , TQT_TQOBJECT ( this ) , TQT_SLOT ( showCuesheetEditor ( ) ) , actionCollection ( ) , " cuesheeteditor " ) ;
new TDE Action( i18n ( " C&uesheet Editor ... " ) , " kwrite " , CTRL + Key_U , TQT_TQOBJECT ( this ) , TQT_SLOT ( showCuesheetEditor ( ) ) , actionCollection ( ) , " cuesheeteditor " ) ;
new K Action( i18n ( " Show &Log ... " ) , " view_text " , CTRL + Key_L , TQT_TQOBJECT ( this ) , TQT_SLOT ( showLogViewer ( ) ) , actionCollection ( ) , " log " ) ;
new TDE Action( i18n ( " Show &Log ... " ) , " view_text " , CTRL + Key_L , TQT_TQOBJECT ( this ) , TQT_SLOT ( showLogViewer ( ) ) , actionCollection ( ) , " log " ) ;
// new K Action( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, TQT_TQOBJECT(this), TQT_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" );
// new TDE Action( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, TQT_TQOBJECT(this), TQT_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" );
stopAction = new K Action( i18n ( " S&top after current file is complete " ) , " stop " , CTRL + Key_O , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( stopConversion ( ) ) , actionCollection ( ) , " stop " ) ;
stopAction = new TDE Action( i18n ( " S&top after current file is complete " ) , " stop " , CTRL + Key_O , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( stopConversion ( ) ) , actionCollection ( ) , " stop " ) ;
continueAction = new K Action( i18n ( " &Continue after current file is complete " ) , " run " , CTRL + Key_T , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( continueConversion ( ) ) , actionCollection ( ) , " continue " ) ;
continueAction = new TDE Action( i18n ( " &Continue after current file is complete " ) , " run " , CTRL + Key_T , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( continueConversion ( ) ) , actionCollection ( ) , " continue " ) ;
killAction = new K Action( i18n ( " Stop &immediately " ) , " exit " , CTRL + Key_K , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( killConversion ( ) ) , actionCollection ( ) , " kill " ) ;
killAction = new TDE Action( i18n ( " Stop &immediately " ) , " exit " , CTRL + Key_K , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( killConversion ( ) ) , actionCollection ( ) , " kill " ) ;
stopActionMenu = new K ActionMenu( i18n ( " Stop " ) , " stop " , actionCollection ( ) , " stopMenu " ) ;
stopActionMenu = new TDE ActionMenu( i18n ( " Stop " ) , " stop " , actionCollection ( ) , " stopMenu " ) ;
stopActionMenu - > setDelayed ( false ) ;
stopActionMenu - > setDelayed ( false ) ;
stopActionMenu - > setEnabled ( false ) ;
stopActionMenu - > setEnabled ( false ) ;
// stopActionMenu->insert( stopAction );
// stopActionMenu->insert( stopAction );
// stopActionMenu->insert( continueAction );
// stopActionMenu->insert( continueAction );
// stopActionMenu->insert( killAction );
// stopActionMenu->insert( killAction );
/* veryHighPriorityAction = new K ToggleAction( i18n("Very hi&gh"), CTRL+Key_1, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" );
/* veryHighPriorityAction = new TDE ToggleAction( i18n("Very hi&gh"), CTRL+Key_1, TQT_TQOBJECT(this), TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" );
veryHighPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
veryHighPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
highPriorityAction = new K ToggleAction( i18n ( " &High " ) , CTRL + Key_2 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " high " ) ;
highPriorityAction = new TDE ToggleAction( i18n ( " &High " ) , CTRL + Key_2 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " high " ) ;
highPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
highPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
normalPriorityAction = new K ToggleAction( i18n ( " &Normal " ) , CTRL + Key_3 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " nomal " ) ;
normalPriorityAction = new TDE ToggleAction( i18n ( " &Normal " ) , CTRL + Key_3 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " nomal " ) ;
normalPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
normalPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
normalPriorityAction - > setChecked ( true ) ;
normalPriorityAction - > setChecked ( true ) ;
lowPriorityAction = new K ToggleAction( i18n ( " &Low " ) , CTRL + Key_4 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " low " ) ;
lowPriorityAction = new TDE ToggleAction( i18n ( " &Low " ) , CTRL + Key_4 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " low " ) ;
lowPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
lowPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
veryLowPriorityAction = new K ToggleAction( i18n ( " Very lo&w " ) , CTRL + Key_5 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " verylow " ) ;
veryLowPriorityAction = new TDE ToggleAction( i18n ( " Very lo&w " ) , CTRL + Key_5 , TQT_TQOBJECT ( this ) , TQT_SLOT ( priorityChanged ( ) ) , actionCollection ( ) , " verylow " ) ;
veryLowPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
veryLowPriorityAction - > setExclusiveGroup ( " priorityActionMenu " ) ;
priorityActionMenu = new K ActionMenu( i18n ( " En-/Decoder priority " ) , " ksysguard " , actionCollection ( ) , " priorityMenu " ) ;
priorityActionMenu = new TDE ActionMenu( i18n ( " En-/Decoder priority " ) , " ksysguard " , actionCollection ( ) , " priorityMenu " ) ;
priorityActionMenu - > setDelayed ( false ) ;
priorityActionMenu - > setDelayed ( false ) ;
priorityActionMenu - > insert ( veryHighPriorityAction ) ;
priorityActionMenu - > insert ( veryHighPriorityAction ) ;
priorityActionMenu - > insert ( highPriorityAction ) ;
priorityActionMenu - > insert ( highPriorityAction ) ;
@ -151,14 +151,14 @@ soundKonverter::soundKonverter()
priorityActionMenu - > insert ( veryLowPriorityAction ) ; */
priorityActionMenu - > insert ( veryLowPriorityAction ) ; */
//priorityChanged();
//priorityChanged();
new K Action( i18n ( " A&dd Files ... " ) , " sound " , CTRL + Key_D , TQT_TQOBJECT ( this ) , TQT_SLOT ( showFileDialog ( ) ) , actionCollection ( ) , " add_files " ) ;
new TDE Action( i18n ( " A&dd Files ... " ) , " sound " , CTRL + Key_D , TQT_TQOBJECT ( this ) , TQT_SLOT ( showFileDialog ( ) ) , actionCollection ( ) , " add_files " ) ;
new K Action( i18n ( " Add &Folder ... " ) , " folder " , CTRL + Key_F , TQT_TQOBJECT ( this ) , TQT_SLOT ( showDirDialog ( ) ) , actionCollection ( ) , " add_folder " ) ;
new TDE Action( i18n ( " Add &Folder ... " ) , " folder " , CTRL + Key_F , TQT_TQOBJECT ( this ) , TQT_SLOT ( showDirDialog ( ) ) , actionCollection ( ) , " add_folder " ) ;
new K Action( i18n ( " Add CD &tracks ... " ) , " cdaudio_unmount " , CTRL + Key_T , TQT_TQOBJECT ( this ) , TQT_SLOT ( showCdDialog ( ) ) , actionCollection ( ) , " add_audiocd " ) ;
new TDE Action( i18n ( " Add CD &tracks ... " ) , " cdaudio_unmount " , CTRL + Key_T , TQT_TQOBJECT ( this ) , TQT_SLOT ( showCdDialog ( ) ) , actionCollection ( ) , " add_audiocd " ) ;
new K Action( i18n ( " Add &URL ... " ) , " browser " , CTRL + Key_U , TQT_TQOBJECT ( this ) , TQT_SLOT ( showUrlDialog ( ) ) , actionCollection ( ) , " add_url " ) ;
new TDE Action( i18n ( " Add &URL ... " ) , " browser " , CTRL + Key_U , TQT_TQOBJECT ( this ) , TQT_SLOT ( showUrlDialog ( ) ) , actionCollection ( ) , " add_url " ) ;
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( close ( ) ) , actionCollection ( ) ) ;
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( close ( ) ) , actionCollection ( ) ) ;
new K Action( i18n ( " L&oad file list " ) , " fileopen " , 0 , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( load ( ) ) , actionCollection ( ) , " load " ) ;
new TDE Action( i18n ( " L&oad file list " ) , " fileopen " , 0 , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( load ( ) ) , actionCollection ( ) , " load " ) ;
new K Action( i18n ( " Sa&ve file list " ) , " filesave " , 0 , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( save ( ) ) , actionCollection ( ) , " save " ) ;
new TDE Action( i18n ( " Sa&ve file list " ) , " filesave " , 0 , TQT_TQOBJECT ( fileList ) , TQT_SLOT ( save ( ) ) , actionCollection ( ) , " save " ) ;
// TODO //KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(pasteFiles()), actionCollection() );
// TODO //KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(pasteFiles()), actionCollection() );