|
|
|
@ -125,10 +125,10 @@ KPicoSim::KPicoSim() : TDEMainWindow( 0, "KPicoSim" )
|
|
|
|
|
TDEToolBar *toolbar = new TDEToolBar( this ) ;
|
|
|
|
|
addDockWindow( toolbar ) ;
|
|
|
|
|
|
|
|
|
|
toolbar->insertButton( "filenew", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotNewFile() ), true, "New" ) ;
|
|
|
|
|
toolbar->insertButton( "fileopen", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotOpen() ), true, "Open" ) ;
|
|
|
|
|
toolbar->insertButton( "filesave", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotSave() ), true, "Save" ) ;
|
|
|
|
|
toolbar->insertButton( "filesaveas", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotSaveAs() ), true, "Save As" ) ;
|
|
|
|
|
toolbar->insertButton( "document-new", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotNewFile() ), true, "New" ) ;
|
|
|
|
|
toolbar->insertButton( "document-open", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotOpen() ), true, "Open" ) ;
|
|
|
|
|
toolbar->insertButton( "document-save", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotSave() ), true, "Save" ) ;
|
|
|
|
|
toolbar->insertButton( "document-save-as", -1, TQT_SIGNAL( clicked() ), TQT_TQOBJECT(m_editor), TQT_SLOT( slotSaveAs() ), true, "Save As" ) ;
|
|
|
|
|
|
|
|
|
|
m_debugBar = new TDEToolBar( this ) ;
|
|
|
|
|
addDockWindow( m_debugBar ) ;
|
|
|
|
@ -182,17 +182,17 @@ void KPicoSim::buildMenu()
|
|
|
|
|
exportMenu->insertItem( "HEX", TQT_TQOBJECT(this), TQT_SLOT( fileExportHEX() ) ) ;
|
|
|
|
|
|
|
|
|
|
m_fileMenu = new TDEPopupMenu( this ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "filenew", TDEIcon::Small ), "New", TQT_TQOBJECT(this), TQT_SLOT( slotFileNew() ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "fileopen", TDEIcon::Small ), "Open", TQT_TQOBJECT(m_editor), TQT_SLOT( slotOpen() ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "document-new", TDEIcon::Small ), "New", TQT_TQOBJECT(this), TQT_SLOT( slotFileNew() ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "document-open", TDEIcon::Small ), "Open", TQT_TQOBJECT(m_editor), TQT_SLOT( slotOpen() ) ) ;
|
|
|
|
|
m_fileMenu->insertSeparator() ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "filesave", TDEIcon::Small ), "Save", TQT_TQOBJECT(m_editor), TQT_SLOT( slotSave() ), TQKeySequence( "CTRL+S" ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "filesaveas", TDEIcon::Small ), "Save As...", TQT_TQOBJECT(m_editor), TQT_SLOT( slotSaveAs() ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "document-save", TDEIcon::Small ), "Save", TQT_TQOBJECT(m_editor), TQT_SLOT( slotSave() ), TQKeySequence( "CTRL+S" ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "document-save-as", TDEIcon::Small ), "Save As...", TQT_TQOBJECT(m_editor), TQT_SLOT( slotSaveAs() ) ) ;
|
|
|
|
|
m_fileMenu->insertSeparator() ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "fileprint", TDEIcon::Small ), "Print...", TQT_TQOBJECT(m_editor), TQT_SLOT( slotPrint() ), TQKeySequence( "CTRL+P" ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "document-print", TDEIcon::Small ), "Print...", TQT_TQOBJECT(m_editor), TQT_SLOT( slotPrint() ), TQKeySequence( "CTRL+P" ) ) ;
|
|
|
|
|
m_fileMenu->insertSeparator() ;
|
|
|
|
|
m_fileMenu->insertItem( "Export", exportMenu ) ;
|
|
|
|
|
m_fileMenu->insertSeparator() ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "fileclose", TDEIcon::Small ), "Quit", TQT_TQOBJECT(this), TQT_SLOT( slotClose() ) ) ;
|
|
|
|
|
m_fileMenu->insertItem( ldr->loadIcon( "window-close", TDEIcon::Small ), "Quit", TQT_TQOBJECT(this), TQT_SLOT( slotClose() ) ) ;
|
|
|
|
|
|
|
|
|
|
m_editMenu = new TDEPopupMenu( this ) ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "edit-undo", TDEIcon::Small ), "Undo", TQT_TQOBJECT(m_editor), TQT_SLOT( slotUndo() ),TQKeySequence( "CTRL+Z" ) ) ;
|
|
|
|
@ -200,9 +200,9 @@ void KPicoSim::buildMenu()
|
|
|
|
|
m_editMenu->insertSeparator() ;
|
|
|
|
|
m_editMenu->insertItem( "Select All", TQT_TQOBJECT(m_editor), TQT_SLOT( slotSelectAll() ),TQKeySequence( "CTRL+A" ) ) ;
|
|
|
|
|
m_editMenu->insertSeparator() ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "editcut", TDEIcon::Small ), "Cut", TQT_TQOBJECT(m_editor), TQT_SLOT( slotCut() ),TQKeySequence( "CTRL+X" ) ) ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "editcopy", TDEIcon::Small ), "Copy", TQT_TQOBJECT(m_editor), TQT_SLOT( slotCopy() ),TQKeySequence( "CTRL+C" ) ) ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "editpaste", TDEIcon::Small ), "Paste", TQT_TQOBJECT(m_editor), TQT_SLOT( slotPaste() ),TQKeySequence( "CTRL+V" ) ) ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "edit-cut", TDEIcon::Small ), "Cut", TQT_TQOBJECT(m_editor), TQT_SLOT( slotCut() ),TQKeySequence( "CTRL+X" ) ) ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "edit-copy", TDEIcon::Small ), "Copy", TQT_TQOBJECT(m_editor), TQT_SLOT( slotCopy() ),TQKeySequence( "CTRL+C" ) ) ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "edit-paste", TDEIcon::Small ), "Paste", TQT_TQOBJECT(m_editor), TQT_SLOT( slotPaste() ),TQKeySequence( "CTRL+V" ) ) ;
|
|
|
|
|
m_editMenu->insertSeparator() ;
|
|
|
|
|
m_editMenu->insertItem( ldr->loadIcon( "edit-find", TDEIcon::Small ), "Find...", TQT_TQOBJECT(m_editor), TQT_SLOT( slotFind() ), TQKeySequence( "CTRL+F" ) ) ;
|
|
|
|
|
m_editMenu->insertItem( "Find Next", TQT_TQOBJECT(m_editor), TQT_SLOT( slotFindNext() ), TQKeySequence( "F3" ) ) ;
|
|
|
|
|