Skip to content

Commit

Permalink
- Fixed line endings of several files
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8077 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 4, 2011
1 parent 7e30b01 commit b605a21
Show file tree
Hide file tree
Showing 10 changed files with 2,913 additions and 2,913 deletions.
756 changes: 378 additions & 378 deletions OMEdit/OMEditGUI/BitmapAnnotation.cpp

Large diffs are not rendered by default.

166 changes: 83 additions & 83 deletions OMEdit/OMEditGUI/BitmapAnnotation.h
@@ -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

0 comments on commit b605a21

Please sign in to comment.