Back to index

scribus-ng  1.3.4.dfsg+svn20071115
picstatus.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 #ifndef PICSTATUS_H
00008 #define PICSTATUS_H
00009 
00010 #include "scribusapi.h"
00011 #include "picstatusbase.h"
00012 #include <qiconview.h>
00013 
00014 class ScribusDoc;
00015 class PageItem;
00016 class QCheckBox;
00017 class QTable;
00018 class QPushButton;
00019 class QHeader;
00020 
00021 class SCRIBUS_API PicItem : public QIconViewItem
00022 {
00023 public:
00024        PicItem(QIconView* parent, QString text, QPixmap pix, PageItem* pgItem);
00025        ~PicItem() {};
00026        PageItem *PageItemObject;
00027 };
00028 
00029 
00032 class SCRIBUS_API PicStatus : public PicStatusBase
00033 { 
00034        Q_OBJECT
00035 
00036 public:
00045        PicStatus(QWidget* parent, ScribusDoc *docu);
00046        ~PicStatus() {};
00047 
00048        QPixmap createImgIcon(PageItem* item);
00049 
00053        void fillTable();
00054 
00055 private slots:
00056        void imageSelected(QIconViewItem *ite);
00061        void PrintPic();
00066        void visiblePic();
00071        void GotoPic();
00072 
00077        void SelectPic();
00082        void SearchPic();
00083        void doImageEffects();
00084        void doImageExtProp();
00085        void doEditImage();
00086 
00087 signals:
00088        void selectPage(int);
00089        void selectMasterPage(QString);
00090        void selectElement(int, int, bool);
00091        void refreshItem(PageItem*);
00092 
00093 protected:
00096        bool loadPict(const QString & newFilePath);
00097 
00098 private:
00099        ScribusDoc *m_Doc;
00100        PageItem *currItem;
00101 
00102 };
00103 #endif