|
|
|
@ -188,8 +188,8 @@ void MainWindow::initActions() {
|
|
|
|
|
|
|
|
|
|
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->setIconSet(BarIconSet(TQString::fromLatin1("document-new"))); // doesn't work
|
|
|
|
|
fileNewMenu->setIconSet(BarIcon(TQString::fromLatin1("document-new")));
|
|
|
|
|
fileNewMenu->setToolTip(i18n("Create a new collection"));
|
|
|
|
|
fileNewMenu->setDelayed(false);
|
|
|
|
|
|
|
|
|
@ -291,7 +291,7 @@ void MainWindow::initActions() {
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(actionCollection(), "new_custom_collection");
|
|
|
|
|
action->setText(i18n("New C&ustom Collection"));
|
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("filenew")));
|
|
|
|
|
action->setIconSet(UserIconSet(TQString::fromLatin1("document-new")));
|
|
|
|
|
action->setToolTip(i18n("Create a new custom collection"));
|
|
|
|
|
fileNewMenu->insert(action);
|
|
|
|
|
connect(action, TQT_SIGNAL(activated()), collectionMapper, TQT_SLOT(map()));
|
|
|
|
@ -599,7 +599,7 @@ void MainWindow::initActions() {
|
|
|
|
|
/*************************************************
|
|
|
|
|
* Collection menu
|
|
|
|
|
*************************************************/
|
|
|
|
|
m_newEntry = new TDEAction(i18n("&New Entry..."), TQString::fromLatin1("filenew"), CTRL + Key_N,
|
|
|
|
|
m_newEntry = new TDEAction(i18n("&New Entry..."), TQString::fromLatin1("document-new"), CTRL + Key_N,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotNewEntry()),
|
|
|
|
|
actionCollection(), "coll_new_entry");
|
|
|
|
|
m_newEntry->setToolTip(i18n("Create a new entry"));
|
|
|
|
@ -607,15 +607,15 @@ void MainWindow::initActions() {
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotShowEntryEditor()),
|
|
|
|
|
actionCollection(), "coll_edit_entry");
|
|
|
|
|
m_editEntry->setToolTip(i18n("Edit the selected entries"));
|
|
|
|
|
m_copyEntry = new TDEAction(i18n("D&uplicate Entry"), TQString::fromLatin1("editcopy"), CTRL + Key_Y,
|
|
|
|
|
m_copyEntry = new TDEAction(i18n("D&uplicate Entry"), TQString::fromLatin1("edit-copy"), CTRL + Key_Y,
|
|
|
|
|
Controller::self(), TQT_SLOT(slotCopySelectedEntries()),
|
|
|
|
|
actionCollection(), "coll_copy_entry");
|
|
|
|
|
m_copyEntry->setToolTip(i18n("Copy the selected entries"));
|
|
|
|
|
m_deleteEntry = new TDEAction(i18n("&Delete Entry"), TQString::fromLatin1("editdelete"), CTRL + Key_D,
|
|
|
|
|
m_deleteEntry = new TDEAction(i18n("&Delete Entry"), TQString::fromLatin1("edit-delete"), CTRL + Key_D,
|
|
|
|
|
Controller::self(), TQT_SLOT(slotDeleteSelectedEntries()),
|
|
|
|
|
actionCollection(), "coll_delete_entry");
|
|
|
|
|
m_deleteEntry->setToolTip(i18n("Delete the selected entries"));
|
|
|
|
|
m_mergeEntry = new TDEAction(i18n("&Merge Entries"), TQString::fromLatin1("editcopy"), CTRL + Key_G,
|
|
|
|
|
m_mergeEntry = new TDEAction(i18n("&Merge Entries"), TQString::fromLatin1("edit-copy"), CTRL + Key_G,
|
|
|
|
|
Controller::self(), TQT_SLOT(slotMergeSelectedEntries()),
|
|
|
|
|
actionCollection(), "coll_merge_entry");
|
|
|
|
|
m_mergeEntry->setToolTip(i18n("Merge the selected entries"));
|
|
|
|
@ -634,7 +634,7 @@ void MainWindow::initActions() {
|
|
|
|
|
actionCollection(), "coll_checkin");
|
|
|
|
|
m_checkInEntry->setToolTip(i18n("Check-in the selected items"));
|
|
|
|
|
|
|
|
|
|
action = new TDEAction(i18n("&Rename Collection..."), TQString::fromLatin1("editclear"), CTRL + Key_R,
|
|
|
|
|
action = new TDEAction(i18n("&Rename Collection..."), TQString::fromLatin1("edit-clear"), CTRL + Key_R,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRenameCollection()),
|
|
|
|
|
actionCollection(), "coll_rename_collection");
|
|
|
|
|
action->setToolTip(i18n("Rename the collection"));
|
|
|
|
@ -659,7 +659,7 @@ void MainWindow::initActions() {
|
|
|
|
|
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"));
|
|
|
|
|
action->setIcon(TQString::fromLatin1("edit-paste"));
|
|
|
|
|
connect(action, TQT_SIGNAL(activated()), citeMapper, TQT_SLOT(map()));
|
|
|
|
|
citeMapper->setMapping(action, Cite::CiteClipboard);
|
|
|
|
|
|
|
|
|
|