Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent bd4e86464b
commit 83d1960b40

@ -50,7 +50,7 @@ namespace KileDialog
labellayout->addWidget(label);
// line 2: listview
listview = new KListView(plainPage());
listview = new TDEListView(plainPage());
listview->addColumn(i18n("Files"));
listview->setSorting(-1);

@ -20,7 +20,7 @@
#include <kdialogbase.h>
#include <tqstringlist.h>
class KListView;
class TDEListView;
/**
*@author Holger Danielsson
@ -39,7 +39,7 @@ namespace KileDialog
const TQStringList & getCleanlist();
private:
KListView *listview;
TDEListView *listview;
TQStringList m_extlist;
};
}

@ -34,7 +34,7 @@
namespace KileDialog
{
ResultItem::ResultItem(KListBox *lb, const TQString &tool, int status, const TQValueList<ConfigTest> &tests) : TQListBoxItem(lb)
ResultItem::ResultItem(TDEListBox *lb, const TQString &tool, int status, const TQValueList<ConfigTest> &tests) : TQListBoxItem(lb)
{
TQString rt = "<hr><b><font color=\"%1\">%2</font></b> (%3)<br><ul>";
for ( uint i = 0; i < tests.count(); ++i)
@ -98,7 +98,7 @@ TQLabel* ConfigChecker::label()
return m_widget->label();
}
KListBox* ConfigChecker::listBox()
TDEListBox* ConfigChecker::listBox()
{
return m_widget->listBox();
}

@ -26,7 +26,7 @@ class TQLabel;
class TQPainter;
class KProgress;
class KListBox;
class TDEListBox;
class ConfigCheckerWidget;
@ -35,7 +35,7 @@ namespace KileDialog
class ResultItem : public TQListBoxItem
{
public:
ResultItem(KListBox *lb, const TQString &tool, int status, const TQValueList<ConfigTest> &tests);
ResultItem(TDEListBox *lb, const TQString &tool, int status, const TQValueList<ConfigTest> &tests);
int width(const TQListBox *) const { return m_richText->widthUsed(); }
int height(const TQListBox *) const { return m_richText->height(); }
@ -66,7 +66,7 @@ namespace KileDialog
private:
KProgress* progressBar();
TQLabel* label();
KListBox* listBox();
TDEListBox* listBox();
private:
ConfigCheckerWidget *m_widget;

@ -73,7 +73,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="KListBox" row="0" column="0">
<widget class="TDEListBox" row="0" column="0">
<property name="name">
<cstring>m_lstResults</cstring>
</property>
@ -102,7 +102,7 @@
<functions>
<function specifier="non virtual" returnType="KProgress *">progressBar()</function>
<function specifier="non virtual" returnType="TQLabel *">label()</function>
<function specifier="non virtual" returnType="KListBox *">listBox()</function>
<function specifier="non virtual" returnType="TDEListBox *">listBox()</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
<includehints>

@ -21,7 +21,7 @@ TQLabel* ConfigCheckerWidget::label()
return m_lbChecking;
}
KListBox* ConfigCheckerWidget::listBox()
TDEListBox* ConfigCheckerWidget::listBox()
{
return m_lstResults;
}

@ -155,7 +155,7 @@ void ConfigCodeCompletion::addPage(TQTabWidget *tab, CompletionPage page, const
{
m_page[page] = new TQWidget(tab);
m_listview[page] = new KListView( m_page[page] );
m_listview[page] = new TDEListView( m_page[page] );
m_listview[page]->addColumn(i18n("Complete Files"));
m_listview[page]->addColumn(i18n("Local File"));
m_listview[page]->setFullWidth(true);
@ -312,7 +312,7 @@ void ConfigCodeCompletion::setListviewEntries(CompletionPage page)
m_listview[page]->setUpdatesEnabled(true);
}
void ConfigCodeCompletion::updateColumnWidth(KListView *listview)
void ConfigCodeCompletion::updateColumnWidth(TDEListView *listview)
{
listview->setColumnWidth(0,listview->columnWidth(0)+60);
}
@ -359,7 +359,7 @@ bool ConfigCodeCompletion::getListviewEntries(CompletionPage page)
return changed;
}
bool ConfigCodeCompletion::isListviewEntry(KListView *listview, const TQString &filename)
bool ConfigCodeCompletion::isListviewEntry(TDEListView *listview, const TQString &filename)
{
TQCheckListItem *item = (TQCheckListItem *)listview->firstChild();
while ( item )
@ -373,7 +373,7 @@ bool ConfigCodeCompletion::isListviewEntry(KListView *listview, const TQString &
//////////////////// tabpages parameter ////////////////////
KListView *ConfigCodeCompletion::getListview(TQWidget *page)
TDEListView *ConfigCodeCompletion::getListview(TQWidget *page)
{
for ( uint i=TexPage; i<NumPages; ++i )
{
@ -397,7 +397,7 @@ TQString ConfigCodeCompletion::getListname(TQWidget *page)
void ConfigCodeCompletion::showPage(TQWidget *page)
{
KListView *listview = getListview(page);
TDEListView *listview = getListview(page);
if ( listview )
remove->setEnabled( listview->selectedItems().count() > 0 );
}
@ -460,7 +460,7 @@ void ConfigCodeCompletion::addClicked()
{
if ( dlg->currentItem() >= 0 )
{
KListView *listview = getListview(tab->currentPage()); // get current page
TDEListView *listview = getListview(tab->currentPage()); // get current page
TQStringList filenames = dlg->selected(); // get selected files
for ( TQStringList::ConstIterator it=filenames.begin(); it!=filenames.end(); ++it )
{
@ -500,7 +500,7 @@ void ConfigCodeCompletion::addClicked()
void ConfigCodeCompletion::removeClicked()
{
TQWidget *page = tab->currentPage();
KListView *list = getListview(page); // determine page
TDEListView *list = getListview(page); // determine page
TQCheckListItem *item = (TQCheckListItem *)list->selectedItem(); // determine entry
if ( item )
@ -514,7 +514,7 @@ void ConfigCodeCompletion::removeClicked()
void ConfigCodeCompletion::slotListviewClicked(TQListViewItem *)
{
KListView *listview = getListview(tab->currentPage()); // get current page
TDEListView *listview = getListview(tab->currentPage()); // get current page
remove->setEnabled( listview->selectedItems().count() > 0 );
}

@ -54,7 +54,7 @@ private:
// tabs, views, pages, wordlists
TQTabWidget *tab;
KListView *m_listview[NumPages];
TDEListView *m_listview[NumPages];
TQWidget *m_page[NumPages];
TQStringList m_wordlist[NumPages];
TQStringList m_dirname;
@ -77,14 +77,14 @@ private:
bool kateCompletionPlugin();
KListView *getListview(TQWidget *page);
TDEListView *getListview(TQWidget *page);
TQString getListname(TQWidget *page);
void addPage(TQTabWidget *tab, CompletionPage page, const TQString &title, const TQString &dirname);
void setListviewEntries(CompletionPage page);
bool getListviewEntries(CompletionPage page);
bool isListviewEntry(KListView *listview, const TQString &filename);
void updateColumnWidth(KListView *listview);
bool isListviewEntry(TDEListView *listview, const TQString &filename);
void updateColumnWidth(TDEListView *listview);
TQString m_localCwlDir, m_globalCwlDir;
void getCwlFiles(TQMap<TQString,TQString> &map, TQStringList &list, const TQString &dir);

@ -501,144 +501,144 @@ void Kile::setupActions()
(void) KStdAction::save(docManager(), TQT_SLOT(fileSave()), actionCollection(),"kile_file_save" );
(void) KStdAction::saveAs(docManager(), TQT_SLOT(fileSaveAs()), actionCollection(),"kile_file_save_as" );
(void) new KAction(i18n("Save All"),"save_all", 0, docManager(), TQT_SLOT(fileSaveAll()), actionCollection(),"file_save_all");
(void) new KAction(i18n("Save Copy As..."),"save_copy_as", 0, docManager(), TQT_SLOT(fileSaveCopyAs()), actionCollection(),"file_save_copy_as");
(void) new KAction(i18n("Create Template From Document..."), 0, docManager(), TQT_SLOT(createTemplate()), actionCollection(),"template_create");
(void) new KAction(i18n("&Remove Template..."),0, docManager(), TQT_SLOT(removeTemplate()), actionCollection(), "template_remove");
(void) new TDEAction(i18n("Save All"),"save_all", 0, docManager(), TQT_SLOT(fileSaveAll()), actionCollection(),"file_save_all");
(void) new TDEAction(i18n("Save Copy As..."),"save_copy_as", 0, docManager(), TQT_SLOT(fileSaveCopyAs()), actionCollection(),"file_save_copy_as");
(void) new TDEAction(i18n("Create Template From Document..."), 0, docManager(), TQT_SLOT(createTemplate()), actionCollection(),"template_create");
(void) new TDEAction(i18n("&Remove Template..."),0, docManager(), TQT_SLOT(removeTemplate()), actionCollection(), "template_remove");
(void) KStdAction::close(docManager(), TQT_SLOT(fileClose()), actionCollection(),"file_close" );
(void) new KAction(i18n("Close All"), 0, docManager(), TQT_SLOT(fileCloseAll()), actionCollection(),"file_close_all" );
(void) new KAction(i18n("Close All Ot&hers"), 0, docManager(), TQT_SLOT(fileCloseAllOthers()), actionCollection(),"file_close_all_others" );
(void) new KAction(i18n("S&tatistics"), 0, TQT_TQOBJECT(this), TQT_SLOT(showDocInfo()), actionCollection(), "Statistics" );
(void) new KAction(i18n("&ASCII"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToASCII()), actionCollection(), "file_export_ascii" );
(void) new KAction(i18n("Latin-&1 (iso 8859-1)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin1" );
(void) new KAction(i18n("Latin-&2 (iso 8859-2)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin2" );
(void) new KAction(i18n("Latin-&3 (iso 8859-3)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin3" );
(void) new KAction(i18n("Latin-&4 (iso 8859-4)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin4" );
(void) new KAction(i18n("Latin-&5 (iso 8859-5)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin5" );
(void) new KAction(i18n("Latin-&9 (iso 8859-9)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin9" );
(void) new KAction(i18n("&Central European (cp-1250)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_cp1250" );
(void) new KAction(i18n("&Western European (cp-1252)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_cp1252" );
(void) new TDEAction(i18n("Close All"), 0, docManager(), TQT_SLOT(fileCloseAll()), actionCollection(),"file_close_all" );
(void) new TDEAction(i18n("Close All Ot&hers"), 0, docManager(), TQT_SLOT(fileCloseAllOthers()), actionCollection(),"file_close_all_others" );
(void) new TDEAction(i18n("S&tatistics"), 0, TQT_TQOBJECT(this), TQT_SLOT(showDocInfo()), actionCollection(), "Statistics" );
(void) new TDEAction(i18n("&ASCII"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToASCII()), actionCollection(), "file_export_ascii" );
(void) new TDEAction(i18n("Latin-&1 (iso 8859-1)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin1" );
(void) new TDEAction(i18n("Latin-&2 (iso 8859-2)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin2" );
(void) new TDEAction(i18n("Latin-&3 (iso 8859-3)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin3" );
(void) new TDEAction(i18n("Latin-&4 (iso 8859-4)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin4" );
(void) new TDEAction(i18n("Latin-&5 (iso 8859-5)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin5" );
(void) new TDEAction(i18n("Latin-&9 (iso 8859-9)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_latin9" );
(void) new TDEAction(i18n("&Central European (cp-1250)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_cp1250" );
(void) new TDEAction(i18n("&Western European (cp-1252)"), 0, TQT_TQOBJECT(this), TQT_SLOT(convertToEnc()), actionCollection(), "file_export_cp1252" );
(void) KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection(),"file_quit" );
(void) KStdAction::gotoLine(m_edit, TQT_SLOT(gotoLine()), actionCollection(),"edit_goto_line" );
(void) new KAction(i18n("Next section"), "nextsection", ALT+Key_Down, m_edit, TQT_SLOT(gotoNextSectioning()), actionCollection(),"edit_next_section" );
(void) new KAction(i18n("Prev section"), "prevsection", ALT+Key_Up, m_edit, TQT_SLOT(gotoPrevSectioning()), actionCollection(),"edit_prev_section" );
(void) new KAction(i18n("Next paragraph"), "nextparagraph", ALT+SHIFT+Key_Down, m_edit, TQT_SLOT(gotoNextParagraph()), actionCollection(),"edit_next_paragraph" );
(void) new KAction(i18n("Prev paragraph"), "prevparagraph", ALT+SHIFT+Key_Up, m_edit, TQT_SLOT(gotoPrevParagraph()), actionCollection(),"edit_prev_paragraph" );
(void) new TDEAction(i18n("Next section"), "nextsection", ALT+Key_Down, m_edit, TQT_SLOT(gotoNextSectioning()), actionCollection(),"edit_next_section" );
(void) new TDEAction(i18n("Prev section"), "prevsection", ALT+Key_Up, m_edit, TQT_SLOT(gotoPrevSectioning()), actionCollection(),"edit_prev_section" );
(void) new TDEAction(i18n("Next paragraph"), "nextparagraph", ALT+SHIFT+Key_Down, m_edit, TQT_SLOT(gotoNextParagraph()), actionCollection(),"edit_next_paragraph" );
(void) new TDEAction(i18n("Prev paragraph"), "prevparagraph", ALT+SHIFT+Key_Up, m_edit, TQT_SLOT(gotoPrevParagraph()), actionCollection(),"edit_prev_paragraph" );
(void) new KAction(i18n("Find &in Files..."), "filegrep", ALT+SHIFT+Key_F, TQT_TQOBJECT(this), TQT_SLOT(findInFiles()), actionCollection(),"FindInFiles" );
(void) new TDEAction(i18n("Find &in Files..."), "filegrep", ALT+SHIFT+Key_F, TQT_TQOBJECT(this), TQT_SLOT(findInFiles()), actionCollection(),"FindInFiles" );
(void) new KAction(i18n("Refresh Str&ucture"), "refreshstructure", Key_F12, TQT_TQOBJECT(this), TQT_SLOT(refreshStructure()), actionCollection(),"RefreshStructure" );
(void) new TDEAction(i18n("Refresh Str&ucture"), "refreshstructure", Key_F12, TQT_TQOBJECT(this), TQT_SLOT(refreshStructure()), actionCollection(),"RefreshStructure" );
//project actions
(void) new KAction(i18n("&New Project..."), "window_new", 0, docManager(), TQT_SLOT(projectNew()), actionCollection(), "project_new");
(void) new KAction(i18n("&Open Project..."), "project_open", 0, docManager(), TQT_SLOT(projectOpen()), actionCollection(), "project_open");
m_actRecentProjects = new KRecentFilesAction(i18n("Open &Recent Project"), 0, docManager(), TQT_SLOT(projectOpen(const KURL &)), actionCollection(), "project_openrecent");
(void) new TDEAction(i18n("&New Project..."), "window_new", 0, docManager(), TQT_SLOT(projectNew()), actionCollection(), "project_new");
(void) new TDEAction(i18n("&Open Project..."), "project_open", 0, docManager(), TQT_SLOT(projectOpen()), actionCollection(), "project_open");
m_actRecentProjects = new TDERecentFilesAction(i18n("Open &Recent Project"), 0, docManager(), TQT_SLOT(projectOpen(const KURL &)), actionCollection(), "project_openrecent");
connect(docManager(), TQT_SIGNAL(removeFromRecentProjects(const KURL& )), m_actRecentProjects, TQT_SLOT(removeURL(const KURL& )));
connect(docManager(), TQT_SIGNAL(addToRecentProjects(const KURL& )), m_actRecentProjects, TQT_SLOT(addURL(const KURL& )));
m_actRecentProjects->loadEntries(m_config, "Projects");
(void) new KAction(i18n("A&dd Files to Project..."),"project_add", 0, docManager(), TQT_SLOT(projectAddFiles()), actionCollection(), "project_add");
(void) new KAction(i18n("Refresh Project &Tree"), "rebuild", 0, docManager(), TQT_SLOT(buildProjectTree()), actionCollection(), "project_buildtree");
(void) new KAction(i18n("&Archive"), "package", 0, TQT_TQOBJECT(this), TQT_SLOT(runArchiveTool()), actionCollection(), "project_archive");
(void) new KAction(i18n("Project &Options"), "configure_project", 0, docManager(), TQT_SLOT(projectOptions()), actionCollection(), "project_options");
(void) new KAction(i18n("&Close Project"), "fileclose", 0, docManager(), TQT_SLOT(projectClose()), actionCollection(), "project_close");
(void) new TDEAction(i18n("A&dd Files to Project..."),"project_add", 0, docManager(), TQT_SLOT(projectAddFiles()), actionCollection(), "project_add");
(void) new TDEAction(i18n("Refresh Project &Tree"), "rebuild", 0, docManager(), TQT_SLOT(buildProjectTree()), actionCollection(), "project_buildtree");
(void) new TDEAction(i18n("&Archive"), "package", 0, TQT_TQOBJECT(this), TQT_SLOT(runArchiveTool()), actionCollection(), "project_archive");
(void) new TDEAction(i18n("Project &Options"), "configure_project", 0, docManager(), TQT_SLOT(projectOptions()), actionCollection(), "project_options");
(void) new TDEAction(i18n("&Close Project"), "fileclose", 0, docManager(), TQT_SLOT(projectClose()), actionCollection(), "project_close");
// new project actions (dani)
(void) new KAction(i18n("&Show Projects..."), 0, docManager(), TQT_SLOT(projectShow()), actionCollection(), "project_show");
(void) new KAction(i18n("Re&move Files From Project..."),"project_remove", 0, docManager(), TQT_SLOT(projectRemoveFiles()), actionCollection(), "project_remove");
(void) new KAction(i18n("Show Project &Files..."),"project_show", 0, docManager(), TQT_SLOT(projectShowFiles()), actionCollection(), "project_showfiles");
(void) new TDEAction(i18n("&Show Projects..."), 0, docManager(), TQT_SLOT(projectShow()), actionCollection(), "project_show");
(void) new TDEAction(i18n("Re&move Files From Project..."),"project_remove", 0, docManager(), TQT_SLOT(projectRemoveFiles()), actionCollection(), "project_remove");
(void) new TDEAction(i18n("Show Project &Files..."),"project_show", 0, docManager(), TQT_SLOT(projectShowFiles()), actionCollection(), "project_showfiles");
// tbraun
(void) new KAction(i18n("Open All &Project Files"), 0, docManager(), TQT_SLOT(projectOpenAllFiles()), actionCollection(), "project_openallfiles");
(void) new KAction(i18n("Find in &Project..."), "projectgrep", 0, TQT_TQOBJECT(this), TQT_SLOT(findInProjects()), actionCollection(),"project_findfiles" );
(void) new TDEAction(i18n("Open All &Project Files"), 0, docManager(), TQT_SLOT(projectOpenAllFiles()), actionCollection(), "project_openallfiles");
(void) new TDEAction(i18n("Find in &Project..."), "projectgrep", 0, TQT_TQOBJECT(this), TQT_SLOT(findInProjects()), actionCollection(),"project_findfiles" );
//build actions
(void) new KAction(i18n("Clean"),"trashcan_full",0 , TQT_TQOBJECT(this), TQT_SLOT(cleanAll()), actionCollection(),"CleanAll" );
(void) new KAction(i18n("View Log File"),"viewlog", ALT+Key_0, m_errorHandler, TQT_SLOT(ViewLog()), actionCollection(),"ViewLog" );
(void) new KAction(i18n("Previous LaTeX Error"),"errorprev", 0, m_errorHandler, TQT_SLOT(PreviousError()), actionCollection(),"PreviousError" );
(void) new KAction(i18n("Next LaTeX Error"),"errornext", 0, m_errorHandler, TQT_SLOT(NextError()), actionCollection(),"NextError" );
(void) new KAction(i18n("Previous LaTeX Warning"),"warnprev", 0, m_errorHandler, TQT_SLOT(PreviousWarning()), actionCollection(),"PreviousWarning" );
(void) new KAction(i18n("Next LaTeX Warning"),"warnnext", 0, m_errorHandler, TQT_SLOT(NextWarning()), actionCollection(),"NextWarning" );
(void) new KAction(i18n("Previous LaTeX BadBox"),"bboxprev", 0, m_errorHandler, TQT_SLOT(PreviousBadBox()), actionCollection(),"PreviousBadBox" );
(void) new KAction(i18n("Next LaTeX BadBox"),"bboxnext", 0, m_errorHandler, TQT_SLOT(NextBadBox()), actionCollection(),"NextBadBox" );
m_paStop = new KAction(i18n("&Stop"),"stop",Key_Escape,0,0,actionCollection(),"Stop");
(void) new TDEAction(i18n("Clean"),"trashcan_full",0 , TQT_TQOBJECT(this), TQT_SLOT(cleanAll()), actionCollection(),"CleanAll" );
(void) new TDEAction(i18n("View Log File"),"viewlog", ALT+Key_0, m_errorHandler, TQT_SLOT(ViewLog()), actionCollection(),"ViewLog" );
(void) new TDEAction(i18n("Previous LaTeX Error"),"errorprev", 0, m_errorHandler, TQT_SLOT(PreviousError()), actionCollection(),"PreviousError" );
(void) new TDEAction(i18n("Next LaTeX Error"),"errornext", 0, m_errorHandler, TQT_SLOT(NextError()), actionCollection(),"NextError" );
(void) new TDEAction(i18n("Previous LaTeX Warning"),"warnprev", 0, m_errorHandler, TQT_SLOT(PreviousWarning()), actionCollection(),"PreviousWarning" );
(void) new TDEAction(i18n("Next LaTeX Warning"),"warnnext", 0, m_errorHandler, TQT_SLOT(NextWarning()), actionCollection(),"NextWarning" );
(void) new TDEAction(i18n("Previous LaTeX BadBox"),"bboxprev", 0, m_errorHandler, TQT_SLOT(PreviousBadBox()), actionCollection(),"PreviousBadBox" );
(void) new TDEAction(i18n("Next LaTeX BadBox"),"bboxnext", 0, m_errorHandler, TQT_SLOT(NextBadBox()), actionCollection(),"NextBadBox" );
m_paStop = new TDEAction(i18n("&Stop"),"stop",Key_Escape,0,0,actionCollection(),"Stop");
m_paStop->setEnabled(false);
(void) new KAction(i18n("Editor View"),"edit",CTRL+Key_E , TQT_TQOBJECT(this), TQT_SLOT(showEditorWidget()), actionCollection(),"EditorView" );
(void) new KAction(i18n("Next Document"),"forward",ALT+Key_Right, viewManager(), TQT_SLOT(gotoNextView()), actionCollection(), "gotoNextDocument" );
(void) new KAction(i18n("Previous Document"),"back",ALT+Key_Left, viewManager(), TQT_SLOT(gotoPrevView()), actionCollection(), "gotoPrevDocument" );
(void) new KAction(i18n("Focus Log/Messages View"), CTRL+ALT+Key_M, TQT_TQOBJECT(this), TQT_SLOT(focusLog()), actionCollection(), "focus_log");
(void) new KAction(i18n("Focus Output View"), CTRL+ALT+Key_O, TQT_TQOBJECT(this), TQT_SLOT(focusOutput()), actionCollection(), "focus_output");
(void) new KAction(i18n("Focus Konsole View"), CTRL+ALT+Key_K, TQT_TQOBJECT(this), TQT_SLOT(focusKonsole()), actionCollection(), "focus_konsole");
(void) new KAction(i18n("Focus Editor View"), CTRL+ALT+Key_E, TQT_TQOBJECT(this), TQT_SLOT(focusEditor()), actionCollection(), "focus_editor");
(void) new TDEAction(i18n("Editor View"),"edit",CTRL+Key_E , TQT_TQOBJECT(this), TQT_SLOT(showEditorWidget()), actionCollection(),"EditorView" );
(void) new TDEAction(i18n("Next Document"),"forward",ALT+Key_Right, viewManager(), TQT_SLOT(gotoNextView()), actionCollection(), "gotoNextDocument" );
(void) new TDEAction(i18n("Previous Document"),"back",ALT+Key_Left, viewManager(), TQT_SLOT(gotoPrevView()), actionCollection(), "gotoPrevDocument" );
(void) new TDEAction(i18n("Focus Log/Messages View"), CTRL+ALT+Key_M, TQT_TQOBJECT(this), TQT_SLOT(focusLog()), actionCollection(), "focus_log");
(void) new TDEAction(i18n("Focus Output View"), CTRL+ALT+Key_O, TQT_TQOBJECT(this), TQT_SLOT(focusOutput()), actionCollection(), "focus_output");
(void) new TDEAction(i18n("Focus Konsole View"), CTRL+ALT+Key_K, TQT_TQOBJECT(this), TQT_SLOT(focusKonsole()), actionCollection(), "focus_konsole");
(void) new TDEAction(i18n("Focus Editor View"), CTRL+ALT+Key_E, TQT_TQOBJECT(this), TQT_SLOT(focusEditor()), actionCollection(), "focus_editor");
// CodeCompletion (dani)
(void) new KAction(i18n("(La)TeX Command"),"complete1",CTRL+Key_Space, m_edit, TQT_SLOT(completeWord()), actionCollection(), "edit_complete_word");
(void) new KAction(i18n("Environment"),"complete2",ALT+Key_Space, m_edit, TQT_SLOT(completeEnvironment()), actionCollection(), "edit_complete_env");
(void) new KAction(i18n("Abbreviation"),"complete3",CTRL+ALT+Key_Space, m_edit, TQT_SLOT(completeAbbreviation()), actionCollection(), "edit_complete_abbrev");
(void) new TDEAction(i18n("(La)TeX Command"),"complete1",CTRL+Key_Space, m_edit, TQT_SLOT(completeWord()), actionCollection(), "edit_complete_word");
(void) new TDEAction(i18n("Environment"),"complete2",ALT+Key_Space, m_edit, TQT_SLOT(completeEnvironment()), actionCollection(), "edit_complete_env");
(void) new TDEAction(i18n("Abbreviation"),"complete3",CTRL+ALT+Key_Space, m_edit, TQT_SLOT(completeAbbreviation()), actionCollection(), "edit_complete_abbrev");
(void) new KAction(i18n("Next Bullet"),"nextbullet",CTRL+ALT+Key_Right, m_edit, TQT_SLOT(nextBullet()), actionCollection(), "edit_next_bullet");
(void) new KAction(i18n("Prev Bullet"),"prevbullet",CTRL+ALT+Key_Left, m_edit, TQT_SLOT(prevBullet()), actionCollection(), "edit_prev_bullet");
(void) new TDEAction(i18n("Next Bullet"),"nextbullet",CTRL+ALT+Key_Right, m_edit, TQT_SLOT(nextBullet()), actionCollection(), "edit_next_bullet");
(void) new TDEAction(i18n("Prev Bullet"),"prevbullet",CTRL+ALT+Key_Left, m_edit, TQT_SLOT(prevBullet()), actionCollection(), "edit_prev_bullet");
// advanced editor (dani)
(void) new KAction(i18n("Environment (inside)"),"selenv_i",KShortcut("CTRL+Alt+S,E"), m_edit, TQT_SLOT(selectEnvInside()), actionCollection(), "edit_select_inside_env");
(void) new KAction(i18n("Environment (outside)"),"selenv_o",KShortcut("CTRL+Alt+S,F"), m_edit, TQT_SLOT(selectEnvOutside()), actionCollection(), "edit_select_outside_env");
(void) new KAction(i18n("TeX Group (inside)"),"selgroup_i",KShortcut("CTRL+Alt+S,T"), m_edit, TQT_SLOT(selectTexgroupInside()), actionCollection(), "edit_select_inside_group");
(void) new KAction(i18n("TeX Group (outside)"), "selgroup_o",KShortcut("CTRL+Alt+S,U"),m_edit, TQT_SLOT(selectTexgroupOutside()), actionCollection(), "edit_select_outside_group");
(void) new KAction(i18n("Math Group"), "selmath",KShortcut("CTRL+Alt+S,M"),m_edit, TQT_SLOT(selectMathgroup()), actionCollection(), "edit_select_mathgroup");
(void) new KAction(i18n("Paragraph"),"selpar",KShortcut("CTRL+Alt+S,P"),m_edit, TQT_SLOT(selectParagraph()), actionCollection(), "edit_select_paragraph");
(void) new KAction(i18n("Line"),"selline",KShortcut("CTRL+Alt+S,L"),m_edit, TQT_SLOT(selectLine()), actionCollection(), "edit_select_line");
(void) new KAction(i18n("TeX Word"),"selword",KShortcut("CTRL+Alt+S,W"),m_edit, TQT_SLOT(selectWord()), actionCollection(), "edit_select_word");
(void) new KAction(i18n("Environment (inside)"),"delenv_i",KShortcut("CTRL+Alt+T,E"), m_edit, TQT_SLOT(deleteEnvInside()), actionCollection(), "edit_delete_inside_env");
(void) new KAction(i18n("Environment (outside)"),"delenv_o",KShortcut("CTRL+Alt+T,F"),m_edit, TQT_SLOT(deleteEnvOutside()), actionCollection(), "edit_delete_outside_env");
(void) new KAction(i18n("TeX Group (inside)"),"delgroup_i",KShortcut("CTRL+Alt+T,T"), m_edit, TQT_SLOT(deleteTexgroupInside()), actionCollection(),"edit_delete_inside_group");
(void) new KAction(i18n("TeX Group (outside)"),"delgroup_o",KShortcut("CTRL+Alt+T,U"),m_edit, TQT_SLOT(deleteTexgroupInside()), actionCollection(), "edit_delete_outside_group");
(void) new KAction(i18n("Math Group"),"delmath",KShortcut("CTRL+Alt+T,M"),m_edit, TQT_SLOT(deleteMathgroup()), actionCollection(), "edit_delete_mathgroup");
(void) new KAction(i18n("Paragraph"),"delpar",KShortcut("CTRL+Alt+T,P"),m_edit, TQT_SLOT(deleteParagraph()), actionCollection(), "edit_delete_paragraph");
(void) new KAction(i18n("To End of Line"),"deleol",KShortcut("CTRL+Alt+T,I"),m_edit, TQT_SLOT(deleteEndOfLine()), actionCollection(), "edit_delete_eol");
(void) new KAction(i18n("TeX Word"),"delword",KShortcut("CTRL+Alt+T,W"),m_edit, TQT_SLOT(deleteWord()), actionCollection(), "edit_delete_word");
(void) new KAction(i18n("Goto Begin"),"gotobeginenv",KShortcut("CTRL+Alt+E,B"), m_edit, TQT_SLOT(gotoBeginEnv()), actionCollection(), "edit_begin_env");
(void) new KAction(i18n("Goto End"),"gotoendenv",KShortcut("CTRL+Alt+E,E"), m_edit, TQT_SLOT(gotoEndEnv()), actionCollection(), "edit_end_env");
(void) new KAction(i18n("Match"),"matchenv",KShortcut("CTRL+Alt+E,M"), m_edit, TQT_SLOT(matchEnv()), actionCollection(), "edit_match_env");
(void) new KAction(i18n("Close"),"closeenv",KShortcut("CTRL+Alt+E,C"), m_edit, TQT_SLOT(closeEnv()), actionCollection(), "edit_close_env");
(void) new KAction(i18n("Close All"),"closeallenv",KShortcut("CTRL+Alt+E,A"), m_edit, TQT_SLOT(closeAllEnv()), actionCollection(), "edit_closeall_env");
(void) new KAction(i18n("Goto Begin"),"gotobegingroup",KShortcut("CTRL+Alt+G,B"), m_edit, TQT_SLOT(gotoBeginTexgroup()), actionCollection(), "edit_begin_group");
(void) new KAction(i18n("Goto End"),"gotoendgroup",KShortcut("CTRL+Alt+G,E"), m_edit, TQT_SLOT(gotoEndTexgroup()), actionCollection(), "edit_end_group");
(void) new KAction(i18n("Match"),"matchgroup",KShortcut("CTRL+Alt+G,M"), m_edit, TQT_SLOT(matchTexgroup()), actionCollection(), "edit_match_group");
(void) new KAction(i18n("Close"),"closegroup",KShortcut("CTRL+Alt+G,C"), m_edit, TQT_SLOT(closeTexgroup()), actionCollection(), "edit_close_group");
(void) new KAction(i18n("Selection"),"preview_sel",KShortcut("CTRL+Alt+P,S"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewSelection()), actionCollection(),"quickpreview_selection" );
(void) new KAction(i18n("Environment"),"preview_env",KShortcut("CTRL+Alt+P,E"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewEnvironment()), actionCollection(),"quickpreview_environment" );
(void) new KAction(i18n("Subdocument"),"preview_subdoc",KShortcut("CTRL+Alt+P,D"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewSubdocument()), actionCollection(),"quickpreview_subdocument" );
(void) new KAction (i18n ("Mathgroup"), "edu_mathematics", KShortcut("CTRL+Alt+P,M"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewMathgroup()), actionCollection(), "quickpreview_math");
(void) new TDEAction(i18n("Environment (inside)"),"selenv_i",TDEShortcut("CTRL+Alt+S,E"), m_edit, TQT_SLOT(selectEnvInside()), actionCollection(), "edit_select_inside_env");
(void) new TDEAction(i18n("Environment (outside)"),"selenv_o",TDEShortcut("CTRL+Alt+S,F"), m_edit, TQT_SLOT(selectEnvOutside()), actionCollection(), "edit_select_outside_env");
(void) new TDEAction(i18n("TeX Group (inside)"),"selgroup_i",TDEShortcut("CTRL+Alt+S,T"), m_edit, TQT_SLOT(selectTexgroupInside()), actionCollection(), "edit_select_inside_group");
(void) new TDEAction(i18n("TeX Group (outside)"), "selgroup_o",TDEShortcut("CTRL+Alt+S,U"),m_edit, TQT_SLOT(selectTexgroupOutside()), actionCollection(), "edit_select_outside_group");
(void) new TDEAction(i18n("Math Group"), "selmath",TDEShortcut("CTRL+Alt+S,M"),m_edit, TQT_SLOT(selectMathgroup()), actionCollection(), "edit_select_mathgroup");
(void) new TDEAction(i18n("Paragraph"),"selpar",TDEShortcut("CTRL+Alt+S,P"),m_edit, TQT_SLOT(selectParagraph()), actionCollection(), "edit_select_paragraph");
(void) new TDEAction(i18n("Line"),"selline",TDEShortcut("CTRL+Alt+S,L"),m_edit, TQT_SLOT(selectLine()), actionCollection(), "edit_select_line");
(void) new TDEAction(i18n("TeX Word"),"selword",TDEShortcut("CTRL+Alt+S,W"),m_edit, TQT_SLOT(selectWord()), actionCollection(), "edit_select_word");
(void) new TDEAction(i18n("Environment (inside)"),"delenv_i",TDEShortcut("CTRL+Alt+T,E"), m_edit, TQT_SLOT(deleteEnvInside()), actionCollection(), "edit_delete_inside_env");
(void) new TDEAction(i18n("Environment (outside)"),"delenv_o",TDEShortcut("CTRL+Alt+T,F"),m_edit, TQT_SLOT(deleteEnvOutside()), actionCollection(), "edit_delete_outside_env");
(void) new TDEAction(i18n("TeX Group (inside)"),"delgroup_i",TDEShortcut("CTRL+Alt+T,T"), m_edit, TQT_SLOT(deleteTexgroupInside()), actionCollection(),"edit_delete_inside_group");
(void) new TDEAction(i18n("TeX Group (outside)"),"delgroup_o",TDEShortcut("CTRL+Alt+T,U"),m_edit, TQT_SLOT(deleteTexgroupInside()), actionCollection(), "edit_delete_outside_group");
(void) new TDEAction(i18n("Math Group"),"delmath",TDEShortcut("CTRL+Alt+T,M"),m_edit, TQT_SLOT(deleteMathgroup()), actionCollection(), "edit_delete_mathgroup");
(void) new TDEAction(i18n("Paragraph"),"delpar",TDEShortcut("CTRL+Alt+T,P"),m_edit, TQT_SLOT(deleteParagraph()), actionCollection(), "edit_delete_paragraph");
(void) new TDEAction(i18n("To End of Line"),"deleol",TDEShortcut("CTRL+Alt+T,I"),m_edit, TQT_SLOT(deleteEndOfLine()), actionCollection(), "edit_delete_eol");
(void) new TDEAction(i18n("TeX Word"),"delword",TDEShortcut("CTRL+Alt+T,W"),m_edit, TQT_SLOT(deleteWord()), actionCollection(), "edit_delete_word");
(void) new TDEAction(i18n("Goto Begin"),"gotobeginenv",TDEShortcut("CTRL+Alt+E,B"), m_edit, TQT_SLOT(gotoBeginEnv()), actionCollection(), "edit_begin_env");
(void) new TDEAction(i18n("Goto End"),"gotoendenv",TDEShortcut("CTRL+Alt+E,E"), m_edit, TQT_SLOT(gotoEndEnv()), actionCollection(), "edit_end_env");
(void) new TDEAction(i18n("Match"),"matchenv",TDEShortcut("CTRL+Alt+E,M"), m_edit, TQT_SLOT(matchEnv()), actionCollection(), "edit_match_env");
(void) new TDEAction(i18n("Close"),"closeenv",TDEShortcut("CTRL+Alt+E,C"), m_edit, TQT_SLOT(closeEnv()), actionCollection(), "edit_close_env");
(void) new TDEAction(i18n("Close All"),"closeallenv",TDEShortcut("CTRL+Alt+E,A"), m_edit, TQT_SLOT(closeAllEnv()), actionCollection(), "edit_closeall_env");
(void) new TDEAction(i18n("Goto Begin"),"gotobegingroup",TDEShortcut("CTRL+Alt+G,B"), m_edit, TQT_SLOT(gotoBeginTexgroup()), actionCollection(), "edit_begin_group");
(void) new TDEAction(i18n("Goto End"),"gotoendgroup",TDEShortcut("CTRL+Alt+G,E"), m_edit, TQT_SLOT(gotoEndTexgroup()), actionCollection(), "edit_end_group");
(void) new TDEAction(i18n("Match"),"matchgroup",TDEShortcut("CTRL+Alt+G,M"), m_edit, TQT_SLOT(matchTexgroup()), actionCollection(), "edit_match_group");
(void) new TDEAction(i18n("Close"),"closegroup",TDEShortcut("CTRL+Alt+G,C"), m_edit, TQT_SLOT(closeTexgroup()), actionCollection(), "edit_close_group");
(void) new TDEAction(i18n("Selection"),"preview_sel",TDEShortcut("CTRL+Alt+P,S"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewSelection()), actionCollection(),"quickpreview_selection" );
(void) new TDEAction(i18n("Environment"),"preview_env",TDEShortcut("CTRL+Alt+P,E"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewEnvironment()), actionCollection(),"quickpreview_environment" );
(void) new TDEAction(i18n("Subdocument"),"preview_subdoc",TDEShortcut("CTRL+Alt+P,D"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewSubdocument()), actionCollection(),"quickpreview_subdocument" );
(void) new TDEAction (i18n ("Mathgroup"), "edu_mathematics", TDEShortcut("CTRL+Alt+P,M"), TQT_TQOBJECT(this), TQT_SLOT(quickPreviewMathgroup()), actionCollection(), "quickpreview_math");
KileStdActions::setupStdTags(this,this);
KileStdActions::setupMathTags(this);
KileStdActions::setupBibTags(this);
(void) new KAction(i18n("Quick Start"),"quickwizard",0 , TQT_TQOBJECT(this), TQT_SLOT(quickDocument()), actionCollection(),"wizard_document" );
(void) new TDEAction(i18n("Quick Start"),"quickwizard",0 , TQT_TQOBJECT(this), TQT_SLOT(quickDocument()), actionCollection(),"wizard_document" );
connect(docManager(), TQT_SIGNAL(startWizard()), TQT_TQOBJECT(this), TQT_SLOT(quickDocument()));
(void) new KAction(i18n("Tabular"),"wizard_tabular",0 , TQT_TQOBJECT(this), TQT_SLOT(quickTabular()), actionCollection(),"wizard_tabular" );
(void) new KAction(i18n("Array"),"wizard_array",0 , TQT_TQOBJECT(this), TQT_SLOT(quickArray()), actionCollection(),"wizard_array" );
(void) new KAction(i18n("Tabbing"),"wizard_tabbing",0 , TQT_TQOBJECT(this), TQT_SLOT(quickTabbing()), actionCollection(),"wizard_tabbing" );
(void) new KAction(i18n("Floats"),"wizard_float",0, TQT_TQOBJECT(this), TQT_SLOT(quickFloat()), actionCollection(),"wizard_float" );
(void) new KAction(i18n("Math"),"wizard_math",0, TQT_TQOBJECT(this), TQT_SLOT(quickMathenv()), actionCollection(),"wizard_mathenv" );
(void) new KAction(i18n("Postscript Tools"),"wizard_pstools",0 , TQT_TQOBJECT(this), TQT_SLOT(quickPostscript()), actionCollection(),"wizard_postscript" );
(void) new TDEAction(i18n("Tabular"),"wizard_tabular",0 , TQT_TQOBJECT(this), TQT_SLOT(quickTabular()), actionCollection(),"wizard_tabular" );
(void) new TDEAction(i18n("Array"),"wizard_array",0 , TQT_TQOBJECT(this), TQT_SLOT(quickArray()), actionCollection(),"wizard_array" );
(void) new TDEAction(i18n("Tabbing"),"wizard_tabbing",0 , TQT_TQOBJECT(this), TQT_SLOT(quickTabbing()), actionCollection(),"wizard_tabbing" );
(void) new TDEAction(i18n("Floats"),"wizard_float",0, TQT_TQOBJECT(this), TQT_SLOT(quickFloat()), actionCollection(),"wizard_float" );
(void) new TDEAction(i18n("Math"),"wizard_math",0, TQT_TQOBJECT(this), TQT_SLOT(quickMathenv()), actionCollection(),"wizard_mathenv" );
(void) new TDEAction(i18n("Postscript Tools"),"wizard_pstools",0 , TQT_TQOBJECT(this), TQT_SLOT(quickPostscript()), actionCollection(),"wizard_postscript" );
(void) new KAction(i18n("Clean"),0 , TQT_TQOBJECT(this), TQT_SLOT(cleanBib()), actionCollection(),"CleanBib" );
(void) new TDEAction(i18n("Clean"),0 , TQT_TQOBJECT(this), TQT_SLOT(cleanBib()), actionCollection(),"CleanBib" );
ModeAction=new KToggleAction(i18n("Define Current Document as '&Master Document'"),"master",0 , TQT_TQOBJECT(this), TQT_SLOT(toggleMode()), actionCollection(),"Mode" );
ModeAction=new TDEToggleAction(i18n("Define Current Document as '&Master Document'"),"master",0 , TQT_TQOBJECT(this), TQT_SLOT(toggleMode()), actionCollection(),"Mode" );
KToggleAction *tact = new KToggleAction(i18n("Show S&ide Bar"), 0, 0, 0, actionCollection(),"StructureView" );
TDEToggleAction *tact = new TDEToggleAction(i18n("Show S&ide Bar"), 0, 0, 0, actionCollection(),"StructureView" );
tact->setChecked(KileConfig::sideBar());
connect(tact, TQT_SIGNAL(toggled(bool)), m_sideBar, TQT_SLOT(setVisible(bool)));
connect(m_sideBar, TQT_SIGNAL(visibilityChanged(bool )), tact, TQT_SLOT(setChecked(bool)));
connect(m_sideBar, TQT_SIGNAL(visibilityChanged(bool )), TQT_TQOBJECT(this), TQT_SLOT(sideOrBottomBarChanged(bool)));
m_actionMessageView = new KToggleAction(i18n("Show Mess&ages Bar"), 0, 0, 0, actionCollection(),"MessageView" );
m_actionMessageView = new TDEToggleAction(i18n("Show Mess&ages Bar"), 0, 0, 0, actionCollection(),"MessageView" );
m_actionMessageView->setChecked(true);
connect(m_actionMessageView, TQT_SIGNAL(toggled(bool)), m_bottomBar, TQT_SLOT(setVisible(bool)));
connect(m_bottomBar, TQT_SIGNAL(visibilityChanged(bool )), m_actionMessageView, TQT_SLOT(setChecked(bool)));
@ -647,7 +647,7 @@ void Kile::setupActions()
if (m_singlemode) {ModeAction->setChecked(false);}
else {ModeAction->setChecked(true);}
WatchFileAction=new KToggleAction(i18n("Watch File Mode"),"watchfile",0 , TQT_TQOBJECT(this), TQT_SLOT(toggleWatchFile()), actionCollection(), "WatchFile");
WatchFileAction=new TDEToggleAction(i18n("Watch File Mode"),"watchfile",0 , TQT_TQOBJECT(this), TQT_SLOT(toggleWatchFile()), actionCollection(), "WatchFile");
if (m_bWatchFile) {WatchFileAction->setChecked(true);}
else {WatchFileAction->setChecked(false);}
@ -657,27 +657,27 @@ void Kile::setupActions()
KStdAction::tipOfDay(TQT_TQOBJECT(this), TQT_SLOT(showTip()), actionCollection(), "help_tipofday");
(void) new KAction(i18n("TeX Guide"),KShortcut("CTRL+Alt+H,G"), m_help, TQT_SLOT(helpTexGuide()), actionCollection(), "help_tex_guide");
(void) new KAction(i18n("LaTeX"),KShortcut("CTRL+Alt+H,L"), m_help, TQT_SLOT(helpLatexIndex()), actionCollection(), "help_latex_index");
(void) new KAction(i18n("LaTeX Command"),KShortcut("CTRL+Alt+H,C"), m_help, TQT_SLOT(helpLatexCommand()), actionCollection(), "help_latex_command");
(void) new KAction(i18n("LaTeX Subject"),KShortcut("CTRL+Alt+H,S"), m_help, TQT_SLOT(helpLatexSubject()), actionCollection(), "help_latex_subject");
(void) new KAction(i18n("LaTeX Env"),KShortcut("CTRL+Alt+H,E"), m_help, TQT_SLOT(helpLatexEnvironment()), actionCollection(), "help_latex_env");
(void) new KAction(i18n("Context Help"),KShortcut("CTRL+Alt+H,K"), m_help, TQT_SLOT(helpKeyword()), actionCollection(), "help_context");
(void) new KAction(i18n("Documentation Browser"),KShortcut("CTRL+Alt+H,B"), m_help, TQT_SLOT(helpDocBrowser()), actionCollection(), "help_docbrowser");
(void) new TDEAction(i18n("TeX Guide"),TDEShortcut("CTRL+Alt+H,G"), m_help, TQT_SLOT(helpTexGuide()), actionCollection(), "help_tex_guide");
(void) new TDEAction(i18n("LaTeX"),TDEShortcut("CTRL+Alt+H,L"), m_help, TQT_SLOT(helpLatexIndex()), actionCollection(), "help_latex_index");
(void) new TDEAction(i18n("LaTeX Command"),TDEShortcut("CTRL+Alt+H,C"), m_help, TQT_SLOT(helpLatexCommand()), actionCollection(), "help_latex_command");
(void) new TDEAction(i18n("LaTeX Subject"),TDEShortcut("CTRL+Alt+H,S"), m_help, TQT_SLOT(helpLatexSubject()), actionCollection(), "help_latex_subject");
(void) new TDEAction(i18n("LaTeX Env"),TDEShortcut("CTRL+Alt+H,E"), m_help, TQT_SLOT(helpLatexEnvironment()), actionCollection(), "help_latex_env");
(void) new TDEAction(i18n("Context Help"),TDEShortcut("CTRL+Alt+H,K"), m_help, TQT_SLOT(helpKeyword()), actionCollection(), "help_context");
(void) new TDEAction(i18n("Documentation Browser"),TDEShortcut("CTRL+Alt+H,B"), m_help, TQT_SLOT(helpDocBrowser()), actionCollection(), "help_docbrowser");
(void) new KAction(i18n("LaTeX Reference"),"help",0 , TQT_TQOBJECT(this), TQT_SLOT(helpLaTex()), actionCollection(),"help_latex_reference" );
(void) new TDEAction(i18n("LaTeX Reference"),"help",0 , TQT_TQOBJECT(this), TQT_SLOT(helpLaTex()), actionCollection(),"help_latex_reference" );
(void) KStdAction::helpContents(help_menu, TQT_SLOT(appHelpActivated()), actionCollection(), "help_handbook");
(void) KStdAction::reportBug (help_menu, TQT_SLOT(reportBug()), actionCollection(), "report_bug");
(void) KStdAction::aboutApp(help_menu, TQT_SLOT(aboutApplication()), actionCollection(),"help_aboutKile" );
(void) KStdAction::aboutKDE(help_menu, TQT_SLOT(aboutKDE()), actionCollection(),"help_aboutKDE" );
KAction *kileconfig = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(generalOptions()), actionCollection(),"settings_configure" );
TDEAction *kileconfig = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(generalOptions()), actionCollection(),"settings_configure" );
kileconfig->setIcon("configure_kile");
(void) KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(configureKeys()), actionCollection(),"settings_keys" );
(void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolbars()), actionCollection(),"settings_toolbars" );
new KAction(i18n("&System Check..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotPerformCheck()), actionCollection(), "settings_perform_check");
new TDEAction(i18n("&System Check..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotPerformCheck()), actionCollection(), "settings_perform_check");
m_menuUserTags = new KActionMenu(i18n("User Tags"), SmallIcon("label"), actionCollection(),"menuUserTags");
m_menuUserTags = new TDEActionMenu(i18n("User Tags"), SmallIcon("label"), actionCollection(),"menuUserTags");
m_menuUserTags->setDelayed(false);
setupUserTagActions();
@ -691,7 +691,7 @@ void Kile::setupTools()
KILE_DEBUG() << "==Kile::setupTools()===================" << endl;
TQStringList tools = KileTool::toolList(m_config);
TQString toolMenu;
TQPtrList<KAction> *pl;
TQPtrList<TDEAction> *pl;
unplugActionList("list_compilers");
unplugActionList("list_converters");
@ -723,7 +723,7 @@ void Kile::setupTools()
if ( action(TQString("tool_"+tools[i]).ascii()) == 0L )
{
KAction *act = new KAction(tools[i], KileTool::iconFor(tools[i], m_config), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(runTool()), actionCollection(), TQString("tool_"+tools[i]).ascii());
TDEAction *act = new TDEAction(tools[i], KileTool::iconFor(tools[i], m_config), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(runTool()), actionCollection(), TQString("tool_"+tools[i]).ascii());
pl->append(act);
}
}
@ -743,9 +743,9 @@ void Kile::setupTools()
actionCollection()->readShortcutSettings("Shortcuts", m_config);
}
void Kile::cleanUpActionList(TQPtrList<KAction> &list, const TQStringList & tools)
void Kile::cleanUpActionList(TQPtrList<TDEAction> &list, const TQStringList & tools)
{
for ( KAction *act = list.first(); act; act = list.next() )
for ( TDEAction *act = list.first(); act; act = list.next() )
{
if ( action(act->name()) != 0L && !tools.contains(TQString(act->name()).mid(5)) )
{
@ -757,18 +757,18 @@ void Kile::cleanUpActionList(TQPtrList<KAction> &list, const TQStringList & tool
void Kile::setupUserTagActions()
{
KShortcut tagaccels[10] = {CTRL+SHIFT+Key_1, CTRL+SHIFT+Key_2,CTRL+SHIFT+Key_3,CTRL+SHIFT+Key_4,CTRL+SHIFT+Key_5,CTRL+SHIFT+Key_6,CTRL+SHIFT+Key_7,
TDEShortcut tagaccels[10] = {CTRL+SHIFT+Key_1, CTRL+SHIFT+Key_2,CTRL+SHIFT+Key_3,CTRL+SHIFT+Key_4,CTRL+SHIFT+Key_5,CTRL+SHIFT+Key_6,CTRL+SHIFT+Key_7,
CTRL+SHIFT+Key_8,CTRL+SHIFT+Key_9,CTRL+SHIFT+Key_0};
m_actionEditTag = new KAction(i18n("Edit User Tags..."),0 , TQT_TQOBJECT(this), TQT_SLOT(editUserMenu()), m_menuUserTags,"EditUserMenu" );
m_actionEditTag = new TDEAction(i18n("Edit User Tags..."),0 , TQT_TQOBJECT(this), TQT_SLOT(editUserMenu()), m_menuUserTags,"EditUserMenu" );
m_menuUserTags->insert(m_actionEditTag);
if ( m_listUserTags.size() > 0 ) {
m_actionEditSeparator = new KActionSeparator();
m_actionEditSeparator = new TDEActionSeparator();
m_menuUserTags->insert(m_actionEditSeparator);
}
for (uint i=0; i<m_listUserTags.size(); ++i)
{
KShortcut sc; if (i<10) { sc = tagaccels[i]; } else { sc = 0; }
TDEShortcut sc; if (i<10) { sc = tagaccels[i]; } else { sc = 0; }
TQString name = TQString::number(i+1)+": "+m_listUserTags[i].text;
KileAction::Tag *menuItem = new KileAction::Tag(name, sc, TQT_TQOBJECT(this), TQT_SLOT(insertTag(const KileAction::TagData &)), actionCollection(), TQString("tag_user_" + m_listUserTags[i].text).ascii(), m_listUserTags[i]);
m_listUserTagsActions.append(menuItem);
@ -1488,7 +1488,7 @@ void Kile::setMenuItems(TQStringList &list, TQMap<TQString,bool> &dict)
void Kile::updateMenu()
{
KILE_DEBUG() << "==Kile::updateKileMenu()====================" << endl;
KAction *a;
TDEAction *a;
TQMap<TQString,bool>::Iterator it;
// update project menus
@ -1532,8 +1532,8 @@ void Kile::updateMenu()
}
// update action lists
KActionPtrList actions = actionCollection()->actions();
KActionPtrList::Iterator itact;
TDEActionPtrList actions = actionCollection()->actions();
TDEActionPtrList::Iterator itact;
for ( itact=actions.begin(); itact!=actions.end(); ++itact )
{
if ( m_dictMenuAction.contains( (*itact)->name() ) )
@ -1548,9 +1548,9 @@ void Kile::updateMenu()
}
void Kile::updateActionList(TQPtrList<KAction> *list, bool state)
void Kile::updateActionList(TQPtrList<TDEAction> *list, bool state)
{
for ( KAction *a=list->first(); a; a=list->next() ) {
for ( TDEAction *a=list->first(); a; a=list->next() ) {
a->setEnabled(state);
}
}
@ -1780,7 +1780,7 @@ void Kile::editUserMenu()
uint len = m_listUserTagsActions.count();
for (uint j=0; j< len; ++j)
{
KAction *menuItem = m_listUserTagsActions.getLast();
TDEAction *menuItem = m_listUserTagsActions.getLast();
m_menuUserTags->remove(menuItem);
m_listUserTagsActions.removeLast();
delete menuItem;

@ -56,12 +56,12 @@ class TQTimer;
class TQSignalMapper;
class TQIconViewItem;
class KToolBar;
class KAction;
class KActionMenu;
class KRecentFilesAction;
class KToggleFullScreenAction;
class KToggleToolBarAction;
class TDEToolBar;
class TDEAction;
class TDEActionMenu;
class TDERecentFilesAction;
class TDEToggleFullScreenAction;
class TDEToggleToolBarAction;
class KMultiTabBar;
class KileLyxServer;
@ -138,7 +138,7 @@ private:
void setupActions();
void setupTools();
void setupUserTagActions();
void cleanUpActionList(TQPtrList<KAction> &, const TQStringList & tools);
void cleanUpActionList(TQPtrList<TDEAction> &, const TQStringList & tools);
bool kateCompletionPlugin();
void checkKateSettings();
@ -146,21 +146,21 @@ private:
void initMenu();
void setMenuItems(TQStringList &list, TQMap<TQString,bool> &dict);
void updateMenu();
void updateActionList(TQPtrList<KAction> *list, bool state);
void updateActionList(TQPtrList<TDEAction> *list, bool state);
TQMap<TQString,bool> m_dictMenuAction, m_dictMenuFile, m_dictMenuProject;
KToolBar *m_toolsToolBar;
KActionMenu *m_menuUserTags;
TDEToolBar *m_toolsToolBar;
TDEActionMenu *m_menuUserTags;
TQValueList<KileAction::TagData> m_listUserTags;
TQValueList<userItem> m_listUserTools;
TQPtrList<KAction> m_listUserTagsActions, m_listQuickActions, m_listCompilerActions, m_listConverterActions, m_listViewerActions, m_listOtherActions;
KAction *m_actionEditTag;
KActionSeparator *m_actionEditSeparator;
KAction *m_paStop, *m_paPrint;
KToggleAction *ModeAction, *WatchFileAction;
KToggleAction *m_actionMessageView;
KRecentFilesAction *m_actRecentFiles;
KToggleFullScreenAction *m_pFullScreen;
TQPtrList<TDEAction> m_listUserTagsActions, m_listQuickActions, m_listCompilerActions, m_listConverterActions, m_listViewerActions, m_listOtherActions;
TDEAction *m_actionEditTag;
TDEActionSeparator *m_actionEditSeparator;
TDEAction *m_paStop, *m_paPrint;
TDEToggleAction *ModeAction, *WatchFileAction;
TDEToggleAction *m_actionMessageView;
TDERecentFilesAction *m_actRecentFiles;
TDEToggleFullScreenAction *m_pFullScreen;
/* GUI */
private:
@ -252,7 +252,7 @@ public slots:
void openProject(const TQString& proj);
private:
KRecentFilesAction *m_actRecentProjects;
TDERecentFilesAction *m_actRecentProjects;
//
// documentinfo

@ -27,7 +27,7 @@
#include <tqfile.h>
KileAbbrevView::KileAbbrevView(TQWidget *parent, const char *name)
: KListView(parent, name), m_changes(false)
: TDEListView(parent, name), m_changes(false)
{
addColumn(i18n("Short"));
@ -47,8 +47,8 @@ KileAbbrevView::KileAbbrevView(TQWidget *parent, const char *name)
connect(this, TQT_SIGNAL(mouseButtonClicked(int,TQListViewItem *,const TQPoint &,int)),
this, TQT_SLOT(slotMouseButtonClicked(int,TQListViewItem *,const TQPoint &,int)));
connect(this, TQT_SIGNAL(contextMenu(KListView *,TQListViewItem *,const TQPoint &)),
this, TQT_SLOT(slotContextMenu(KListView *,TQListViewItem *,const TQPoint &)));
connect(this, TQT_SIGNAL(contextMenu(TDEListView *,TQListViewItem *,const TQPoint &)),
this, TQT_SLOT(slotContextMenu(TDEListView *,TQListViewItem *,const TQPoint &)));
}
KileAbbrevView::~KileAbbrevView()
@ -78,7 +78,7 @@ void KileAbbrevView::addWordlist(const TQStringList *wordlist, bool global)
int index = (*it).find( '=' );
if ( index >= 0 )
{
insertItem( new KListViewItem(this,(*it).left(index),type,(*it).right( (*it).length()-index-1 )) );
insertItem( new TDEListViewItem(this,(*it).left(index),type,(*it).right( (*it).length()-index-1 )) );
}
}
}
@ -147,7 +147,7 @@ void KileAbbrevView::slotMouseButtonClicked(int button, TQListViewItem *item, co
//////////////////// context menu ////////////////////
void KileAbbrevView::slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &pos)
void KileAbbrevView::slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &pos)
{
m_popup->clear();
m_popup->disconnect();
@ -169,14 +169,14 @@ void KileAbbrevView::slotContextMenu(KListView *, TQListViewItem *item, const TQ
void KileAbbrevView::addAbbreviation(const TQString &abbrev, const TQString &expansion)
{
insertItem( new KListViewItem(this,abbrev,"*",expansion) );
insertItem( new TDEListViewItem(this,abbrev,"*",expansion) );
TQString newAbbrev = abbrev + '=' + expansion;
emit( updateAbbrevList(TQString(),newAbbrev) );
m_changes = true;
}
void KileAbbrevView::changeAbbreviation(KListViewItem *item, const TQString &abbrev, const TQString &expansion)
void KileAbbrevView::changeAbbreviation(TDEListViewItem *item, const TQString &abbrev, const TQString &expansion)
{
if ( item )
{
@ -190,7 +190,7 @@ void KileAbbrevView::changeAbbreviation(KListViewItem *item, const TQString &abb
}
}
void KileAbbrevView::deleteAbbreviation(KListViewItem *item)
void KileAbbrevView::deleteAbbreviation(TDEListViewItem *item)
{
TQString abbrev = item->text(ALVabbrev);
TQString message = i18n("Delete the abbreviation '%1'?").arg(abbrev);
@ -208,7 +208,7 @@ void KileAbbrevView::deleteAbbreviation(KListViewItem *item)
void KileAbbrevView::slotPopupAbbreviation(int id)
{
KListViewItem *item = (KListViewItem *)selectedItem();
TDEListViewItem *item = (TDEListViewItem *)selectedItem();
int mode = ALVnone;
if ( id == ALVadd )
@ -236,7 +236,7 @@ void KileAbbrevView::slotPopupAbbreviation(int id)
//////////////////// add/edit abbreviation ////////////////////
KileAbbrevInputDialog::KileAbbrevInputDialog(KileAbbrevView *listview, KListViewItem *item, int mode, const char *name )
KileAbbrevInputDialog::KileAbbrevInputDialog(KileAbbrevView *listview, TDEListViewItem *item, int mode, const char *name )
: KDialogBase(listview,name, true, i18n("Add Abbreviation"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true),
m_listview(listview), m_abbrevItem(item), m_mode(mode)
{

@ -27,7 +27,7 @@
//////////////////// KlistView for abbreviations ////////////////////
class KileAbbrevView : public KListView
class KileAbbrevView : public TDEListView
{
Q_OBJECT
@ -49,7 +49,7 @@ signals:
private slots:
void slotMouseButtonClicked(int button, TQListViewItem *item, const TQPoint &pos, int);
void slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &pos);
void slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &pos);
void slotPopupAbbreviation(int id);
private:
@ -57,8 +57,8 @@ private:
bool m_changes;
void addAbbreviation(const TQString &abbrev, const TQString &expansion);
void changeAbbreviation(KListViewItem *item,const TQString &abbrev, const TQString &expansion);
void deleteAbbreviation(KListViewItem *item);
void changeAbbreviation(TDEListViewItem *item,const TQString &abbrev, const TQString &expansion);
void deleteAbbreviation(TDEListViewItem *item);
void addWordlist(const TQStringList *wordlist, bool global);
@ -72,14 +72,14 @@ class KileAbbrevInputDialog : public KDialogBase
public:
KileAbbrevInputDialog(KileAbbrevView *listview, KListViewItem *item, int mode, const char *name=0);
KileAbbrevInputDialog(KileAbbrevView *listview, TDEListViewItem *item, int mode, const char *name=0);
~KileAbbrevInputDialog();
void abbreviation(TQString &abbrev, TQString &expansion);
private:
KileAbbrevView *m_listview;
KListViewItem *m_abbrevItem;
TDEListViewItem *m_abbrevItem;
KLineEdit *m_leAbbrev;
KLineEdit *m_leExpansion;

@ -48,35 +48,35 @@ namespace KileAction
////////////////
// Tag //
////////////////
Tag::Tag( const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent
Tag::Tag( const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent
, const char *name, const TQString &tagBegin, const TQString &tagEnd
, int dx, int dy, const TQString &description)
: KAction(text, cut, parent, name),
: TDEAction(text, cut, parent, name),
m_data(text,tagBegin, tagEnd, dx, dy, description)
{
init(receiver,slot);
}
Tag::Tag( const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent
Tag::Tag( const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent
, const char *name, const TQString &tagBegin, const TQString &tagEnd
, int dx, int dy, const TQString &description)
: KAction(text, pix, cut, parent, name),
: TDEAction(text, pix, cut, parent, name),
m_data(text,tagBegin, tagEnd, dx, dy, description)
{
init(receiver,slot);
}
Tag::Tag( const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent
Tag::Tag( const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent
, const char *name, const TagData& data)
: KAction(text, cut, parent, name),
: TDEAction(text, cut, parent, name),
m_data(data)
{
init(receiver,slot);
}
Tag::Tag( const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent
Tag::Tag( const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent
, const char *name, const TagData& data)
: KAction(text, pix, cut, parent, name),
: TDEAction(text, pix, cut, parent, name),
m_data(data)
{
init(receiver,slot);
@ -100,7 +100,7 @@ void Tag::emitData()
////////////////
// InputTag //
////////////////
InputTag::InputTag(KileInfo* ki, const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent, uint options
InputTag::InputTag(KileInfo* ki, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent, uint options
, const TQString &tagBegin, const TQString &tagEnd
, int dx, int dy, const TQString &description, const TQString &hint, const TQString &alter)
: Tag(text, cut, receiver, slot, parent, name, tagBegin, tagEnd, dx, dy, description), m_ki(ki),
@ -109,7 +109,7 @@ InputTag::InputTag(KileInfo* ki, const TQString &text, const KShortcut &cut, con
init();
}
InputTag::InputTag( KileInfo* ki, const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent,uint options
InputTag::InputTag( KileInfo* ki, const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent,uint options
, const TQString &tagBegin, const TQString &tagEnd
, int dx, int dy, const TQString &description, const TQString &hint, const TQString &alter)
: Tag(text, pix, cut, receiver, slot, parent, name, tagBegin, tagEnd, dx, dy, description), m_ki(ki),
@ -118,7 +118,7 @@ InputTag::InputTag( KileInfo* ki, const TQString &text, const TQString& pix, con
init();
}
InputTag::InputTag( KileInfo* ki, const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent,uint options
InputTag::InputTag( KileInfo* ki, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent,uint options
, const TagData& data, const TQString &hint, const TQString &alter)
: Tag(text,cut,receiver, slot, parent, name,data), m_ki(ki),
m_parent(wparent), m_options(options), m_hint(hint), m_alter(alter)
@ -126,7 +126,7 @@ InputTag::InputTag( KileInfo* ki, const TQString &text, const KShortcut &cut, co
init();
}
InputTag::InputTag( KileInfo* ki, const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent,uint options
InputTag::InputTag( KileInfo* ki, const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent,uint options
, const TagData& data, const TQString &hint, const TQString &alter)
: Tag(text, pix, cut,receiver, slot, parent, name,data), m_ki(ki),
m_parent(wparent), m_options(options), m_hint(hint), m_alter(alter)
@ -360,8 +360,8 @@ TQString InputDialog::label()
// SelectTag //
/////////////////
Select::Select(const TQString &text, const KShortcut &cut, KActionCollection *parent, const char *name )
: KSelectAction(text,cut,parent,name)
Select::Select(const TQString &text, const TDEShortcut &cut, TDEActionCollection *parent, const char *name )
: TDESelectAction(text,cut,parent,name)
{
init();
}
@ -376,7 +376,7 @@ void Select::emitData(const TQString & name)
m_dict[name]->activate();
}
void Select::setItems(TQPtrList<KAction>& list)
void Select::setItems(TQPtrList<TDEAction>& list)
{
TQStringList tmp;
@ -386,7 +386,7 @@ void Select::setItems(TQPtrList<KAction>& list)
m_dict.insert(list.at(i)->text(), list.at(i));
}
KSelectAction::setItems(tmp);
TDESelectAction::setItems(tmp);
}
}

@ -48,23 +48,23 @@ public:
TQString description;
};
class Tag : public KAction
class Tag : public TDEAction
{
Q_OBJECT
public:
//constructors
Tag(const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name
Tag(const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name
, const TQString &tagBegin, const TQString &tagEnd = TQString(), int dx=0, int dy=0, const TQString &description = TQString());
Tag(const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name
Tag(const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name
, const TQString &tagBegin, const TQString &tagEnd = TQString(), int dx=0, int dy=0, const TQString &description = TQString());
Tag(const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name
Tag(const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name
, const TagData& data);
Tag(const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name
Tag(const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name
, const TagData& data);
~Tag();
@ -94,16 +94,16 @@ class InputTag : public Tag
public:
//constructors
InputTag(KileInfo* ki, const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent,uint options
InputTag(KileInfo* ki, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent,uint options
, const TQString &tagBegin, const TQString &tagEnd = TQString(), int dx=0, int dy=0, const TQString &description = TQString(), const TQString &hint = TQString(), const TQString &alter = TQString());
InputTag(KileInfo* ki, const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent,uint options
InputTag(KileInfo* ki, const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent,uint options
, const TQString &tagBegin, const TQString &tagEnd = TQString(), int dx=0, int dy=0, const TQString &description = TQString(), const TQString &hint = TQString(), const TQString &alter = TQString());
InputTag(KileInfo* ki, const TQString &text, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent,uint options
InputTag(KileInfo* ki, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent,uint options
, const TagData& data, const TQString &hint = TQString(), const TQString &alter = TQString());
InputTag(KileInfo* ki, const TQString &text, const TQString& pix, const KShortcut &cut, const TQObject *receiver, const char *slot, KActionCollection *parent, const char *name, TQWidget *wparent,uint options
InputTag(KileInfo* ki, const TQString &text, const TQString& pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, TQWidget *wparent,uint options
, const TagData& data, const TQString &hint = TQString(), const TQString &alter = TQString());
~InputTag();
@ -170,29 +170,29 @@ private:
KileInfo *m_ki;
};
class Select : public KSelectAction
class Select : public TDESelectAction
{
Q_OBJECT
public:
//constructors
Select(const TQString &text, const KShortcut &cut, KActionCollection *parent, const char *name);
Select(const TQString &text, const TDEShortcut &cut, TDEActionCollection *parent, const char *name);
private:
void init();
signals:
void activated(const KAction&);
void activated(const TDEAction&);
public slots:
void setItems(TQPtrList<KAction> &);
void setItems(TQPtrList<TDEAction> &);
private slots:
void emitData(const TQString&);
private:
TQDict<KAction> m_dict;
TQDict<TDEAction> m_dict;
};
}

@ -1770,7 +1770,7 @@ void Manager::projectShow()
{
TQString itempath = item->path();
// called from KAction 'Show projects...': find the first opened
// called from TDEAction 'Show projects...': find the first opened
// LaTeX document or, if that fails, any other opened file
TQStringList extlist = TQStringList::split(" ",m_ki->extensions()->latexDocuments() + ' ' + m_ki->extensions()->latexPackages());
for ( TQStringList::Iterator it=extlist.begin(); it!=extlist.end(); ++it )

@ -42,7 +42,7 @@ KileFileSelect::KileFileSelect(KileDocument::Extensions *extensions, TQWidget *p
{
TQVBoxLayout* lo = new TQVBoxLayout(this);
KToolBar *toolbar = new KToolBar(this, "fileselectortoolbar");
TDEToolBar *toolbar = new TDEToolBar(this, "fileselectortoolbar");
lo->addWidget(toolbar);
cmbPath = new KURLComboBox( KURLComboBox::Directories, true, this, "path combo" );
@ -64,15 +64,15 @@ KileFileSelect::KileFileSelect(KileDocument::Extensions *extensions, TQWidget *p
filter.replace(".","*.");
dir->setNameFilter(filter);
KActionCollection *coll = dir->actionCollection();
TDEActionCollection *coll = dir->actionCollection();
// some shortcuts of diroperator that clashes with Kate
coll->action( "delete" )->setShortcut( KShortcut( ALT + Key_Delete ) );
coll->action( "reload" )->setShortcut( KShortcut( ALT + Key_F5 ) );
coll->action( "back" )->setShortcut( KShortcut( ALT + SHIFT + Key_Left ) );
coll->action( "forward" )->setShortcut( KShortcut( ALT + SHIFT + Key_Right ) );
coll->action( "delete" )->setShortcut( TDEShortcut( ALT + Key_Delete ) );
coll->action( "reload" )->setShortcut( TDEShortcut( ALT + Key_F5 ) );
coll->action( "back" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Left ) );
coll->action( "forward" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Right ) );
// some consistency - reset up for dir too
coll->action( "up" )->setShortcut( KShortcut( ALT + SHIFT + Key_Up ) );
coll->action( "home" )->setShortcut( KShortcut( CTRL + ALT + Key_Home ) );
coll->action( "up" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Up ) );
coll->action( "home" )->setShortcut( TDEShortcut( CTRL + ALT + Key_Home ) );
coll->action("home")->plug(toolbar);
coll->action("up")->plug(toolbar);

@ -199,7 +199,7 @@ KileGrepDialog::KileGrepDialog(TQWidget *parent, KileInfo *ki, KileGrep::Mode mo
filtergrouplayout->setColStretch(1,1);
// result box
resultbox = new KListBox(page);
resultbox = new TDEListBox(page);
resultbox->setMinimumHeight(150);
// button box
@ -244,7 +244,7 @@ KileGrepDialog::KileGrepDialog(TQWidget *parent, KileInfo *ki, KileGrep::Mode mo
// TQListBox::property( "text" ) failed:
// property invalid or does not exist
// Anyone an idea?
KAcceleratorManager::manage( this );
TDEAcceleratorManager::manage( this );
TQWhatsThis::add(pattern_combo,
i18n("Enter the regular expression you want to search for here.<br>"

@ -39,7 +39,7 @@ class KComboBox;
class KLineEdit;
class TDEProcess;
class KURLRequester;
class KListBox;
class TDEListBox;
#define KILEGREP_MAX 12
@ -112,7 +112,7 @@ private:
KComboBox *filter_combo, *pattern_combo, *template_combo;
KURLRequester *dir_combo;
TQCheckBox *recursive_box;
KListBox *resultbox;
TDEListBox *resultbox;
TQPushButton *search_button, *clear_button, *close_button;
TQString buf;
TQString errbuf;

@ -400,7 +400,7 @@ namespace KileJScript {
////////////////////////////// JScript //////////////////////////////
/* The IDs of the scripts are used to maintain correct bindings with KAction objects, i.e. for example, we
/* The IDs of the scripts are used to maintain correct bindings with TDEAction objects, i.e. for example, we
* want to make sure the action script_execution_0 always refers to same script (the script with id 0 !), even
* after reloading all the scripts.
*/
@ -445,15 +445,15 @@ namespace KileJScript {
m_id = id;
}
void JScript::setActionObject(KAction* action) {
void JScript::setActionObject(TDEAction* action) {
m_action = action;
}
const KAction* JScript::getActionObject() const {
const TDEAction* JScript::getActionObject() const {
return m_action;
}
KAction* JScript::getActionObject() {
TDEAction* JScript::getActionObject() {
return m_action;
}
@ -508,7 +508,7 @@ namespace KileJScript {
////////////////////////////// Manager //////////////////////////////
Manager::Manager(KileInfo *kileInfo, TDEConfig *config, KActionCollection *actionCollection, TQObject *parent, const char *name) : TQObject(parent, name), m_jScriptDirWatch(NULL), m_kileInfo(kileInfo), m_config(config), m_actionCollection(actionCollection) {
Manager::Manager(KileInfo *kileInfo, TDEConfig *config, TDEActionCollection *actionCollection, TQObject *parent, const char *name) : TQObject(parent, name), m_jScriptDirWatch(NULL), m_kileInfo(kileInfo), m_config(config), m_actionCollection(actionCollection) {
// create a local scripts directory if it doesn't exist yet
m_localJScriptDir = locateLocal("appdata", "scripts/", true);
m_jScriptDirWatch = new KDirWatch(this, "KileJScript::Manager::JScriptDirWatch");
@ -606,7 +606,7 @@ m_kileInfo->viewManager()->currentView()->down();*/
m_idScriptMap.clear();
m_kileInfo->editorKeySequenceManager()->removeKeySequence(keySequenceList);
for(TQValueList<JScript*>::iterator it = scriptList.begin(); it != scriptList.end(); ++it) {
KAction *action = (*it)->getActionObject();
TDEAction *action = (*it)->getActionObject();
if(action) {
action->unplugAll();
delete action;
@ -776,7 +776,7 @@ m_kileInfo->viewManager()->currentView()->down();*/
}
////////////////////////////// ScriptExecutionAction //////////////////////////////
ScriptExecutionAction::ScriptExecutionAction(unsigned int id, KileJScript::Manager *manager, KActionCollection* parent) : KAction(TQString(), KShortcut(), NULL, NULL, parent, TQString("script_execution_" + TQString::number(id)).ascii()), m_manager(manager), m_id(id) {
ScriptExecutionAction::ScriptExecutionAction(unsigned int id, KileJScript::Manager *manager, TDEActionCollection* parent) : TDEAction(TQString(), TDEShortcut(), NULL, NULL, parent, TQString("script_execution_" + TQString::number(id)).ascii()), m_manager(manager), m_id(id) {
const KileJScript::JScript *script = m_manager->getScript(m_id);
Q_ASSERT(script);
setText(i18n("Execution of %1").arg(script->getName()));

@ -72,11 +72,11 @@ class JScript {
/**
*
**/
void setActionObject(KAction* action);
void setActionObject(TDEAction* action);
const KAction* getActionObject() const;
const TDEAction* getActionObject() const;
KAction* getActionObject();
TDEAction* getActionObject();
void setKeySequence(const TQString& str);
TQString getKeySequence() const;
@ -86,7 +86,7 @@ class JScript {
TQString m_code;
TQString m_file;
TQString m_name;
KAction *m_action;
TDEAction *m_action;
TQString m_keySequence;
};
@ -125,7 +125,7 @@ class Manager : public TQObject {
/**
* Constructs a new Manager object.
**/
Manager(KileInfo *info, TDEConfig *config, KActionCollection *actionCollection, TQObject *parent = 0, const char *name = 0);
Manager(KileInfo *info, TDEConfig *config, TDEActionCollection *actionCollection, TQObject *parent = 0, const char *name = 0);
virtual ~Manager();
/**
@ -207,7 +207,7 @@ class Manager : public TQObject {
KileInfo *m_kileInfo;
TDEConfig *m_config;
KActionCollection *m_actionCollection;
TDEActionCollection *m_actionCollection;
/**
* Registers the script contained in a file.
@ -262,12 +262,12 @@ class Manager : public TQObject {
void addDirectoryToDirWatch(const TQString& dir);
};
class ScriptExecutionAction : public KAction {
class ScriptExecutionAction : public TDEAction {
Q_OBJECT
public:
ScriptExecutionAction(unsigned int scriptID, Manager *manager, KActionCollection* parent = 0);
ScriptExecutionAction(unsigned int scriptID, Manager *manager, TDEActionCollection* parent = 0);
virtual ~ScriptExecutionAction();

@ -36,7 +36,7 @@ KileListSelectorBase::KileListSelectorBase(const TQStringList &list, const TQStr
layout->addWidget(new TQLabel(select, plainPage()));
layout->addSpacing(8);
m_listview = new KListView(plainPage());
m_listview = new TDEListView(plainPage());
m_listview->addColumn(i18n("Files"));
m_listview->setSorting(-1);
m_listview->setAllColumnsShowFocus(true);
@ -72,10 +72,10 @@ int KileListSelectorBase::currentItem()
void KileListSelectorBase::insertStringList(const TQStringList &list)
{
TQStringList::ConstIterator it;
KListViewItem *item = 0L;
TDEListViewItem *item = 0L;
for ( it=list.begin(); it!=list.end(); ++it )
{
item = new KListViewItem(m_listview,item,*it);
item = new TDEListViewItem(m_listview,item,*it);
m_listview->insertItem(item);
}
}

@ -20,7 +20,7 @@
#include <kdialogbase.h>
#include <klistview.h>
class KListView;
class TDEListView;
class TQStringList;
class KileListSelectorBase : public KDialogBase
@ -32,7 +32,7 @@ public:
int currentItem();
protected:
KListView *m_listview;
TDEListView *m_listview;
void insertStringList(const TQStringList &list);
};

@ -437,7 +437,7 @@ void KileMultiTabBarButton::setText(const TQString& text)
{
TQString s = text;
s = s.replace("&", TQString()); // we do not allow accelerators to be set
// This is a little hack to avoid KAcceleratorManager
// This is a little hack to avoid TDEAcceleratorManager
// provide us with accelerators as the class name of the
// widget is no longer KMultiTabBar.
TQPushButton::setText(s);
@ -892,7 +892,7 @@ KileMultiTabBar::~KileMultiTabBar() {
/*int KileMultiTabBar::insertButton(TQPixmap pic,int id ,const TQString&)
{
(new KToolbarButton(pic,id,m_internal))->show();
(new TDEToolbarButton(pic,id,m_internal))->show();
return 0;
}*/

@ -101,7 +101,7 @@ int KileProjectViewItem::compare(TQListViewItem * i, int col, bool ascending) co
/*
* KileProjectView
*/
KileProjectView::KileProjectView(TQWidget *parent, KileInfo *ki) : KListView(parent), m_ki(ki), m_nProjects(0), m_toggle(0)
KileProjectView::KileProjectView(TQWidget *parent, KileInfo *ki) : TDEListView(parent), m_ki(ki), m_nProjects(0), m_toggle(0)
{
addColumn(i18n("Files & Projects"),-1);
addColumn(i18n("Include in Archive"),10);
@ -111,11 +111,11 @@ KileProjectView::KileProjectView(TQWidget *parent, KileInfo *ki) : KListView(par
setRootIsDecorated(true);
setAllColumnsShowFocus(true);
setFullWidth(true);
setSelectionModeExt(KListView::NoSelection);
setSelectionModeExt(TDEListView::NoSelection);
m_popup = new KPopupMenu(this, "projectview_popup");
m_popup = new TDEPopupMenu(this, "projectview_popup");
connect(this, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint & )), this,TQT_SLOT(popup(KListView *, TQListViewItem * , const TQPoint & )));
connect(this, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint & )), this,TQT_SLOT(popup(TDEListView *, TQListViewItem * , const TQPoint & )));
connect(this, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(slotClicked(TQListViewItem*)));
setAcceptDrops(true);
@ -233,7 +233,7 @@ void KileProjectView::slotRun(int id)
}
//FIXME clean this mess up
void KileProjectView::popup(KListView *, TQListViewItem * item, const TQPoint & point)
void KileProjectView::popup(TDEListView *, TQListViewItem * item, const TQPoint & point)
{
if (item != 0)
{
@ -253,7 +253,7 @@ void KileProjectView::popup(KListView *, TQListViewItem * item, const TQPoint &
{
if ( ! isKilePrFile )
{
KPopupMenu *apps = new KPopupMenu( m_popup);
TDEPopupMenu *apps = new TDEPopupMenu( m_popup);
m_offerList = TDETrader::self()->query(KMimeType::findByURL(itm->url())->name(), "Type == 'Application'");
for (uint i=0; i < m_offerList.count(); ++i)
apps->insertItem(SmallIcon(m_offerList[i]->icon()), m_offerList[i]->name(), i+1);

@ -23,39 +23,39 @@
#include "kileproject.h"
class KURL;
class KPopupMenu;
class KToggleAction;
class TDEPopupMenu;
class TDEToggleAction;
class KileDocument::Info;
class KileInfo;
namespace KileType {enum ProjectView { Project=0, ProjectItem, ProjectExtra, File, Folder};}
class KileProjectViewItem : public TQObject, public KListViewItem
class KileProjectViewItem : public TQObject, public TDEListViewItem
{
Q_OBJECT
public:
KileProjectViewItem (TQListView *parent, KileProjectItem *item, bool ar = false) : KListViewItem(parent, item->url().fileName()), m_folder(-1), m_projectItem(item) { setArchiveState(ar);}
KileProjectViewItem (TQListView *parent, TQListViewItem *after, KileProjectItem *item, bool ar = false) : KListViewItem(parent, after, item->url().fileName()), m_folder(-1), m_projectItem(item) { setArchiveState(ar);}
KileProjectViewItem (TQListViewItem *parent, KileProjectItem *item, bool ar = false) : KListViewItem(parent, item->url().fileName()), m_folder(-1), m_projectItem(item) { setArchiveState(ar);}
KileProjectViewItem (TQListView *parent, KileProjectItem *item, bool ar = false) : TDEListViewItem(parent, item->url().fileName()), m_folder(-1), m_projectItem(item) { setArchiveState(ar);}
KileProjectViewItem (TQListView *parent, TQListViewItem *after, KileProjectItem *item, bool ar = false) : TDEListViewItem(parent, after, item->url().fileName()), m_folder(-1), m_projectItem(item) { setArchiveState(ar);}
KileProjectViewItem (TQListViewItem *parent, KileProjectItem *item, bool ar = false) : TDEListViewItem(parent, item->url().fileName()), m_folder(-1), m_projectItem(item) { setArchiveState(ar);}
//use this to create folders
KileProjectViewItem (TQListViewItem *parent, const TQString & name) : KListViewItem(parent, name), m_folder(-1), m_projectItem(0L) {}
KileProjectViewItem (TQListViewItem *parent, const TQString & name) : TDEListViewItem(parent, name), m_folder(-1), m_projectItem(0L) {}
//use this to create non-project files
KileProjectViewItem (TQListView *parent, const TQString & name) : KListViewItem(parent, name), m_folder(-1), m_projectItem(0L) {}
KileProjectViewItem (TQListView *parent, const TQString & name) : TDEListViewItem(parent, name), m_folder(-1), m_projectItem(0L) {}
KileProjectViewItem (TQListView *parent, const KileProject *project) : KListViewItem(parent, project->name()), m_folder(-1), m_projectItem(0L) {}
KileProjectViewItem (TQListView *parent, const KileProject *project) : TDEListViewItem(parent, project->name()), m_folder(-1), m_projectItem(0L) {}
~KileProjectViewItem() {KILE_DEBUG() << "DELETING PROJVIEWITEM " << m_url.fileName() << endl;}
KileProjectItem* projectItem() { return m_projectItem; }
KileProjectViewItem* parent() { return dynamic_cast<KileProjectViewItem*>(KListViewItem::parent()); }
KileProjectViewItem* firstChild() { return dynamic_cast<KileProjectViewItem*>(KListViewItem::firstChild()); }
KileProjectViewItem* nextSibling() { return dynamic_cast<KileProjectViewItem*>(KListViewItem::nextSibling()); }
KileProjectViewItem* parent() { return dynamic_cast<KileProjectViewItem*>(TDEListViewItem::parent()); }
KileProjectViewItem* firstChild() { return dynamic_cast<KileProjectViewItem*>(TDEListViewItem::firstChild()); }
KileProjectViewItem* nextSibling() { return dynamic_cast<KileProjectViewItem*>(TDEListViewItem::nextSibling()); }
void setInfo(KileDocument::Info *docinfo) { m_docinfo = docinfo;}
KileDocument::Info * getInfo() { return m_docinfo;}
@ -96,7 +96,7 @@ private:
KileProjectItem *m_projectItem;
};
class KileProjectView : public KListView
class KileProjectView : public TDEListView
{
Q_OBJECT
@ -147,7 +147,7 @@ protected:
virtual bool acceptDrag(TQDropEvent *e) const;
private slots:
void popup(KListView *, TQListViewItem *, const TQPoint &);
void popup(TDEListView *, TQListViewItem *, const TQPoint &);
private:
void makeTheConnection(KileProjectViewItem *);
@ -155,9 +155,9 @@ private:
private:
KileInfo *m_ki;
KPopupMenu *m_popup;
TDEPopupMenu *m_popup;
uint m_nProjects;
KToggleAction *m_toggle;
TDEToggleAction *m_toggle;
TDETrader::OfferList m_offerList;
};

@ -30,7 +30,7 @@
namespace KileStdActions
{
void setupStdTags(KileInfo *ki, KMainWindow *parent)
void setupStdTags(KileInfo *ki, TDEMainWindow *parent)
{
(void) new KileAction::Tag(i18n("Document Class Selection - \\documentclass{}"),0,TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(), "tag_documentclass",
"\\documentclass[10pt]{","}", 21,0,i18n("\\documentclass[options]{class}\nclass : article,report,book,letter\nsize options : 10pt, 11pt, 12pt\npaper size options: a4paper, a5paper, b5paper, letterpaper, legalpaper, executivepaper\n"
@ -95,15 +95,15 @@ void setupStdTags(KileInfo *ki, KMainWindow *parent)
(void) new KileAction::Tag(i18n("\"Medium\" vertical Space - \\medskip"), 0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_medskip","\\medskip ",TQString(),9,0,i18n("The \\medskip command adds a 'medium' vertical space."));
// includegraphics (dani)
(void) new KileAction::Tag(i18n("Image Insertion - \\includegraphics{file}"), "graphics", KShortcut("Alt+I,G"),TQT_TQOBJECT(parent), TQT_SLOT(includeGraphics()), parent->actionCollection(),"tag_includegraphics",0L);
(void) new KileAction::Tag(i18n("Image Insertion - \\includegraphics{file}"), "graphics", TDEShortcut("Alt+I,G"),TQT_TQOBJECT(parent), TQT_SLOT(includeGraphics()), parent->actionCollection(),"tag_includegraphics",0L);
// two new shortcuts (dani)
(void) new KileAction::InputTag(ki,i18n("Customizable File Inclusion - \\include{file}"),"include",KShortcut("Alt+I,F"), TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_include",parent, KileAction::KeepHistory | KileAction::ShowBrowseButton | KileAction::AddProjectFile, "\\include{%R","}",9,0, i18n("\\include{file}\nThe \\include command is used in conjunction with the \\includeonly command for selective inclusion of files."),i18n("Type or select a filename: "));
(void) new KileAction::InputTag(ki,i18n("File Inclusion - \\input{file}"),"include",KShortcut("Alt+I,P"), TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_input", parent, KileAction::KeepHistory | KileAction::ShowBrowseButton | KileAction::AddProjectFile, "\\input{%R","}",7,0,i18n("\\input{file}\nThe \\input command causes the indicated file to be read and processed, exactly as if its contents had been inserted in the current file at that point."),i18n("Type or select a filename: "));
(void) new KileAction::InputTag(ki,i18n("Customizable File Inclusion - \\include{file}"),"include",TDEShortcut("Alt+I,F"), TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_include",parent, KileAction::KeepHistory | KileAction::ShowBrowseButton | KileAction::AddProjectFile, "\\include{%R","}",9,0, i18n("\\include{file}\nThe \\include command is used in conjunction with the \\includeonly command for selective inclusion of files."),i18n("Type or select a filename: "));
(void) new KileAction::InputTag(ki,i18n("File Inclusion - \\input{file}"),"include",TDEShortcut("Alt+I,P"), TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_input", parent, KileAction::KeepHistory | KileAction::ShowBrowseButton | KileAction::AddProjectFile, "\\input{%R","}",7,0,i18n("\\input{file}\nThe \\input command causes the indicated file to be read and processed, exactly as if its contents had been inserted in the current file at that point."),i18n("Type or select a filename: "));
(void) new KileAction::Tag(i18n("Bibliography Style Selection - \\bibliographystyle{}"),0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_bibliographystyle", "\\bibliographystyle{","} ",19,0,i18n("The argument to \\bibliographystyle refers to a file style.bst, which defines how your citations will look\nThe standard styles distributed with BibTeX are:\nalpha : sorted alphabetically. Labels are formed from name of author and year of publication.\nplain : sorted alphabetically. Labels are numeric.\nunsrt : like plain, but entries are in order of citation.\nabbrv : like plain, but more compact labels."));
(void) new KileAction::Tag(i18n("Bibliography Generation - \\bibliography{}"),0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_bibliography","\\bibliography{%S", "}\n",14, 0,i18n("The argument to \\bibliography refers to the bib file (without extension)\nwhich should contain your database in BibTeX format.\nKile inserts automatically the base name of the TeX file"));
KileAction::Select *actionstructure_list = new KileAction::Select(i18n("Sectioning"), 0, parent->actionCollection(), "structure_list");
TQPtrList<KAction> alist;
TQPtrList<TDEAction> alist;
alist.append(new KileAction::InputTag(ki,"&part","part",0 , TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_part", parent, KileAction::ShowAlternative|KileAction::ShowLabel , "\\part%A{%R}","\n", 0,1,i18n("\\part{title}\n\\part*{title} : do not include a number and do not make an entry in the table of contents\n"), i18n("&Part"),i18n("No &numbering")));
alist.append(new KileAction::InputTag(ki,"&chapter","chapter",0 , TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_chapter" ,parent, KileAction::ShowAlternative|KileAction::ShowLabel , "\\chapter%A{%R}","\n", 0,1,i18n("\\chapter{title}\n\\chapter*{title} : do not include a number and do not make an entry in the table of contents\nOnly for 'report' and 'book' class document."), i18n("C&hapter"),i18n("No &numbering")));
alist.append(new KileAction::InputTag(ki,"&section","section",0 , TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_section",parent, KileAction::ShowAlternative|KileAction::ShowLabel , "\\section%A{%R}","\n", 0,1,i18n("\\section{title}\n\\section*{title} : do not include a number and do not make an entry in the table of contents"), i18n("&Section"),i18n("No &numbering")));
@ -137,18 +137,18 @@ void setupStdTags(KileInfo *ki, KMainWindow *parent)
alist.append(new KileAction::InputTag(ki,"ref",0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_ref", parent, KileAction::FromLabelList, "\\ref{%R", "}", 5,0, TQString(), i18n("Label") ));
alist.append(new KileAction::InputTag(ki,"pageref",0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_pageref", parent, KileAction::FromLabelList, "\\pageref{%R", "}", 9,0, TQString(), i18n("Label") ));
alist.append(new KileAction::InputTag(ki,"cite",0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_cite", parent, KileAction::FromBibItemList, "\\cite{%R", "}", 6,0, i18n("This command generates an in-text citation to the reference associated with the ref entry in the bib file\nYou can open the bib file with Kile to see all the available references"), i18n("Reference")));
alist.append(new KAction(i18n("cite from ViewBib"),0, TQT_TQOBJECT(parent), TQT_SLOT(citeViewBib()), parent->actionCollection(),"citeViewBib" ));
alist.append(new TDEAction(i18n("cite from ViewBib"),0, TQT_TQOBJECT(parent), TQT_SLOT(citeViewBib()), parent->actionCollection(),"citeViewBib" ));
actionother_list->setItems(alist);
(void) new KileAction::Tag(i18n("Underline - \\underline{}"),"text_under",0 , TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_underline", "\\underline{","}",11);
TQString icon = ( locate("icon","default.tde/22x22/actions/key_enter.png").isEmpty() ) ? "newline" : "key_enter";
(void) new KAction(i18n("Smart New Line"), icon, TQt::SHIFT+TQt::Key_Return , ki->editorExtension(), TQT_SLOT(insertIntelligentNewline()), parent->actionCollection(),"tag_newline");
(void) new KAction(i18n("Smart Tabulator"), TQt::ALT+TQt::Key_Ampersand, ki->editorExtension(), TQT_SLOT(insertIntelligentTabulator()), parent->actionCollection(),"tag_tabulator" );
(void) new TDEAction(i18n("Smart New Line"), icon, TQt::SHIFT+TQt::Key_Return , ki->editorExtension(), TQT_SLOT(insertIntelligentNewline()), parent->actionCollection(),"tag_newline");
(void) new TDEAction(i18n("Smart Tabulator"), TQt::ALT+TQt::Key_Ampersand, ki->editorExtension(), TQT_SLOT(insertIntelligentTabulator()), parent->actionCollection(),"tag_tabulator" );
// new tags (dani 29.01.2005)
KActionCollection* ac = parent->actionCollection();
TDEActionCollection* ac = parent->actionCollection();
// environments
(void) new KileAction::Tag(i18n("Abstract - \\begin{abstract}"),0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), ac,"tag_env_abstract","\\begin{abstract}\n","%E\n\\end{abstract} ",0,1, i18n("\\begin{abstract}\ntext\n\\end{abstract}\nThe abstract environment creates a title page, i.e. a page with no printed page number or heading."));
@ -216,7 +216,7 @@ void setupStdTags(KileInfo *ki, KMainWindow *parent)
}
void setupBibTags(KMainWindow *parent)
void setupBibTags(TDEMainWindow *parent)
{
(void) new KileAction::Tag(i18n("Article in Journal"),0 , TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_bib_article","@Article{,\nauthor = {},\ntitle = {},\njournal = {},\nyear = {},\nOPTkey = {},\nOPTvolume = {},\nOPTnumber = {},\nOPTpages = {},\nOPTmonth = {},\nOPTnote = {},\nOPTannote = {},\nOPTurl = {},\nOPTdoi = {},\nOPTissn = {},\nOPTlocalfile = {},\nOPTabstract = {}\n}\n",TQString(),9,0,i18n("Bib fields - Article in Journal\nOPT.... : optional fields (use the 'Clean' command to remove them)"));
(void) new KileAction::Tag(i18n("Article in Conference Proceedings"),0 , TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_bib_inproc","@InProceedings{,\nauthor = {},\ntitle = {},\nbooktitle = {},\nOPTcrossref = {},\nOPTkey = {},\nOPTpages = {},\nOPTyear = {},\nOPTeditor = {},\nOPTvolume = {},\nOPTnumber = {},\nOPTseries = {},\nOPTaddress = {},\nOPTmonth = {},\nOPTorganization = {},\nOPTpublisher = {},\nOPTnote = {},\nOPTannote = {},\nOPTurl = {},\nOPTdoi = {},\nOPTissn = {},\nOPTlocalfile = {},\nOPTabstract = {}\n}\n",TQString(),15,0,i18n("Bib fields - Article in Conference Proceedings\nOPT.... : optional fields (use the 'Clean' command to remove them)"));
@ -233,7 +233,7 @@ void setupBibTags(KMainWindow *parent)
(void) new KileAction::Tag(i18n("Miscellaneous"),0 , TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_bib_misc","@Misc{,\nOPTkey = {},\nOPTauthor = {},\nOPTtitle = {},\nOPThowpublished = {},\nOPTmonth = {},\nOPTyear = {},\nOPTnote = {},\nOPTannote = {},\nOPTurl = {},\nOPTdoi = {},\nOPTissn = {},\nOPTlocalfile = {},\nOPTabstract = {}\n}\n",TQString(),6,0,i18n("Bib fields - Miscellaneous\nOPT.... : optional fields (use the 'Clean' command to remove them)"));
}
void setupMathTags(KMainWindow *parent)
void setupMathTags(TDEMainWindow *parent)
{
(void) new KileAction::Tag("\\mathrm{}", 0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_mathrm","\\mathrm{","}",8);
(void) new KileAction::Tag("\\mathit{}", 0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"tag_mathit" ,"\\mathit{","}",8);
@ -275,7 +275,7 @@ void setupMathTags(KMainWindow *parent)
i18n("\\begin{array}{col1col2...coln}\ncolumn 1 entry & column 2 entry ... & column n entry \\\\ \n...\n\\end{array}\nEach column, coln, is specified by a single letter that tells how items in that column should be formatted.\n"
" c -- for centered \n l -- for flush left \n r -- for flush right\n"));
TQPtrList<KAction> alist;
TQPtrList<TDEAction> alist;
KileAction::Select *actionleft_list = new KileAction::Select(i18n("Left Delimiter"), 0, parent->actionCollection(), "left_list");
alist.clear();
alist.append(new KileAction::Tag("left (",0, TQT_TQOBJECT(parent), TQT_SLOT(insertTag(const KileAction::TagData&)), parent->actionCollection(),"","\\left( ",TQString(),7,0));
@ -305,7 +305,7 @@ void setupMathTags(KMainWindow *parent)
actionright_list->setItems(alist);
// new math tags (dani 29.01.2005)
KActionCollection* ac = parent->actionCollection();
TDEActionCollection* ac = parent->actionCollection();
(void) new KileAction::Tag(i18n("Textstyle - \\tfrac{}{}"),0, TQT_TQOBJECT(parent), TQT_SLOT(insertAmsTag(const KileAction::TagData&)), ac,"tag_tfrac", "\\tfrac{","}{}", 7);

@ -18,14 +18,14 @@
#ifndef KILESTDACTIONS_H
#define KILESTDACTIONS_H
class KAction;
class KMainWindow;
class TDEAction;
class TDEMainWindow;
namespace KileStdActions
{
void setupStdTags(KileInfo *ki, KMainWindow *parent);
void setupBibTags(KMainWindow *parent);
void setupMathTags(KMainWindow *parent);
void setupStdTags(KileInfo *ki, TDEMainWindow *parent);
void setupBibTags(TDEMainWindow *parent);
void setupMathTags(TDEMainWindow *parent);
}
#endif

@ -82,7 +82,7 @@
////////////////////// KileListViewItem with all info //////////////////////
KileListViewItem::KileListViewItem(TQListViewItem * parent, TQListViewItem * after, const TQString &title, const KURL &url, uint line, uint column, int type, int level, uint startline, uint startcol) :
KListViewItem(parent,after),
TDEListViewItem(parent,after),
m_title(title), m_url(url), m_line(line), m_column(column), m_type(type), m_level(level),
m_startline(startline), m_startcol(startcol)
{
@ -90,12 +90,12 @@ KileListViewItem::KileListViewItem(TQListViewItem * parent, TQListViewItem * aft
}
KileListViewItem::KileListViewItem(TQListView * parent, const TQString & label) :
KListViewItem(parent,label),
TDEListViewItem(parent,label),
m_title(label), m_url(KURL()), m_line(0), m_column(0), m_type(KileStruct::None), m_level(0)
{}
KileListViewItem::KileListViewItem(TQListViewItem * parent, const TQString & label) :
KListViewItem(parent,label),
TDEListViewItem(parent,label),
m_title(label), m_url(KURL()), m_line(0), m_column(0), m_type(KileStruct::None), m_level(0)
{}
@ -112,7 +112,7 @@ void KileListViewItem::setItemEntry()
////////////////////// introduce a new ToolTip //////////////////////
KileListViewToolTip::KileListViewToolTip(KListView *listview) : TQToolTip(listview->viewport()), m_listview(listview)
KileListViewToolTip::KileListViewToolTip(TDEListView *listview) : TQToolTip(listview->viewport()), m_listview(listview)
{}
void KileListViewToolTip::maybeTip(const TQPoint &p)
@ -145,7 +145,7 @@ namespace KileWidget
////////////////////// StructureList listview //////////////////////
StructureList::StructureList(Structure *stack, KileDocument::Info *docinfo) :
KListView(stack),
TDEListView(stack),
m_stack(stack), m_docinfo(docinfo)
{
show();
@ -161,7 +161,7 @@ namespace KileWidget
//connect(this, TQT_SIGNAL(clicked(TQListViewItem *)), m_stack, TQT_SLOT(slotClicked(TQListViewItem *)));
connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *)), m_stack, TQT_SLOT(slotDoubleClicked(TQListViewItem *)));
connect(this, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint & )), m_stack, TQT_SLOT(slotPopup(KListView *, TQListViewItem * , const TQPoint & )));
connect(this, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint & )), m_stack, TQT_SLOT(slotPopup(TDEListView *, TQListViewItem * , const TQPoint & )));
connect(this, TQT_SIGNAL(executed(TQListViewItem*)), m_stack, TQT_SLOT(slotClicked(TQListViewItem*)));
connect(m_stack, TQT_SIGNAL(configChanged()), this, TQT_SLOT(slotConfigChanged()));
@ -611,7 +611,7 @@ namespace KileWidget
m_default = new StructureList(this, 0L);
m_default->activate();
m_popup = new KPopupMenu(this, "structureview_popup");
m_popup = new TDEPopupMenu(this, "structureview_popup");
}
Structure::~Structure()
@ -728,7 +728,7 @@ namespace KileWidget
// - sectioning: 10 - 16
// - graphics: 100ff
void Structure::slotPopup(KListView *, TQListViewItem *itm, const TQPoint &point)
void Structure::slotPopup(TDEListView *, TQListViewItem *itm, const TQPoint &point)
{
KILE_DEBUG() << "\tStructure::slotPopup" << endl;

@ -46,7 +46,7 @@ class TQListViewItem;
* additional information is: line number, title string.
**/
class KileListViewItem : public KListViewItem
class KileListViewItem : public TDEListViewItem
{
public:
KileListViewItem(TQListViewItem * parent, TQListViewItem * after, const TQString &title, const KURL &url, uint line, uint m_column, int type, int level, uint startline, uint startcol);
@ -89,11 +89,11 @@ private:
class KileListViewToolTip : public TQToolTip
{
public:
KileListViewToolTip(KListView *listview);
KileListViewToolTip(TDEListView *listview);
protected:
void maybeTip(const TQPoint &p);
private:
KListView *m_listview;
TDEListView *m_listview;
};
class KileReferenceData
@ -117,7 +117,7 @@ namespace KileWidget
{
class Structure; //forward declaration
class StructureList : public KListView
class StructureList : public TDEListView
{
Q_OBJECT
@ -198,7 +198,7 @@ namespace KileWidget
public slots:
void slotClicked(TQListViewItem *);
void slotDoubleClicked(TQListViewItem *);
void slotPopup(KListView *, TQListViewItem *itm, const TQPoint &point);
void slotPopup(TDEListView *, TQListViewItem *itm, const TQPoint &point);
void slotPopupActivated(int id);
void addDocumentInfo(KileDocument::Info *);
@ -235,7 +235,7 @@ namespace KileWidget
TQMap<KileDocument::Info *, StructureList *> m_map;
StructureList *m_default;
KPopupMenu *m_popup;
TDEPopupMenu *m_popup;
KileListViewItem *m_popupItem;
TQString m_popupInfo;

@ -101,7 +101,7 @@ namespace KileTool
}
}
Manager::Manager(KileInfo *ki, TDEConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *manager, TQWidgetStack *stack, KAction *stop, uint to) :
Manager::Manager(KileInfo *ki, TDEConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *manager, TQWidgetStack *stack, TDEAction *stop, uint to) :
m_ki(ki),
m_config(config),
m_log(log),

@ -27,7 +27,7 @@ class TQWidgetStack;
class TDEConfig;
class KTextEdit;
class KAction;
class TDEAction;
namespace KParts { class PartManager; }
class KileInfo;
@ -69,7 +69,7 @@ namespace KileTool
public:
Manager(KileInfo *ki, TDEConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *, TQWidgetStack *, KAction *, uint to);
Manager(KileInfo *ki, TDEConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *, TQWidgetStack *, TDEAction *, uint to);
~Manager();
public:
@ -128,7 +128,7 @@ namespace KileTool
KileWidget::Output *m_output;
KParts::PartManager *m_pm;
TQWidgetStack *m_stack;
KAction *m_stop;
TDEAction *m_stop;
Factory *m_factory;
Queue m_queue;
TQTimer *m_timer;

@ -74,13 +74,13 @@ void Manager::setClient(TQObject *receiver, KXMLGUIClient *client)
m_receiver = receiver;
m_client = client;
if(NULL == m_client->actionCollection()->action("popup_pasteaslatex"))
new KAction(i18n("Paste as LaTe&X"), 0, this,
new TDEAction(i18n("Paste as LaTe&X"), 0, this,
TQT_SLOT(pasteAsLaTeX()), m_client->actionCollection(), "popup_pasteaslatex");
if(NULL == m_client->actionCollection()->action("popup_converttolatex"))
new KAction(i18n("Convert Selection to &LaTeX"), 0, this,
new TDEAction(i18n("Convert Selection to &LaTeX"), 0, this,
TQT_SLOT(convertSelectionToLaTeX()), m_client->actionCollection(), "popup_converttolatex");
if(NULL == m_client->actionCollection()->action("popup_quickpreview"))
new KAction(i18n("&QuickPreview Selection"), 0, this,
new TDEAction(i18n("&QuickPreview Selection"), 0, this,
TQT_SLOT(quickPreviewPopup()), m_client->actionCollection(), "popup_quickpreview");
}
@ -172,7 +172,7 @@ Kate::View* Manager::createTextView(KileDocument::TextInfo *info, int index)
unplugKatePartMenu(view);
// use Kile's save and save-as functions instead of Katepart's
KAction *action = view->actionCollection()->action(KStdAction::stdName(KStdAction::Save));
TDEAction *action = view->actionCollection()->action(KStdAction::stdName(KStdAction::Save));
if ( action )
{
KILE_DEBUG() << " reconnect action 'file_save'..." << endl;
@ -335,7 +335,7 @@ void Manager::onKatePopupMenuRequest(void)
return;
// Setting up the "QuickPreview selection" entry
KAction *quickPreviewAction = m_client->actionCollection()->action("popup_quickpreview");
TDEAction *quickPreviewAction = m_client->actionCollection()->action("popup_quickpreview");
if(NULL != quickPreviewAction) {
if(!quickPreviewAction->isPlugged())
quickPreviewAction->plug(viewPopupMenu);
@ -347,7 +347,7 @@ void Manager::onKatePopupMenuRequest(void)
}
// Setting up the "Convert to LaTeX" entry
KAction *latexCvtAction = m_client->actionCollection()->action("popup_converttolatex");
TDEAction *latexCvtAction = m_client->actionCollection()->action("popup_converttolatex");
if(NULL != latexCvtAction) {
if(!latexCvtAction->isPlugged())
latexCvtAction->plug(viewPopupMenu);
@ -356,7 +356,7 @@ void Manager::onKatePopupMenuRequest(void)
}
// Setting up the "Paste as LaTeX" entry
KAction *pasteAsLaTeXAction = m_client->actionCollection()->action("popup_pasteaslatex");
TDEAction *pasteAsLaTeXAction = m_client->actionCollection()->action("popup_pasteaslatex");
if((NULL != pasteAsLaTeXAction)) {
if(!pasteAsLaTeXAction->isPlugged())
pasteAsLaTeXAction->plug(viewPopupMenu);
@ -569,11 +569,11 @@ void Manager::unplugKatePartMenu(Kate::View* view)
for ( uint i=0; i < actionlist.count(); ++i )
{
KAction *action = view->actionCollection()->action( actionlist[i].ascii() );
TDEAction *action = view->actionCollection()->action( actionlist[i].ascii() );
if ( action )
{
action->unplugAll();
// action->setShortcut(KShortcut());
// action->setShortcut(TDEShortcut());
}
}
}

@ -39,13 +39,13 @@ namespace KileDialog
// BEGIN NewLatexCommand
NewLatexCommand::NewLatexCommand(TQWidget *parent, const TQString &caption,
const TQString &groupname, KListViewItem *lvitem,
const TQString &groupname, TDEListViewItem *lvitem,
KileDocument::CmdAttribute cmdtype,
TQMap<TQString,bool> *dict)
: KDialogBase( parent,0, true, caption, Ok | Cancel, Ok, true ),
m_dict(dict)
{
// 'add' is only allowed, if the KListViewItem is defined
// 'add' is only allowed, if the TDEListViewItem is defined
m_addmode = ( lvitem == 0 );
m_envmode = ( cmdtype < KileDocument::CmdAttrLabel );
m_cmdType = cmdtype;
@ -316,7 +316,7 @@ LatexCommandsDialog::LatexCommandsDialog(TDEConfig *config, KileDocument::LatexC
// page 1: environment listview
TQWidget *page1 = new TQWidget(m_tab);
m_lvEnvironments = new KListView(page1);
m_lvEnvironments = new TDEListView(page1);
m_lvEnvironments->setRootIsDecorated(true);
m_lvEnvironments->addColumn(i18n("Environment"));
m_lvEnvironments->addColumn(i18n("Starred"));
@ -336,7 +336,7 @@ LatexCommandsDialog::LatexCommandsDialog(TDEConfig *config, KileDocument::LatexC
// page 2: command listview
TQWidget *page2 = new TQWidget(m_tab);
m_lvCommands = new KListView(page2);
m_lvCommands = new TDEListView(page2);
m_lvCommands->setRootIsDecorated(true);
m_lvCommands->addColumn(i18n("Command"));
m_lvCommands->addColumn(i18n("Starred"));
@ -409,16 +409,16 @@ void LatexCommandsDialog::resetListviews()
m_lvEnvironments->clear();
m_lvCommands->clear();
m_lviAmsmath = new KListViewItem(m_lvEnvironments,i18n("AMS-Math"));
m_lviMath = new KListViewItem(m_lvEnvironments,i18n("Math"));
m_lviList = new KListViewItem(m_lvEnvironments,i18n("Lists"));
m_lviTabular = new KListViewItem(m_lvEnvironments,i18n("Tabular"));
m_lviVerbatim = new KListViewItem(m_lvEnvironments,i18n("Verbatim"));
m_lviAmsmath = new TDEListViewItem(m_lvEnvironments,i18n("AMS-Math"));
m_lviMath = new TDEListViewItem(m_lvEnvironments,i18n("Math"));
m_lviList = new TDEListViewItem(m_lvEnvironments,i18n("Lists"));
m_lviTabular = new TDEListViewItem(m_lvEnvironments,i18n("Tabular"));
m_lviVerbatim = new TDEListViewItem(m_lvEnvironments,i18n("Verbatim"));
m_lviLabels = new KListViewItem(m_lvCommands,i18n("Labels"));
m_lviReferences = new KListViewItem(m_lvCommands,i18n("References"));
m_lviCitations = new KListViewItem(m_lvCommands,i18n("Citations"));
m_lviInputs = new KListViewItem(m_lvCommands,i18n("Includes"));
m_lviLabels = new TDEListViewItem(m_lvCommands,i18n("Labels"));
m_lviReferences = new TDEListViewItem(m_lvCommands,i18n("References"));
m_lviCitations = new TDEListViewItem(m_lvCommands,i18n("Citations"));
m_lviInputs = new TDEListViewItem(m_lvCommands,i18n("Includes"));
TQStringList list;
TQStringList::ConstIterator it;
@ -429,7 +429,7 @@ void LatexCommandsDialog::resetListviews()
{
if ( m_commands->commandAttributes(*it,attr) )
{
KListViewItem *parent;
TDEListViewItem *parent;
switch ( attr.type ) {
case KileDocument::CmdAttrAmsmath: parent = m_lviAmsmath; break;
case KileDocument::CmdAttrMath: parent = m_lviMath; break;
@ -452,7 +452,7 @@ LatexCommandsDialog::LVmode LatexCommandsDialog::getListviewMode()
return ( m_tab->currentPageIndex() == 0 ) ? lvEnvMode : lvCmdMode;
}
KileDocument::CmdAttribute LatexCommandsDialog::getCommandMode(KListViewItem *item)
KileDocument::CmdAttribute LatexCommandsDialog::getCommandMode(TDEListViewItem *item)
{
KileDocument::CmdAttribute type;
@ -480,7 +480,7 @@ KileDocument::CmdAttribute LatexCommandsDialog::getCommandMode(KListViewItem *it
return type;
}
bool LatexCommandsDialog::isParentItem(KListViewItem *item)
bool LatexCommandsDialog::isParentItem(TDEListViewItem *item)
{
return ( item==m_lviMath ||
item==m_lviList ||
@ -495,14 +495,14 @@ bool LatexCommandsDialog::isParentItem(KListViewItem *item)
////////////////////////////// entries //////////////////////////////
void LatexCommandsDialog::setEntry(KListViewItem *parent,const TQString &name,
void LatexCommandsDialog::setEntry(TDEListViewItem *parent,const TQString &name,
KileDocument::LatexCmdAttributes &attr)
{
// set dictionary
m_dictCommands[name] = attr.standard;
// create an item
KListViewItem *item = new KListViewItem(parent,name);
TDEListViewItem *item = new TDEListViewItem(parent,name);
// always set the starred entry
if ( attr.starred )
@ -528,7 +528,7 @@ void LatexCommandsDialog::setEntry(KListViewItem *parent,const TQString &name,
}
}
void LatexCommandsDialog::getEntry(KListViewItem *item,KileDocument::LatexCmdAttributes &attr)
void LatexCommandsDialog::getEntry(TDEListViewItem *item,KileDocument::LatexCmdAttributes &attr)
{
// always set the starred entry
attr.starred = ( item->text(1) == "*" );
@ -563,7 +563,7 @@ bool LatexCommandsDialog::isUserDefined(const TQString &name)
// look for user defined environment or commands in this listview
bool LatexCommandsDialog::hasUserDefined(KListView *listview)
bool LatexCommandsDialog::hasUserDefined(TDEListView *listview)
{
for ( TQListViewItem *cur=listview->firstChild(); cur; cur=cur->nextSibling() )
{
@ -590,10 +590,10 @@ void LatexCommandsDialog::slotEnableButtons()
bool editState = false;
bool resetState = false;
KListView *listview = ( getListviewMode() == lvEnvMode ) ? m_lvEnvironments : m_lvCommands;
TDEListView *listview = ( getListviewMode() == lvEnvMode ) ? m_lvEnvironments : m_lvCommands;
resetState = ( hasUserDefined(listview) );
KListViewItem *item = (KListViewItem *)listview->selectedItem();
TDEListViewItem *item = (TDEListViewItem *)listview->selectedItem();
if ( item && item!=m_lviAmsmath )
{
@ -613,7 +613,7 @@ void LatexCommandsDialog::slotEnableButtons()
void LatexCommandsDialog::slotAddClicked()
{
KListView *listview;
TDEListView *listview;
TQString caption;
bool envmode;
@ -630,7 +630,7 @@ void LatexCommandsDialog::slotAddClicked()
envmode = false;
}
KListViewItem *item = (KListViewItem *)listview->selectedItem();
TDEListViewItem *item = (TDEListViewItem *)listview->selectedItem();
if ( item && isParentItem(item) )
{
// get current command type
@ -651,7 +651,7 @@ void LatexCommandsDialog::slotAddClicked()
TQString name;
KileDocument::LatexCmdAttributes attr;
dialog->getParameter(name,attr);
setEntry((KListViewItem *)item,name,attr);
setEntry((TDEListViewItem *)item,name,attr);
// open this parent item
if ( !item->isOpen() )
{
@ -665,7 +665,7 @@ void LatexCommandsDialog::slotAddClicked()
void LatexCommandsDialog::slotDeleteClicked()
{
KListView *listview;
TDEListView *listview;
TQString message;
if ( getListviewMode() == lvEnvMode )
@ -679,7 +679,7 @@ void LatexCommandsDialog::slotDeleteClicked()
message = i18n("Do you want to delete this command?");
}
KListViewItem *item = (KListViewItem *)listview->selectedItem();
TDEListViewItem *item = (TDEListViewItem *)listview->selectedItem();
if ( item && !isParentItem(item) )
{
if (KMessageBox::warningContinueCancel(this, message, i18n("Delete"))==KMessageBox::Continue)
@ -696,7 +696,7 @@ void LatexCommandsDialog::slotDeleteClicked()
void LatexCommandsDialog::slotEditClicked()
{
KListView *listview;
TDEListView *listview;
TQString caption;
if ( getListviewMode() == lvEnvMode )
@ -710,10 +710,10 @@ void LatexCommandsDialog::slotEditClicked()
caption = i18n("LaTeX Commands");
}
KListViewItem *item = (KListViewItem *)listview->selectedItem();
TDEListViewItem *item = (TDEListViewItem *)listview->selectedItem();
if ( item && !isParentItem(item) )
{
KListViewItem *parentitem = (KListViewItem *)item->parent();
TDEListViewItem *parentitem = (TDEListViewItem *)item->parent();
if ( parentitem )
{
// get current command type
@ -796,7 +796,7 @@ void LatexCommandsDialog::readConfig()
m_cbUserDefined->setChecked( KileConfig::showUserCommands() );
}
void LatexCommandsDialog::writeConfig(KListView *listview, const TQString &groupname, bool env)
void LatexCommandsDialog::writeConfig(TDEListView *listview, const TQString &groupname, bool env)
{
// first delete old entries
if ( m_config->hasGroup(groupname) )
@ -813,7 +813,7 @@ void LatexCommandsDialog::writeConfig(KListView *listview, const TQString &group
for ( TQListViewItem *cur=listview->firstChild(); cur; cur=cur->nextSibling() )
{
// get the type of the parent entry
attr.type = getCommandMode((KListViewItem *)cur);
attr.type = getCommandMode((TDEListViewItem *)cur);
if ( attr.type == KileDocument::CmdAttrNone )
{
KILE_DEBUG() << "\tLatexCommandsDialog error: no parent item (" << cur->text(0) << ")" << endl;
@ -826,7 +826,7 @@ void LatexCommandsDialog::writeConfig(KListView *listview, const TQString &group
TQString key = curchild->text(0);
if ( isUserDefined(key) )
{
getEntry((KListViewItem *)curchild,attr);
getEntry((TDEListViewItem *)curchild,attr);
TQString value = m_commands->configString(attr,env);
KILE_DEBUG() << "\tLatexCommandsDialog write config: " << key << " --> " << value << endl;
if ( ! value.isEmpty() )

@ -46,7 +46,7 @@ class NewLatexCommand : public KDialogBase
public:
NewLatexCommand(TQWidget *parent, const TQString &caption,
const TQString &groupname, KListViewItem *lvitem,
const TQString &groupname, TDEListViewItem *lvitem,
KileDocument::CmdAttribute cmdtype, TQMap<TQString,bool> *dict);
~NewLatexCommand() {}
void getParameter(TQString &name, KileDocument::LatexCmdAttributes &attr);
@ -85,24 +85,24 @@ private:
TQMap<TQString,bool> m_dictCommands;
bool m_commandChanged;
KListView *m_lvEnvironments, *m_lvCommands;
KListViewItem *m_lviList,*m_lviTabular,*m_lviMath,*m_lviAmsmath,*m_lviVerbatim;
KListViewItem *m_lviLabels,*m_lviReferences,*m_lviCitations;
KListViewItem *m_lviInputs;
TDEListView *m_lvEnvironments, *m_lvCommands;
TDEListViewItem *m_lviList,*m_lviTabular,*m_lviMath,*m_lviAmsmath,*m_lviVerbatim;
TDEListViewItem *m_lviLabels,*m_lviReferences,*m_lviCitations;
TDEListViewItem *m_lviInputs;
TQTabWidget *m_tab;
KPushButton *m_btnAdd, *m_btnDelete, *m_btnEdit;
TQCheckBox *m_cbUserDefined;
void resetListviews();
LVmode getListviewMode();
KileDocument::CmdAttribute getCommandMode(KListViewItem *item);
bool isParentItem(KListViewItem *item);
KileDocument::CmdAttribute getCommandMode(TDEListViewItem *item);
bool isParentItem(TDEListViewItem *item);
void setEntry(KListViewItem *parent,const TQString &name,KileDocument::LatexCmdAttributes &attr);
void getEntry(KListViewItem *item,KileDocument::LatexCmdAttributes &attr);
void setEntry(TDEListViewItem *parent,const TQString &name,KileDocument::LatexCmdAttributes &attr);
void getEntry(TDEListViewItem *item,KileDocument::LatexCmdAttributes &attr);
bool isUserDefined(const TQString &name);
bool hasUserDefined(KListView *listview);
bool hasUserDefined(TDEListView *listview);
void resetEnvironments();
void resetCommands();
@ -110,7 +110,7 @@ private:
void setListviewStates(bool states[]);
void readConfig();
void writeConfig(KListView *listview, const TQString &groupname, bool env);
void writeConfig(TDEListView *listview, const TQString &groupname, bool env);
private slots:
void slotPageChanged(TQWidget *);

@ -82,7 +82,7 @@ ManageTemplatesDialog::ManageTemplatesDialog(KileTemplate::Manager *templateMana
KPushButton *iconbut = new KPushButton(i18n("Select..."),page);
iconLayout->addWidget(iconbut);
m_templateList = new KListView(page);
m_templateList = new TDEListView(page);
m_templateList->setSorting(-1);
m_templateList->addColumn(i18n("marked", "M"));
m_templateList->addColumn(i18n("Existing Templates"));
@ -123,7 +123,7 @@ ManageTemplatesDialog::ManageTemplatesDialog(KileTemplate::Manager *templateMana
setMainWidget(page);
TQVBoxLayout *topLayout = new TQVBoxLayout(page, 0, spacingHint());
m_templateList = new KListView(page);
m_templateList = new TDEListView(page);
m_templateList->setSorting(-1);
m_templateList->addColumn(i18n("marked", "M"));
m_templateList->addColumn(i18n("Existing Templates"));

@ -60,7 +60,7 @@ protected slots:
protected:
KileTemplate::Manager* m_templateManager;
KLineEdit *m_nameEdit, *m_iconEdit;
KListView *m_templateList;
TDEListView *m_templateList;
KileDocument::Type m_templateType;
TQCheckBox *m_showAllTypesCheckBox;
KURL m_sourceURL;

@ -159,7 +159,7 @@
</size>
</property>
</spacer>
<widget class="KListBox" row="1" column="2" rowspan="5" colspan="3">
<widget class="TDEListBox" row="1" column="2" rowspan="5" colspan="3">
<property name="name">
<cstring>m_lstbSeq</cstring>
</property>

@ -29,7 +29,7 @@
namespace KileWidget {
JScriptListViewItem::JScriptListViewItem(TQWidget *managementWidget, KListView *parent, KileJScript::JScript *script, KileInfo *kileInfo) : KListViewItem(parent), m_script(script), m_kileInfo(kileInfo), m_managementWidget(managementWidget) {
JScriptListViewItem::JScriptListViewItem(TQWidget *managementWidget, TDEListView *parent, KileJScript::JScript *script, KileInfo *kileInfo) : TDEListViewItem(parent), m_script(script), m_kileInfo(kileInfo), m_managementWidget(managementWidget) {
}
JScriptListViewItem::~JScriptListViewItem() {
@ -91,7 +91,7 @@ void JScriptListViewItem::setText(int column, const TQString & str) {
ScriptsManagement::ScriptsManagement(KileInfo *kileInfo, TQWidget *parent, const char *name, WFlags f) : TQWidget(parent, name, f), m_kileInfo(kileInfo) {
TQVBoxLayout *baseLayout = new TQVBoxLayout(this);
m_toolbar = new KToolBar(this, "scriptControlToolBar");
m_toolbar = new TDEToolBar(this, "scriptControlToolBar");
m_executeButton = m_toolbar->insertButton(BarIcon("exec"), 0, TQT_SIGNAL(clicked(int)), TQT_TQOBJECT(this), TQT_SLOT(executeSelectedScript()), true, i18n("Run Selected Script"));
m_newButton = m_toolbar->insertButton(BarIcon("scriptnew"), 0, TQT_SIGNAL(clicked(int)), m_kileInfo->docManager(), TQT_SLOT(createNewJScript()), true, i18n("Create New Script"));
m_openButton = m_toolbar->insertButton(BarIcon("scriptopen"), 0, TQT_SIGNAL(clicked(int)), TQT_TQOBJECT(this), TQT_SLOT(openSelectedScript()), true, i18n("Open Selected Script in Editor"));
@ -100,7 +100,7 @@ ScriptsManagement::ScriptsManagement(KileInfo *kileInfo, TQWidget *parent, const
m_refreshButton = m_toolbar->insertButton(BarIcon("reload"), 1, TQT_SIGNAL(clicked(int)), m_kileInfo->scriptManager(), TQT_SLOT(scanJScriptDirectories()), true, i18n("Refresh List"));
baseLayout->addWidget(m_toolbar);
m_scriptsListView = new KListView(this);
m_scriptsListView = new TDEListView(this);
m_scriptsListView->addColumn(i18n("Script Name"));
m_scriptsListView->addColumn(i18n("Sequence"));
m_scriptsListView->setAllColumnsShowFocus(true);

@ -36,9 +36,9 @@ namespace KileWidget {
/**
* This class represents an entry in the scripts list view.
**/
class JScriptListViewItem : public KListViewItem {
class JScriptListViewItem : public TDEListViewItem {
public:
JScriptListViewItem(TQWidget *managementWidget, KListView *parent, KileJScript::JScript *script, KileInfo *kileInfo);
JScriptListViewItem(TQWidget *managementWidget, TDEListView *parent, KileJScript::JScript *script, KileInfo *kileInfo);
virtual ~JScriptListViewItem();
KileJScript::JScript* getScript();
@ -87,14 +87,14 @@ namespace KileWidget {
protected:
KileInfo *m_kileInfo;
KListView *m_scriptsListView;
TDEListView *m_scriptsListView;
private:
int m_newButton;
int m_executeButton;
int m_openButton;
int m_refreshButton;
KToolBar *m_toolbar;
TDEToolBar *m_toolbar;
};
}

@ -63,7 +63,7 @@ TexDocDialog::TexDocDialog(TQWidget *parent, const char *name)
TQVBoxLayout *vbox = new TQVBoxLayout(page,8,8);
// listview
m_texdocs = new KListView(page);
m_texdocs = new TDEListView(page);
m_texdocs->setRootIsDecorated(true);
m_texdocs->addColumn(i18n("Table of Contents"));
@ -202,7 +202,7 @@ void TexDocDialog::showToc(const TQString &caption,const TQStringList &doclist,
{
TQString section,textline;
TQStringList keylist;
KListViewItem *itemsection = 0L;
TDEListViewItem *itemsection = 0L;
setUpdatesEnabled( false );
m_texdocs->setColumnText(0,caption);
@ -212,14 +212,14 @@ void TexDocDialog::showToc(const TQString &caption,const TQStringList &doclist,
if ( doclist[i][0] == '@' )
{
section = doclist[i];
itemsection = new KListViewItem(m_texdocs,section.remove(0,1));
itemsection = new TDEListViewItem(m_texdocs,section.remove(0,1));
}
else
{
keylist = TQStringList::split(';',doclist[i],true);
if ( itemsection )
{
KListViewItem *item = new KListViewItem(itemsection,keylist[1],keylist[0]);
TDEListViewItem *item = new TDEListViewItem(itemsection,keylist[1],keylist[0]);
item->setPixmap(0, SmallIcon(getIconName(keylist[2])) );
// save filename in dictionary

@ -43,7 +43,7 @@ public:
~TexDocDialog();
private:
KListView *m_texdocs;
TDEListView *m_texdocs;
KLineEdit *m_leKeywords;
KPushButton *m_pbSearch;

@ -69,7 +69,7 @@
<cstring>m_lstbTools</cstring>
</property>
</widget>
<widget class="KListBox">
<widget class="TDEListBox">
<property name="name">
<cstring>m_lstbTools</cstring>
</property>

@ -63,7 +63,7 @@ UserHelpDialog::UserHelpDialog(TQWidget *parent, const char *name)
// listbox
TQLabel *label1 = new TQLabel(i18n("&Menu item:"),widget);
grid->addWidget( label1,0,0 );
m_menulistbox = new KListBox(widget);
m_menulistbox = new TDEListBox(widget);
grid->addWidget( m_menulistbox, 1,0 );
label1->setBuddy(m_menulistbox);
@ -340,7 +340,7 @@ void UserHelpDialog::updateButton()
//BEGIN UserHelpAddDialog
UserHelpAddDialog::UserHelpAddDialog(KListBox *menulistbox, TQWidget *parent, const char *name)
UserHelpAddDialog::UserHelpAddDialog(TDEListBox *menulistbox, TQWidget *parent, const char *name)
: KDialogBase( parent, name, true, i18n("Add User Helpfile"), Cancel | Ok, Ok, true ),
m_menulistbox(menulistbox)
{

@ -42,7 +42,7 @@ public:
void setParameter(const TQStringList &menuentries, const TQStringList &helpfiles);
void getParameter(TQStringList &userhelpmenulist, TQStringList &userhelpfilelist);
private:
KListBox *m_menulistbox;
TDEListBox *m_menulistbox;
KLineEdit *m_fileedit;
KPushButton *m_add, *m_remove, *m_addsep, *m_up, *m_down;
@ -65,13 +65,13 @@ class UserHelpAddDialog : public KDialogBase
public:
UserHelpAddDialog(KListBox *menulistbox, TQWidget *parent=0, const char *name=0);
UserHelpAddDialog(TDEListBox *menulistbox, TQWidget *parent=0, const char *name=0);
~UserHelpAddDialog() {}
private:
KLineEdit *m_leMenuEntry, *m_leHelpFile;
KPushButton *m_pbChooseFile,*m_pbChooseHtml;
KListBox *m_menulistbox;
TDEListBox *m_menulistbox;
public:
TQString getMenuitem() { return m_leMenuEntry->text(); }

Loading…
Cancel
Save