|
|
@ -151,7 +151,7 @@ MainWindow::MainWindow(TQWidget* parent_/*=0*/, const char* name_/*=0*/) : TDEMa
|
|
|
|
installEventFilter(drophandler);
|
|
|
|
installEventFilter(drophandler);
|
|
|
|
|
|
|
|
|
|
|
|
MARK_LINE;
|
|
|
|
MARK_LINE;
|
|
|
|
TQTimer::singleShot(0, this, TQT_SLOT(slotInit()));
|
|
|
|
TQTimer::singleShot(0, this, TQ_SLOT(slotInit()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotInit() {
|
|
|
|
void MainWindow::slotInit() {
|
|
|
@ -183,8 +183,8 @@ void MainWindow::initActions() {
|
|
|
|
* File->New menu
|
|
|
|
* File->New menu
|
|
|
|
*************************************************/
|
|
|
|
*************************************************/
|
|
|
|
TQSignalMapper* collectionMapper = new TQSignalMapper(this);
|
|
|
|
TQSignalMapper* collectionMapper = new TQSignalMapper(this);
|
|
|
|
connect(collectionMapper, TQT_SIGNAL(mapped(int)),
|
|
|
|
connect(collectionMapper, TQ_SIGNAL(mapped(int)),
|
|
|
|
this, TQT_SLOT(slotFileNew(int)));
|
|
|
|
this, TQ_SLOT(slotFileNew(int)));
|
|
|
|
|
|
|
|
|
|
|
|
TDEActionMenu* fileNewMenu = new TDEActionMenu(actionCollection(), "file_new_collection");
|
|
|
|
TDEActionMenu* fileNewMenu = new TDEActionMenu(actionCollection(), "file_new_collection");
|
|
|
|
fileNewMenu->setText(i18n("New"));
|
|
|
|
fileNewMenu->setText(i18n("New"));
|
|
|
@ -198,7 +198,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("book")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("book")));
|
|
|
|
action->setToolTip(i18n("Create a new book collection"));
|
|
|
|
action->setToolTip(i18n("Create a new book collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Book);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Book);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_bibtex_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_bibtex_collection");
|
|
|
@ -206,7 +206,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("bibtex")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("bibtex")));
|
|
|
|
action->setToolTip(i18n("Create a new bibtex bibliography"));
|
|
|
|
action->setToolTip(i18n("Create a new bibtex bibliography"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Bibtex);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Bibtex);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_comic_book_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_comic_book_collection");
|
|
|
@ -214,7 +214,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("comic")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("comic")));
|
|
|
|
action->setToolTip(i18n("Create a new comic book collection"));
|
|
|
|
action->setToolTip(i18n("Create a new comic book collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::ComicBook);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::ComicBook);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_video_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_video_collection");
|
|
|
@ -222,7 +222,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("video-x-generic")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("video-x-generic")));
|
|
|
|
action->setToolTip(i18n("Create a new video collection"));
|
|
|
|
action->setToolTip(i18n("Create a new video collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Video);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Video);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_music_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_music_collection");
|
|
|
@ -230,7 +230,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("album")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("album")));
|
|
|
|
action->setToolTip(i18n("Create a new music collection"));
|
|
|
|
action->setToolTip(i18n("Create a new music collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Album);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Album);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_coin_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_coin_collection");
|
|
|
@ -238,7 +238,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("coin")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("coin")));
|
|
|
|
action->setToolTip(i18n("Create a new coin collection"));
|
|
|
|
action->setToolTip(i18n("Create a new coin collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Coin);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Coin);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_stamp_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_stamp_collection");
|
|
|
@ -246,7 +246,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("stamp")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("stamp")));
|
|
|
|
action->setToolTip(i18n("Create a new stamp collection"));
|
|
|
|
action->setToolTip(i18n("Create a new stamp collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Stamp);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Stamp);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_card_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_card_collection");
|
|
|
@ -254,7 +254,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("card")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("card")));
|
|
|
|
action->setToolTip(i18n("Create a new trading card collection"));
|
|
|
|
action->setToolTip(i18n("Create a new trading card collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Card);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Card);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_wine_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_wine_collection");
|
|
|
@ -262,7 +262,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("wine")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("wine")));
|
|
|
|
action->setToolTip(i18n("Create a new wine collection"));
|
|
|
|
action->setToolTip(i18n("Create a new wine collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Wine);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Wine);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_game_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_game_collection");
|
|
|
@ -270,7 +270,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("game")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("game")));
|
|
|
|
action->setToolTip(i18n("Create a new game collection"));
|
|
|
|
action->setToolTip(i18n("Create a new game collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Game);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Game);
|
|
|
|
action = new TDEAction(actionCollection(), "new_boardgame_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_boardgame_collection");
|
|
|
@ -278,7 +278,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("boardgame")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("boardgame")));
|
|
|
|
action->setToolTip(i18n("Create a new board game collection"));
|
|
|
|
action->setToolTip(i18n("Create a new board game collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::BoardGame);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::BoardGame);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_file_catalog");
|
|
|
|
action = new TDEAction(actionCollection(), "new_file_catalog");
|
|
|
@ -286,7 +286,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("file")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("file")));
|
|
|
|
action->setToolTip(i18n("Create a new file catalog"));
|
|
|
|
action->setToolTip(i18n("Create a new file catalog"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::File);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::File);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_custom_collection");
|
|
|
|
action = new TDEAction(actionCollection(), "new_custom_collection");
|
|
|
@ -294,30 +294,30 @@ void MainWindow::initActions() {
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("document-new")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("document-new")));
|
|
|
|
action->setToolTip(i18n("Create a new custom collection"));
|
|
|
|
action->setToolTip(i18n("Create a new custom collection"));
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), collectionMapper, TQ_SLOT(map()));
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Base);
|
|
|
|
collectionMapper->setMapping(action, Data::Collection::Base);
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
/*************************************************
|
|
|
|
* File menu
|
|
|
|
* File menu
|
|
|
|
*************************************************/
|
|
|
|
*************************************************/
|
|
|
|
action = KStdAction::open(this, TQT_SLOT(slotFileOpen()), actionCollection());
|
|
|
|
action = KStdAction::open(this, TQ_SLOT(slotFileOpen()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Open an existing document"));
|
|
|
|
action->setToolTip(i18n("Open an existing document"));
|
|
|
|
m_fileOpenRecent = KStdAction::openRecent(this, TQT_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
|
|
|
|
m_fileOpenRecent = KStdAction::openRecent(this, TQ_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
|
|
|
|
m_fileOpenRecent->setToolTip(i18n("Open a recently used file"));
|
|
|
|
m_fileOpenRecent->setToolTip(i18n("Open a recently used file"));
|
|
|
|
m_fileSave = KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection());
|
|
|
|
m_fileSave = KStdAction::save(this, TQ_SLOT(slotFileSave()), actionCollection());
|
|
|
|
m_fileSave->setToolTip(i18n("Save the document"));
|
|
|
|
m_fileSave->setToolTip(i18n("Save the document"));
|
|
|
|
action = KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
|
|
|
|
action = KStdAction::saveAs(this, TQ_SLOT(slotFileSaveAs()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Save the document as a different file..."));
|
|
|
|
action->setToolTip(i18n("Save the document as a different file..."));
|
|
|
|
action = KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection());
|
|
|
|
action = KStdAction::print(this, TQ_SLOT(slotFilePrint()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Print the contents of the document..."));
|
|
|
|
action->setToolTip(i18n("Print the contents of the document..."));
|
|
|
|
action = KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
|
|
|
|
action = KStdAction::quit(this, TQ_SLOT(slotFileQuit()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Quit the application"));
|
|
|
|
action->setToolTip(i18n("Quit the application"));
|
|
|
|
|
|
|
|
|
|
|
|
/**************** Import Menu ***************************/
|
|
|
|
/**************** Import Menu ***************************/
|
|
|
|
|
|
|
|
|
|
|
|
TQSignalMapper* importMapper = new TQSignalMapper(this);
|
|
|
|
TQSignalMapper* importMapper = new TQSignalMapper(this);
|
|
|
|
connect(importMapper, TQT_SIGNAL(mapped(int)),
|
|
|
|
connect(importMapper, TQ_SIGNAL(mapped(int)),
|
|
|
|
this, TQT_SLOT(slotFileImport(int)));
|
|
|
|
this, TQ_SLOT(slotFileImport(int)));
|
|
|
|
|
|
|
|
|
|
|
|
TDEActionMenu* importMenu = new TDEActionMenu(actionCollection(), "file_import");
|
|
|
|
TDEActionMenu* importMenu = new TDEActionMenu(actionCollection(), "file_import");
|
|
|
|
importMenu->setText(i18n("&Import"));
|
|
|
|
importMenu->setText(i18n("&Import"));
|
|
|
@ -330,7 +330,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import another Tellico data file"));
|
|
|
|
action->setToolTip(i18n("Import another Tellico data file"));
|
|
|
|
action->setIcon(TQString::fromLatin1("tellico"));
|
|
|
|
action->setIcon(TQString::fromLatin1("tellico"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::TellicoXML);
|
|
|
|
importMapper->setMapping(action, Import::TellicoXML);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_csv");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_csv");
|
|
|
@ -338,7 +338,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import a CSV file"));
|
|
|
|
action->setToolTip(i18n("Import a CSV file"));
|
|
|
|
action->setIcon(MIME_ICON("text/csv"));
|
|
|
|
action->setIcon(MIME_ICON("text/csv"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::CSV);
|
|
|
|
importMapper->setMapping(action, Import::CSV);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_mods");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_mods");
|
|
|
@ -346,7 +346,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import a MODS data file"));
|
|
|
|
action->setToolTip(i18n("Import a MODS data file"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::MODS);
|
|
|
|
importMapper->setMapping(action, Import::MODS);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_alexandria");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_alexandria");
|
|
|
@ -354,7 +354,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import data from the Alexandria book collection manager"));
|
|
|
|
action->setToolTip(i18n("Import data from the Alexandria book collection manager"));
|
|
|
|
action->setIcon(TQString::fromLatin1("alexandria"));
|
|
|
|
action->setIcon(TQString::fromLatin1("alexandria"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::Alexandria);
|
|
|
|
importMapper->setMapping(action, Import::Alexandria);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_delicious");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_delicious");
|
|
|
@ -362,7 +362,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import data from Delicious Library"));
|
|
|
|
action->setToolTip(i18n("Import data from Delicious Library"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::Delicious);
|
|
|
|
importMapper->setMapping(action, Import::Delicious);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_referencer");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_referencer");
|
|
|
@ -370,7 +370,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import data from Referencer"));
|
|
|
|
action->setToolTip(i18n("Import data from Referencer"));
|
|
|
|
action->setIcon(TQString::fromLatin1("referencer"));
|
|
|
|
action->setIcon(TQString::fromLatin1("referencer"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::Referencer);
|
|
|
|
importMapper->setMapping(action, Import::Referencer);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_bibtex");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_bibtex");
|
|
|
@ -378,7 +378,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import a bibtex bibliography file"));
|
|
|
|
action->setToolTip(i18n("Import a bibtex bibliography file"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-bibtex"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-bibtex"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::Bibtex);
|
|
|
|
importMapper->setMapping(action, Import::Bibtex);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_bibtexml");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_bibtexml");
|
|
|
@ -386,7 +386,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import a Bibtexml bibliography file"));
|
|
|
|
action->setToolTip(i18n("Import a Bibtexml bibliography file"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::Bibtexml);
|
|
|
|
importMapper->setMapping(action, Import::Bibtexml);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_ris");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_ris");
|
|
|
@ -394,7 +394,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import an RIS reference file"));
|
|
|
|
action->setToolTip(i18n("Import an RIS reference file"));
|
|
|
|
action->setIcon(MIME_ICON("application/x-research-info-systems"));
|
|
|
|
action->setIcon(MIME_ICON("application/x-research-info-systems"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::RIS);
|
|
|
|
importMapper->setMapping(action, Import::RIS);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_pdf");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_pdf");
|
|
|
@ -402,7 +402,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import a PDF file"));
|
|
|
|
action->setToolTip(i18n("Import a PDF file"));
|
|
|
|
action->setIcon(MIME_ICON("application/pdf"));
|
|
|
|
action->setIcon(MIME_ICON("application/pdf"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::PDF);
|
|
|
|
importMapper->setMapping(action, Import::PDF);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_audiofile");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_audiofile");
|
|
|
@ -410,7 +410,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import meta-data from audio files"));
|
|
|
|
action->setToolTip(i18n("Import meta-data from audio files"));
|
|
|
|
action->setIcon(MIME_ICON("audio/x-mp3"));
|
|
|
|
action->setIcon(MIME_ICON("audio/x-mp3"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::AudioFile);
|
|
|
|
importMapper->setMapping(action, Import::AudioFile);
|
|
|
|
#ifndef HAVE_TAGLIB
|
|
|
|
#ifndef HAVE_TAGLIB
|
|
|
|
action->setEnabled(false);
|
|
|
|
action->setEnabled(false);
|
|
|
@ -421,7 +421,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import audio CD information"));
|
|
|
|
action->setToolTip(i18n("Import audio CD information"));
|
|
|
|
action->setIcon(MIME_ICON("media/audiocd"));
|
|
|
|
action->setIcon(MIME_ICON("media/audiocd"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::FreeDB);
|
|
|
|
importMapper->setMapping(action, Import::FreeDB);
|
|
|
|
#ifndef HAVE_KCDDB
|
|
|
|
#ifndef HAVE_KCDDB
|
|
|
|
action->setEnabled(false);
|
|
|
|
action->setEnabled(false);
|
|
|
@ -432,7 +432,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import a GCstar data file"));
|
|
|
|
action->setToolTip(i18n("Import a GCstar data file"));
|
|
|
|
action->setIcon(TQString::fromLatin1("gcstar"));
|
|
|
|
action->setIcon(TQString::fromLatin1("gcstar"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::GCfilms);
|
|
|
|
importMapper->setMapping(action, Import::GCfilms);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_griffith");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_griffith");
|
|
|
@ -440,7 +440,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import a Griffith database"));
|
|
|
|
action->setToolTip(i18n("Import a Griffith database"));
|
|
|
|
action->setIcon(TQString::fromLatin1("griffith"));
|
|
|
|
action->setIcon(TQString::fromLatin1("griffith"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::Griffith);
|
|
|
|
importMapper->setMapping(action, Import::Griffith);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_amc");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_amc");
|
|
|
@ -448,7 +448,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import an Ant Movie Catalog data file"));
|
|
|
|
action->setToolTip(i18n("Import an Ant Movie Catalog data file"));
|
|
|
|
action->setIcon(MIME_ICON("application/x-crossover-amc"));
|
|
|
|
action->setIcon(MIME_ICON("application/x-crossover-amc"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::AMC);
|
|
|
|
importMapper->setMapping(action, Import::AMC);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_filelisting");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_filelisting");
|
|
|
@ -456,7 +456,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import information about files in a folder"));
|
|
|
|
action->setToolTip(i18n("Import information about files in a folder"));
|
|
|
|
action->setIcon(MIME_ICON("inode/directory"));
|
|
|
|
action->setIcon(MIME_ICON("inode/directory"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::FileListing);
|
|
|
|
importMapper->setMapping(action, Import::FileListing);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_xslt");
|
|
|
|
action = new TDEAction(actionCollection(), "file_import_xslt");
|
|
|
@ -464,14 +464,14 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Import using an XSL Transform"));
|
|
|
|
action->setToolTip(i18n("Import using an XSL Transform"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-xslt"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-xslt"));
|
|
|
|
importMenu->insert(action);
|
|
|
|
importMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), importMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), importMapper, TQ_SLOT(map()));
|
|
|
|
importMapper->setMapping(action, Import::XSLT);
|
|
|
|
importMapper->setMapping(action, Import::XSLT);
|
|
|
|
|
|
|
|
|
|
|
|
/**************** Export Menu ***************************/
|
|
|
|
/**************** Export Menu ***************************/
|
|
|
|
|
|
|
|
|
|
|
|
TQSignalMapper* exportMapper = new TQSignalMapper(this);
|
|
|
|
TQSignalMapper* exportMapper = new TQSignalMapper(this);
|
|
|
|
connect(exportMapper, TQT_SIGNAL(mapped(int)),
|
|
|
|
connect(exportMapper, TQ_SIGNAL(mapped(int)),
|
|
|
|
this, TQT_SLOT(slotFileExport(int)));
|
|
|
|
this, TQ_SLOT(slotFileExport(int)));
|
|
|
|
|
|
|
|
|
|
|
|
TDEActionMenu* exportMenu = new TDEActionMenu(actionCollection(), "file_export");
|
|
|
|
TDEActionMenu* exportMenu = new TDEActionMenu(actionCollection(), "file_export");
|
|
|
|
exportMenu->setText(i18n("&Export"));
|
|
|
|
exportMenu->setText(i18n("&Export"));
|
|
|
@ -484,7 +484,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to a Tellico XML file"));
|
|
|
|
action->setToolTip(i18n("Export to a Tellico XML file"));
|
|
|
|
action->setIcon(TQString::fromLatin1("tellico"));
|
|
|
|
action->setIcon(TQString::fromLatin1("tellico"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::TellicoXML);
|
|
|
|
exportMapper->setMapping(action, Export::TellicoXML);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_zip");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_zip");
|
|
|
@ -492,7 +492,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to a Tellico Zip file"));
|
|
|
|
action->setToolTip(i18n("Export to a Tellico Zip file"));
|
|
|
|
action->setIcon(TQString::fromLatin1("tellico"));
|
|
|
|
action->setIcon(TQString::fromLatin1("tellico"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::TellicoZip);
|
|
|
|
exportMapper->setMapping(action, Export::TellicoZip);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_html");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_html");
|
|
|
@ -500,7 +500,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to an HTML file"));
|
|
|
|
action->setToolTip(i18n("Export to an HTML file"));
|
|
|
|
action->setIcon(MIME_ICON("text/html"));
|
|
|
|
action->setIcon(MIME_ICON("text/html"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::HTML);
|
|
|
|
exportMapper->setMapping(action, Export::HTML);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_csv");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_csv");
|
|
|
@ -508,7 +508,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to a comma-separated values file"));
|
|
|
|
action->setToolTip(i18n("Export to a comma-separated values file"));
|
|
|
|
action->setIcon(MIME_ICON("text/csv"));
|
|
|
|
action->setIcon(MIME_ICON("text/csv"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::CSV);
|
|
|
|
exportMapper->setMapping(action, Export::CSV);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_pilotdb");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_pilotdb");
|
|
|
@ -516,7 +516,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to a PilotDB database"));
|
|
|
|
action->setToolTip(i18n("Export to a PilotDB database"));
|
|
|
|
action->setIcon(MIME_ICON("application/vnd.palm"));
|
|
|
|
action->setIcon(MIME_ICON("application/vnd.palm"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::PilotDB);
|
|
|
|
exportMapper->setMapping(action, Export::PilotDB);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_alexandria");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_alexandria");
|
|
|
@ -524,7 +524,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to an Alexandria library"));
|
|
|
|
action->setToolTip(i18n("Export to an Alexandria library"));
|
|
|
|
action->setIcon(TQString::fromLatin1("alexandria"));
|
|
|
|
action->setIcon(TQString::fromLatin1("alexandria"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::Alexandria);
|
|
|
|
exportMapper->setMapping(action, Export::Alexandria);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_bibtex");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_bibtex");
|
|
|
@ -532,7 +532,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to a bibtex file"));
|
|
|
|
action->setToolTip(i18n("Export to a bibtex file"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-bibtex"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-bibtex"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::Bibtex);
|
|
|
|
exportMapper->setMapping(action, Export::Bibtex);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_bibtexml");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_bibtexml");
|
|
|
@ -540,7 +540,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to a Bibtexml file"));
|
|
|
|
action->setToolTip(i18n("Export to a Bibtexml file"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::Bibtexml);
|
|
|
|
exportMapper->setMapping(action, Export::Bibtexml);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_onix");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_onix");
|
|
|
@ -548,7 +548,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to an ONIX file"));
|
|
|
|
action->setToolTip(i18n("Export to an ONIX file"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
action->setIcon(MIME_ICON("text/xml"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::ONIX);
|
|
|
|
exportMapper->setMapping(action, Export::ONIX);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_gcfilms");
|
|
|
|
action = new TDEAction(actionCollection(), "file_export_gcfilms");
|
|
|
@ -556,7 +556,7 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export to a GCfilms data file"));
|
|
|
|
action->setToolTip(i18n("Export to a GCfilms data file"));
|
|
|
|
action->setIcon(TQString::fromLatin1("gcstar"));
|
|
|
|
action->setIcon(TQString::fromLatin1("gcstar"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::GCfilms);
|
|
|
|
exportMapper->setMapping(action, Export::GCfilms);
|
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#if 0
|
|
|
@ -569,30 +569,30 @@ void MainWindow::initActions() {
|
|
|
|
action->setToolTip(i18n("Export using an XSL Transform"));
|
|
|
|
action->setToolTip(i18n("Export using an XSL Transform"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-xslt"));
|
|
|
|
action->setIcon(MIME_ICON("text/x-xslt"));
|
|
|
|
exportMenu->insert(action);
|
|
|
|
exportMenu->insert(action);
|
|
|
|
connect(action, TQT_SIGNAL(activated()), exportMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), exportMapper, TQ_SLOT(map()));
|
|
|
|
exportMapper->setMapping(action, Export::XSLT);
|
|
|
|
exportMapper->setMapping(action, Export::XSLT);
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
/*************************************************
|
|
|
|
* Edit menu
|
|
|
|
* Edit menu
|
|
|
|
*************************************************/
|
|
|
|
*************************************************/
|
|
|
|
action = KStdAction::cut(this, TQT_SLOT(slotEditCut()), actionCollection());
|
|
|
|
action = KStdAction::cut(this, TQ_SLOT(slotEditCut()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Cut the selected text and puts it in the clipboard"));
|
|
|
|
action->setToolTip(i18n("Cut the selected text and puts it in the clipboard"));
|
|
|
|
action = KStdAction::copy(this, TQT_SLOT(slotEditCopy()), actionCollection());
|
|
|
|
action = KStdAction::copy(this, TQ_SLOT(slotEditCopy()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Copy the selected text to the clipboard"));
|
|
|
|
action->setToolTip(i18n("Copy the selected text to the clipboard"));
|
|
|
|
action = KStdAction::paste(this, TQT_SLOT(slotEditPaste()), actionCollection());
|
|
|
|
action = KStdAction::paste(this, TQ_SLOT(slotEditPaste()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Paste the clipboard contents"));
|
|
|
|
action->setToolTip(i18n("Paste the clipboard contents"));
|
|
|
|
action = KStdAction::selectAll(this, TQT_SLOT(slotEditSelectAll()), actionCollection());
|
|
|
|
action = KStdAction::selectAll(this, TQ_SLOT(slotEditSelectAll()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Select all the entries in the collection"));
|
|
|
|
action->setToolTip(i18n("Select all the entries in the collection"));
|
|
|
|
action = KStdAction::deselect(this, TQT_SLOT(slotEditDeselect()), actionCollection());
|
|
|
|
action = KStdAction::deselect(this, TQ_SLOT(slotEditDeselect()), actionCollection());
|
|
|
|
action->setToolTip(i18n("Deselect all the entries in the collection"));
|
|
|
|
action->setToolTip(i18n("Deselect all the entries in the collection"));
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(i18n("Internet Search..."), TQString::fromLatin1("wizard"), CTRL + Key_M,
|
|
|
|
action = new TDEAction(i18n("Internet Search..."), TQString::fromLatin1("wizard"), CTRL + Key_M,
|
|
|
|
this, TQT_SLOT(slotShowFetchDialog()),
|
|
|
|
this, TQ_SLOT(slotShowFetchDialog()),
|
|
|
|
actionCollection(), "edit_search_internet");
|
|
|
|
actionCollection(), "edit_search_internet");
|
|
|
|
action->setToolTip(i18n("Search the internet..."));
|
|
|
|
action->setToolTip(i18n("Search the internet..."));
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(i18n("Advanced &Filter..."), TQString::fromLatin1("filter"), CTRL + Key_J,
|
|
|
|
action = new TDEAction(i18n("Advanced &Filter..."), TQString::fromLatin1("filter"), CTRL + Key_J,
|
|
|
|
this, TQT_SLOT(slotShowFilterDialog()),
|
|
|
|
this, TQ_SLOT(slotShowFilterDialog()),
|
|
|
|
actionCollection(), "filter_dialog");
|
|
|
|
actionCollection(), "filter_dialog");
|
|
|
|
action->setToolTip(i18n("Filter the collection"));
|
|
|
|
action->setToolTip(i18n("Filter the collection"));
|
|
|
|
|
|
|
|
|
|
|
@ -600,86 +600,86 @@ void MainWindow::initActions() {
|
|
|
|
* Collection menu
|
|
|
|
* Collection menu
|
|
|
|
*************************************************/
|
|
|
|
*************************************************/
|
|
|
|
m_newEntry = new TDEAction(i18n("&New Entry..."), TQString::fromLatin1("document-new"), CTRL + Key_N,
|
|
|
|
m_newEntry = new TDEAction(i18n("&New Entry..."), TQString::fromLatin1("document-new"), CTRL + Key_N,
|
|
|
|
this, TQT_SLOT(slotNewEntry()),
|
|
|
|
this, TQ_SLOT(slotNewEntry()),
|
|
|
|
actionCollection(), "coll_new_entry");
|
|
|
|
actionCollection(), "coll_new_entry");
|
|
|
|
m_newEntry->setToolTip(i18n("Create a new entry"));
|
|
|
|
m_newEntry->setToolTip(i18n("Create a new entry"));
|
|
|
|
m_editEntry = new TDEAction(i18n("&Edit Entry..."), TQString::fromLatin1("edit"), CTRL + Key_E,
|
|
|
|
m_editEntry = new TDEAction(i18n("&Edit Entry..."), TQString::fromLatin1("edit"), CTRL + Key_E,
|
|
|
|
this, TQT_SLOT(slotShowEntryEditor()),
|
|
|
|
this, TQ_SLOT(slotShowEntryEditor()),
|
|
|
|
actionCollection(), "coll_edit_entry");
|
|
|
|
actionCollection(), "coll_edit_entry");
|
|
|
|
m_editEntry->setToolTip(i18n("Edit the selected entries"));
|
|
|
|
m_editEntry->setToolTip(i18n("Edit the selected entries"));
|
|
|
|
m_copyEntry = new TDEAction(i18n("D&uplicate Entry"), TQString::fromLatin1("edit-copy"), CTRL + Key_Y,
|
|
|
|
m_copyEntry = new TDEAction(i18n("D&uplicate Entry"), TQString::fromLatin1("edit-copy"), CTRL + Key_Y,
|
|
|
|
Controller::self(), TQT_SLOT(slotCopySelectedEntries()),
|
|
|
|
Controller::self(), TQ_SLOT(slotCopySelectedEntries()),
|
|
|
|
actionCollection(), "coll_copy_entry");
|
|
|
|
actionCollection(), "coll_copy_entry");
|
|
|
|
m_copyEntry->setToolTip(i18n("Copy the selected entries"));
|
|
|
|
m_copyEntry->setToolTip(i18n("Copy the selected entries"));
|
|
|
|
m_deleteEntry = new TDEAction(i18n("&Delete Entry"), TQString::fromLatin1("edit-delete"), CTRL + Key_D,
|
|
|
|
m_deleteEntry = new TDEAction(i18n("&Delete Entry"), TQString::fromLatin1("edit-delete"), CTRL + Key_D,
|
|
|
|
Controller::self(), TQT_SLOT(slotDeleteSelectedEntries()),
|
|
|
|
Controller::self(), TQ_SLOT(slotDeleteSelectedEntries()),
|
|
|
|
actionCollection(), "coll_delete_entry");
|
|
|
|
actionCollection(), "coll_delete_entry");
|
|
|
|
m_deleteEntry->setToolTip(i18n("Delete the selected entries"));
|
|
|
|
m_deleteEntry->setToolTip(i18n("Delete the selected entries"));
|
|
|
|
m_mergeEntry = new TDEAction(i18n("&Merge Entries"), TQString::fromLatin1("edit-copy"), CTRL + Key_G,
|
|
|
|
m_mergeEntry = new TDEAction(i18n("&Merge Entries"), TQString::fromLatin1("edit-copy"), CTRL + Key_G,
|
|
|
|
Controller::self(), TQT_SLOT(slotMergeSelectedEntries()),
|
|
|
|
Controller::self(), TQ_SLOT(slotMergeSelectedEntries()),
|
|
|
|
actionCollection(), "coll_merge_entry");
|
|
|
|
actionCollection(), "coll_merge_entry");
|
|
|
|
m_mergeEntry->setToolTip(i18n("Merge the selected entries"));
|
|
|
|
m_mergeEntry->setToolTip(i18n("Merge the selected entries"));
|
|
|
|
m_mergeEntry->setEnabled(false); // gets enabled when more than 1 entry is selected
|
|
|
|
m_mergeEntry->setEnabled(false); // gets enabled when more than 1 entry is selected
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(i18n("&Generate Reports..."), TQString::fromLatin1("text-x-generic"), 0, this,
|
|
|
|
action = new TDEAction(i18n("&Generate Reports..."), TQString::fromLatin1("text-x-generic"), 0, this,
|
|
|
|
TQT_SLOT(slotShowReportDialog()),
|
|
|
|
TQ_SLOT(slotShowReportDialog()),
|
|
|
|
actionCollection(), "coll_reports");
|
|
|
|
actionCollection(), "coll_reports");
|
|
|
|
action->setToolTip(i18n("Generate collection reports"));
|
|
|
|
action->setToolTip(i18n("Generate collection reports"));
|
|
|
|
m_checkOutEntry = new TDEAction(i18n("Check-&out..."), TQString::fromLatin1("2uparrow"), 0,
|
|
|
|
m_checkOutEntry = new TDEAction(i18n("Check-&out..."), TQString::fromLatin1("2uparrow"), 0,
|
|
|
|
Controller::self(), TQT_SLOT(slotCheckOut()),
|
|
|
|
Controller::self(), TQ_SLOT(slotCheckOut()),
|
|
|
|
actionCollection(), "coll_checkout");
|
|
|
|
actionCollection(), "coll_checkout");
|
|
|
|
m_checkOutEntry->setToolTip(i18n("Check-out the selected items"));
|
|
|
|
m_checkOutEntry->setToolTip(i18n("Check-out the selected items"));
|
|
|
|
m_checkInEntry = new TDEAction(i18n("Check-&in"), TQString::fromLatin1("2downarrow"), 0,
|
|
|
|
m_checkInEntry = new TDEAction(i18n("Check-&in"), TQString::fromLatin1("2downarrow"), 0,
|
|
|
|
Controller::self(), TQT_SLOT(slotCheckIn()),
|
|
|
|
Controller::self(), TQ_SLOT(slotCheckIn()),
|
|
|
|
actionCollection(), "coll_checkin");
|
|
|
|
actionCollection(), "coll_checkin");
|
|
|
|
m_checkInEntry->setToolTip(i18n("Check-in the selected items"));
|
|
|
|
m_checkInEntry->setToolTip(i18n("Check-in the selected items"));
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(i18n("&Rename Collection..."), TQString::fromLatin1("edit-clear"), CTRL + Key_R,
|
|
|
|
action = new TDEAction(i18n("&Rename Collection..."), TQString::fromLatin1("edit-clear"), CTRL + Key_R,
|
|
|
|
this, TQT_SLOT(slotRenameCollection()),
|
|
|
|
this, TQ_SLOT(slotRenameCollection()),
|
|
|
|
actionCollection(), "coll_rename_collection");
|
|
|
|
actionCollection(), "coll_rename_collection");
|
|
|
|
action->setToolTip(i18n("Rename the collection"));
|
|
|
|
action->setToolTip(i18n("Rename the collection"));
|
|
|
|
action = new TDEAction(i18n("Collection &Fields..."), TQString::fromLatin1("edit"), CTRL + Key_U,
|
|
|
|
action = new TDEAction(i18n("Collection &Fields..."), TQString::fromLatin1("edit"), CTRL + Key_U,
|
|
|
|
this, TQT_SLOT(slotShowCollectionFieldsDialog()),
|
|
|
|
this, TQ_SLOT(slotShowCollectionFieldsDialog()),
|
|
|
|
actionCollection(), "coll_fields");
|
|
|
|
actionCollection(), "coll_fields");
|
|
|
|
action->setToolTip(i18n("Modify the collection fields"));
|
|
|
|
action->setToolTip(i18n("Modify the collection fields"));
|
|
|
|
action = new TDEAction(i18n("Convert to &Bibliography"), 0,
|
|
|
|
action = new TDEAction(i18n("Convert to &Bibliography"), 0,
|
|
|
|
this, TQT_SLOT(slotConvertToBibliography()),
|
|
|
|
this, TQ_SLOT(slotConvertToBibliography()),
|
|
|
|
actionCollection(), "coll_convert_bibliography");
|
|
|
|
actionCollection(), "coll_convert_bibliography");
|
|
|
|
action->setToolTip(i18n("Convert a book collection to a bibliography"));
|
|
|
|
action->setToolTip(i18n("Convert a book collection to a bibliography"));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("bibtex")));
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("bibtex")));
|
|
|
|
action = new TDEAction(i18n("String &Macros..."), TQString::fromLatin1("view_text"), 0,
|
|
|
|
action = new TDEAction(i18n("String &Macros..."), TQString::fromLatin1("view_text"), 0,
|
|
|
|
this, TQT_SLOT(slotShowStringMacroDialog()),
|
|
|
|
this, TQ_SLOT(slotShowStringMacroDialog()),
|
|
|
|
actionCollection(), "coll_string_macros");
|
|
|
|
actionCollection(), "coll_string_macros");
|
|
|
|
action->setToolTip(i18n("Edit the bibtex string macros"));
|
|
|
|
action->setToolTip(i18n("Edit the bibtex string macros"));
|
|
|
|
|
|
|
|
|
|
|
|
TQSignalMapper* citeMapper = new TQSignalMapper(this);
|
|
|
|
TQSignalMapper* citeMapper = new TQSignalMapper(this);
|
|
|
|
connect(citeMapper, TQT_SIGNAL(mapped(int)),
|
|
|
|
connect(citeMapper, TQ_SIGNAL(mapped(int)),
|
|
|
|
this, TQT_SLOT(slotCiteEntry(int)));
|
|
|
|
this, TQ_SLOT(slotCiteEntry(int)));
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "cite_clipboard");
|
|
|
|
action = new TDEAction(actionCollection(), "cite_clipboard");
|
|
|
|
action->setText(i18n("Copy Bibtex to Cli&pboard"));
|
|
|
|
action->setText(i18n("Copy Bibtex to Cli&pboard"));
|
|
|
|
action->setToolTip(i18n("Copy bibtex citations to the clipboard"));
|
|
|
|
action->setToolTip(i18n("Copy bibtex citations to the clipboard"));
|
|
|
|
action->setIcon(TQString::fromLatin1("edit-paste"));
|
|
|
|
action->setIcon(TQString::fromLatin1("edit-paste"));
|
|
|
|
connect(action, TQT_SIGNAL(activated()), citeMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), citeMapper, TQ_SLOT(map()));
|
|
|
|
citeMapper->setMapping(action, Cite::CiteClipboard);
|
|
|
|
citeMapper->setMapping(action, Cite::CiteClipboard);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "cite_lyxpipe");
|
|
|
|
action = new TDEAction(actionCollection(), "cite_lyxpipe");
|
|
|
|
action->setText(i18n("Cite Entry in &LyX"));
|
|
|
|
action->setText(i18n("Cite Entry in &LyX"));
|
|
|
|
action->setToolTip(i18n("Cite the selected entries in LyX"));
|
|
|
|
action->setToolTip(i18n("Cite the selected entries in LyX"));
|
|
|
|
action->setIcon(TQString::fromLatin1("lyx"));
|
|
|
|
action->setIcon(TQString::fromLatin1("lyx"));
|
|
|
|
connect(action, TQT_SIGNAL(activated()), citeMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), citeMapper, TQ_SLOT(map()));
|
|
|
|
citeMapper->setMapping(action, Cite::CiteLyxpipe);
|
|
|
|
citeMapper->setMapping(action, Cite::CiteLyxpipe);
|
|
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "cite_openoffice");
|
|
|
|
action = new TDEAction(actionCollection(), "cite_openoffice");
|
|
|
|
action->setText(i18n("Ci&te Entry in OpenOffice.org"));
|
|
|
|
action->setText(i18n("Ci&te Entry in OpenOffice.org"));
|
|
|
|
action->setToolTip(i18n("Cite the selected entries in OpenOffice.org"));
|
|
|
|
action->setToolTip(i18n("Cite the selected entries in OpenOffice.org"));
|
|
|
|
action->setIcon(TQString::fromLatin1("ooo-writer"));
|
|
|
|
action->setIcon(TQString::fromLatin1("ooo-writer"));
|
|
|
|
connect(action, TQT_SIGNAL(activated()), citeMapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), citeMapper, TQ_SLOT(map()));
|
|
|
|
citeMapper->setMapping(action, Cite::CiteOpenOffice);
|
|
|
|
citeMapper->setMapping(action, Cite::CiteOpenOffice);
|
|
|
|
|
|
|
|
|
|
|
|
TQSignalMapper* updateMapper = new TQSignalMapper(this, "update_mapper");
|
|
|
|
TQSignalMapper* updateMapper = new TQSignalMapper(this, "update_mapper");
|
|
|
|
connect(updateMapper, TQT_SIGNAL(mapped(const TQString&)),
|
|
|
|
connect(updateMapper, TQ_SIGNAL(mapped(const TQString&)),
|
|
|
|
Controller::self(), TQT_SLOT(slotUpdateSelectedEntries(const TQString&)));
|
|
|
|
Controller::self(), TQ_SLOT(slotUpdateSelectedEntries(const TQString&)));
|
|
|
|
|
|
|
|
|
|
|
|
m_updateEntryMenu = new TDEActionMenu(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->setIconSet(BarIconSet(TQString::fromLatin1("fileexport")));
|
|
|
@ -689,7 +689,7 @@ void MainWindow::initActions() {
|
|
|
|
m_updateAll->setText(i18n("All Sources"));
|
|
|
|
m_updateAll->setText(i18n("All Sources"));
|
|
|
|
m_updateAll->setToolTip(i18n("Update entry data from all available sources"));
|
|
|
|
m_updateAll->setToolTip(i18n("Update entry data from all available sources"));
|
|
|
|
// m_updateEntryMenu->insert(action);
|
|
|
|
// m_updateEntryMenu->insert(action);
|
|
|
|
connect(m_updateAll, TQT_SIGNAL(activated()), updateMapper, TQT_SLOT(map()));
|
|
|
|
connect(m_updateAll, TQ_SIGNAL(activated()), updateMapper, TQ_SLOT(map()));
|
|
|
|
updateMapper->setMapping(m_updateAll, TQString::fromLatin1("_all"));
|
|
|
|
updateMapper->setMapping(m_updateAll, TQString::fromLatin1("_all"));
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
/*************************************************
|
|
|
@ -697,50 +697,50 @@ void MainWindow::initActions() {
|
|
|
|
*************************************************/
|
|
|
|
*************************************************/
|
|
|
|
setStandardToolBarMenuEnabled(true);
|
|
|
|
setStandardToolBarMenuEnabled(true);
|
|
|
|
createStandardStatusBarAction();
|
|
|
|
createStandardStatusBarAction();
|
|
|
|
KStdAction::configureToolbars(this, TQT_SLOT(slotConfigToolbar()), actionCollection());
|
|
|
|
KStdAction::configureToolbars(this, TQ_SLOT(slotConfigToolbar()), actionCollection());
|
|
|
|
KStdAction::keyBindings(this, TQT_SLOT(slotConfigKeys()), actionCollection());
|
|
|
|
KStdAction::keyBindings(this, TQ_SLOT(slotConfigKeys()), actionCollection());
|
|
|
|
m_toggleGroupWidget = new TDEToggleAction(i18n("Show Grou&p View"), 0,
|
|
|
|
m_toggleGroupWidget = new TDEToggleAction(i18n("Show Grou&p View"), 0,
|
|
|
|
this, TQT_SLOT(slotToggleGroupWidget()),
|
|
|
|
this, TQ_SLOT(slotToggleGroupWidget()),
|
|
|
|
actionCollection(), "toggle_group_widget");
|
|
|
|
actionCollection(), "toggle_group_widget");
|
|
|
|
m_toggleGroupWidget->setToolTip(i18n("Enable/disable the group view"));
|
|
|
|
m_toggleGroupWidget->setToolTip(i18n("Enable/disable the group view"));
|
|
|
|
m_toggleGroupWidget->setCheckedState(i18n("Hide Grou&p View"));
|
|
|
|
m_toggleGroupWidget->setCheckedState(i18n("Hide Grou&p View"));
|
|
|
|
|
|
|
|
|
|
|
|
m_toggleEntryEditor = new TDEToggleAction(i18n("Show Entry &Editor"), 0,
|
|
|
|
m_toggleEntryEditor = new TDEToggleAction(i18n("Show Entry &Editor"), 0,
|
|
|
|
this, TQT_SLOT(slotToggleEntryEditor()),
|
|
|
|
this, TQ_SLOT(slotToggleEntryEditor()),
|
|
|
|
actionCollection(), "toggle_edit_widget");
|
|
|
|
actionCollection(), "toggle_edit_widget");
|
|
|
|
m_toggleEntryEditor->setToolTip(i18n("Enable/disable the editor"));
|
|
|
|
m_toggleEntryEditor->setToolTip(i18n("Enable/disable the editor"));
|
|
|
|
m_toggleEntryEditor->setCheckedState(i18n("Hide Entry &Editor"));
|
|
|
|
m_toggleEntryEditor->setCheckedState(i18n("Hide Entry &Editor"));
|
|
|
|
|
|
|
|
|
|
|
|
m_toggleEntryView = new TDEToggleAction(i18n("Show Entry &View"), 0,
|
|
|
|
m_toggleEntryView = new TDEToggleAction(i18n("Show Entry &View"), 0,
|
|
|
|
this, TQT_SLOT(slotToggleEntryView()),
|
|
|
|
this, TQ_SLOT(slotToggleEntryView()),
|
|
|
|
actionCollection(), "toggle_entry_view");
|
|
|
|
actionCollection(), "toggle_entry_view");
|
|
|
|
m_toggleEntryView->setToolTip(i18n("Enable/disable the entry view"));
|
|
|
|
m_toggleEntryView->setToolTip(i18n("Enable/disable the entry view"));
|
|
|
|
m_toggleEntryView->setCheckedState(i18n("Hide Entry &View"));
|
|
|
|
m_toggleEntryView->setCheckedState(i18n("Hide Entry &View"));
|
|
|
|
|
|
|
|
|
|
|
|
KStdAction::preferences(this, TQT_SLOT(slotShowConfigDialog()), actionCollection());
|
|
|
|
KStdAction::preferences(this, TQ_SLOT(slotShowConfigDialog()), actionCollection());
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
/*************************************************
|
|
|
|
* Help menu
|
|
|
|
* Help menu
|
|
|
|
*************************************************/
|
|
|
|
*************************************************/
|
|
|
|
KStdAction::tipOfDay(this, TQT_SLOT(slotShowTipOfDay()), actionCollection(), "tipOfDay");
|
|
|
|
KStdAction::tipOfDay(this, TQ_SLOT(slotShowTipOfDay()), actionCollection(), "tipOfDay");
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************
|
|
|
|
/*************************************************
|
|
|
|
* Collection Toolbar
|
|
|
|
* Collection Toolbar
|
|
|
|
*************************************************/
|
|
|
|
*************************************************/
|
|
|
|
(void) new TDEAction(i18n("Change Grouping"), CTRL + Key_G,
|
|
|
|
(void) new TDEAction(i18n("Change Grouping"), CTRL + Key_G,
|
|
|
|
this, TQT_SLOT(slotGroupLabelActivated()),
|
|
|
|
this, TQ_SLOT(slotGroupLabelActivated()),
|
|
|
|
actionCollection(), "change_entry_grouping_accel");
|
|
|
|
actionCollection(), "change_entry_grouping_accel");
|
|
|
|
|
|
|
|
|
|
|
|
m_entryGrouping = new TDESelectAction(i18n("&Group Selection"), 0, this,
|
|
|
|
m_entryGrouping = new TDESelectAction(i18n("&Group Selection"), 0, this,
|
|
|
|
TQT_SLOT(slotChangeGrouping()),
|
|
|
|
TQ_SLOT(slotChangeGrouping()),
|
|
|
|
actionCollection(), "change_entry_grouping");
|
|
|
|
actionCollection(), "change_entry_grouping");
|
|
|
|
m_entryGrouping->setToolTip(i18n("Change the grouping of the collection"));
|
|
|
|
m_entryGrouping->setToolTip(i18n("Change the grouping of the collection"));
|
|
|
|
|
|
|
|
|
|
|
|
(void) new TDEAction(i18n("Filter"), CTRL + Key_F,
|
|
|
|
(void) new TDEAction(i18n("Filter"), CTRL + Key_F,
|
|
|
|
this, TQT_SLOT(slotFilterLabelActivated()),
|
|
|
|
this, TQ_SLOT(slotFilterLabelActivated()),
|
|
|
|
actionCollection(), "quick_filter_accel");
|
|
|
|
actionCollection(), "quick_filter_accel");
|
|
|
|
(void) new TDEAction(i18n("Clear Filter"), TQString::fromLatin1("locationbar_erase"), 0,
|
|
|
|
(void) new TDEAction(i18n("Clear Filter"), TQString::fromLatin1("locationbar_erase"), 0,
|
|
|
|
this, TQT_SLOT(slotClearFilter()),
|
|
|
|
this, TQ_SLOT(slotClearFilter()),
|
|
|
|
actionCollection(), "quick_filter_clear");
|
|
|
|
actionCollection(), "quick_filter_clear");
|
|
|
|
|
|
|
|
|
|
|
|
m_quickFilter = new GUI::LineEdit();
|
|
|
|
m_quickFilter = new GUI::LineEdit();
|
|
|
@ -748,8 +748,8 @@ void MainWindow::initActions() {
|
|
|
|
// about 10 characters wide
|
|
|
|
// about 10 characters wide
|
|
|
|
m_quickFilter->setFixedWidth(m_quickFilter->fontMetrics().maxWidth()*10);
|
|
|
|
m_quickFilter->setFixedWidth(m_quickFilter->fontMetrics().maxWidth()*10);
|
|
|
|
// want to update every time the filter text changes
|
|
|
|
// want to update every time the filter text changes
|
|
|
|
connect(m_quickFilter, TQT_SIGNAL(textChanged(const TQString&)),
|
|
|
|
connect(m_quickFilter, TQ_SIGNAL(textChanged(const TQString&)),
|
|
|
|
this, TQT_SLOT(slotQueueFilter()));
|
|
|
|
this, TQ_SLOT(slotQueueFilter()));
|
|
|
|
m_quickFilter->installEventFilter(this); // intercept keyEvents
|
|
|
|
m_quickFilter->installEventFilter(this); // intercept keyEvents
|
|
|
|
|
|
|
|
|
|
|
|
KWidgetAction* wAction = new KWidgetAction(m_quickFilter, i18n("Filter"), 0, 0, 0,
|
|
|
|
KWidgetAction* wAction = new KWidgetAction(m_quickFilter, i18n("Filter"), 0, 0, 0,
|
|
|
@ -760,10 +760,10 @@ void MainWindow::initActions() {
|
|
|
|
|
|
|
|
|
|
|
|
// show tool tips in status bar
|
|
|
|
// show tool tips in status bar
|
|
|
|
actionCollection()->setHighlightingEnabled(true);
|
|
|
|
actionCollection()->setHighlightingEnabled(true);
|
|
|
|
connect(actionCollection(), TQT_SIGNAL(actionStatusText(const TQString &)),
|
|
|
|
connect(actionCollection(), TQ_SIGNAL(actionStatusText(const TQString &)),
|
|
|
|
TQT_SLOT(slotStatusMsg(const TQString &)));
|
|
|
|
TQ_SLOT(slotStatusMsg(const TQString &)));
|
|
|
|
connect(actionCollection(), TQT_SIGNAL(clearStatusText()),
|
|
|
|
connect(actionCollection(), TQ_SIGNAL(clearStatusText()),
|
|
|
|
TQT_SLOT(slotClearStatus()));
|
|
|
|
TQ_SLOT(slotClearStatus()));
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef UIFILE
|
|
|
|
#ifdef UIFILE
|
|
|
|
kdWarning() << "MainWindow::initActions() - change createGUI() call!" << endl;
|
|
|
|
kdWarning() << "MainWindow::initActions() - change createGUI() call!" << endl;
|
|
|
@ -781,17 +781,17 @@ void MainWindow::initDocument() {
|
|
|
|
doc->setLoadAllImages(config.readBoolEntry("Load All Images", false));
|
|
|
|
doc->setLoadAllImages(config.readBoolEntry("Load All Images", false));
|
|
|
|
|
|
|
|
|
|
|
|
// allow status messages from the document
|
|
|
|
// allow status messages from the document
|
|
|
|
connect(doc, TQT_SIGNAL(signalStatusMsg(const TQString&)),
|
|
|
|
connect(doc, TQ_SIGNAL(signalStatusMsg(const TQString&)),
|
|
|
|
TQT_SLOT(slotStatusMsg(const TQString&)));
|
|
|
|
TQ_SLOT(slotStatusMsg(const TQString&)));
|
|
|
|
|
|
|
|
|
|
|
|
// do stuff that changes when the doc is modified
|
|
|
|
// do stuff that changes when the doc is modified
|
|
|
|
connect(doc, TQT_SIGNAL(signalModified(bool)),
|
|
|
|
connect(doc, TQ_SIGNAL(signalModified(bool)),
|
|
|
|
TQT_SLOT(slotEnableModifiedActions(bool)));
|
|
|
|
TQ_SLOT(slotEnableModifiedActions(bool)));
|
|
|
|
|
|
|
|
|
|
|
|
connect(Kernel::self()->commandHistory(), TQT_SIGNAL(commandExecuted()),
|
|
|
|
connect(Kernel::self()->commandHistory(), TQ_SIGNAL(commandExecuted()),
|
|
|
|
doc, TQT_SLOT(slotSetModified()));
|
|
|
|
doc, TQ_SLOT(slotSetModified()));
|
|
|
|
connect(Kernel::self()->commandHistory(), TQT_SIGNAL(documentRestored()),
|
|
|
|
connect(Kernel::self()->commandHistory(), TQ_SIGNAL(documentRestored()),
|
|
|
|
doc, TQT_SLOT(slotDocumentRestored()));
|
|
|
|
doc, TQ_SLOT(slotDocumentRestored()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::initView() {
|
|
|
|
void MainWindow::initView() {
|
|
|
@ -813,25 +813,25 @@ void MainWindow::initView() {
|
|
|
|
Controller::self()->addObserver(m_detailedView);
|
|
|
|
Controller::self()->addObserver(m_detailedView);
|
|
|
|
TQWhatsThis::add(m_detailedView, i18n("<qt>The <i>Column View</i> shows the value of multiple fields "
|
|
|
|
TQWhatsThis::add(m_detailedView, i18n("<qt>The <i>Column View</i> shows the value of multiple fields "
|
|
|
|
"for each entry.</qt>"));
|
|
|
|
"for each entry.</qt>"));
|
|
|
|
connect(Data::Document::self(), TQT_SIGNAL(signalCollectionImagesLoaded(Tellico::Data::CollPtr)),
|
|
|
|
connect(Data::Document::self(), TQ_SIGNAL(signalCollectionImagesLoaded(Tellico::Data::CollPtr)),
|
|
|
|
m_detailedView, TQT_SLOT(slotRefreshImages()));
|
|
|
|
m_detailedView, TQ_SLOT(slotRefreshImages()));
|
|
|
|
|
|
|
|
|
|
|
|
m_viewStack = new ViewStack(m_rightSplit, "viewstack");
|
|
|
|
m_viewStack = new ViewStack(m_rightSplit, "viewstack");
|
|
|
|
Controller::self()->addObserver(m_viewStack->iconView());
|
|
|
|
Controller::self()->addObserver(m_viewStack->iconView());
|
|
|
|
connect(m_viewStack->entryView(), TQT_SIGNAL(signalAction(const KURL&)),
|
|
|
|
connect(m_viewStack->entryView(), TQ_SIGNAL(signalAction(const KURL&)),
|
|
|
|
TQT_SLOT(slotURLAction(const KURL&)));
|
|
|
|
TQ_SLOT(slotURLAction(const KURL&)));
|
|
|
|
|
|
|
|
|
|
|
|
setMinimumWidth(MAIN_WINDOW_MIN_WIDTH);
|
|
|
|
setMinimumWidth(MAIN_WINDOW_MIN_WIDTH);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::initConnections() {
|
|
|
|
void MainWindow::initConnections() {
|
|
|
|
// have to toggle the menu item if the dialog gets closed
|
|
|
|
// have to toggle the menu item if the dialog gets closed
|
|
|
|
connect(m_editDialog, TQT_SIGNAL(finished()),
|
|
|
|
connect(m_editDialog, TQ_SIGNAL(finished()),
|
|
|
|
this, TQT_SLOT(slotEditDialogFinished()));
|
|
|
|
this, TQ_SLOT(slotEditDialogFinished()));
|
|
|
|
|
|
|
|
|
|
|
|
// let the group view call filters, too
|
|
|
|
// let the group view call filters, too
|
|
|
|
connect(m_groupView, TQT_SIGNAL(signalUpdateFilter(Tellico::FilterPtr)),
|
|
|
|
connect(m_groupView, TQ_SIGNAL(signalUpdateFilter(Tellico::FilterPtr)),
|
|
|
|
Controller::self(), TQT_SLOT(slotUpdateFilter(Tellico::FilterPtr)));
|
|
|
|
Controller::self(), TQ_SLOT(slotUpdateFilter(Tellico::FilterPtr)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::initFileOpen(bool nofile_) {
|
|
|
|
void MainWindow::initFileOpen(bool nofile_) {
|
|
|
@ -1018,7 +1018,7 @@ void MainWindow::readOptions() {
|
|
|
|
|
|
|
|
|
|
|
|
m_viewStack->iconView()->setMaxAllowedIconWidth(Config::maxIconSize());
|
|
|
|
m_viewStack->iconView()->setMaxAllowedIconWidth(Config::maxIconSize());
|
|
|
|
|
|
|
|
|
|
|
|
connect(toolBar("collectionToolBar"), TQT_SIGNAL(modechange()), TQT_SLOT(slotUpdateToolbarIcons()));
|
|
|
|
connect(toolBar("collectionToolBar"), TQ_SIGNAL(modechange()), TQ_SLOT(slotUpdateToolbarIcons()));
|
|
|
|
|
|
|
|
|
|
|
|
m_toggleGroupWidget->setChecked(Config::showGroupWidget());
|
|
|
|
m_toggleGroupWidget->setChecked(Config::showGroupWidget());
|
|
|
|
slotToggleGroupWidget();
|
|
|
|
slotToggleGroupWidget();
|
|
|
@ -1405,15 +1405,15 @@ void MainWindow::slotFileQuit() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotEditCut() {
|
|
|
|
void MainWindow::slotEditCut() {
|
|
|
|
activateEditSlot(TQT_SLOT(cut()));
|
|
|
|
activateEditSlot(TQ_SLOT(cut()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotEditCopy() {
|
|
|
|
void MainWindow::slotEditCopy() {
|
|
|
|
activateEditSlot(TQT_SLOT(copy()));
|
|
|
|
activateEditSlot(TQ_SLOT(copy()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotEditPaste() {
|
|
|
|
void MainWindow::slotEditPaste() {
|
|
|
|
activateEditSlot(TQT_SLOT(paste()));
|
|
|
|
activateEditSlot(TQ_SLOT(paste()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::activateEditSlot(const char* slot_) {
|
|
|
|
void MainWindow::activateEditSlot(const char* slot_) {
|
|
|
@ -1450,7 +1450,7 @@ void MainWindow::slotConfigToolbar() {
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
KEditToolbar dlg(actionCollection());
|
|
|
|
KEditToolbar dlg(actionCollection());
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig()));
|
|
|
|
connect(&dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(slotNewToolbarConfig()));
|
|
|
|
dlg.exec();
|
|
|
|
dlg.exec();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1496,10 +1496,10 @@ void MainWindow::slotShowConfigDialog() {
|
|
|
|
m_configDlg = new ConfigDialog(this);
|
|
|
|
m_configDlg = new ConfigDialog(this);
|
|
|
|
m_configDlg->show();
|
|
|
|
m_configDlg->show();
|
|
|
|
m_configDlg->readConfiguration();
|
|
|
|
m_configDlg->readConfiguration();
|
|
|
|
connect(m_configDlg, TQT_SIGNAL(signalConfigChanged()),
|
|
|
|
connect(m_configDlg, TQ_SIGNAL(signalConfigChanged()),
|
|
|
|
TQT_SLOT(slotHandleConfigChange()));
|
|
|
|
TQ_SLOT(slotHandleConfigChange()));
|
|
|
|
connect(m_configDlg, TQT_SIGNAL(finished()),
|
|
|
|
connect(m_configDlg, TQ_SIGNAL(finished()),
|
|
|
|
TQT_SLOT(slotHideConfigDialog()));
|
|
|
|
TQ_SLOT(slotHideConfigDialog()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
KWin::activateWindow(m_configDlg->winId());
|
|
|
|
KWin::activateWindow(m_configDlg->winId());
|
|
|
|
m_configDlg->show();
|
|
|
|
m_configDlg->show();
|
|
|
@ -1680,8 +1680,8 @@ void MainWindow::slotShowReportDialog() {
|
|
|
|
// myDebug() << "MainWindow::slotShowReport()" << endl;
|
|
|
|
// myDebug() << "MainWindow::slotShowReport()" << endl;
|
|
|
|
if(!m_reportDlg) {
|
|
|
|
if(!m_reportDlg) {
|
|
|
|
m_reportDlg = new ReportDialog(this);
|
|
|
|
m_reportDlg = new ReportDialog(this);
|
|
|
|
connect(m_reportDlg, TQT_SIGNAL(finished()),
|
|
|
|
connect(m_reportDlg, TQ_SIGNAL(finished()),
|
|
|
|
TQT_SLOT(slotHideReportDialog()));
|
|
|
|
TQ_SLOT(slotHideReportDialog()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
KWin::activateWindow(m_reportDlg->winId());
|
|
|
|
KWin::activateWindow(m_reportDlg->winId());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1783,14 +1783,14 @@ void MainWindow::slotShowFilterDialog() {
|
|
|
|
m_filterDlg = new FilterDialog(FilterDialog::CreateFilter, this); // allow saving
|
|
|
|
m_filterDlg = new FilterDialog(FilterDialog::CreateFilter, this); // allow saving
|
|
|
|
m_filterDlg->setFilter(m_detailedView->filter());
|
|
|
|
m_filterDlg->setFilter(m_detailedView->filter());
|
|
|
|
m_quickFilter->setEnabled(false);
|
|
|
|
m_quickFilter->setEnabled(false);
|
|
|
|
connect(m_filterDlg, TQT_SIGNAL(signalCollectionModified()),
|
|
|
|
connect(m_filterDlg, TQ_SIGNAL(signalCollectionModified()),
|
|
|
|
Data::Document::self(), TQT_SLOT(slotSetModified()));
|
|
|
|
Data::Document::self(), TQ_SLOT(slotSetModified()));
|
|
|
|
connect(m_filterDlg, TQT_SIGNAL(signalUpdateFilter(Tellico::FilterPtr)),
|
|
|
|
connect(m_filterDlg, TQ_SIGNAL(signalUpdateFilter(Tellico::FilterPtr)),
|
|
|
|
m_quickFilter, TQT_SLOT(clear()));
|
|
|
|
m_quickFilter, TQ_SLOT(clear()));
|
|
|
|
connect(m_filterDlg, TQT_SIGNAL(signalUpdateFilter(Tellico::FilterPtr)),
|
|
|
|
connect(m_filterDlg, TQ_SIGNAL(signalUpdateFilter(Tellico::FilterPtr)),
|
|
|
|
Controller::self(), TQT_SLOT(slotUpdateFilter(Tellico::FilterPtr)));
|
|
|
|
Controller::self(), TQ_SLOT(slotUpdateFilter(Tellico::FilterPtr)));
|
|
|
|
connect(m_filterDlg, TQT_SIGNAL(finished()),
|
|
|
|
connect(m_filterDlg, TQ_SIGNAL(finished()),
|
|
|
|
TQT_SLOT(slotHideFilterDialog()));
|
|
|
|
TQ_SLOT(slotHideFilterDialog()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
KWin::activateWindow(m_filterDlg->winId());
|
|
|
|
KWin::activateWindow(m_filterDlg->winId());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1808,7 +1808,7 @@ void MainWindow::slotHideFilterDialog() {
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotQueueFilter() {
|
|
|
|
void MainWindow::slotQueueFilter() {
|
|
|
|
m_queuedFilters++;
|
|
|
|
m_queuedFilters++;
|
|
|
|
TQTimer::singleShot(200, this, TQT_SLOT(slotUpdateFilter()));
|
|
|
|
TQTimer::singleShot(200, this, TQ_SLOT(slotUpdateFilter()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotUpdateFilter() {
|
|
|
|
void MainWindow::slotUpdateFilter() {
|
|
|
@ -1872,8 +1872,8 @@ void MainWindow::setFilter(const TQString& text_) {
|
|
|
|
void MainWindow::slotShowCollectionFieldsDialog() {
|
|
|
|
void MainWindow::slotShowCollectionFieldsDialog() {
|
|
|
|
if(!m_collFieldsDlg) {
|
|
|
|
if(!m_collFieldsDlg) {
|
|
|
|
m_collFieldsDlg = new CollectionFieldsDialog(Data::Document::self()->collection(), this);
|
|
|
|
m_collFieldsDlg = new CollectionFieldsDialog(Data::Document::self()->collection(), this);
|
|
|
|
connect(m_collFieldsDlg, TQT_SIGNAL(finished()),
|
|
|
|
connect(m_collFieldsDlg, TQ_SIGNAL(finished()),
|
|
|
|
TQT_SLOT(slotHideCollectionFieldsDialog()));
|
|
|
|
TQ_SLOT(slotHideCollectionFieldsDialog()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
KWin::activateWindow(m_collFieldsDlg->winId());
|
|
|
|
KWin::activateWindow(m_collFieldsDlg->winId());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1976,8 +1976,8 @@ void MainWindow::slotShowStringMacroDialog() {
|
|
|
|
m_stringMacroDlg = new StringMapDialog(c->macroList(), this, "StringMacroDialog", false);
|
|
|
|
m_stringMacroDlg = new StringMapDialog(c->macroList(), this, "StringMacroDialog", false);
|
|
|
|
m_stringMacroDlg->setCaption(i18n("String Macros"));
|
|
|
|
m_stringMacroDlg->setCaption(i18n("String Macros"));
|
|
|
|
m_stringMacroDlg->setLabels(i18n("Macro"), i18n("String"));
|
|
|
|
m_stringMacroDlg->setLabels(i18n("Macro"), i18n("String"));
|
|
|
|
connect(m_stringMacroDlg, TQT_SIGNAL(finished()), TQT_SLOT(slotHideStringMacroDialog()));
|
|
|
|
connect(m_stringMacroDlg, TQ_SIGNAL(finished()), TQ_SLOT(slotHideStringMacroDialog()));
|
|
|
|
connect(m_stringMacroDlg, TQT_SIGNAL(okClicked()), TQT_SLOT(slotStringMacroDialogOk()));
|
|
|
|
connect(m_stringMacroDlg, TQ_SIGNAL(okClicked()), TQ_SLOT(slotStringMacroDialogOk()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
KWin::activateWindow(m_stringMacroDlg->winId());
|
|
|
|
KWin::activateWindow(m_stringMacroDlg->winId());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2046,8 +2046,8 @@ void MainWindow::slotCiteEntry(int action_) {
|
|
|
|
void MainWindow::slotShowFetchDialog() {
|
|
|
|
void MainWindow::slotShowFetchDialog() {
|
|
|
|
if(!m_fetchDlg) {
|
|
|
|
if(!m_fetchDlg) {
|
|
|
|
m_fetchDlg = new FetchDialog(this);
|
|
|
|
m_fetchDlg = new FetchDialog(this);
|
|
|
|
connect(m_fetchDlg, TQT_SIGNAL(finished()), TQT_SLOT(slotHideFetchDialog()));
|
|
|
|
connect(m_fetchDlg, TQ_SIGNAL(finished()), TQ_SLOT(slotHideFetchDialog()));
|
|
|
|
connect(Controller::self(), TQT_SIGNAL(collectionAdded(int)), m_fetchDlg, TQT_SLOT(slotResetCollection()));
|
|
|
|
connect(Controller::self(), TQ_SIGNAL(collectionAdded(int)), m_fetchDlg, TQ_SLOT(slotResetCollection()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
KWin::activateWindow(m_fetchDlg->winId());
|
|
|
|
KWin::activateWindow(m_fetchDlg->winId());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2296,7 +2296,7 @@ void MainWindow::updateEntrySources() {
|
|
|
|
action->setText(it->source());
|
|
|
|
action->setText(it->source());
|
|
|
|
action->setToolTip(i18n("Update entry data from %1").arg(it->source()));
|
|
|
|
action->setToolTip(i18n("Update entry data from %1").arg(it->source()));
|
|
|
|
action->setIconSet(Fetch::Manager::fetcherIcon(it.data()));
|
|
|
|
action->setIconSet(Fetch::Manager::fetcherIcon(it.data()));
|
|
|
|
connect(action, TQT_SIGNAL(activated()), mapper, TQT_SLOT(map()));
|
|
|
|
connect(action, TQ_SIGNAL(activated()), mapper, TQ_SLOT(map()));
|
|
|
|
mapper->setMapping(action, it->source());
|
|
|
|
mapper->setMapping(action, it->source());
|
|
|
|
m_fetchActions.append(action);
|
|
|
|
m_fetchActions.append(action);
|
|
|
|
}
|
|
|
|
}
|
|
|
|