📄 buildgraphicevent.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 _BUILDGRAPHICEVENT_H_#define _BUILDGRAPHICEVENT_H_#include "equal_headers.h"class buildGraphicEvent : public QEvent{public: class buildObject{ public: enum objType{Graphic,Definition}; objType type; inline buildObject(objType t):type(t){} inline virtual ~buildObject(){} }; class buildGraphic : public buildObject{ public: inline buildGraphic() : buildObject(buildObject::Graphic){} //vector<string> system; string system; QColor color; }; class buildDefinition : public buildObject{ public: inline buildDefinition(void) : buildObject(buildObject::Definition){} QString defintion; }; double left,right,top,bottom; int w,h; double parameter; int parameterset; vector<buildObject *> objectsToBuild; inline buildGraphicEvent() : QEvent(QEvent::User) { w = h = 0; left = right = top = bottom = 0; parameter = 0; parameterset = 0; } inline void clear(void){ for(unsigned int i = 0;i < objectsToBuild.size();i++) delete objectsToBuild[i]; objectsToBuild.clear(); }};#endif //_BUILDGRAPHICEVENT_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -