📄 mygraphic.h
字号:
/************************************************************************************************************************************************************** **** equal III the graphic builder **** **** Copyright (C) 2003 Oleksiy Pylypenko **** **** This file may be distributed and/or modified under the terms of the **** GNU General Public License version 2 as published by the Free Software **** Foundation and appearing in the file license included in the **** packaging of this file. **** **** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE **** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. **** **** Contact earthman@inbox.ru if any conditions of this licensing are **** not clear to you. **** **** ********************************************************************************* *****************************************************************************/#ifndef MYGRAPHIC_H#define MYGRAPHIC_H#include <qwidget.h>#include <qimage.h>#include <qpixmap.h>#include <qthread.h>//#include <qmutex.h>#include "equal_headers.h"#include "builder.h"class myGraphic : public QWidget{ Q_OBJECTprotected: int myWidth; int myHeight; unsigned int *myImage; QMutex imageMutex; QImage anImage; vector<string> graphicNames;public: GraphicBuilder::DoubleRect scale; myGraphic( QWidget *parent=0); ~myGraphic(); void UpdateAnImage(int w = 0,int h = 0,unsigned int *image = 0,vector<QRgb> graphiccolor = vector<QRgb>(),vector<string> graphicname = vector<string>()); void resizeEvent( QResizeEvent * event ); void paintEvent( QPaintEvent * event ); virtual QSize sizeHint() const; QString getGraphicName(QPoint pt); void clear(void);public slots: void export_bitmap(void);signals: void updateSize(QSize s);};#endif //MYGRAPHIC_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -