33 #ifndef rqt_image_view__RatioLayoutedFrame_H 34 #define rqt_image_view__RatioLayoutedFrame_H 39 #include <QLayoutItem> 115 #endif // rqt_image_view__RatioLayoutedFrame_H
void setOuterLayout(QHBoxLayout *outer_layout)
RatioLayoutedFrame(QWidget *parent, Qt::WindowFlags flags=0)
QImage getImageCopy() const
void mouseLeft(int x, int y)
const QImage & getImage() const
void setInnerFrameMinimumSize(const QSize &size)
static int greatestCommonDivisor(int a, int b)
void mousePressEvent(QMouseEvent *mouseEvent)
void setInnerFrameMaximumSize(const QSize &size)
virtual ~RatioLayoutedFrame()
void setInnerFrameFixedSize(const QSize &size)
void setAspectRatio(unsigned short width, unsigned short height)
void setImage(const QImage &image)
void paintEvent(QPaintEvent *event)
QHBoxLayout * outer_layout_
void resizeToFitAspectRatio()
void onSmoothImageChanged(bool checked)
QRect getAspectRatioCorrectPaintArea()