diff options
Diffstat (limited to 'quanta/src/quanta_init.cpp')
-rw-r--r-- | quanta/src/quanta_init.cpp | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/quanta/src/quanta_init.cpp b/quanta/src/quanta_init.cpp index 08b73763..155a376b 100644 --- a/quanta/src/quanta_init.cpp +++ b/quanta/src/quanta_init.cpp @@ -248,7 +248,7 @@ void QuantaInit::initQuanta() break; } } - KActionMenu *toolviewMenu = (KActionMenu*)(m_quanta->actionCollection()->action("tdemdi_toolview_menu")); + TDEActionMenu *toolviewMenu = (TDEActionMenu*)(m_quanta->actionCollection()->action("tdemdi_toolview_menu")); if (toolviewMenu) toolviewMenu->plug(m_quanta->windowMenu()); @@ -464,8 +464,8 @@ void QuantaInit::initView() //set the toolview and close button style before the GUI is created m_config->setGroup("General Options"); - int iconTextMode = m_config->readNumEntry("IconTextMode", KToolBar::IconOnly); - toolBarTab->setIconText(KToolBar::IconText(iconTextMode)); + int iconTextMode = m_config->readNumEntry("IconTextMode", TDEToolBar::IconOnly); + toolBarTab->setIconText(TDEToolBar::IconText(iconTextMode)); qConfig.toolviewTabs = m_config->readNumEntry("MDI style", KMdi::IconOnly); m_quanta->initTabWidget(); @@ -586,8 +586,8 @@ void QuantaInit::readOptions() qConfig.docPosition = m_config->readEntry("Documentation area","Tab"); qConfig.smartTagInsertion = m_config->readBoolEntry("Smart Tag Insertion", false); - KAction *action = quantaApp->actionCollection()->action("smart_tag_insertion"); - (static_cast<KToggleAction* >(action))->setChecked(qConfig.smartTagInsertion); + TDEAction *action = quantaApp->actionCollection()->action("smart_tag_insertion"); + (static_cast<TDEToggleAction* >(action))->setChecked(qConfig.smartTagInsertion); TQSize s(800,580); m_quanta->resize( m_config->readSizeEntry("Geometry", &s)); @@ -705,19 +705,19 @@ void QuantaInit::loadInitialProject(const TQString& url) void QuantaInit::initActions() { - KActionCollection *ac = m_quanta->actionCollection(); - new KAction(i18n("Annotate..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAnnotate()),ac, "annotate"); - m_quanta->editTagAction = new KAction( i18n( "&Edit Current Tag..." ), CTRL+Key_E, + TDEActionCollection *ac = m_quanta->actionCollection(); + new TDEAction(i18n("Annotate..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAnnotate()),ac, "annotate"); + m_quanta->editTagAction = new TDEAction( i18n( "&Edit Current Tag..." ), CTRL+Key_E, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEditCurrentTag() ), TQT_TQOBJECT(ac), "edit_current_tag" ); - m_quanta->selectTagAreaAction = new KAction( i18n( "&Select Current Tag Area" ), 0, + m_quanta->selectTagAreaAction = new TDEAction( i18n( "&Select Current Tag Area" ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotSelectTagArea() ), TQT_TQOBJECT(ac), "select_tag_area" ); - new KAction( i18n( "E&xpand Abbreviation" ), CTRL+SHIFT+Key_J, + new TDEAction( i18n( "E&xpand Abbreviation" ), CTRL+SHIFT+Key_J, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotExpandAbbreviation() ), TQT_TQOBJECT(ac), "expand_abbreviation" ); - new KAction(i18n("&Report Bug..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotReportBug()), TQT_TQOBJECT(ac), "help_reportbug"); //needed, because quanta_be bugs should be reported for quanta + new TDEAction(i18n("&Report Bug..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotReportBug()), TQT_TQOBJECT(ac), "help_reportbug"); //needed, because quanta_be bugs should be reported for quanta //Kate actions @@ -729,21 +729,21 @@ void QuantaInit::initActions() KStdAction::pasteText(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotPaste()), ac); //help - (void) new KAction(i18n("Ti&p of the Day"), "idea", "", TQT_TQOBJECT(m_quanta), + (void) new TDEAction(i18n("Ti&p of the Day"), "idea", "", TQT_TQOBJECT(m_quanta), TQT_SLOT(slotHelpTip()), TQT_TQOBJECT(ac), "help_tip"); // File actions // KStdAction::openNew( TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileNew() ), ac); KStdAction::open ( TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileOpen() ), ac, "file_open"); - (void) new KAction(i18n("Close Other Tabs"), 0, ViewManager::ref(), TQT_SLOT(slotCloseOtherTabs()), TQT_TQOBJECT(ac), "close_other_tabs"); + (void) new TDEAction(i18n("Close Other Tabs"), 0, ViewManager::ref(), TQT_SLOT(slotCloseOtherTabs()), TQT_TQOBJECT(ac), "close_other_tabs"); m_quanta->fileRecent = KStdAction::openRecent(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileOpenRecent(const KURL&)), ac, "file_open_recent"); m_quanta->fileRecent->setToolTip(i18n("Open / Open Recent")); connect(m_quanta->fileRecent, TQT_SIGNAL(activated()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileOpen())); - (void) new KAction( i18n( "Close All" ), 0, TQT_TQOBJECT(m_quanta), + (void) new TDEAction( i18n( "Close All" ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileCloseAll() ), TQT_TQOBJECT(ac), "file_close_all" ); @@ -751,19 +751,19 @@ void QuantaInit::initActions() KStdAction::saveAs( TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveAs() ), ac ); - m_quanta->saveAllAction = new KAction( i18n( "Save All..." ), "save_all", SHIFT+KStdAccel::shortcut(KStdAccel::Save).keyCodeQt(), + m_quanta->saveAllAction = new TDEAction( i18n( "Save All..." ), "save_all", SHIFT+TDEStdAccel::shortcut(TDEStdAccel::Save).keyCodeQt(), TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveAll() ), TQT_TQOBJECT(ac), "file_save_all" ); - (void) new KAction(i18n("Reloa&d"), "revert", SHIFT+Key_F5, TQT_TQOBJECT(m_quanta), + (void) new TDEAction(i18n("Reloa&d"), "revert", SHIFT+Key_F5, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileReload()), TQT_TQOBJECT(ac), "file_reload"); -// (void) new KAction(i18n("Reload All "), 0, 0, m_quanta, +// (void) new TDEAction(i18n("Reload All "), 0, 0, m_quanta, // TQT_SLOT(slotFileReloadAll()), TQT_TQOBJECT(ac), "file_reload_all"); - (void) new KAction( i18n( "Save as Local Template..." ), 0, + (void) new TDEAction( i18n( "Save as Local Template..." ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveAsLocalTemplate() ), TQT_TQOBJECT(ac), "save_local_template" ); - (void) new KAction( i18n( "Save Selection to Local Template File..." ), 0, + (void) new TDEAction( i18n( "Save Selection to Local Template File..." ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveSelectionAsLocalTemplate() ), TQT_TQOBJECT(ac), "save_selection_local_template" ); @@ -771,68 +771,68 @@ void QuantaInit::initActions() // Edit actions - (void) new KAction( i18n( "Find in Files..." ), + (void) new TDEAction( i18n( "Find in Files..." ), SmallIcon("filefind"), CTRL+ALT+Key_F, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEditFindInFiles() ), TQT_TQOBJECT(ac), "find_in_files" ); - KAction* aux = TagActionManager::self()->actionCollection()->action("apply_source_indentation"); + TDEAction* aux = TagActionManager::self()->actionCollection()->action("apply_source_indentation"); aux->setEnabled(false); ac->insert(aux); // Tool actions - (void) new KAction( i18n( "&Context Help..." ), CTRL+Key_H, + (void) new TDEAction( i18n( "&Context Help..." ), CTRL+Key_H, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotContextHelp() ), TQT_TQOBJECT(ac), "context_help" ); - (void) new KAction( i18n( "Tag &Attributes..." ), ALT+Key_Down, + (void) new TDEAction( i18n( "Tag &Attributes..." ), ALT+Key_Down, m_quanta->m_doc, TQT_SLOT( slotAttribPopup() ), TQT_TQOBJECT(ac), "tag_attributes" ); - (void) new KAction( i18n( "&Change the DTD..." ), 0, + (void) new TDEAction( i18n( "&Change the DTD..." ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotChangeDTD() ), TQT_TQOBJECT(ac), "change_dtd" ); - (void) new KAction( i18n( "&Edit DTD Settings..." ), 0, + (void) new TDEAction( i18n( "&Edit DTD Settings..." ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEditDTD() ), TQT_TQOBJECT(ac), "edit_dtd" ); - (void) new KAction( i18n( "&Load && Convert DTD..." ), 0, + (void) new TDEAction( i18n( "&Load && Convert DTD..." ), 0, DTDs::ref(), TQT_SLOT( slotLoadDTD() ), TQT_TQOBJECT(ac), "load_dtd" ); - (void) new KAction( i18n( "Load DTD E&ntities..." ), 0, + (void) new TDEAction( i18n( "Load DTD E&ntities..." ), 0, DTDs::ref(), TQT_SLOT( slotLoadEntities() ), TQT_TQOBJECT(ac), "load_entities" ); - (void) new KAction( i18n( "Load DTD &Package (DTEP)..." ), 0, + (void) new TDEAction( i18n( "Load DTD &Package (DTEP)..." ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotLoadDTEP() ), TQT_TQOBJECT(ac), "load_dtep" ); - (void) new KAction( i18n( "Send DTD Package (DTEP) in E&mail..." ), "mail_send", 0, + (void) new TDEAction( i18n( "Send DTD Package (DTEP) in E&mail..." ), "mail_send", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEmailDTEP() ), TQT_TQOBJECT(ac), "send_dtep" ); - (void) new KAction( i18n( "&Download DTD Package (DTEP)..." ), "network", 0, + (void) new TDEAction( i18n( "&Download DTD Package (DTEP)..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotDownloadDTEP() ), TQT_TQOBJECT(ac), "download_dtep" ); - (void) new KAction( i18n( "&Upload DTD Package (DTEP)..." ), "network", 0, + (void) new TDEAction( i18n( "&Upload DTD Package (DTEP)..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotUploadDTEP() ), TQT_TQOBJECT(ac), "upload_dtep" ); /* - (void) new KAction( i18n( "&Upload DTD Package (DTEP)..." ), 0, + (void) new TDEAction( i18n( "&Upload DTD Package (DTEP)..." ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotUploadDTEP() ), TQT_TQOBJECT(ac), "send_dtep" ); */ - (void) new KAction( i18n( "&Document Properties" ), 0, + (void) new TDEAction( i18n( "&Document Properties" ), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotDocumentProperties() ), TQT_TQOBJECT(ac), "tools_document_properties" ); - (void) new KAction ( i18n ("F&ormat XML Code"), 0, + (void) new TDEAction ( i18n ("F&ormat XML Code"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotCodeFormatting() ), TQT_TQOBJECT(ac), "tools_code_formatting"); - (void) new KAction( i18n( "&Convert Tag && Attribute Case..."), 0, + (void) new TDEAction( i18n( "&Convert Tag && Attribute Case..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotConvertCase()), TQT_TQOBJECT(ac), "tools_change_case"); @@ -840,23 +840,23 @@ void QuantaInit::initActions() m_quanta->showSourceAction = - new KToggleAction( i18n( "&Source Editor"), UserIcon ("view_text"), ALT+Key_F9, + new TDEToggleAction( i18n( "&Source Editor"), UserIcon ("view_text"), ALT+Key_F9, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotShowSourceEditor()), TQT_TQOBJECT(ac), "show_quanta_editor"); m_quanta->showSourceAction->setExclusiveGroup("view"); m_quanta->showVPLAction = - new KToggleAction( i18n( "&VPL Editor"), UserIcon ("vpl"), CTRL+SHIFT+Key_F9, + new TDEToggleAction( i18n( "&VPL Editor"), UserIcon ("vpl"), CTRL+SHIFT+Key_F9, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotShowVPLOnly() ), TQT_TQOBJECT(ac), "show_kafka_view"); m_quanta->showVPLAction->setExclusiveGroup("view"); m_quanta->showVPLSourceAction = - new KToggleAction( i18n("VPL && So&urce Editors"), UserIcon ("vpl_text"), Key_F9, + new TDEToggleAction( i18n("VPL && So&urce Editors"), UserIcon ("vpl_text"), Key_F9, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotShowVPLAndSourceEditor() ), TQT_TQOBJECT(ac), "show_kafka_and_quanta"); m_quanta->showVPLSourceAction->setExclusiveGroup("view"); - /**kafkaSelectAction = new KSelectAction(i18n("Main &View"), 0, ac,"show_kafka"); + /**kafkaSelectAction = new TDESelectAction(i18n("Main &View"), 0, ac,"show_kafka"); TQStringList list2; list2.append(i18n("&Source Editor")); list2.append(i18n("&VPL Editor (experimental)")); @@ -865,23 +865,23 @@ void QuantaInit::initActions() connect(kafkaSelectAction, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowKafkaPartl(int)));*/ - (void) new KAction( i18n( "&Reload Preview" ), "reload", - KStdAccel::shortcut(KStdAccel::Reload).keyCodeQt(), + (void) new TDEAction( i18n( "&Reload Preview" ), "reload", + TDEStdAccel::shortcut(TDEStdAccel::Reload).keyCodeQt(), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRepaintPreview()), TQT_TQOBJECT(ac), "reload" ); - (void) new KAction( i18n( "&Previous File" ), "1leftarrow", KStdAccel::back(), + (void) new TDEAction( i18n( "&Previous File" ), "1leftarrow", TDEStdAccel::back(), TQT_TQOBJECT(m_quanta), TQT_SLOT( slotBack() ), TQT_TQOBJECT(ac), "previous_file" ); - (void) new KAction( i18n( "&Next File" ), "1rightarrow", KStdAccel::forward(), + (void) new TDEAction( i18n( "&Next File" ), "1rightarrow", TDEStdAccel::forward(), TQT_TQOBJECT(m_quanta), TQT_SLOT( slotForward() ), TQT_TQOBJECT(ac), "next_file" ); // Options actions // - (void) new KAction( i18n( "Configure &Actions..." ), UserIcon("ball"),0, + (void) new TDEAction( i18n( "Configure &Actions..." ), UserIcon("ball"),0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptionsConfigureActions() ), TQT_TQOBJECT(ac), "configure_actions" ); @@ -889,46 +889,46 @@ void QuantaInit::initActions() KStdAction::keyBindings(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptionsConfigureKeys() ), ac, "configure_shortcuts"); KStdAction::configureToolbars(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptionsConfigureToolbars() ), ac, "options_configure_toolbars"); KStdAction::preferences(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptions() ), ac, "general_options"); - new KAction(i18n("Configure Pre&view..."), SmallIcon("konqueror"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotPreviewOptions()), TQT_TQOBJECT(ac), "preview_options"); + new TDEAction(i18n("Configure Pre&view..."), SmallIcon("konqueror"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotPreviewOptions()), TQT_TQOBJECT(ac), "preview_options"); // Toolbars actions - m_quanta->projectToolbarFiles = new KRecentFilesAction(i18n("Load &Project Toolbar"),0, + m_quanta->projectToolbarFiles = new TDERecentFilesAction(i18n("Load &Project Toolbar"),0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadToolbarFile(const KURL&)), TQT_TQOBJECT(ac), "toolbars_load_project"); - new KAction(i18n("Load &Global Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadGlobalToolbar()), TQT_TQOBJECT(ac), "toolbars_load_global"); - new KAction(i18n("Load &Local Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadToolbar()), TQT_TQOBJECT(ac), "toolbars_load_user"); - new KAction(i18n("Save as &Local Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSaveLocalToolbar()), TQT_TQOBJECT(ac), "toolbars_save_local"); - new KAction(i18n("Save as &Project Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSaveProjectToolbar()), TQT_TQOBJECT(ac), "toolbars_save_project"); - new KAction(i18n("&New User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAddToolbar()), TQT_TQOBJECT(ac), "toolbars_add"); - new KAction(i18n("&Remove User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRemoveToolbar()), TQT_TQOBJECT(ac), "toolbars_remove"); - new KAction(i18n("Re&name User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRenameToolbar()), TQT_TQOBJECT(ac), "toolbars_rename"); - new KAction(i18n("Send Toolbar in E&mail..."), "mail_send", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSendToolbar()), TQT_TQOBJECT(ac), "toolbars_send"); - new KAction(i18n("&Upload Toolbar..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadToolbar()), TQT_TQOBJECT(ac), "toolbars_upload" ); - new KAction(i18n("&Download Toolbar..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDownloadToolbar()), TQT_TQOBJECT(ac), "toolbars_download" ); - - KToggleAction *toggle = new KToggleAction( i18n("Smart Tag Insertion"), 0, TQT_TQOBJECT(ac), "smart_tag_insertion"); + new TDEAction(i18n("Load &Global Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadGlobalToolbar()), TQT_TQOBJECT(ac), "toolbars_load_global"); + new TDEAction(i18n("Load &Local Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadToolbar()), TQT_TQOBJECT(ac), "toolbars_load_user"); + new TDEAction(i18n("Save as &Local Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSaveLocalToolbar()), TQT_TQOBJECT(ac), "toolbars_save_local"); + new TDEAction(i18n("Save as &Project Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSaveProjectToolbar()), TQT_TQOBJECT(ac), "toolbars_save_project"); + new TDEAction(i18n("&New User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAddToolbar()), TQT_TQOBJECT(ac), "toolbars_add"); + new TDEAction(i18n("&Remove User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRemoveToolbar()), TQT_TQOBJECT(ac), "toolbars_remove"); + new TDEAction(i18n("Re&name User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRenameToolbar()), TQT_TQOBJECT(ac), "toolbars_rename"); + new TDEAction(i18n("Send Toolbar in E&mail..."), "mail_send", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSendToolbar()), TQT_TQOBJECT(ac), "toolbars_send"); + new TDEAction(i18n("&Upload Toolbar..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadToolbar()), TQT_TQOBJECT(ac), "toolbars_upload" ); + new TDEAction(i18n("&Download Toolbar..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDownloadToolbar()), TQT_TQOBJECT(ac), "toolbars_download" ); + + TDEToggleAction *toggle = new TDEToggleAction( i18n("Smart Tag Insertion"), 0, TQT_TQOBJECT(ac), "smart_tag_insertion"); connect(toggle, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSmartTagInsertion())); - m_quanta->showDTDToolbar=new KToggleAction(i18n("Show DTD Toolbar"), 0, TQT_TQOBJECT(ac), "view_dtd_toolbar"); + m_quanta->showDTDToolbar=new TDEToggleAction(i18n("Show DTD Toolbar"), 0, TQT_TQOBJECT(ac), "view_dtd_toolbar"); connect(m_quanta->showDTDToolbar, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotToggleDTDToolbar(bool))); m_quanta->showDTDToolbar->setCheckedState(i18n("Hide DTD Toolbar")); - new KAction(i18n("Complete Text"), CTRL+Key_Space, + new TDEAction(i18n("Complete Text"), CTRL+Key_Space, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowCompletion()), ac,"show_completion"); - new KAction(i18n("Completion Hints"), CTRL+SHIFT+Key_Space, + new TDEAction(i18n("Completion Hints"), CTRL+SHIFT+Key_Space, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowCompletionHint()), ac,"show_completion_hint"); KStdAction::back(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotBack() ), ac, "w_back"); KStdAction::forward(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotForward() ), ac, "w_forward"); - new KAction(i18n("Open File: none"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotOpenFileUnderCursor()), TQT_TQOBJECT(ac), "open_file_under_cursor"); - new KAction(i18n("Upload..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadFile()), TQT_TQOBJECT(ac), "upload_file"); - new KAction(i18n("Delete File"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDeleteFile()), TQT_TQOBJECT(ac), "delete_file"); + new TDEAction(i18n("Open File: none"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotOpenFileUnderCursor()), TQT_TQOBJECT(ac), "open_file_under_cursor"); + new TDEAction(i18n("Upload..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadFile()), TQT_TQOBJECT(ac), "upload_file"); + new TDEAction(i18n("Delete File"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDeleteFile()), TQT_TQOBJECT(ac), "delete_file"); TQString ss = i18n("Upload Opened Project Files..."); -/* new KAction(i18n("Upload Opened Project Files"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadOpenedFiles()), TQT_TQOBJECT(ac), "upload_opened_files"); */ +/* new TDEAction(i18n("Upload Opened Project Files"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadOpenedFiles()), TQT_TQOBJECT(ac), "upload_opened_files"); */ TQString error; int el, ec; @@ -988,16 +988,16 @@ void QuantaInit::initActions() // create the preview action m_quanta->showPreviewAction = - new KToolBarPopupAction( i18n( "&Preview" ), "preview", Key_F6, + new TDEToolBarPopupAction( i18n( "&Preview" ), "preview", Key_F6, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotToggleShowPreview() ), TQT_TQOBJECT(ac), "show_preview" ); - KAction *act = new KAction( i18n( "Preview Without Frames" ), "", 0, + TDEAction *act = new TDEAction( i18n( "Preview Without Frames" ), "", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowNoFramesPreview()), TQT_TQOBJECT(ac), "show_preview_no_frames" ); act->plug(m_quanta->showPreviewAction->popupMenu()); - act = new KAction( i18n( "View with &Konqueror" ), "konqueror", Key_F12, + act = new TDEAction( i18n( "View with &Konqueror" ), "konqueror", Key_F12, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotViewInKFM() ), TQT_TQOBJECT(ac), "view_with_konqueror" ); act->plug(m_quanta->showPreviewAction->popupMenu()); @@ -1019,51 +1019,51 @@ void QuantaInit::initActions() if (act) act->plug(m_quanta->showPreviewAction->popupMenu()); - act = new KAction( i18n( "View with L&ynx" ), "terminal", 0, + act = new TDEAction( i18n( "View with L&ynx" ), "terminal", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotViewInLynx() ), TQT_TQOBJECT(ac), "view_with_lynx" ); act->plug(m_quanta->showPreviewAction->popupMenu()); - (void) new KAction( i18n( "Table Editor..." ), "quick_table", 0, + (void) new TDEAction( i18n( "Table Editor..." ), "quick_table", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagEditTable() ), TQT_TQOBJECT(ac), "tag_edit_table" ); - (void) new KAction( i18n( "Quick List..." ), "quick_list", 0, + (void) new TDEAction( i18n( "Quick List..." ), "quick_list", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagQuickList() ), TQT_TQOBJECT(ac), "tag_quick_list" ); - (void) new KAction( i18n( "Color..." ), "colorize", CTRL+SHIFT+Key_C, + (void) new TDEAction( i18n( "Color..." ), "colorize", CTRL+SHIFT+Key_C, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagColor() ), TQT_TQOBJECT(ac), "tag_color" ); - (void) new KAction( i18n( "Email..." ), "tag_mail", 0, + (void) new TDEAction( i18n( "Email..." ), "tag_mail", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagMail() ), TQT_TQOBJECT(ac), "tag_mail" ); - (void) new KAction( i18n( "Misc. Tag..." ), "tag_misc", CTRL+SHIFT+Key_T, + (void) new TDEAction( i18n( "Misc. Tag..." ), "tag_misc", CTRL+SHIFT+Key_T, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagMisc() ), TQT_TQOBJECT(ac), "tag_misc" ); - (void) new KAction( i18n( "Frame Wizard..." ), "frame", 0, + (void) new TDEAction( i18n( "Frame Wizard..." ), "frame", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFrameWizard() ), TQT_TQOBJECT(ac), "tag_frame_wizard" ); - (void) new KAction( i18n( "Paste &HTML Quoted" ), "editpaste", 0, + (void) new TDEAction( i18n( "Paste &HTML Quoted" ), "editpaste", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotPasteHTMLQuoted() ), TQT_TQOBJECT(ac), "edit_paste_html_quoted" ); - (void) new KAction( i18n( "Paste &URL Encoded" ), "editpaste", 0, + (void) new TDEAction( i18n( "Paste &URL Encoded" ), "editpaste", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotPasteURLEncoded() ), TQT_TQOBJECT(ac), "edit_paste_url_encoded" ); - (void) new KAction( i18n( "Insert CSS..." ),"css", 0, + (void) new TDEAction( i18n( "Insert CSS..." ),"css", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT( slotInsertCSS() ), TQT_TQOBJECT(ac), "insert_css" ); // special-character combo - KAction* char_action = new KAction( + TDEAction* char_action = new TDEAction( i18n( "Insert Special Character" ), "charset", 0, TQT_TQOBJECT(ac), "insert_char" ); connect( char_action, TQT_SIGNAL(activated()), |