Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

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>

List of all members.

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.

Author:
Franz Schmid

Petr Vanek <petr@scribus.info>

Definition at line 75 of file bookmwin.h.


Constructor & Destructor Documentation

BookMView::BookMView ( QWidget *  parent  ) 

Definition at line 117 of file bookmwin.cpp.

References First, Last, NrItems, and setPageItem().

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  ) 

Definition at line 240 of file bookmwin.cpp.

References BookMItem::PageObject, and rebuildTree().

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.

Author:
Petr vanek <petr@scribus.info>

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]

void BookMView::ChangeText ( PageItem currItem  )  [slot]

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]

Definition at line 164 of file bookmwin.cpp.

References rebuildTree().

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


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.