Biblio Class Reference
#include <scrapbookpalette.h>


Public Slots | |
| void | languageChange () |
| void | ObjFromMenu (QString text) |
Signals | |
| void | updateRecentMenue () |
| void | pasteToActualPage (QString) |
Public Member Functions | |
| Biblio (QWidget *parent) | |
| ~Biblio () | |
| virtual void | changeEvent (QEvent *e) |
| void | ObjFromCopyAction (QString text, QString name) |
| void | adjustReferences (QString nam) |
| void | CleanUpTemp () |
| void | setScrapbookFileName (QString) |
| const QString | getScrapbookFileName () |
| const int | objectCount () |
| void | readContents (QString) |
| void | readTempContents (QString) |
| void | readOldContents (QString, QString) |
| void | installEventFilter (QObject *) |
| void | setOpenScrapbooks (QStringList &fileNames) |
| QStringList | getOpenScrapbooks () |
| QString | getObjectName (QString &text) |
Public Attributes | |
| BibView * | tempBView |
| BibView * | activeBView |
| QListWidgetItem * | actItem |
Protected Attributes | |
| QToolBox * | Frame3 |
| QVBoxLayout * | BiblioLayout |
| int | tempCount |
| QString | OldName |
| QHBoxLayout * | buttonLayout |
| QToolButton * | newButton |
| QToolButton * | loadButton |
| QToolButton * | saveAsButton |
| QToolButton * | importButton |
| QToolButton * | closeButton |
Private Slots | |
| void | handleDoubleClick (QListWidgetItem *ite) |
| void | handlePasteToPage () |
| void | HandleMouse (QPoint p) |
| bool | copyObj (int id) |
| void | moveObj (int id) |
| void | deleteObj () |
| void | deleteAllObj () |
| void | renameObj () |
| void | NewLib () |
| void | Load () |
| void | SaveAs () |
| void | closeLib () |
| void | libChanged (int index) |
| void | Import () |
Detailed Description
Definition at line 63 of file scrapbookpalette.h.
Constructor & Destructor Documentation
| Biblio::Biblio | ( | QWidget * | parent | ) |
Definition at line 518 of file scrapbookpalette.cpp.
References actItem, activeBView, BiblioLayout, buttonLayout, closeButton, closeLib(), Frame3, Import(), importButton, languageChange(), libChanged(), Load(), loadButton, loadIcon(), newButton, NewLib(), SaveAs(), saveAsButton, tempBView, tempCount, and tr().
| Biblio::~Biblio | ( | ) | [inline] |
Definition at line 69 of file scrapbookpalette.h.
Member Function Documentation
| void Biblio::changeEvent | ( | QEvent * | e | ) | [virtual] |
| void Biblio::ObjFromCopyAction | ( | QString | text, | |
| QString | name | |||
| ) |
Definition at line 1337 of file scrapbookpalette.cpp.
References BibView::AddObj(), PrefsManager::appPrefs, BibView::checkAndChange(), ScPreview::createPreview(), PrefsManager::instance(), ApplicationPrefs::numScrapbookCopies, BibView::objectMap, p, BibView::ScFilename, tempBView, tempCount, and tr().
Referenced by ScribusMainWindow::slotEditCopy(), and ScribusMainWindow::slotEditCut().
| void Biblio::adjustReferences | ( | QString | nam | ) |
Definition at line 1156 of file scrapbookpalette.cpp.
References PageItem::ImageFrame, loadRawText(), and PageItem::TextFrame.
Referenced by copyObj(), and renameObj().
| void Biblio::CleanUpTemp | ( | ) |
Definition at line 1403 of file scrapbookpalette.cpp.
References BibView::objectMap, BibView::ScFilename, and tempBView.
Referenced by ScribusMainWindow::closeEvent().
| void Biblio::setScrapbookFileName | ( | QString | fileName | ) |
Definition at line 624 of file scrapbookpalette.cpp.
References activeBView, and BibView::ScFilename.
Referenced by ScribusMainWindow::initScrapbook().
| const QString Biblio::getScrapbookFileName | ( | ) |
Definition at line 629 of file scrapbookpalette.cpp.
References activeBView, and BibView::ScFilename.
| const int Biblio::objectCount | ( | ) |
Definition at line 634 of file scrapbookpalette.cpp.
References activeBView, and BibView::objectMap.
| void Biblio::readContents | ( | QString | fileName | ) |
Definition at line 645 of file scrapbookpalette.cpp.
References activeBView, and BibView::ReadContents().
Referenced by Import(), and ScribusMainWindow::initScrapbook().
| void Biblio::readTempContents | ( | QString | fileName | ) |
Definition at line 650 of file scrapbookpalette.cpp.
References BibView::objectMap, BibView::ReadContents(), BibView::ScFilename, tempBView, and tempCount.
Referenced by ScribusMainWindow::initScrapbook().
| void Biblio::readOldContents | ( | QString | fileName, | |
| QString | newName | |||
| ) |
Definition at line 639 of file scrapbookpalette.cpp.
References activeBView, and BibView::ReadOldContents().
Referenced by Import(), and ScribusMainWindow::initScrapbook().
| void Biblio::installEventFilter | ( | QObject * | filterObj | ) |
Definition at line 657 of file scrapbookpalette.cpp.
References activeBView, and tempBView.
Referenced by ScribusMainWindow::initPalettes().
| void Biblio::setOpenScrapbooks | ( | QStringList & | fileNames | ) |
Definition at line 576 of file scrapbookpalette.cpp.
References activeBView, BibView::canWrite, Frame3, handleDoubleClick(), HandleMouse(), libChanged(), loadIcon(), ObjFromMenu(), BibView::ReadContents(), and BibView::ScFilename.
Referenced by ScribusMainWindow::initScrapbook().
| QStringList Biblio::getOpenScrapbooks | ( | ) |
Definition at line 609 of file scrapbookpalette.cpp.
References Frame3, and BibView::ScFilename.
Referenced by ScribusMainWindow::closeEvent().
| QString Biblio::getObjectName | ( | QString & | text | ) |
| void Biblio::languageChange | ( | ) | [slot] |
Definition at line 1441 of file scrapbookpalette.cpp.
References closeButton, importButton, loadButton, newButton, saveAsButton, and tr().
Referenced by Biblio(), and changeEvent().
| void Biblio::ObjFromMenu | ( | QString | text | ) | [slot] |
Definition at line 1233 of file scrapbookpalette.cpp.
References activeBView, BibView::AddObj(), PrefsManager::appPrefs, BibView::canWrite, BibView::checkAndChange(), ScPreview::createPreview(), Frame3, Query::getEditText(), getObjectName(), PrefsManager::instance(), ApplicationPrefs::numScrapbookCopies, BibView::objectMap, p, BibView::ScFilename, Query::setEditText(), tempBView, tempCount, tr(), and updateRecentMenue().
Referenced by closeLib(), libChanged(), Load(), NewLib(), and setOpenScrapbooks().
| void Biblio::handleDoubleClick | ( | QListWidgetItem * | ite | ) | [private, slot] |
Definition at line 809 of file scrapbookpalette.cpp.
References actItem, activeBView, and pasteToActualPage().
Referenced by closeLib(), libChanged(), Load(), NewLib(), and setOpenScrapbooks().
| void Biblio::handlePasteToPage | ( | ) | [private, slot] |
Definition at line 816 of file scrapbookpalette.cpp.
References actItem, activeBView, and pasteToActualPage().
Referenced by HandleMouse().
| void Biblio::HandleMouse | ( | QPoint | p | ) | [private, slot] |
Definition at line 823 of file scrapbookpalette.cpp.
References actItem, activeBView, BibView::canWrite, closeLib(), copyObj(), deleteAllObj(), deleteObj(), Frame3, handlePasteToPage(), moveObj(), BibView::objectMap, renameObj(), SaveAs(), and tr().
Referenced by closeLib(), libChanged(), Load(), NewLib(), and setOpenScrapbooks().
| bool Biblio::copyObj | ( | int | id | ) | [private, slot] |
Definition at line 906 of file scrapbookpalette.cpp.
References actItem, activeBView, BibView::AddObj(), adjustReferences(), PrefsManager::appPrefs, copyFile(), Frame3, Query::getEditText(), PrefsManager::instance(), loadRawText(), ApplicationPrefs::numScrapbookCopies, BibView::objectMap, p, BibView::ScFilename, Query::setEditText(), tempBView, tempCount, tr(), and updateRecentMenue().
Referenced by HandleMouse(), and moveObj().
| void Biblio::moveObj | ( | int | id | ) | [private, slot] |
Definition at line 1023 of file scrapbookpalette.cpp.
References copyObj(), and deleteObj().
Referenced by HandleMouse().
| void Biblio::deleteObj | ( | ) | [private, slot] |
Definition at line 1031 of file scrapbookpalette.cpp.
References actItem, activeBView, BibView::canWrite, BibView::objectMap, BibView::ScFilename, tempBView, and updateRecentMenue().
Referenced by HandleMouse(), and moveObj().
| void Biblio::deleteAllObj | ( | ) | [private, slot] |
Definition at line 1063 of file scrapbookpalette.cpp.
References actItem, activeBView, BibView::canWrite, BibView::objectMap, BibView::ScFilename, tempBView, tr(), CommonStrings::trWarning, and updateRecentMenue().
Referenced by HandleMouse().
| void Biblio::renameObj | ( | ) | [private, slot] |
Definition at line 1103 of file scrapbookpalette.cpp.
References actItem, activeBView, BibView::AddObj(), adjustReferences(), BibView::canWrite, Query::getEditText(), BibView::objectMap, OldName, BibView::ScFilename, Query::setEditText(), tempBView, tr(), CommonStrings::tr_OK, CommonStrings::trWarning, and updateRecentMenue().
Referenced by HandleMouse().
| void Biblio::NewLib | ( | ) | [private, slot] |
Definition at line 664 of file scrapbookpalette.cpp.
References activeBView, Frame3, PrefsContext::get(), PrefsFile::getContext(), handleDoubleClick(), HandleMouse(), PrefsManager::instance(), libChanged(), ObjFromMenu(), PrefsManager::prefsFile, BibView::ScFilename, PrefsContext::set(), and tr().
Referenced by Biblio().
| void Biblio::Load | ( | ) | [private, slot] |
Definition at line 694 of file scrapbookpalette.cpp.
References activeBView, BibView::canWrite, Frame3, PrefsContext::get(), PrefsFile::getContext(), handleDoubleClick(), HandleMouse(), PrefsManager::instance(), libChanged(), loadIcon(), ObjFromMenu(), PrefsManager::prefsFile, BibView::ReadContents(), BibView::ScFilename, PrefsContext::set(), and tr().
Referenced by Biblio().
| void Biblio::SaveAs | ( | ) | [private, slot] |
Definition at line 755 of file scrapbookpalette.cpp.
References activeBView, Frame3, PrefsContext::get(), PrefsFile::getContext(), PrefsManager::instance(), PrefsManager::prefsFile, BibView::SaveContents(), BibView::ScFilename, PrefsContext::set(), and tr().
Referenced by Biblio(), and HandleMouse().
| void Biblio::closeLib | ( | ) | [private, slot] |
Definition at line 775 of file scrapbookpalette.cpp.
References activeBView, Frame3, handleDoubleClick(), HandleMouse(), libChanged(), and ObjFromMenu().
Referenced by Biblio(), and HandleMouse().
| void Biblio::libChanged | ( | int | index | ) | [private, slot] |
Definition at line 798 of file scrapbookpalette.cpp.
References activeBView, Frame3, handleDoubleClick(), HandleMouse(), and ObjFromMenu().
Referenced by Biblio(), closeLib(), Load(), NewLib(), and setOpenScrapbooks().
| void Biblio::Import | ( | ) | [private, slot] |
Definition at line 732 of file scrapbookpalette.cpp.
References activeBView, PrefsContext::get(), PrefsFile::getContext(), PrefsManager::instance(), PrefsManager::prefsFile, readContents(), readOldContents(), BibView::ScFilename, PrefsContext::set(), and tr().
Referenced by Biblio().
| void Biblio::updateRecentMenue | ( | ) | [signal] |
Referenced by copyObj(), deleteAllObj(), deleteObj(), ObjFromMenu(), and renameObj().
| void Biblio::pasteToActualPage | ( | QString | ) | [signal] |
Referenced by handleDoubleClick(), and handlePasteToPage().
Member Data Documentation
Definition at line 86 of file scrapbookpalette.h.
Referenced by Biblio(), CleanUpTemp(), copyObj(), deleteAllObj(), deleteObj(), ScribusMainWindow::HaveNewDoc(), installEventFilter(), ObjFromCopyAction(), ObjFromMenu(), ScribusMainWindow::pasteRecent(), readTempContents(), ScribusMainWindow::rebuildRecentPasteMenu(), renameObj(), ScribusMainWindow::slotEditCopy(), and ScribusMainWindow::slotEditCut().
Definition at line 87 of file scrapbookpalette.h.
Referenced by Biblio(), closeLib(), copyObj(), deleteAllObj(), deleteObj(), getScrapbookFileName(), handleDoubleClick(), HandleMouse(), handlePasteToPage(), Import(), installEventFilter(), libChanged(), Load(), NewLib(), objectCount(), ObjFromMenu(), ScribusMainWindow::pasteFromScrapbook(), readContents(), readOldContents(), renameObj(), SaveAs(), setOpenScrapbooks(), and setScrapbookFileName().
| QListWidgetItem* Biblio::actItem |
Definition at line 88 of file scrapbookpalette.h.
Referenced by Biblio(), copyObj(), deleteAllObj(), deleteObj(), handleDoubleClick(), HandleMouse(), handlePasteToPage(), and renameObj().
QToolBox* Biblio::Frame3 [protected] |
Definition at line 115 of file scrapbookpalette.h.
Referenced by Biblio(), closeLib(), copyObj(), getOpenScrapbooks(), HandleMouse(), libChanged(), Load(), NewLib(), ObjFromMenu(), SaveAs(), and setOpenScrapbooks().
QVBoxLayout* Biblio::BiblioLayout [protected] |
int Biblio::tempCount [protected] |
Definition at line 117 of file scrapbookpalette.h.
Referenced by Biblio(), copyObj(), ObjFromCopyAction(), ObjFromMenu(), and readTempContents().
QString Biblio::OldName [protected] |
QHBoxLayout* Biblio::buttonLayout [protected] |
QToolButton* Biblio::newButton [protected] |
QToolButton* Biblio::loadButton [protected] |
QToolButton* Biblio::saveAsButton [protected] |
QToolButton* Biblio::importButton [protected] |
QToolButton* Biblio::closeButton [protected] |
The documentation for this class was generated from the following files:
