/vp_plugins/print_monitor/viewport.h
http://cupsfilter.googlecode.com/ · C Header · 88 lines · 41 code · 13 blank · 34 comment · 0 complexity · fdfc57fe43ffd1858ddc93d3d0346a3e MD5 · raw file
- #ifndef VIEWPORT_H
- #define VIEWPORT_H
- #include <QtGui/QFrame>
- #include <QtGui/QResizeEvent>
- #include <QtCore/QMap>
- QT_FORWARD_DECLARE_CLASS(QGraphicsView)
- QT_FORWARD_DECLARE_CLASS(QLabel)
- QT_FORWARD_DECLARE_CLASS(QSlider)
- QT_FORWARD_DECLARE_CLASS(QToolButton)
- QT_FORWARD_DECLARE_CLASS(QUndoStack)
- QT_FORWARD_DECLARE_CLASS(QGraphicsScene)
- #include "mytypes.h"
- using namespace VPrn;
- class ViewPort : public QFrame
- {
- Q_OBJECT
- public:
- ViewPort (QWidget *parent = 0);
- /**
- * @fn void showThumbNail(bool thumb,QSize t_size);
- * @brief ???????? ?????? ??????????? ?????? ????????
- * @param thumb;(true/false) ???./???? ????? "????????"
- * @param t_size; ?????? ??????? ????????
- */
- void showThumbNail(bool thumb,QSize t_size);
- /**
- * @fn void setPixMapList(PixmapList pList);
- * @brief ?????? ?????? ???????? ??? ??????????? ? ???? <int,QPixmap>
- */
- void setPixMapList(PixmapList pList);
- void setDescList(PixmapDescList descImagesList);
- signals:
- /**
- * @fn void selectPixmap(int p_number);
- * @brief ?????? ????? ????? ????????? "???????"
- */
- void selectPixmap(int p_number);
- public slots:
- void showPage(int p_number);
- /**
- * @fn void setupMatrix(int zoom);
- * @brief ????????? ???????? ???????????
- */
- void setupMatrix(int zoom);
- void zoomToFullSize();
- void zoomToFit();
- private slots:
- /**
- * @fn void onSceneSecletionChnaged();
- * @brief ??? ?????? ?? ????? ??????? ???????, ??????????? ??? ????????:
- * - ???? ???. ????? "????????", ?? ????????? ????? ??????? ???????
- * ? ??????? ????? ??? ?????????? ?????. ????? ?????? ?? ?????
- */
- void onSceneSecletionChnaged();
- private:
- int curPixmapNumber;
- QGraphicsView *graphicsView;
- bool m_thumb;
- QGraphicsScene *scene;
- QSize thumb_size;
- PixmapList m_pixmap_list;
- PixmapDescList m_desc_list;
- //-------------------------------------------------------------------------
- /**
- * @fn qreal addPairItem (qreal xPos,qreal yPos,int p_number,bool selected);
- * @brief ?????? ?? ?????? ???? ????????? ???????? ? ??????? ??? ???
- * @param qreal xPos ??????? ???????? ?? ???????????
- * @param qreal yPos ??????? ???????? ?? ?????????
- * @param int p_number ????? ???????? ? ??????
- * @param bool selected ???????? ???????? ??? ???
- * @return qreal yPos ?????????? ??????? ?? ?????? ????? ????????? ???????????? ????????
- */
- qreal addPairItem (qreal xPos,qreal yPos,int p_number,bool selected);
- };
- #endif // VIEWPORT_H