@ -78,7 +78,7 @@ KDockWidget *MainWindow::createDock(const TQString &name, const TQPixmap &icon,
ddata . position = position ;
ddata . dock = dock ;
ddata . action = new ViewMenuAction ( dock ) ;
connect ( ddata . action , TQ T _SIGNAL( activated ( TQWidget * ) ) , TQ T _SLOT( toggleToolView ( TQWidget * ) ) ) ;
connect ( ddata . action , TQ _SIGNAL( activated ( TQWidget * ) ) , TQ _SLOT( toggleToolView ( TQWidget * ) ) ) ;
_docks + = ddata ;
initDockPosition ( ddata ) ;
return dock ;
@ -100,13 +100,13 @@ MainWindow::MainWindow()
_editorStatus = new TQLabel ( statusBar ( ) ) ;
statusBar ( ) - > addWidget ( _editorStatus , 0 , true ) ;
_programmerStatus = new ProgrammerStatusWidget ( statusBar ( ) ) ;
connect ( _programmerStatus , TQ T _SIGNAL( configure ( ) ) , TQ T _SLOT( configureProgrammer ( ) ) ) ;
connect ( _programmerStatus , TQ T _SIGNAL( selected ( const Programmer : : Group & ) ) , TQ T _SLOT( selectProgrammer ( const Programmer : : Group & ) ) ) ;
connect ( _programmerStatus , TQ _SIGNAL( configure ( ) ) , TQ _SLOT( configureProgrammer ( ) ) ) ;
connect ( _programmerStatus , TQ _SIGNAL( selected ( const Programmer : : Group & ) ) , TQ _SLOT( selectProgrammer ( const Programmer : : Group & ) ) ) ;
statusBar ( ) - > addWidget ( _programmerStatus - > widget ( ) , 0 , true ) ;
_toolStatus = new ToolStatusWidget ( statusBar ( ) ) ;
connect ( _toolStatus , TQ T _SIGNAL( configureToolchain ( ) ) , TQ T _SLOT( configureToolchains ( ) ) ) ;
connect ( _toolStatus , TQ T _SIGNAL( configure ( ) ) , TQ T _SLOT( configureProject ( ) ) ) ;
connect ( _toolStatus , TQ T _SIGNAL( selected ( const Tool : : Group & ) ) , TQ T _SLOT( selectTool ( const Tool : : Group & ) ) ) ;
connect ( _toolStatus , TQ _SIGNAL( configureToolchain ( ) ) , TQ _SLOT( configureToolchains ( ) ) ) ;
connect ( _toolStatus , TQ _SIGNAL( configure ( ) ) , TQ _SLOT( configureProject ( ) ) ) ;
connect ( _toolStatus , TQ _SIGNAL( selected ( const Tool : : Group & ) ) , TQ _SLOT( selectTool ( const Tool : : Group & ) ) ) ;
statusBar ( ) - > addWidget ( _toolStatus - > widget ( ) , 0 , true ) ;
// interface
@ -120,7 +120,7 @@ MainWindow::MainWindow()
KDockWidget * dock = createDock ( " project_manager_dock_widget " , PURL : : icon ( PURL : : Project ) ,
i18n ( " Project Manager " ) , DockPosition ( KDockWidget : : DockLeft , 20 ) ) ;
Main : : _projectManager = new ProjectManager : : View ( dock ) ;
connect ( Main : : _projectManager , TQ T _SIGNAL( guiChanged ( ) ) , TQ T _SLOT( updateGUI ( ) ) ) ;
connect ( Main : : _projectManager , TQ _SIGNAL( guiChanged ( ) ) , TQ _SLOT( updateGUI ( ) ) ) ;
dock - > setWidget ( Main : : _projectManager ) ;
dock = createDock ( " watch_view_dock_widget " , loader . loadIcon ( " viewmag " , TDEIcon : : Small ) ,
@ -130,9 +130,9 @@ MainWindow::MainWindow()
Main : : _editorManager = new EditorManager ( _mainDock ) ;
_mainDock - > setWidget ( Main : : _editorManager ) ;
connect ( Main : : _editorManager , TQ T _SIGNAL( guiChanged ( ) ) , TQ T _SLOT( updateGUI ( ) ) ) ;
connect ( Main : : _editorManager , TQ T _SIGNAL( modified ( const PURL : : Url & ) ) , Main : : _projectManager , TQ T _SLOT( modified ( const PURL : : Url & ) ) ) ;
connect ( Main : : _editorManager , TQ T _SIGNAL( statusChanged ( const TQString & ) ) , _editorStatus , TQ T _SLOT( setText ( const TQString & ) ) ) ;
connect ( Main : : _editorManager , TQ _SIGNAL( guiChanged ( ) ) , TQ _SLOT( updateGUI ( ) ) ) ;
connect ( Main : : _editorManager , TQ _SIGNAL( modified ( const PURL : : Url & ) ) , Main : : _projectManager , TQ _SLOT( modified ( const PURL : : Url & ) ) ) ;
connect ( Main : : _editorManager , TQ _SIGNAL( statusChanged ( const TQString & ) ) , _editorStatus , TQ _SLOT( setText ( const TQString & ) ) ) ;
dock = createDock ( " compile_log_dock_widget " , loader . loadIcon ( " piklab_compile " , TDEIcon : : Small ) ,
i18n ( " Compile Log " ) , DockPosition ( KDockWidget : : DockBottom , 80 ) ) ;
@ -160,63 +160,63 @@ MainWindow::MainWindow()
// managers
Programmer : : manager = new Programmer : : GuiManager ( this ) ;
Programmer : : manager - > setView ( _programLog ) ;
connect ( Programmer : : manager , TQ T _SIGNAL( actionMessage ( const TQString & ) ) , _actionStatus , TQ T _SLOT( setText ( const TQString & ) ) ) ;
connect ( Programmer : : manager , TQ T _SIGNAL( showProgress ( bool ) ) , TQ T _SLOT( showProgress ( bool ) ) ) ;
connect ( Programmer : : manager , TQ T _SIGNAL( setTotalProgress ( uint ) ) , TQ T _SLOT( setTotalProgress ( uint ) ) ) ;
connect ( Programmer : : manager , TQ T _SIGNAL( setProgress ( uint ) ) , TQ T _SLOT( setProgress ( uint ) ) ) ;
connect ( Programmer : : manager , TQ _SIGNAL( actionMessage ( const TQString & ) ) , _actionStatus , TQ _SLOT( setText ( const TQString & ) ) ) ;
connect ( Programmer : : manager , TQ _SIGNAL( showProgress ( bool ) ) , TQ _SLOT( showProgress ( bool ) ) ) ;
connect ( Programmer : : manager , TQ _SIGNAL( setTotalProgress ( uint ) ) , TQ _SLOT( setTotalProgress ( uint ) ) ) ;
connect ( Programmer : : manager , TQ _SIGNAL( setProgress ( uint ) ) , TQ _SLOT( setProgress ( uint ) ) ) ;
Debugger : : manager = new Debugger : : GuiManager ;
connect ( Debugger : : manager , TQ T _SIGNAL( targetStateChanged ( ) ) , TQ T _SLOT( updateGUI ( ) ) ) ;
connect ( Debugger : : manager , TQ T _SIGNAL( statusChanged ( const TQString & ) ) , _debugStatus , TQ T _SLOT( setText ( const TQString & ) ) ) ;
connect ( Debugger : : manager , TQ T _SIGNAL( actionMessage ( const TQString & ) ) , _actionStatus , TQ T _SLOT( setText ( const TQString & ) ) ) ;
connect ( Debugger : : manager , TQ _SIGNAL( targetStateChanged ( ) ) , TQ _SLOT( updateGUI ( ) ) ) ;
connect ( Debugger : : manager , TQ _SIGNAL( statusChanged ( const TQString & ) ) , _debugStatus , TQ _SLOT( setText ( const TQString & ) ) ) ;
connect ( Debugger : : manager , TQ _SIGNAL( actionMessage ( const TQString & ) ) , _actionStatus , TQ _SLOT( setText ( const TQString & ) ) ) ;
Main : : _compileManager = new Compile : : Manager ( this ) ;
Main : : _compileManager - > setView ( Main : : _compileLog ) ;
connect ( Main : : _compileManager , TQ T _SIGNAL( success ( ) ) , TQ T _SLOT( compileSuccess ( ) ) ) ;
connect ( Main : : _compileManager , TQ T _SIGNAL( failure ( ) ) , TQ T _SLOT( compileFailure ( ) ) ) ;
connect ( Main : : _compileManager , TQ T _SIGNAL( updateFile ( const Compile : : FileData & ) ) ,
TQ T _SLOT( updateFile ( const Compile : : FileData & ) ) ) ;
connect ( Main : : _compileManager , TQ _SIGNAL( success ( ) ) , TQ _SLOT( compileSuccess ( ) ) ) ;
connect ( Main : : _compileManager , TQ _SIGNAL( failure ( ) ) , TQ _SLOT( compileFailure ( ) ) ) ;
connect ( Main : : _compileManager , TQ _SIGNAL( updateFile ( const Compile : : FileData & ) ) ,
TQ _SLOT( updateFile ( const Compile : : FileData & ) ) ) ;
// actions
// file actions
TDEAction * a = KStdAction : : openNew ( this , TQ T _SLOT( newSourceFile ( ) ) , actionCollection ( ) ) ;
TDEAction * a = KStdAction : : openNew ( this , TQ _SLOT( newSourceFile ( ) ) , actionCollection ( ) ) ;
a - > setText ( i18n ( " &New Source File... " ) ) ;
( void ) new TDEAction ( i18n ( " New hex File... " ) , " document-new " , 0 , this , TQ T _SLOT( newHexFile ( ) ) ,
( void ) new TDEAction ( i18n ( " New hex File... " ) , " document-new " , 0 , this , TQ _SLOT( newHexFile ( ) ) ,
actionCollection ( ) , " file_new_hex " ) ;
KStdAction : : open ( this , TQ T _SLOT( openFile ( ) ) , actionCollection ( ) ) ;
TDERecentFilesAction * recent = KStdAction : : openRecent ( this , TQ T _SLOT( openRecentFile ( const KURL & ) ) , actionCollection ( ) ) ;
KStdAction : : open ( this , TQ _SLOT( openFile ( ) ) , actionCollection ( ) ) ;
TDERecentFilesAction * recent = KStdAction : : openRecent ( this , TQ _SLOT( openRecentFile ( const KURL & ) ) , actionCollection ( ) ) ;
recent - > setMaxItems ( 20 ) ;
recent - > loadEntries ( kapp - > config ( ) , " recent-files " ) ;
( void ) new TDEAction ( i18n ( " Save All " ) , 0 , 0 , Main : : _editorManager , TQ T _SLOT( saveAllFiles ( ) ) ,
( void ) new TDEAction ( i18n ( " Save All " ) , 0 , 0 , Main : : _editorManager , TQ _SLOT( saveAllFiles ( ) ) ,
actionCollection ( ) , " file_save_all " ) ;
KStdAction : : close ( Main : : _editorManager , TQ T _SLOT( closeCurrentEditor ( ) ) , actionCollection ( ) ) ;
( void ) new TDEAction ( i18n ( " C&lose All " ) , 0 , 0 , Main : : _editorManager , TQ T _SLOT( closeAllEditors ( ) ) ,
KStdAction : : close ( Main : : _editorManager , TQ _SLOT( closeCurrentEditor ( ) ) , actionCollection ( ) ) ;
( void ) new TDEAction ( i18n ( " C&lose All " ) , 0 , 0 , Main : : _editorManager , TQ _SLOT( closeAllEditors ( ) ) ,
actionCollection ( ) , " file_close_all " ) ;
( void ) new TDEAction ( i18n ( " Close All Others " ) , 0 , 0 , Main : : _editorManager , TQ T _SLOT( closeAllOtherEditors ( ) ) ,
( void ) new TDEAction ( i18n ( " Close All Others " ) , 0 , 0 , Main : : _editorManager , TQ _SLOT( closeAllOtherEditors ( ) ) ,
actionCollection ( ) , " file_closeother " ) ;
KStdAction : : quit ( this , TQ T _SLOT( close ( ) ) , actionCollection ( ) ) ;
KStdAction : : quit ( this , TQ _SLOT( close ( ) ) , actionCollection ( ) ) ;
// edit actions
// view actions
( void ) new TDEAction ( i18n ( " Back " ) , " back " , TQt : : ALT + TQt : : Key_Left ,
Main : : _editorManager , TQ T _SLOT( goBack ( ) ) , actionCollection ( ) , " history_back " ) ;
Main : : _editorManager , TQ _SLOT( goBack ( ) ) , actionCollection ( ) , " history_back " ) ;
( void ) new TDEAction ( i18n ( " Forward " ) , " forward " , TQt : : ALT + TQt : : Key_Right ,
Main : : _editorManager , TQ T _SLOT( goForward ( ) ) , actionCollection ( ) , " history_forward " ) ;
Main : : _editorManager , TQ _SLOT( goForward ( ) ) , actionCollection ( ) , " history_forward " ) ;
( void ) new TDEAction ( i18n ( " Switch to... " ) , 0 , TQt : : CTRL + TQt : : Key_Slash ,
Main : : _editorManager , TQ T _SLOT( switchToEditor ( ) ) , actionCollection ( ) , " file_switchto " ) ;
Main : : _editorManager , TQ _SLOT( switchToEditor ( ) ) , actionCollection ( ) , " file_switchto " ) ;
( void ) new TDEAction ( i18n ( " Switch Header/Implementation " ) , 0 , TQt : : SHIFT + TQt : : Key_F12 ,
Main : : _editorManager , TQ T _SLOT( switchHeaderImplementation ( ) ) , actionCollection ( ) , " view_switch_source " ) ;
Main : : _editorManager , TQ _SLOT( switchHeaderImplementation ( ) ) , actionCollection ( ) , " view_switch_source " ) ;
( void ) new TDEAction ( TQString ( ) , 0 , 0 ,
Debugger : : manager , TQ T _SLOT( toggleBreakpoint ( ) ) , actionCollection ( ) , " toggle_breakpoint " ) ;
Debugger : : manager , TQ _SLOT( toggleBreakpoint ( ) ) , actionCollection ( ) , " toggle_breakpoint " ) ;
( void ) new TDEAction ( TQString ( ) , 0 , 0 ,
Debugger : : manager , TQ T _SLOT( toggleEnableBreakpoint ( ) ) , actionCollection ( ) , " enable_breakpoint " ) ;
Debugger : : manager , TQ _SLOT( toggleEnableBreakpoint ( ) ) , actionCollection ( ) , " enable_breakpoint " ) ;
( void ) new TDEAction ( i18n ( " Show disassembly location " ) , 0 , 0 ,
Debugger : : manager , TQ T _SLOT( showDisassemblyLocation ( ) ) , actionCollection ( ) , " show_disassembly_location " ) ;
Debugger : : manager , TQ _SLOT( showDisassemblyLocation ( ) ) , actionCollection ( ) , " show_disassembly_location " ) ;
TDEActionMenu * toolViewsMenu = new TDEActionMenu ( i18n ( " Tool Views " ) , 0 , " view_tool_views " ) ;
connect ( toolViewsMenu - > popupMenu ( ) , TQ T _SIGNAL( aboutToShow ( ) ) , TQ T _SLOT( updateToolViewsActions ( ) ) ) ;
connect ( toolViewsMenu - > popupMenu ( ) , TQ _SIGNAL( aboutToShow ( ) ) , TQ _SLOT( updateToolViewsActions ( ) ) ) ;
actionCollection ( ) - > insert ( toolViewsMenu ) ;
a = new TDEAction ( i18n ( " &Reset Layout " ) , 0 , 0 , this , TQ T _SLOT( resetDockLayout ( ) ) , actionCollection ( ) , " view_reset_layout " ) ;
a = new TDEAction ( i18n ( " &Reset Layout " ) , 0 , 0 , this , TQ _SLOT( resetDockLayout ( ) ) , actionCollection ( ) , " view_reset_layout " ) ;
toolViewsMenu - > insert ( a ) ;
toolViewsMenu - > popupMenu ( ) - > insertSeparator ( ) ;
TQValueList < DockData > : : iterator it ;
@ -224,106 +224,106 @@ MainWindow::MainWindow()
// project actions
( void ) new TDEAction ( i18n ( " New Project... " ) , " piklab_createproject " , 0 ,
this , TQ T _SLOT( newProject ( ) ) , actionCollection ( ) , " project_new " ) ;
this , TQ _SLOT( newProject ( ) ) , actionCollection ( ) , " project_new " ) ;
( void ) new TDEAction ( i18n ( " Open Project... " ) , " piklab_openproject " , 0 ,
this , TQ T _SLOT( openProject ( ) ) , actionCollection ( ) , " project_open " ) ;
this , TQ _SLOT( openProject ( ) ) , actionCollection ( ) , " project_open " ) ;
recent = new TDERecentFilesAction ( i18n ( " Open Recent Project " ) , 0 ,
this , TQ T _SLOT( openRecentProject ( const KURL & ) ) , actionCollection ( ) , " project_open_recent " ) ;
this , TQ _SLOT( openRecentProject ( const KURL & ) ) , actionCollection ( ) , " project_open_recent " ) ;
recent - > setMaxItems ( 20 ) ;
recent - > loadEntries ( kapp - > config ( ) , " recent-projects " ) ;
( void ) new TDEAction ( i18n ( " Project Options... " ) , " configure " , 0 ,
this , TQ T _SLOT( configureProject ( ) ) , actionCollection ( ) , " project_options " ) ;
this , TQ _SLOT( configureProject ( ) ) , actionCollection ( ) , " project_options " ) ;
( void ) new TDEAction ( i18n ( " Close Project " ) , " window-close " , 0 ,
this , TQ T _SLOT( closeProject ( ) ) , actionCollection ( ) , " project_close " ) ;
this , TQ _SLOT( closeProject ( ) ) , actionCollection ( ) , " project_close " ) ;
( void ) new TDEAction ( i18n ( " Add Source File... " ) , " piklab_addfile " , 0 ,
Main : : _projectManager , TQ T _SLOT( insertSourceFiles ( ) ) , actionCollection ( ) , " project_add_source_file " ) ;
Main : : _projectManager , TQ _SLOT( insertSourceFiles ( ) ) , actionCollection ( ) , " project_add_source_file " ) ;
( void ) new TDEAction ( i18n ( " Add Object File... " ) , " piklab_addfile " , 0 ,
Main : : _projectManager , TQ T _SLOT( insertObjectFiles ( ) ) , actionCollection ( ) , " project_add_object_file " ) ;
Main : : _projectManager , TQ _SLOT( insertObjectFiles ( ) ) , actionCollection ( ) , " project_add_object_file " ) ;
( void ) new TDEAction ( i18n ( " Add Current File " ) , " piklab_addcurrentfile " , 0 ,
Main : : _projectManager , TQ T _SLOT( insertCurrentFile ( ) ) , actionCollection ( ) , " project_add_current_file " ) ;
Main : : _projectManager , TQ _SLOT( insertCurrentFile ( ) ) , actionCollection ( ) , " project_add_current_file " ) ;
// build actions
( void ) new TDEAction ( i18n ( " &Build Project " ) , " piklab_compile " , TQt : : Key_F8 ,
this , TQ T _SLOT( buildProject ( ) ) , actionCollection ( ) , " build_build_project " ) ;
this , TQ _SLOT( buildProject ( ) ) , actionCollection ( ) , " build_build_project " ) ;
( void ) new TDEAction ( i18n ( " &Compile File " ) , 0 , TQt : : SHIFT + TQt : : Key_F8 ,
this , TQ T _SLOT( compileFile ( ) ) , actionCollection ( ) , " build_compile_file " ) ;
this , TQ _SLOT( compileFile ( ) ) , actionCollection ( ) , " build_compile_file " ) ;
( void ) new TDEAction ( i18n ( " Clean " ) , " trashcan_empty " , 0 ,
this , TQ T _SLOT( cleanBuild ( ) ) , actionCollection ( ) , " build_clean " ) ;
this , TQ _SLOT( cleanBuild ( ) ) , actionCollection ( ) , " build_clean " ) ;
( void ) new TDEAction ( i18n ( " Stop " ) , " process-stop " , 0 ,
this , TQ T _SLOT( stopBuild ( ) ) , actionCollection ( ) , " build_stop " ) ;
this , TQ _SLOT( stopBuild ( ) ) , actionCollection ( ) , " build_stop " ) ;
// programmer actions
( void ) new TDEAction ( i18n ( " &Connect " ) , " connect_creating " , 0 ,
Programmer : : manager , TQ T _SLOT( connectDevice ( ) ) , actionCollection ( ) , " prog_connect " ) ;
Programmer : : manager , TQ _SLOT( connectDevice ( ) ) , actionCollection ( ) , " prog_connect " ) ;
( void ) new TDEToggleAction ( i18n ( " Device Power " ) , " piklab_power " , 0 ,
Programmer : : manager , TQ T _SLOT( toggleDevicePower ( ) ) , actionCollection ( ) , " prog_power " ) ;
Programmer : : manager , TQ _SLOT( toggleDevicePower ( ) ) , actionCollection ( ) , " prog_power " ) ;
( void ) new TDEAction ( i18n ( " &Disconnect " ) , " connect_no " , 0 ,
Programmer : : manager , TQ T _SLOT( disconnectDevice ( ) ) , actionCollection ( ) , " prog_disconnect " ) ;
Programmer : : manager , TQ _SLOT( disconnectDevice ( ) ) , actionCollection ( ) , " prog_disconnect " ) ;
( void ) new TDEAction ( i18n ( " &Program " ) , " piklab_burnchip " , TQt : : SHIFT + TQt : : Key_F5 ,
this , TQ T _SLOT( program ( ) ) , actionCollection ( ) , " prog_program " ) ;
this , TQ _SLOT( program ( ) ) , actionCollection ( ) , " prog_program " ) ;
( void ) new TDEAction ( i18n ( " &Verify " ) , " piklab_verifychip " , TQt : : SHIFT + TQt : : Key_F6 ,
this , TQ T _SLOT( verify ( ) ) , actionCollection ( ) , " prog_verify " ) ;
this , TQ _SLOT( verify ( ) ) , actionCollection ( ) , " prog_verify " ) ;
( void ) new TDEAction ( i18n ( " &Read " ) , " piklab_readchip " , TQt : : SHIFT + TQt : : Key_F7 ,
this , TQ T _SLOT( read ( ) ) , actionCollection ( ) , " prog_read " ) ;
this , TQ _SLOT( read ( ) ) , actionCollection ( ) , " prog_read " ) ;
( void ) new TDEAction ( i18n ( " &Erase " ) , " piklab_erasechip " , 0 ,
this , TQ T _SLOT( erase ( ) ) , actionCollection ( ) , " prog_erase " ) ;
this , TQ _SLOT( erase ( ) ) , actionCollection ( ) , " prog_erase " ) ;
( void ) new TDEAction ( i18n ( " &Blank Check " ) , " piklab_blankcheck " , 0 ,
this , TQ T _SLOT( blankCheck ( ) ) , actionCollection ( ) , " prog_blank_check " ) ;
this , TQ _SLOT( blankCheck ( ) ) , actionCollection ( ) , " prog_blank_check " ) ;
( void ) new TDEAction ( i18n ( " &Run " ) , " launch " , TQt : : SHIFT + TQt : : Key_F9 ,
Programmer : : manager , TQ T _SLOT( run ( ) ) , actionCollection ( ) , " prog_run " ) ;
Programmer : : manager , TQ _SLOT( run ( ) ) , actionCollection ( ) , " prog_run " ) ;
( void ) new TDEAction ( i18n ( " &Stop " ) , " piklab_stop " , 0 ,
Programmer : : manager , TQ T _SLOT( halt ( ) ) , actionCollection ( ) , " prog_stop " ) ;
Programmer : : manager , TQ _SLOT( halt ( ) ) , actionCollection ( ) , " prog_stop " ) ;
( void ) new TDEAction ( i18n ( " R&estart " ) , " piklab_restart " , 0 ,
Programmer : : manager , TQ T _SLOT( restart ( ) ) , actionCollection ( ) , " prog_restart " ) ;
Programmer : : manager , TQ _SLOT( restart ( ) ) , actionCollection ( ) , " prog_restart " ) ;
( void ) new TDEAction ( i18n ( " &Advanced... " ) , 0 , 0 ,
Programmer : : manager , TQ T _SLOT( showAdvancedDialog ( ) ) , actionCollection ( ) , " prog_advanced " ) ;
Programmer : : manager , TQ _SLOT( showAdvancedDialog ( ) ) , actionCollection ( ) , " prog_advanced " ) ;
( void ) new TDEAction ( i18n ( " Settings... " ) , " configure " , 0 ,
this , TQ T _SLOT( showProgrammerSettings ( ) ) , actionCollection ( ) , " prog_settings " ) ;
this , TQ _SLOT( showProgrammerSettings ( ) ) , actionCollection ( ) , " prog_settings " ) ;
// debugger actions
( void ) new TDEAction ( i18n ( " &Start " ) , " launch " , TQt : : SHIFT + TQt : : Key_F9 ,
Programmer : : manager , TQ T _SLOT( restart ( ) ) , actionCollection ( ) , " debug_start " ) ;
Programmer : : manager , TQ _SLOT( restart ( ) ) , actionCollection ( ) , " debug_start " ) ;
( void ) new TDEAction ( i18n ( " &Run " ) , " piklab_run " , TQt : : SHIFT + TQt : : Key_F9 ,
Programmer : : manager , TQ T _SLOT( run ( ) ) , actionCollection ( ) , " debug_run " ) ;
Programmer : : manager , TQ _SLOT( run ( ) ) , actionCollection ( ) , " debug_run " ) ;
( void ) new TDEAction ( i18n ( " &Step " ) , " piklab_debug_step " , 0 ,
Programmer : : manager , TQ T _SLOT( step ( ) ) , actionCollection ( ) , " debug_next " ) ;
Programmer : : manager , TQ _SLOT( step ( ) ) , actionCollection ( ) , " debug_next " ) ;
//(void)new TDEAction(i18n("Step &In"), "piklab_debug_stepin",
// 0, this, TQ T _SLOT(debugStepIn()), actionCollection(), "debug_step_in");
// 0, this, TQ _SLOT(debugStepIn()), actionCollection(), "debug_step_in");
//(void)new TDEAction(i18n("Step &Out"), "piklab_debug_stepout",
// 0, this, TQ T _SLOT(debugStepOut()), actionCollection(), "debug_step_out");
// 0, this, TQ _SLOT(debugStepOut()), actionCollection(), "debug_step_out");
( void ) new TDEAction ( i18n ( " &Break<Translators: it is the verb> " , " &Halt " ) , " piklab_debughalt " , 0 ,
Programmer : : manager , TQ T _SLOT( halt ( ) ) , actionCollection ( ) , " debug_halt " ) ;
Programmer : : manager , TQ _SLOT( halt ( ) ) , actionCollection ( ) , " debug_halt " ) ;
( void ) new TDEAction ( i18n ( " &Disconnect/Stop " ) , " piklab_stop " , 0 ,
Programmer : : manager , TQ T _SLOT( disconnectDevice ( ) ) , actionCollection ( ) , " debug_stop " ) ;
Programmer : : manager , TQ _SLOT( disconnectDevice ( ) ) , actionCollection ( ) , " debug_stop " ) ;
( void ) new TDEAction ( i18n ( " R&eset " ) , " piklab_restart " , 0 ,
Programmer : : manager , TQ T _SLOT( restart ( ) ) , actionCollection ( ) , " debug_reset " ) ;
Programmer : : manager , TQ _SLOT( restart ( ) ) , actionCollection ( ) , " debug_reset " ) ;
( void ) new TDEAction ( i18n ( " Show Program Counter " ) , " piklab_program_counter " , 0 ,
Debugger : : manager , TQ T _SLOT( showPC ( ) ) , actionCollection ( ) , " debug_show_pc " ) ;
Debugger : : manager , TQ _SLOT( showPC ( ) ) , actionCollection ( ) , " debug_show_pc " ) ;
( void ) new TDEAction ( i18n ( " Clear All Breakpoints " ) , " remove " , 0 ,
Debugger : : manager , TQ T _SLOT( clearBreakpoints ( ) ) , actionCollection ( ) , " debug_clear_breakpoints " ) ;
Debugger : : manager , TQ _SLOT( clearBreakpoints ( ) ) , actionCollection ( ) , " debug_clear_breakpoints " ) ;
( void ) new TDEAction ( i18n ( " Settings... " ) , " configure " , 0 ,
this , TQ T _SLOT( showDebuggerSettings ( ) ) , actionCollection ( ) , " debug_settings " ) ;
this , TQ _SLOT( showDebuggerSettings ( ) ) , actionCollection ( ) , " debug_settings " ) ;
// tools
( void ) new TDEAction ( i18n ( " &Pikloops... " ) , 0 , 0 ,
this , TQ T _SLOT( runPikloops ( ) ) , actionCollection ( ) , " tools_pikloops " ) ;
this , TQ _SLOT( runPikloops ( ) ) , actionCollection ( ) , " tools_pikloops " ) ;
( void ) new TDEAction ( i18n ( " &Find Files... " ) , " edit-find " , 0 ,
this , TQ T _SLOT( runKfind ( ) ) , actionCollection ( ) , " tools_kfind " ) ;
this , TQ _SLOT( runKfind ( ) ) , actionCollection ( ) , " tools_kfind " ) ;
( void ) new TDEAction ( i18n ( " &Device Information... " ) , " application-vnd.tde.info " , 0 ,
this , TQ T _SLOT( showDeviceInfo ( ) ) , actionCollection ( ) , " tools_device_information " ) ;
this , TQ _SLOT( showDeviceInfo ( ) ) , actionCollection ( ) , " tools_device_information " ) ;
( void ) new TDEAction ( i18n ( " &Config Generator... " ) , 0 , 0 ,
this , TQ T _SLOT( configGenerator ( ) ) , actionCollection ( ) , " tools_config_generator " ) ;
this , TQ _SLOT( configGenerator ( ) ) , actionCollection ( ) , " tools_config_generator " ) ;
( void ) new TDEAction ( i18n ( " &Template Generator... " ) , 0 , 0 ,
this , TQ T _SLOT( templateGenerator ( ) ) , actionCollection ( ) , " tools_template_generator " ) ;
this , TQ _SLOT( templateGenerator ( ) ) , actionCollection ( ) , " tools_template_generator " ) ;
// settings actions
( void ) new TDEAction ( i18n ( " Configure Toolchains... " ) , 0 , 0 ,
this , TQ T _SLOT( configureToolchains ( ) ) , actionCollection ( ) , " options_configure_toolchains " ) ;
( void ) KStdAction : : preferences ( this , TQ T _SLOT( configure ( ) ) , actionCollection ( ) ) ;
this , TQ _SLOT( configureToolchains ( ) ) , actionCollection ( ) , " options_configure_toolchains " ) ;
( void ) KStdAction : : preferences ( this , TQ _SLOT( configure ( ) ) , actionCollection ( ) ) ;
// help
( void ) new TDEAction ( i18n ( " Report Bug... " ) , " likeback_bug " , 0 ,
LikeBack : : instance ( ) , TQ T _SLOT( iFoundABug ( ) ) , actionCollection ( ) , " help_report_bug_piklab " ) ;
LikeBack : : instance ( ) , TQ _SLOT( iFoundABug ( ) ) , actionCollection ( ) , " help_report_bug_piklab " ) ;
setupGUI ( ) ;
readDockConfig ( ) ;
@ -332,25 +332,25 @@ MainWindow::MainWindow()
menuBar ( ) - > insertItem ( new TQLabel ( menuBar ( ) ) ) ; // #### first widget is put left-most...
MenuBarButton * button = new MenuBarButton ( " likeback_like " , menuBar ( ) ) ;
TQToolTip : : add ( button , i18n ( " I like... " ) ) ;
connect ( button , TQ T _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ T _SLOT( iLike ( ) ) ) ;
connect ( button , TQ _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ _SLOT( iLike ( ) ) ) ;
menuBar ( ) - > insertItem ( button ) ;
button = new MenuBarButton ( " likeback_dislike " , menuBar ( ) ) ;
TQToolTip : : add ( button , i18n ( " I do not like... " ) ) ;
connect ( button , TQ T _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ T _SLOT( iDoNotLike ( ) ) ) ;
connect ( button , TQ _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ _SLOT( iDoNotLike ( ) ) ) ;
menuBar ( ) - > insertItem ( button ) ;
button = new MenuBarButton ( " likeback_bug " , menuBar ( ) ) ;
TQToolTip : : add ( button , i18n ( " I found a bug... " ) ) ;
connect ( button , TQ T _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ T _SLOT( iFoundABug ( ) ) ) ;
connect ( button , TQ _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ _SLOT( iFoundABug ( ) ) ) ;
menuBar ( ) - > insertItem ( button ) ;
button = new MenuBarButton ( " configure " , menuBar ( ) ) ;
TQToolTip : : add ( button , i18n ( " Configure email... " ) ) ;
connect ( button , TQ T _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ T _SLOT( askEMail ( ) ) ) ;
connect ( button , TQ _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ _SLOT( askEMail ( ) ) ) ;
menuBar ( ) - > insertItem ( button ) ;
button = new MenuBarButton ( " help " , menuBar ( ) ) ;
connect ( button , TQ T _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ T _SLOT( showWhatsThisMessage ( ) ) ) ;
connect ( button , TQ _SIGNAL( clicked ( ) ) , LikeBack : : instance ( ) , TQ _SLOT( showWhatsThisMessage ( ) ) ) ;
menuBar ( ) - > insertItem ( button ) ;
TQTimer : : singleShot ( 0 , this , TQ T _SLOT( initialLoading ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQ _SLOT( initialLoading ( ) ) ) ;
}
MainWindow : : ~ MainWindow ( )
@ -404,7 +404,7 @@ void MainWindow::configureToolbar()
{
saveMainWindowSettings ( TDEGlobal : : config ( ) , " MainWindow " ) ;
KEditToolbar dlg ( actionCollection ( ) ) ;
connect ( & dlg , TQ T _SIGNAL( newToolbarConfig ( ) ) , TQ T _SLOT( applyToolbarSettings ( ) ) ) ;
connect ( & dlg , TQ _SIGNAL( newToolbarConfig ( ) ) , TQ _SLOT( applyToolbarSettings ( ) ) ) ;
dlg . exec ( ) ;
}
@ -710,7 +710,7 @@ void MainWindow::runKfind()
PURL : : Url url = Main : : projectManager ( ) . projectUrl ( ) ;
if ( ! url . isEmpty ( ) ) path = url . path ( ) ;
_kfindProcess - > setup ( " kfind " , path , false ) ;
connect ( _kfindProcess , TQ T _SIGNAL( done ( int ) ) , TQ T _SLOT( kfindDone ( ) ) ) ;
connect ( _kfindProcess , TQ _SIGNAL( done ( int ) ) , TQ _SLOT( kfindDone ( ) ) ) ;
if ( ! _kfindProcess - > start ( 0 ) )
MessageBox : : sorry ( i18n ( " Could not run \" kfind \" " ) , Log : : Show ) ;
}
@ -726,7 +726,7 @@ void MainWindow::runPikloops()
if ( _pikloopsProcess ) return ;
_pikloopsProcess = new : : Process : : StringOutput ;
_pikloopsProcess - > setup ( " pikloops " , TQStringList ( ) , false ) ;
connect ( _pikloopsProcess , TQ T _SIGNAL( done ( int ) ) , TQ T _SLOT( pikloopsDone ( ) ) ) ;
connect ( _pikloopsProcess , TQ _SIGNAL( done ( int ) ) , TQ _SLOT( pikloopsDone ( ) ) ) ;
if ( ! _pikloopsProcess - > start ( 0 ) )
MessageBox : : detailedSorry ( i18n ( " Could not run \" pikloops \" " ) , i18n ( " The Pikloops utility (%1) is not installed in your system. " ) . arg ( " http://pikloops.sourceforge.net " ) , Log : : Show ) ;
}