summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:06:16 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:06:16 -0600
commit7717bcec2ad7d94e3f38a2e831bafa60a525f7d2 (patch)
tree77ffa8fe14318bb3a285cae65dbe622bcbbcb3f9 /src/mainwindow.cpp
parentb5cff83092d97189b5a55e1a996995207bc3016c (diff)
downloadtellico-7717bcec2ad7d94e3f38a2e831bafa60a525f7d2.tar.gz
tellico-7717bcec2ad7d94e3f38a2e831bafa60a525f7d2.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp158
1 files changed, 79 insertions, 79 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 72924aa..318bc51 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -98,7 +98,7 @@ namespace {
using Tellico::MainWindow;
-MainWindow::MainWindow(TQWidget* parent_/*=0*/, const char* name_/*=0*/) : KMainWindow(parent_, name_),
+MainWindow::MainWindow(TQWidget* parent_/*=0*/, const char* name_/*=0*/) : TDEMainWindow(parent_, name_),
ApplicationInterface(),
m_updateAll(0),
m_statusBar(0),
@@ -186,14 +186,14 @@ void MainWindow::initActions() {
connect(collectionMapper, TQT_SIGNAL(mapped(int)),
TQT_TQOBJECT(this), TQT_SLOT(slotFileNew(int)));
- KActionMenu* fileNewMenu = new KActionMenu(actionCollection(), "file_new_collection");
+ TDEActionMenu* fileNewMenu = new TDEActionMenu(actionCollection(), "file_new_collection");
fileNewMenu->setText(i18n("New"));
// fileNewMenu->setIconSet(BarIconSet(TQString::fromLatin1("filenew"))); // doesn't work
fileNewMenu->setIconSet(BarIcon(TQString::fromLatin1("filenew")));
fileNewMenu->setToolTip(i18n("Create a new collection"));
fileNewMenu->setDelayed(false);
- KAction* action = new KAction(actionCollection(), "new_book_collection");
+ TDEAction* action = new TDEAction(actionCollection(), "new_book_collection");
action->setText(i18n("New &Book Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("book")));
action->setToolTip(i18n("Create a new book collection"));
@@ -201,7 +201,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Book);
- action = new KAction(actionCollection(), "new_bibtex_collection");
+ action = new TDEAction(actionCollection(), "new_bibtex_collection");
action->setText(i18n("New B&ibliography"));
action->setIconSet(UserIconSet(TQString::fromLatin1("bibtex")));
action->setToolTip(i18n("Create a new bibtex bibliography"));
@@ -209,7 +209,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Bibtex);
- action = new KAction(actionCollection(), "new_comic_book_collection");
+ action = new TDEAction(actionCollection(), "new_comic_book_collection");
action->setText(i18n("New &Comic Book Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("comic")));
action->setToolTip(i18n("Create a new comic book collection"));
@@ -217,7 +217,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::ComicBook);
- action = new KAction(actionCollection(), "new_video_collection");
+ action = new TDEAction(actionCollection(), "new_video_collection");
action->setText(i18n("New &Video Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("video")));
action->setToolTip(i18n("Create a new video collection"));
@@ -225,7 +225,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Video);
- action = new KAction(actionCollection(), "new_music_collection");
+ action = new TDEAction(actionCollection(), "new_music_collection");
action->setText(i18n("New &Music Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("album")));
action->setToolTip(i18n("Create a new music collection"));
@@ -233,7 +233,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Album);
- action = new KAction(actionCollection(), "new_coin_collection");
+ action = new TDEAction(actionCollection(), "new_coin_collection");
action->setText(i18n("New C&oin Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("coin")));
action->setToolTip(i18n("Create a new coin collection"));
@@ -241,7 +241,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Coin);
- action = new KAction(actionCollection(), "new_stamp_collection");
+ action = new TDEAction(actionCollection(), "new_stamp_collection");
action->setText(i18n("New &Stamp Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("stamp")));
action->setToolTip(i18n("Create a new stamp collection"));
@@ -249,7 +249,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Stamp);
- action = new KAction(actionCollection(), "new_card_collection");
+ action = new TDEAction(actionCollection(), "new_card_collection");
action->setText(i18n("New C&ard Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("card")));
action->setToolTip(i18n("Create a new trading card collection"));
@@ -257,7 +257,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Card);
- action = new KAction(actionCollection(), "new_wine_collection");
+ action = new TDEAction(actionCollection(), "new_wine_collection");
action->setText(i18n("New &Wine Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("wine")));
action->setToolTip(i18n("Create a new wine collection"));
@@ -265,7 +265,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Wine);
- action = new KAction(actionCollection(), "new_game_collection");
+ action = new TDEAction(actionCollection(), "new_game_collection");
action->setText(i18n("New &Game Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("game")));
action->setToolTip(i18n("Create a new game collection"));
@@ -273,7 +273,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::Game);
- action = new KAction(actionCollection(), "new_boardgame_collection");
+ action = new TDEAction(actionCollection(), "new_boardgame_collection");
action->setText(i18n("New Boa&rd Game Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("boardgame")));
action->setToolTip(i18n("Create a new board game collection"));
@@ -281,7 +281,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::BoardGame);
- action = new KAction(actionCollection(), "new_file_catalog");
+ action = new TDEAction(actionCollection(), "new_file_catalog");
action->setText(i18n("New &File Catalog"));
action->setIconSet(UserIconSet(TQString::fromLatin1("file")));
action->setToolTip(i18n("Create a new file catalog"));
@@ -289,7 +289,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
collectionMapper->setMapping(action, Data::Collection::File);
- action = new KAction(actionCollection(), "new_custom_collection");
+ action = new TDEAction(actionCollection(), "new_custom_collection");
action->setText(i18n("New C&ustom Collection"));
action->setIconSet(UserIconSet(TQString::fromLatin1("filenew")));
action->setToolTip(i18n("Create a new custom collection"));
@@ -319,13 +319,13 @@ void MainWindow::initActions() {
connect(importMapper, TQT_SIGNAL(mapped(int)),
TQT_TQOBJECT(this), TQT_SLOT(slotFileImport(int)));
- KActionMenu* importMenu = new KActionMenu(actionCollection(), "file_import");
+ TDEActionMenu* importMenu = new TDEActionMenu(actionCollection(), "file_import");
importMenu->setText(i18n("&Import"));
importMenu->setIconSet(BarIconSet(TQString::fromLatin1("fileimport")));
importMenu->setToolTip(i18n("Import collection data from other formats"));
importMenu->setDelayed(false);
- action = new KAction(actionCollection(), "file_import_tellico");
+ action = new TDEAction(actionCollection(), "file_import_tellico");
action->setText(i18n("Import Tellico Data..."));
action->setToolTip(i18n("Import another Tellico data file"));
action->setIcon(TQString::fromLatin1("tellico"));
@@ -333,7 +333,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::TellicoXML);
- action = new KAction(actionCollection(), "file_import_csv");
+ action = new TDEAction(actionCollection(), "file_import_csv");
action->setText(i18n("Import CSV Data..."));
action->setToolTip(i18n("Import a CSV file"));
action->setIcon(MIME_ICON("text/x-csv"));
@@ -341,7 +341,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::CSV);
- action = new KAction(actionCollection(), "file_import_mods");
+ action = new TDEAction(actionCollection(), "file_import_mods");
action->setText(i18n("Import MODS Data..."));
action->setToolTip(i18n("Import a MODS data file"));
action->setIcon(MIME_ICON("text/xml"));
@@ -349,7 +349,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::MODS);
- action = new KAction(actionCollection(), "file_import_alexandria");
+ action = new TDEAction(actionCollection(), "file_import_alexandria");
action->setText(i18n("Import Alexandria Data..."));
action->setToolTip(i18n("Import data from the Alexandria book collection manager"));
action->setIcon(TQString::fromLatin1("alexandria"));
@@ -357,7 +357,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::Alexandria);
- action = new KAction(actionCollection(), "file_import_delicious");
+ action = new TDEAction(actionCollection(), "file_import_delicious");
action->setText(i18n("Import Delicious Library Data..."));
action->setToolTip(i18n("Import data from Delicious Library"));
action->setIcon(MIME_ICON("text/xml"));
@@ -365,7 +365,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::Delicious);
- action = new KAction(actionCollection(), "file_import_referencer");
+ action = new TDEAction(actionCollection(), "file_import_referencer");
action->setText(i18n("Import Referencer Data..."));
action->setToolTip(i18n("Import data from Referencer"));
action->setIcon(TQString::fromLatin1("referencer"));
@@ -373,7 +373,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::Referencer);
- action = new KAction(actionCollection(), "file_import_bibtex");
+ action = new TDEAction(actionCollection(), "file_import_bibtex");
action->setText(i18n("Import Bibtex Data..."));
action->setToolTip(i18n("Import a bibtex bibliography file"));
action->setIcon(MIME_ICON("text/x-bibtex"));
@@ -381,7 +381,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::Bibtex);
- action = new KAction(actionCollection(), "file_import_bibtexml");
+ action = new TDEAction(actionCollection(), "file_import_bibtexml");
action->setText(i18n("Import Bibtexml Data..."));
action->setToolTip(i18n("Import a Bibtexml bibliography file"));
action->setIcon(MIME_ICON("text/xml"));
@@ -389,7 +389,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::Bibtexml);
- action = new KAction(actionCollection(), "file_import_ris");
+ action = new TDEAction(actionCollection(), "file_import_ris");
action->setText(i18n("Import RIS Data..."));
action->setToolTip(i18n("Import an RIS reference file"));
action->setIcon(MIME_ICON("application/x-research-info-systems"));
@@ -397,7 +397,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::RIS);
- action = new KAction(actionCollection(), "file_import_pdf");
+ action = new TDEAction(actionCollection(), "file_import_pdf");
action->setText(i18n("Import PDF File..."));
action->setToolTip(i18n("Import a PDF file"));
action->setIcon(MIME_ICON("application/pdf"));
@@ -405,7 +405,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::PDF);
- action = new KAction(actionCollection(), "file_import_audiofile");
+ action = new TDEAction(actionCollection(), "file_import_audiofile");
action->setText(i18n("Import Audio File Metadata..."));
action->setToolTip(i18n("Import meta-data from audio files"));
action->setIcon(MIME_ICON("audio/x-mp3"));
@@ -416,7 +416,7 @@ void MainWindow::initActions() {
action->setEnabled(false);
#endif
- action = new KAction(actionCollection(), "file_import_freedb");
+ action = new TDEAction(actionCollection(), "file_import_freedb");
action->setText(i18n("Import Audio CD Data..."));
action->setToolTip(i18n("Import audio CD information"));
action->setIcon(MIME_ICON("media/audiocd"));
@@ -427,7 +427,7 @@ void MainWindow::initActions() {
action->setEnabled(false);
#endif
- action = new KAction(actionCollection(), "file_import_gcfilms");
+ action = new TDEAction(actionCollection(), "file_import_gcfilms");
action->setText(i18n("Import GCstar Data..."));
action->setToolTip(i18n("Import a GCstar data file"));
action->setIcon(TQString::fromLatin1("gcstar"));
@@ -435,7 +435,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::GCfilms);
- action = new KAction(actionCollection(), "file_import_griffith");
+ action = new TDEAction(actionCollection(), "file_import_griffith");
action->setText(i18n("Import Griffith Data..."));
action->setToolTip(i18n("Import a Griffith database"));
action->setIcon(TQString::fromLatin1("griffith"));
@@ -443,7 +443,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::Griffith);
- action = new KAction(actionCollection(), "file_import_amc");
+ action = new TDEAction(actionCollection(), "file_import_amc");
action->setText(i18n("Import Ant Movie Catalog Data..."));
action->setToolTip(i18n("Import an Ant Movie Catalog data file"));
action->setIcon(MIME_ICON("application/x-crossover-amc"));
@@ -451,7 +451,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::AMC);
- action = new KAction(actionCollection(), "file_import_filelisting");
+ action = new TDEAction(actionCollection(), "file_import_filelisting");
action->setText(i18n("Import File Listing..."));
action->setToolTip(i18n("Import information about files in a folder"));
action->setIcon(MIME_ICON("inode/directory"));
@@ -459,7 +459,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
importMapper->setMapping(action, Import::FileListing);
- action = new KAction(actionCollection(), "file_import_xslt");
+ action = new TDEAction(actionCollection(), "file_import_xslt");
action->setText(i18n("Import XSL Transform..."));
action->setToolTip(i18n("Import using an XSL Transform"));
action->setIcon(MIME_ICON("text/x-xslt"));
@@ -473,13 +473,13 @@ void MainWindow::initActions() {
connect(exportMapper, TQT_SIGNAL(mapped(int)),
TQT_TQOBJECT(this), TQT_SLOT(slotFileExport(int)));
- KActionMenu* exportMenu = new KActionMenu(actionCollection(), "file_export");
+ TDEActionMenu* exportMenu = new TDEActionMenu(actionCollection(), "file_export");
exportMenu->setText(i18n("&Export"));
exportMenu->setIconSet(BarIconSet(TQString::fromLatin1("fileexport")));
exportMenu->setToolTip(i18n("Export the collection data to other formats"));
exportMenu->setDelayed(false);
- action = new KAction(actionCollection(), "file_export_xml");
+ action = new TDEAction(actionCollection(), "file_export_xml");
action->setText(i18n("Export to XML..."));
action->setToolTip(i18n("Export to a Tellico XML file"));
action->setIcon(TQString::fromLatin1("tellico"));
@@ -487,7 +487,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::TellicoXML);
- action = new KAction(actionCollection(), "file_export_zip");
+ action = new TDEAction(actionCollection(), "file_export_zip");
action->setText(i18n("Export to Zip..."));
action->setToolTip(i18n("Export to a Tellico Zip file"));
action->setIcon(TQString::fromLatin1("tellico"));
@@ -495,7 +495,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::TellicoZip);
- action = new KAction(actionCollection(), "file_export_html");
+ action = new TDEAction(actionCollection(), "file_export_html");
action->setText(i18n("Export to HTML..."));
action->setToolTip(i18n("Export to an HTML file"));
action->setIcon(MIME_ICON("text/html"));
@@ -503,7 +503,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::HTML);
- action = new KAction(actionCollection(), "file_export_csv");
+ action = new TDEAction(actionCollection(), "file_export_csv");
action->setText(i18n("Export to CSV..."));
action->setToolTip(i18n("Export to a comma-separated values file"));
action->setIcon(MIME_ICON("text/x-csv"));
@@ -511,7 +511,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::CSV);
- action = new KAction(actionCollection(), "file_export_pilotdb");
+ action = new TDEAction(actionCollection(), "file_export_pilotdb");
action->setText(i18n("Export to PilotDB..."));
action->setToolTip(i18n("Export to a PilotDB database"));
action->setIcon(MIME_ICON("application/vnd.palm"));
@@ -519,7 +519,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::PilotDB);
- action = new KAction(actionCollection(), "file_export_alexandria");
+ action = new TDEAction(actionCollection(), "file_export_alexandria");
action->setText(i18n("Export to Alexandria..."));
action->setToolTip(i18n("Export to an Alexandria library"));
action->setIcon(TQString::fromLatin1("alexandria"));
@@ -527,7 +527,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::Alexandria);
- action = new KAction(actionCollection(), "file_export_bibtex");
+ action = new TDEAction(actionCollection(), "file_export_bibtex");
action->setText(i18n("Export to Bibtex..."));
action->setToolTip(i18n("Export to a bibtex file"));
action->setIcon(MIME_ICON("text/x-bibtex"));
@@ -535,7 +535,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::Bibtex);
- action = new KAction(actionCollection(), "file_export_bibtexml");
+ action = new TDEAction(actionCollection(), "file_export_bibtexml");
action->setText(i18n("Export to Bibtexml..."));
action->setToolTip(i18n("Export to a Bibtexml file"));
action->setIcon(MIME_ICON("text/xml"));
@@ -543,7 +543,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::Bibtexml);
- action = new KAction(actionCollection(), "file_export_onix");
+ action = new TDEAction(actionCollection(), "file_export_onix");
action->setText(i18n("Export to ONIX..."));
action->setToolTip(i18n("Export to an ONIX file"));
action->setIcon(MIME_ICON("text/xml"));
@@ -551,7 +551,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
exportMapper->setMapping(action, Export::ONIX);
- action = new KAction(actionCollection(), "file_export_gcfilms");
+ action = new TDEAction(actionCollection(), "file_export_gcfilms");
action->setText(i18n("Export to GCfilms..."));
action->setToolTip(i18n("Export to a GCfilms data file"));
action->setIcon(TQString::fromLatin1("gcstar"));
@@ -564,7 +564,7 @@ void MainWindow::initActions() {
TQString dummy2 = i18n("Export to a GCstar data file");
#endif
- action = new KAction(actionCollection(), "file_export_xslt");
+ action = new TDEAction(actionCollection(), "file_export_xslt");
action->setText(i18n("Export XSL Transform..."));
action->setToolTip(i18n("Export using an XSL Transform"));
action->setIcon(MIME_ICON("text/x-xslt"));
@@ -586,12 +586,12 @@ void MainWindow::initActions() {
action = KStdAction::deselect(TQT_TQOBJECT(this), TQT_SLOT(slotEditDeselect()), actionCollection());
action->setToolTip(i18n("Deselect all the entries in the collection"));
- action = new KAction(i18n("Internet Search..."), TQString::fromLatin1("wizard"), CTRL + Key_M,
+ action = new TDEAction(i18n("Internet Search..."), TQString::fromLatin1("wizard"), CTRL + Key_M,
TQT_TQOBJECT(this), TQT_SLOT(slotShowFetchDialog()),
actionCollection(), "edit_search_internet");
action->setToolTip(i18n("Search the internet..."));
- action = new KAction(i18n("Advanced &Filter..."), TQString::fromLatin1("filter"), CTRL + Key_J,
+ action = new TDEAction(i18n("Advanced &Filter..."), TQString::fromLatin1("filter"), CTRL + Key_J,
TQT_TQOBJECT(this), TQT_SLOT(slotShowFilterDialog()),
actionCollection(), "filter_dialog");
action->setToolTip(i18n("Filter the collection"));
@@ -599,55 +599,55 @@ void MainWindow::initActions() {
/*************************************************
* Collection menu
*************************************************/
- m_newEntry = new KAction(i18n("&New Entry..."), TQString::fromLatin1("filenew"), CTRL + Key_N,
+ m_newEntry = new TDEAction(i18n("&New Entry..."), TQString::fromLatin1("filenew"), CTRL + Key_N,
TQT_TQOBJECT(this), TQT_SLOT(slotNewEntry()),
actionCollection(), "coll_new_entry");
m_newEntry->setToolTip(i18n("Create a new entry"));
- m_editEntry = new KAction(i18n("&Edit Entry..."), TQString::fromLatin1("edit"), CTRL + Key_E,
+ m_editEntry = new TDEAction(i18n("&Edit Entry..."), TQString::fromLatin1("edit"), CTRL + Key_E,
TQT_TQOBJECT(this), TQT_SLOT(slotShowEntryEditor()),
actionCollection(), "coll_edit_entry");
m_editEntry->setToolTip(i18n("Edit the selected entries"));
- m_copyEntry = new KAction(i18n("D&uplicate Entry"), TQString::fromLatin1("editcopy"), CTRL + Key_Y,
+ m_copyEntry = new TDEAction(i18n("D&uplicate Entry"), TQString::fromLatin1("editcopy"), CTRL + Key_Y,
Controller::self(), TQT_SLOT(slotCopySelectedEntries()),
actionCollection(), "coll_copy_entry");
m_copyEntry->setToolTip(i18n("Copy the selected entries"));
- m_deleteEntry = new KAction(i18n("&Delete Entry"), TQString::fromLatin1("editdelete"), CTRL + Key_D,
+ m_deleteEntry = new TDEAction(i18n("&Delete Entry"), TQString::fromLatin1("editdelete"), CTRL + Key_D,
Controller::self(), TQT_SLOT(slotDeleteSelectedEntries()),
actionCollection(), "coll_delete_entry");
m_deleteEntry->setToolTip(i18n("Delete the selected entries"));
- m_mergeEntry = new KAction(i18n("&Merge Entries"), TQString::fromLatin1("editcopy"), CTRL + Key_G,
+ m_mergeEntry = new TDEAction(i18n("&Merge Entries"), TQString::fromLatin1("editcopy"), CTRL + Key_G,
Controller::self(), TQT_SLOT(slotMergeSelectedEntries()),
actionCollection(), "coll_merge_entry");
m_mergeEntry->setToolTip(i18n("Merge the selected entries"));
m_mergeEntry->setEnabled(false); // gets enabled when more than 1 entry is selected
- action = new KAction(i18n("&Generate Reports..."), TQString::fromLatin1("document"), 0, TQT_TQOBJECT(this),
+ action = new TDEAction(i18n("&Generate Reports..."), TQString::fromLatin1("document"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotShowReportDialog()),
actionCollection(), "coll_reports");
action->setToolTip(i18n("Generate collection reports"));
- m_checkOutEntry = new KAction(i18n("Check-&out..."), TQString::fromLatin1("2uparrow"), 0,
+ m_checkOutEntry = new TDEAction(i18n("Check-&out..."), TQString::fromLatin1("2uparrow"), 0,
Controller::self(), TQT_SLOT(slotCheckOut()),
actionCollection(), "coll_checkout");
m_checkOutEntry->setToolTip(i18n("Check-out the selected items"));
- m_checkInEntry = new KAction(i18n("Check-&in"), TQString::fromLatin1("2downarrow"), 0,
+ m_checkInEntry = new TDEAction(i18n("Check-&in"), TQString::fromLatin1("2downarrow"), 0,
Controller::self(), TQT_SLOT(slotCheckIn()),
actionCollection(), "coll_checkin");
m_checkInEntry->setToolTip(i18n("Check-in the selected items"));
- action = new KAction(i18n("&Rename Collection..."), TQString::fromLatin1("editclear"), CTRL + Key_R,
+ action = new TDEAction(i18n("&Rename Collection..."), TQString::fromLatin1("editclear"), CTRL + Key_R,
TQT_TQOBJECT(this), TQT_SLOT(slotRenameCollection()),
actionCollection(), "coll_rename_collection");
action->setToolTip(i18n("Rename the collection"));
- action = new KAction(i18n("Collection &Fields..."), TQString::fromLatin1("edit"), CTRL + Key_U,
+ action = new TDEAction(i18n("Collection &Fields..."), TQString::fromLatin1("edit"), CTRL + Key_U,
TQT_TQOBJECT(this), TQT_SLOT(slotShowCollectionFieldsDialog()),
actionCollection(), "coll_fields");
action->setToolTip(i18n("Modify the collection fields"));
- action = new KAction(i18n("Convert to &Bibliography"), 0,
+ action = new TDEAction(i18n("Convert to &Bibliography"), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotConvertToBibliography()),
actionCollection(), "coll_convert_bibliography");
action->setToolTip(i18n("Convert a book collection to a bibliography"));
action->setIconSet(UserIconSet(TQString::fromLatin1("bibtex")));
- action = new KAction(i18n("String &Macros..."), TQString::fromLatin1("view_text"), 0,
+ action = new TDEAction(i18n("String &Macros..."), TQString::fromLatin1("view_text"), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotShowStringMacroDialog()),
actionCollection(), "coll_string_macros");
action->setToolTip(i18n("Edit the bibtex string macros"));
@@ -656,21 +656,21 @@ void MainWindow::initActions() {
connect(citeMapper, TQT_SIGNAL(mapped(int)),
TQT_TQOBJECT(this), TQT_SLOT(slotCiteEntry(int)));
- action = new KAction(actionCollection(), "cite_clipboard");
+ action = new TDEAction(actionCollection(), "cite_clipboard");
action->setText(i18n("Copy Bibtex to Cli&pboard"));
action->setToolTip(i18n("Copy bibtex citations to the clipboard"));
action->setIcon(TQString::fromLatin1("editpaste"));
connect(action, TQT_SIGNAL(activated()), citeMapper, TQT_SLOT(map()));
citeMapper->setMapping(action, Cite::CiteClipboard);
- action = new KAction(actionCollection(), "cite_lyxpipe");
+ action = new TDEAction(actionCollection(), "cite_lyxpipe");
action->setText(i18n("Cite Entry in &LyX"));
action->setToolTip(i18n("Cite the selected entries in LyX"));
action->setIcon(TQString::fromLatin1("lyx"));
connect(action, TQT_SIGNAL(activated()), citeMapper, TQT_SLOT(map()));
citeMapper->setMapping(action, Cite::CiteLyxpipe);
- action = new KAction(actionCollection(), "cite_openoffice");
+ action = new TDEAction(actionCollection(), "cite_openoffice");
action->setText(i18n("Ci&te Entry in OpenOffice.org"));
action->setToolTip(i18n("Cite the selected entries in OpenOffice.org"));
action->setIcon(TQString::fromLatin1("ooo-writer"));
@@ -681,11 +681,11 @@ void MainWindow::initActions() {
connect(updateMapper, TQT_SIGNAL(mapped(const TQString&)),
Controller::self(), TQT_SLOT(slotUpdateSelectedEntries(const TQString&)));
- m_updateEntryMenu = new KActionMenu(i18n("&Update Entry"), actionCollection(), "coll_update_entry");
+ m_updateEntryMenu = new TDEActionMenu(i18n("&Update Entry"), actionCollection(), "coll_update_entry");
// m_updateEntryMenu->setIconSet(BarIconSet(TQString::fromLatin1("fileexport")));
m_updateEntryMenu->setDelayed(false);
- m_updateAll = new KAction(actionCollection(), "update_entry_all");
+ m_updateAll = new TDEAction(actionCollection(), "update_entry_all");
m_updateAll->setText(i18n("All Sources"));
m_updateAll->setToolTip(i18n("Update entry data from all available sources"));
// m_updateEntryMenu->insert(action);
@@ -699,19 +699,19 @@ void MainWindow::initActions() {
createStandardStatusBarAction();
KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(slotConfigToolbar()), actionCollection());
KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(slotConfigKeys()), actionCollection());
- m_toggleGroupWidget = new KToggleAction(i18n("Show Grou&p View"), 0,
+ m_toggleGroupWidget = new TDEToggleAction(i18n("Show Grou&p View"), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotToggleGroupWidget()),
actionCollection(), "toggle_group_widget");
m_toggleGroupWidget->setToolTip(i18n("Enable/disable the group view"));
m_toggleGroupWidget->setCheckedState(i18n("Hide Grou&p View"));
- m_toggleEntryEditor = new KToggleAction(i18n("Show Entry &Editor"), 0,
+ m_toggleEntryEditor = new TDEToggleAction(i18n("Show Entry &Editor"), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotToggleEntryEditor()),
actionCollection(), "toggle_edit_widget");
m_toggleEntryEditor->setToolTip(i18n("Enable/disable the editor"));
m_toggleEntryEditor->setCheckedState(i18n("Hide Entry &Editor"));
- m_toggleEntryView = new KToggleAction(i18n("Show Entry &View"), 0,
+ m_toggleEntryView = new TDEToggleAction(i18n("Show Entry &View"), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotToggleEntryView()),
actionCollection(), "toggle_entry_view");
m_toggleEntryView->setToolTip(i18n("Enable/disable the entry view"));
@@ -727,19 +727,19 @@ void MainWindow::initActions() {
/*************************************************
* Collection Toolbar
*************************************************/
- (void) new KAction(i18n("Change Grouping"), CTRL + Key_G,
+ (void) new TDEAction(i18n("Change Grouping"), CTRL + Key_G,
TQT_TQOBJECT(this), TQT_SLOT(slotGroupLabelActivated()),
actionCollection(), "change_entry_grouping_accel");
- m_entryGrouping = new KSelectAction(i18n("&Group Selection"), 0, TQT_TQOBJECT(this),
+ m_entryGrouping = new TDESelectAction(i18n("&Group Selection"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotChangeGrouping()),
actionCollection(), "change_entry_grouping");
m_entryGrouping->setToolTip(i18n("Change the grouping of the collection"));
- (void) new KAction(i18n("Filter"), CTRL + Key_F,
+ (void) new TDEAction(i18n("Filter"), CTRL + Key_F,
TQT_TQOBJECT(this), TQT_SLOT(slotFilterLabelActivated()),
actionCollection(), "quick_filter_accel");
- (void) new KAction(i18n("Clear Filter"), TQString::fromLatin1("locationbar_erase"), 0,
+ (void) new TDEAction(i18n("Clear Filter"), TQString::fromLatin1("locationbar_erase"), 0,
TQT_TQOBJECT(this), TQT_SLOT(slotClearFilter()),
actionCollection(), "quick_filter_clear");
@@ -1180,7 +1180,7 @@ void MainWindow::slotFileOpenRecent(const KURL& url_) {
m_fileOpenRecent->setCurrentItem(-1);
}
} else {
- // the KAction shouldn't be checked now
+ // the TDEAction shouldn't be checked now
m_fileOpenRecent->setCurrentItem(-1);
}
@@ -1321,7 +1321,7 @@ bool MainWindow::fileSaveAs() {
if(!url.isEmpty() && url.isValid()) {
GUI::CursorSaver cs(TQt::waitCursor);
if(Data::Document::self()->saveDocument(url)) {
- KRecentDocument::add(url);
+ TDERecentDocument::add(url);
m_fileOpenRecent->addURL(url);
updateCaption(false);
m_newDocument = false;
@@ -1646,7 +1646,7 @@ void MainWindow::slotUpdateCollectionToolBar(Data::CollPtr coll_) {
// this isn't really proper, but works so the combo box width gets adjusted
const int len = m_entryGrouping->containerCount();
for(int i = 0; i < len; ++i) {
- KToolBar* tb = dynamic_cast<KToolBar*>(m_entryGrouping->container(i));
+ TDEToolBar* tb = dynamic_cast<TDEToolBar*>(m_entryGrouping->container(i));
if(tb) {
KComboBox* cb = tb->getCombo(m_entryGrouping->itemId(i));
if(cb) {
@@ -2196,7 +2196,7 @@ void MainWindow::slotUpdateToolbarIcons() {
// since the toolbar icon is probably a different size than the menu item icon
// superimpose it on the "mime_empty" icon
- KToolBar* tb = toolBar("collectionToolBar");
+ TDEToolBar* tb = toolBar("collectionToolBar");
if(!tb) {
return;
}
@@ -2213,7 +2213,7 @@ void MainWindow::slotUpdateToolbarIcons() {
void MainWindow::slotGroupLabelActivated() {
// need entry grouping combo id
- KToolBar* tb = toolBar("collectionToolBar");
+ TDEToolBar* tb = toolBar("collectionToolBar");
if(!tb) {
return;
}
@@ -2278,7 +2278,7 @@ void MainWindow::updateEntrySources() {
}
unplugActionList(TQString::fromLatin1("update_entry_actions"));
- for(TQPtrListIterator<KAction> it(m_fetchActions); it.current(); ++it) {
+ for(TQPtrListIterator<TDEAction> it(m_fetchActions); it.current(); ++it) {
it.current()->unplugAll();
mapper->removeMappings(it.current());
}
@@ -2287,7 +2287,7 @@ void MainWindow::updateEntrySources() {
Fetch::FetcherVec vec = Fetch::Manager::self()->fetchers(Kernel::self()->collectionType());
for(Fetch::FetcherVec::Iterator it = vec.begin(); it != vec.end(); ++it) {
- KAction* action = new KAction(actionCollection());
+ TDEAction* action = new TDEAction(actionCollection());
action->setText(it->source());
action->setToolTip(i18n("Update entry data from %1").arg(it->source()));
action->setIconSet(Fetch::Manager::fetcherIcon(it.data()));
@@ -2381,7 +2381,7 @@ bool MainWindow::importCollection(Data::CollPtr coll_, Import::Action action_) {
void MainWindow::slotURLAction(const KURL& url_) {
Q_ASSERT(url_.protocol() == Latin1Literal("tc"));
TQString actionName = url_.fileName();
- KAction* action = this->action(actionName);
+ TDEAction* action = this->action(actionName);
if(action) {
action->activate();
} else {