Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

bookmwin.h

Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                           bookmwin.h  -  description
00009                              -------------------
00010     begin                : Mon Feb 11 2002
00011     copyright            : (C) 2002 by Franz Schmid
00012     email                : Franz.Schmid@altmuehlnet.de
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef BOOKMWIN_H
00025 #define BOOKMWIN_H
00026 
00027 #include <QTreeWidget>
00028 
00029 class PageItem;
00030 #include "scribusapi.h"
00031 #include "scribusdoc.h"
00032 
00040 class SCRIBUS_API BookMItem : public QTreeWidgetItem
00041 {
00042 public:
00043     BookMItem(QTreeWidgetItem* parent, struct ScribusDoc::BookMa *Bm);
00044     BookMItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, struct ScribusDoc::BookMa *Bm);
00045     BookMItem(QTreeWidget* parent, QTreeWidgetItem* after, struct ScribusDoc::BookMa *Bm);
00046     BookMItem(QTreeWidget* parent, struct ScribusDoc::BookMa *Bm);
00047     BookMItem(QTreeWidget* parent, QTreeWidgetItem* after, int nr, PageItem *PObject);
00048     BookMItem(QTreeWidget* parent, int nr, PageItem *PObject);
00049     ~BookMItem() {};
00050     void SetUp(struct ScribusDoc::BookMa *Bm);
00051     virtual QString key(int, bool) const;
00052     PageItem *PageObject;
00053     int ItemNr;
00054     int PdfObj;
00055     QString Action;
00056     QString Titel;
00057     int First;
00058     int Last;
00059     int Prev;
00060     int Next;
00061     int Pare;
00062 
00063     int level();
00064 };
00065 
00066 
00075 class SCRIBUS_API BookMView : public QTreeWidget
00076 {
00077     Q_OBJECT
00078 
00079 public:
00080     BookMView(QWidget* parent);
00081     ~BookMView() {};
00082     void AddItem(QString text, QString Tit, PageItem *PageObject);
00083     void DeleteItem(PageItem *PageObject);
00084     void SetAction(PageItem *currItem, QString Act);
00085 
00086     int NrItems;
00087     int First;
00088     int Last;
00089 
00095     void rebuildTree();
00096 
00097 public slots:
00098     void AddPageItem(PageItem* ite);
00099     void ChangeText(PageItem *currItem);
00100 
00101 signals:
00102     void MarkMoved();
00103     void SelectElement(PageItem *);
00104     void changed();
00105 
00106 protected:
00107     void dropEvent(QDropEvent *e);
00108 
00109     private slots:
00110         void setPageItem(QTreeWidgetItem * old, QTreeWidgetItem * newItem);
00111 };
00112 
00113 #endif
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.