#include <QImage> #include <QPaintEvent> #include <QResizeEvent> #include <QWidget> class ImageProjector : public QWidget { Q_OBJECT public: ImageProjector(void); ~ImageProjector(void); void setImage( QImage* i ) { image = i; }; void setScale( double s ); signals: void resized( int width, int height ); protected: virtual void paintEvent( QPaintEvent* e ); void resizeEvent( QResizeEvent* e ); int displayWidth; int displayHeight; private: QImage* image; bool autoSize; double scale; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 5519 | Sam Stafford |
Added the paintbrush tool. Now we're getting somewhere. |
||
#4 | 5516 | Sam Stafford | The M is for Merge. | ||
#3 | 5505 | Sam Stafford | Add "diff stencil". | ||
#2 | 5502 | Sam Stafford |
Status bar with handy information, and infrastructure to allow ImageProjectors to have frames. |
||
#1 | 5501 | Sam Stafford |
Codename CALAMARI. Built with Qt 4.1.3 - needs QtCore4.dll and QtGui4.dll to run. |