diff options
Diffstat (limited to 'src/libgui/toplevel.cpp')
-rw-r--r-- | src/libgui/toplevel.cpp | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/src/libgui/toplevel.cpp b/src/libgui/toplevel.cpp index 591f166..9244d20 100644 --- a/src/libgui/toplevel.cpp +++ b/src/libgui/toplevel.cpp @@ -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(TQT_TQOBJECT(Main::_projectManager), TQT_SIGNAL(guiChanged()), TQT_SLOT(updateGUI())); + connect(Main::_projectManager, TQT_SIGNAL(guiChanged()), TQT_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(TQT_TQOBJECT(Main::_editorManager), TQT_SIGNAL(guiChanged()), TQT_SLOT(updateGUI())); - connect(TQT_TQOBJECT(Main::_editorManager), TQT_SIGNAL(modified(const PURL::Url &)), TQT_TQOBJECT(Main::_projectManager), TQT_SLOT(modified(const PURL::Url &))); - connect(TQT_TQOBJECT(Main::_editorManager), TQT_SIGNAL(statusChanged(const TQString &)), _editorStatus, TQT_SLOT(setText(const TQString &))); + connect(Main::_editorManager, TQT_SIGNAL(guiChanged()), TQT_SLOT(updateGUI())); + connect(Main::_editorManager, TQT_SIGNAL(modified(const PURL::Url &)), Main::_projectManager, TQT_SLOT(modified(const PURL::Url &))); + connect(Main::_editorManager, TQT_SIGNAL(statusChanged(const TQString &)), _editorStatus, TQT_SLOT(setText(const TQString &))); dock = createDock("compile_log_dock_widget", loader.loadIcon("piklab_compile", TDEIcon::Small), i18n("Compile Log"), DockPosition(KDockWidget::DockBottom, 80)); @@ -158,7 +158,7 @@ MainWindow::MainWindow() dock->setWidget(Main::_consoleView); // managers - Programmer::manager = new Programmer::GuiManager(TQT_TQOBJECT(this)); + Programmer::manager = new Programmer::GuiManager(this); Programmer::manager->setView(_programLog); connect(Programmer::manager, TQT_SIGNAL(actionMessage(const TQString &)), _actionStatus, TQT_SLOT(setText(const TQString &))); connect(Programmer::manager, TQT_SIGNAL(showProgress(bool)), TQT_SLOT(showProgress(bool))); @@ -170,7 +170,7 @@ MainWindow::MainWindow() connect(Debugger::manager, TQT_SIGNAL(statusChanged(const TQString &)), _debugStatus, TQT_SLOT(setText(const TQString &))); connect(Debugger::manager, TQT_SIGNAL(actionMessage(const TQString &)), _actionStatus, TQT_SLOT(setText(const TQString &))); - Main::_compileManager = new Compile::Manager(TQT_TQOBJECT(this)); + Main::_compileManager = new Compile::Manager(this); Main::_compileManager->setView(Main::_compileLog); connect(Main::_compileManager, TQT_SIGNAL(success()), TQT_SLOT(compileSuccess())); connect(Main::_compileManager, TQT_SIGNAL(failure()), TQT_SLOT(compileFailure())); @@ -179,34 +179,34 @@ MainWindow::MainWindow() // actions // file actions - TDEAction *a = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(newSourceFile()), actionCollection()); + TDEAction *a = KStdAction::openNew(this, TQT_SLOT(newSourceFile()), actionCollection()); a->setText(i18n("&New Source File...")); - (void)new TDEAction(i18n("New hex File..."), "document-new", 0, TQT_TQOBJECT(this), TQT_SLOT(newHexFile()), + (void)new TDEAction(i18n("New hex File..."), "document-new", 0, this, TQT_SLOT(newHexFile()), actionCollection(), "file_new_hex"); - KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(openFile()), actionCollection()); - TDERecentFilesAction *recent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(openRecentFile(const KURL &)), actionCollection()); + KStdAction::open(this, TQT_SLOT(openFile()), actionCollection()); + TDERecentFilesAction *recent = KStdAction::openRecent(this, TQT_SLOT(openRecentFile(const KURL &)), actionCollection()); recent->setMaxItems(20); recent->loadEntries(kapp->config(), "recent-files"); - (void)new TDEAction(i18n("Save All"), 0, 0, TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(saveAllFiles()), + (void)new TDEAction(i18n("Save All"), 0, 0, Main::_editorManager, TQT_SLOT(saveAllFiles()), actionCollection(), "file_save_all"); - KStdAction::close(TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(closeCurrentEditor()), actionCollection()); - (void)new TDEAction(i18n("C&lose All"), 0, 0, TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(closeAllEditors()), + KStdAction::close(Main::_editorManager, TQT_SLOT(closeCurrentEditor()), actionCollection()); + (void)new TDEAction(i18n("C&lose All"), 0, 0, Main::_editorManager, TQT_SLOT(closeAllEditors()), actionCollection(), "file_close_all"); - (void)new TDEAction(i18n("Close All Others"), 0, 0, TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(closeAllOtherEditors()), + (void)new TDEAction(i18n("Close All Others"), 0, 0, Main::_editorManager, TQT_SLOT(closeAllOtherEditors()), actionCollection(), "file_closeother"); - KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); + KStdAction::quit(this, TQT_SLOT(close()), actionCollection()); // edit actions // view actions (void)new TDEAction(i18n("Back"), "back", TQt::ALT + TQt::Key_Left, - TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(goBack()), actionCollection(), "history_back"); + Main::_editorManager, TQT_SLOT(goBack()), actionCollection(), "history_back"); (void)new TDEAction(i18n("Forward"), "forward", TQt::ALT + TQt::Key_Right, - TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(goForward()), actionCollection(), "history_forward"); + Main::_editorManager, TQT_SLOT(goForward()), actionCollection(), "history_forward"); (void)new TDEAction(i18n("Switch to..."), 0, TQt::CTRL + TQt::Key_Slash, - TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(switchToEditor()), actionCollection(), "file_switchto"); + Main::_editorManager, TQT_SLOT(switchToEditor()), actionCollection(), "file_switchto"); (void)new TDEAction(i18n("Switch Header/Implementation"), 0, TQt::SHIFT + TQt::Key_F12, - TQT_TQOBJECT(Main::_editorManager), TQT_SLOT(switchHeaderImplementation()), actionCollection(), "view_switch_source"); + Main::_editorManager, TQT_SLOT(switchHeaderImplementation()), actionCollection(), "view_switch_source"); (void)new TDEAction(TQString(), 0, 0, Debugger::manager, TQT_SLOT(toggleBreakpoint()), actionCollection(), "toggle_breakpoint"); (void)new TDEAction(TQString(), 0, 0, @@ -216,7 +216,7 @@ MainWindow::MainWindow() TDEActionMenu *toolViewsMenu = new TDEActionMenu( i18n("Tool Views"), 0, "view_tool_views"); connect(toolViewsMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_SLOT(updateToolViewsActions())); actionCollection()->insert(toolViewsMenu); - a = new TDEAction(i18n("&Reset Layout"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(resetDockLayout()), actionCollection(), "view_reset_layout"); + a = new TDEAction(i18n("&Reset Layout"), 0, 0, this, TQT_SLOT(resetDockLayout()), actionCollection(), "view_reset_layout"); toolViewsMenu->insert(a); toolViewsMenu->popupMenu()->insertSeparator(); TQValueList<DockData>::iterator it; @@ -224,33 +224,33 @@ MainWindow::MainWindow() // project actions (void)new TDEAction(i18n("New Project..."), "piklab_createproject", 0, - TQT_TQOBJECT(this), TQT_SLOT(newProject()), actionCollection(), "project_new"); + this, TQT_SLOT(newProject()), actionCollection(), "project_new"); (void)new TDEAction(i18n("Open Project..."), "piklab_openproject", 0, - TQT_TQOBJECT(this), TQT_SLOT(openProject()), actionCollection(), "project_open"); + this, TQT_SLOT(openProject()), actionCollection(), "project_open"); recent = new TDERecentFilesAction(i18n("Open Recent Project"), 0, - TQT_TQOBJECT(this), TQT_SLOT(openRecentProject(const KURL &)), actionCollection(), "project_open_recent"); + this, TQT_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, - TQT_TQOBJECT(this), TQT_SLOT(configureProject()), actionCollection(), "project_options"); + this, TQT_SLOT(configureProject()), actionCollection(), "project_options"); (void)new TDEAction(i18n("Close Project"), "window-close", 0, - TQT_TQOBJECT(this), TQT_SLOT(closeProject()), actionCollection(), "project_close"); + this, TQT_SLOT(closeProject()), actionCollection(), "project_close"); (void)new TDEAction(i18n("Add Source File..."), "piklab_addfile", 0, - TQT_TQOBJECT(Main::_projectManager), TQT_SLOT(insertSourceFiles()), actionCollection(), "project_add_source_file"); + Main::_projectManager, TQT_SLOT(insertSourceFiles()), actionCollection(), "project_add_source_file"); (void)new TDEAction(i18n("Add Object File..."), "piklab_addfile", 0, - TQT_TQOBJECT(Main::_projectManager), TQT_SLOT(insertObjectFiles()), actionCollection(), "project_add_object_file"); + Main::_projectManager, TQT_SLOT(insertObjectFiles()), actionCollection(), "project_add_object_file"); (void)new TDEAction(i18n("Add Current File"), "piklab_addcurrentfile", 0, - TQT_TQOBJECT(Main::_projectManager), TQT_SLOT(insertCurrentFile()), actionCollection(), "project_add_current_file"); + Main::_projectManager, TQT_SLOT(insertCurrentFile()), actionCollection(), "project_add_current_file"); // build actions (void)new TDEAction(i18n("&Build Project"), "piklab_compile", TQt::Key_F8, - TQT_TQOBJECT(this), TQT_SLOT(buildProject()), actionCollection(), "build_build_project"); + this, TQT_SLOT(buildProject()), actionCollection(), "build_build_project"); (void)new TDEAction(i18n("&Compile File"), 0, TQt::SHIFT + TQt::Key_F8, - TQT_TQOBJECT(this), TQT_SLOT(compileFile()), actionCollection(), "build_compile_file"); + this, TQT_SLOT(compileFile()), actionCollection(), "build_compile_file"); (void)new TDEAction(i18n("Clean"), "trashcan_empty", 0, - TQT_TQOBJECT(this), TQT_SLOT(cleanBuild()), actionCollection(), "build_clean"); + this, TQT_SLOT(cleanBuild()), actionCollection(), "build_clean"); (void)new TDEAction(i18n("Stop"), "process-stop", 0, - TQT_TQOBJECT(this), TQT_SLOT(stopBuild()), actionCollection(), "build_stop"); + this, TQT_SLOT(stopBuild()), actionCollection(), "build_stop"); // programmer actions (void)new TDEAction(i18n("&Connect"), "connect_creating", 0, @@ -260,15 +260,15 @@ MainWindow::MainWindow() (void)new TDEAction(i18n("&Disconnect"), "connect_no", 0, Programmer::manager, TQT_SLOT(disconnectDevice()), actionCollection(), "prog_disconnect"); (void)new TDEAction(i18n("&Program"), "piklab_burnchip", TQt::SHIFT + TQt::Key_F5, - TQT_TQOBJECT(this), TQT_SLOT(program()), actionCollection(), "prog_program"); + this, TQT_SLOT(program()), actionCollection(), "prog_program"); (void)new TDEAction(i18n("&Verify"), "piklab_verifychip", TQt::SHIFT + TQt::Key_F6, - TQT_TQOBJECT(this), TQT_SLOT(verify()), actionCollection(), "prog_verify"); + this, TQT_SLOT(verify()), actionCollection(), "prog_verify"); (void)new TDEAction(i18n("&Read"), "piklab_readchip", TQt::SHIFT + TQt::Key_F7, - TQT_TQOBJECT(this), TQT_SLOT(read()), actionCollection(), "prog_read"); + this, TQT_SLOT(read()), actionCollection(), "prog_read"); (void)new TDEAction(i18n("&Erase"), "piklab_erasechip", 0, - TQT_TQOBJECT(this), TQT_SLOT(erase()), actionCollection(), "prog_erase"); + this, TQT_SLOT(erase()), actionCollection(), "prog_erase"); (void)new TDEAction(i18n("&Blank Check"), "piklab_blankcheck", 0, - TQT_TQOBJECT(this), TQT_SLOT(blankCheck()), actionCollection(), "prog_blank_check"); + this, TQT_SLOT(blankCheck()), actionCollection(), "prog_blank_check"); (void)new TDEAction(i18n("&Run"), "launch", TQt::SHIFT + TQt::Key_F9, Programmer::manager, TQT_SLOT(run()), actionCollection(), "prog_run"); (void)new TDEAction(i18n("&Stop"), "piklab_stop", 0, @@ -278,7 +278,7 @@ MainWindow::MainWindow() (void)new TDEAction(i18n("&Advanced..."), 0, 0, Programmer::manager , TQT_SLOT(showAdvancedDialog()), actionCollection(), "prog_advanced"); (void)new TDEAction(i18n("Settings..."), "configure", 0, - TQT_TQOBJECT(this), TQT_SLOT(showProgrammerSettings()), actionCollection(), "prog_settings"); + this, TQT_SLOT(showProgrammerSettings()), actionCollection(), "prog_settings"); // debugger actions (void)new TDEAction(i18n("&Start"), "launch", TQt::SHIFT + TQt::Key_F9, @@ -288,9 +288,9 @@ MainWindow::MainWindow() (void)new TDEAction(i18n("&Step"), "piklab_debug_step", 0, Programmer::manager, TQT_SLOT(step()), actionCollection(), "debug_next"); //(void)new TDEAction(i18n("Step &In"), "piklab_debug_stepin", - // 0, TQT_TQOBJECT(this), TQT_SLOT(debugStepIn()), actionCollection(), "debug_step_in"); + // 0, this, TQT_SLOT(debugStepIn()), actionCollection(), "debug_step_in"); //(void)new TDEAction(i18n("Step &Out"), "piklab_debug_stepout", - // 0, TQT_TQOBJECT(this), TQT_SLOT(debugStepOut()), actionCollection(), "debug_step_out"); + // 0, this, TQT_SLOT(debugStepOut()), actionCollection(), "debug_step_out"); (void)new TDEAction(i18n("&Break<Translators: it is the verb>", "&Halt"), "piklab_debughalt", 0, Programmer::manager, TQT_SLOT(halt()), actionCollection(), "debug_halt"); (void)new TDEAction(i18n("&Disconnect/Stop"), "piklab_stop", 0, @@ -302,28 +302,28 @@ MainWindow::MainWindow() (void)new TDEAction(i18n("Clear All Breakpoints"), "remove", 0, Debugger::manager, TQT_SLOT(clearBreakpoints()), actionCollection(), "debug_clear_breakpoints"); (void)new TDEAction(i18n("Settings..."), "configure", 0, - TQT_TQOBJECT(this), TQT_SLOT(showDebuggerSettings()), actionCollection(), "debug_settings"); + this, TQT_SLOT(showDebuggerSettings()), actionCollection(), "debug_settings"); // tools (void)new TDEAction(i18n("&Pikloops..."), 0, 0, - TQT_TQOBJECT(this), TQT_SLOT(runPikloops()), actionCollection(), "tools_pikloops"); + this, TQT_SLOT(runPikloops()), actionCollection(), "tools_pikloops"); (void)new TDEAction(i18n("&Find Files..."), "edit-find", 0, - TQT_TQOBJECT(this), TQT_SLOT(runKfind()), actionCollection(), "tools_kfind"); + this, TQT_SLOT(runKfind()), actionCollection(), "tools_kfind"); (void)new TDEAction(i18n("&Device Information..."), "application-vnd.tde.info", 0, - TQT_TQOBJECT(this), TQT_SLOT(showDeviceInfo()), actionCollection(), "tools_device_information"); + this, TQT_SLOT(showDeviceInfo()), actionCollection(), "tools_device_information"); (void)new TDEAction(i18n("&Config Generator..."), 0, 0, - TQT_TQOBJECT(this), TQT_SLOT(configGenerator()), actionCollection(), "tools_config_generator"); + this, TQT_SLOT(configGenerator()), actionCollection(), "tools_config_generator"); (void)new TDEAction(i18n("&Template Generator..."), 0, 0, - TQT_TQOBJECT(this), TQT_SLOT(templateGenerator()), actionCollection(), "tools_template_generator"); + this, TQT_SLOT(templateGenerator()), actionCollection(), "tools_template_generator"); // settings actions (void)new TDEAction(i18n("Configure Toolchains..."), 0, 0, - TQT_TQOBJECT(this), TQT_SLOT(configureToolchains()), actionCollection(), "options_configure_toolchains"); - (void)KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()), actionCollection()); + this, TQT_SLOT(configureToolchains()), actionCollection(), "options_configure_toolchains"); + (void)KStdAction::preferences(this, TQT_SLOT(configure()), actionCollection()); // help (void)new TDEAction(i18n("Report Bug..."), "likeback_bug", 0, - TQT_TQOBJECT(LikeBack::instance()), TQT_SLOT(iFoundABug()), actionCollection(), "help_report_bug_piklab"); + LikeBack::instance(), TQT_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, TQT_SIGNAL(clicked()), TQT_TQOBJECT(LikeBack::instance()), TQT_SLOT(iLike())); + connect(button, TQT_SIGNAL(clicked()), LikeBack::instance(), TQT_SLOT(iLike())); menuBar()->insertItem(button); button = new MenuBarButton("likeback_dislike", menuBar()); TQToolTip::add(button, i18n("I do not like...")); - connect(button, TQT_SIGNAL(clicked()), TQT_TQOBJECT(LikeBack::instance()), TQT_SLOT(iDoNotLike())); + connect(button, TQT_SIGNAL(clicked()), LikeBack::instance(), TQT_SLOT(iDoNotLike())); menuBar()->insertItem(button); button = new MenuBarButton("likeback_bug", menuBar()); TQToolTip::add(button, i18n("I found a bug...")); - connect(button, TQT_SIGNAL(clicked()), TQT_TQOBJECT(LikeBack::instance()), TQT_SLOT(iFoundABug())); + connect(button, TQT_SIGNAL(clicked()), LikeBack::instance(), TQT_SLOT(iFoundABug())); menuBar()->insertItem(button); button = new MenuBarButton("configure", menuBar()); TQToolTip::add(button, i18n("Configure email...")); - connect(button, TQT_SIGNAL(clicked()), TQT_TQOBJECT(LikeBack::instance()), TQT_SLOT(askEMail())); + connect(button, TQT_SIGNAL(clicked()), LikeBack::instance(), TQT_SLOT(askEMail())); menuBar()->insertItem(button); button = new MenuBarButton("help", menuBar()); - connect(button, TQT_SIGNAL(clicked()), TQT_TQOBJECT(LikeBack::instance()), TQT_SLOT(showWhatsThisMessage())); + connect(button, TQT_SIGNAL(clicked()), LikeBack::instance(), TQT_SLOT(showWhatsThisMessage())); menuBar()->insertItem(button); - TQTimer::singleShot(0, TQT_TQOBJECT(this), TQT_SLOT(initialLoading())); + TQTimer::singleShot(0, this, TQT_SLOT(initialLoading())); } MainWindow::~MainWindow() |