BookMView Class Reference
Tree widget for PDF Bookmarks. It's a minimal tree implementation with D'n'D handled in Qt4 itself. It could be rewritten into M/V/C stuff later, but it looks it's simpler and quicker now. MarkMoved() signal stores bookmarks in the ScribusDoc. More...
#include <bookmwin.h>
Public Slots | |
| void | AddPageItem (PageItem *ite) |
| void | ChangeText (PageItem *currItem) |
Signals | |
| void | MarkMoved () |
| void | SelectElement (PageItem *) |
| void | changed () |
Public Member Functions | |
| BookMView (QWidget *parent) | |
| ~BookMView () | |
| void | AddItem (QString text, QString Tit, PageItem *PageObject) |
| void | DeleteItem (PageItem *PageObject) |
| void | SetAction (PageItem *currItem, QString Act) |
| void | rebuildTree () |
| Build scribus bookmark structure from tree items. It looks horrible as it performs full rescan of the tree, but it's pretty fast at all. | |
Public Attributes | |
| int | NrItems |
| int | First |
| int | Last |
Protected Member Functions | |
| void | dropEvent (QDropEvent *e) |
Private Slots | |
| void | setPageItem (QTreeWidgetItem *old, QTreeWidgetItem *newItem) |
Detailed Description
Tree widget for PDF Bookmarks. It's a minimal tree implementation with D'n'D handled in Qt4 itself. It could be rewritten into M/V/C stuff later, but it looks it's simpler and quicker now. MarkMoved() signal stores bookmarks in the ScribusDoc.
Definition at line 75 of file bookmwin.h.
Constructor & Destructor Documentation
| BookMView::BookMView | ( | QWidget * | parent | ) |
| BookMView::~BookMView | ( | ) | [inline] |
Definition at line 81 of file bookmwin.h.
Member Function Documentation
| void BookMView::AddItem | ( | QString | text, | |
| QString | Tit, | |||
| PageItem * | PageObject | |||
| ) |
Definition at line 232 of file bookmwin.cpp.
References NrItems, rebuildTree(), and BookMItem::Titel.
Referenced by AddPageItem().
| void BookMView::DeleteItem | ( | PageItem * | PageObject | ) |
| void BookMView::SetAction | ( | PageItem * | currItem, | |
| QString | Act | |||
| ) |
Definition at line 256 of file bookmwin.cpp.
References BookMItem::Action, and BookMItem::PageObject.
Referenced by PDFLibCore::PDF_Bookmark().
| void BookMView::rebuildTree | ( | ) |
Build scribus bookmark structure from tree items. It looks horrible as it performs full rescan of the tree, but it's pretty fast at all.
Definition at line 172 of file bookmwin.cpp.
References changed(), BookMItem::ItemNr, Last, BookMItem::level(), MarkMoved(), BookMItem::Next, NrItems, BookMItem::Pare, and BookMItem::Prev.
Referenced by AddItem(), ChangeText(), DeleteItem(), and dropEvent().
| void BookMView::AddPageItem | ( | PageItem * | ite | ) | [slot] |
Definition at line 135 of file bookmwin.cpp.
References AddItem(), PageItem::itemText, Last, StoryText::length(), NrItems, and StoryText::text().
| void BookMView::ChangeText | ( | PageItem * | currItem | ) | [slot] |
Definition at line 272 of file bookmwin.cpp.
References PageItem::itemText, StoryText::length(), BookMItem::PageObject, rebuildTree(), StoryText::text(), and BookMItem::Titel.
Referenced by ScribusMainWindow::slotGetContent(), and ScribusMainWindow::slotGetContent2().
| void BookMView::MarkMoved | ( | ) | [signal] |
Referenced by rebuildTree().
| void BookMView::SelectElement | ( | PageItem * | ) | [signal] |
Referenced by setPageItem().
| void BookMView::changed | ( | ) | [signal] |
Referenced by rebuildTree().
| void BookMView::dropEvent | ( | QDropEvent * | e | ) | [protected] |
| void BookMView::setPageItem | ( | QTreeWidgetItem * | old, | |
| QTreeWidgetItem * | newItem | |||
| ) | [private, slot] |
Definition at line 156 of file bookmwin.cpp.
References BookMItem::PageObject, and SelectElement().
Referenced by BookMView().
Member Data Documentation
Definition at line 86 of file bookmwin.h.
Referenced by AddItem(), AddPageItem(), BookMView(), ScribusMainWindow::DoFileClose(), ScribusMainWindow::loadDoc(), and rebuildTree().
| int BookMView::First |
Definition at line 87 of file bookmwin.h.
Referenced by BookMView(), ScribusMainWindow::DoFileClose(), and ScribusMainWindow::loadDoc().
| int BookMView::Last |
Definition at line 88 of file bookmwin.h.
Referenced by AddPageItem(), BookMView(), ScribusMainWindow::DoFileClose(), ScribusMainWindow::loadDoc(), and rebuildTree().
The documentation for this class was generated from the following files:
