Ignore:
Timestamp:
2012-10-20T20:27:24+02:00 (12 years ago)
Author:
adeas31
Message:
  • Removed some old classes.
  • Better connection support for array type connectors.
  • Don't call getClassNames every time for searching of Modelica classes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OMEdit/OMEditGUI/BitmapAnnotation.h

    r13405 r13537  
    4242class OMCProxy;
    4343
    44 class  BitmapAnnotation : public ShapeAnnotation
    45 {
    46   Q_OBJECT
    47 public:
    48   BitmapAnnotation(QString shape, Component *pParent);
    49   BitmapAnnotation(GraphicsView *graphicsView, QGraphicsItem *pParent = 0);
    50   BitmapAnnotation(QString shape, GraphicsView *graphicsView, QGraphicsItem *pParent = 0);
    51   QRectF boundingRect() const;
    52   QPainterPath shape() const;
    53   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
    54   void addPoint(QPointF point);
    55   void updateEndPoint(QPointF point);
    56   void drawRectangleCornerItems();
    57   QString getShapeAnnotation();
    58   void parseShapeAnnotation(QString shape, OMCProxy *omc);
    59   void setFileName(QString fileName);
    60   void updateAnnotation();
    61   void setImageSource(QString imageSource);
    62   QString getFileName();
    63 
    64   Component *mpComponent;
    65 private:
    66   QString mFileName;
    67   QString mImageSource;
    68 public slots:
    69   void updatePoint(int index, QPointF point);
    70 };
    71 
    72 //! @brief The popup when you create a bitmap shape
    73 
    74 class BitmapWidget : public QDialog
    75 {
    76   Q_OBJECT
    77 public:
    78   BitmapWidget(BitmapAnnotation *pBitmapShape, MainWindow *parent);
    79 
    80   void setUpForm();
    81   void show();
    82 
    83   MainWindow *mpMainWindow;
    84 private:
    85   QLineEdit *mpBrowseBox;
    86   QPushButton *mpBrowseButton;
    87   QPushButton *mpOkButton;
    88   QPushButton *mpCancelButton;
    89   QDialogButtonBox *mpButtonBox;
    90   QCheckBox *mpCheckBox;
    91   BitmapAnnotation *mpBitmapAnnotation;
    92 public slots:
    93   void edit();
    94   void browse();
    95 };
    96 
    9744#endif // BITMAPANNOTATION_H
Note: See TracChangeset for help on using the changeset viewer.