Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed line endings of several files
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8077 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
10 changed files
with
2,913 additions
and
2,913 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,83 @@ | ||
/* | ||
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This program is distributed WITHOUT ANY WARRANTY; without | ||
* even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH | ||
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS | ||
* OF OSMC-PL. | ||
* | ||
* See the full OSMC Public License conditions for more details. | ||
* | ||
* Main Authors 2010: Syed Adeel Asghar, Sonia Tariq | ||
* | ||
*/ | ||
|
||
//! @file BitmapAnnotation.h | ||
//! @author harka011 | ||
//! @date 2011-02-01 | ||
|
||
//! @brief Class to create the bitmap shape | ||
|
||
#ifndef BITMAPANNOTATION_H | ||
#define BITMAPANNOTATION_H | ||
|
||
#include "ShapeAnnotation.h" | ||
#include "Component.h" | ||
|
||
class OMCProxy; | ||
|
||
class BitmapAnnotation : public ShapeAnnotation | ||
{ | ||
Q_OBJECT | ||
public: | ||
BitmapAnnotation(QString shape, Component *pParent = 0); | ||
BitmapAnnotation(GraphicsView *graphicsView, QGraphicsItem *pParent = 0); | ||
BitmapAnnotation(QString shape, GraphicsView *graphicsView, QGraphicsItem *pParent = 0); | ||
QRectF boundingRect() const; | ||
QPainterPath shape() const; | ||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); | ||
void addPoint(QPointF point); | ||
void updateEndPoint(QPointF point); | ||
void drawRectangleCornerItems(); | ||
QString getShapeAnnotation(); | ||
void parseShapeAnnotation(QString shape, OMCProxy *omc); | ||
void setFileName(QString fileName); | ||
void updateAnnotation(); | ||
void setImageSource(QString imageSource); | ||
QString getFileName(); | ||
|
||
Component *mpComponent; | ||
private: | ||
QString mFileName; | ||
QString mImageSource; | ||
public slots: | ||
void updatePoint(int index, QPointF point); | ||
}; | ||
|
||
//! @brief The popup when you create a bitmap shape | ||
|
||
class BitmapWidget : public QDialog | ||
{ | ||
Q_OBJECT | ||
public: | ||
BitmapWidget(BitmapAnnotation *pBitmapShape, MainWindow *parent = 0); | ||
|
||
void setUpForm(); | ||
void show(); | ||
|
||
MainWindow *mpParentMainWindow; | ||
private: | ||
QLineEdit *mpBrowseBox; | ||
QPushButton *mpBrowseButton; | ||
QPushButton *mpOkButton; | ||
QPushButton *mpCancelButton; | ||
QDialogButtonBox *mpButtonBox; | ||
QCheckBox *mpCheckBox; | ||
BitmapAnnotation *mpBitmapAnnotation; | ||
public slots: | ||
void edit(); | ||
void browse(); | ||
}; | ||
|
||
#endif // BITMAPANNOTATION_H | ||
/* | ||
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This program is distributed WITHOUT ANY WARRANTY; without | ||
* even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH | ||
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS | ||
* OF OSMC-PL. | ||
* | ||
* See the full OSMC Public License conditions for more details. | ||
* | ||
* Main Authors 2010: Syed Adeel Asghar, Sonia Tariq | ||
* | ||
*/ | ||
|
||
//! @file BitmapAnnotation.h | ||
//! @author harka011 | ||
//! @date 2011-02-01 | ||
|
||
//! @brief Class to create the bitmap shape | ||
|
||
#ifndef BITMAPANNOTATION_H | ||
#define BITMAPANNOTATION_H | ||
|
||
#include "ShapeAnnotation.h" | ||
#include "Component.h" | ||
|
||
class OMCProxy; | ||
|
||
class BitmapAnnotation : public ShapeAnnotation | ||
{ | ||
Q_OBJECT | ||
public: | ||
BitmapAnnotation(QString shape, Component *pParent = 0); | ||
BitmapAnnotation(GraphicsView *graphicsView, QGraphicsItem *pParent = 0); | ||
BitmapAnnotation(QString shape, GraphicsView *graphicsView, QGraphicsItem *pParent = 0); | ||
QRectF boundingRect() const; | ||
QPainterPath shape() const; | ||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); | ||
void addPoint(QPointF point); | ||
void updateEndPoint(QPointF point); | ||
void drawRectangleCornerItems(); | ||
QString getShapeAnnotation(); | ||
void parseShapeAnnotation(QString shape, OMCProxy *omc); | ||
void setFileName(QString fileName); | ||
void updateAnnotation(); | ||
void setImageSource(QString imageSource); | ||
QString getFileName(); | ||
|
||
Component *mpComponent; | ||
private: | ||
QString mFileName; | ||
QString mImageSource; | ||
public slots: | ||
void updatePoint(int index, QPointF point); | ||
}; | ||
|
||
//! @brief The popup when you create a bitmap shape | ||
|
||
class BitmapWidget : public QDialog | ||
{ | ||
Q_OBJECT | ||
public: | ||
BitmapWidget(BitmapAnnotation *pBitmapShape, MainWindow *parent = 0); | ||
|
||
void setUpForm(); | ||
void show(); | ||
|
||
MainWindow *mpParentMainWindow; | ||
private: | ||
QLineEdit *mpBrowseBox; | ||
QPushButton *mpBrowseButton; | ||
QPushButton *mpOkButton; | ||
QPushButton *mpCancelButton; | ||
QDialogButtonBox *mpButtonBox; | ||
QCheckBox *mpCheckBox; | ||
BitmapAnnotation *mpBitmapAnnotation; | ||
public slots: | ||
void edit(); | ||
void browse(); | ||
}; | ||
|
||
#endif // BITMAPANNOTATION_H |
Oops, something went wrong.