/* Marcion
Copyright (C) 2009 - 2011 Milan Konvicka
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program */
#ifndef MIMAGEWIDGET_H
#define MIMAGEWIDGET_H
#include <QWidget>
#include "mimage.h"
namespace Ui {
class MImageWidget;
}
class MImageWidget : public QWidget
{
Q_OBJECT
public:
explicit MImageWidget(QWidget *parent = 0);
~MImageWidget();
CMImage * drawarea();
private:
Ui::MImageWidget *ui;
QButtonGroup bgr;
private slots:
void on_gwArea_positionChanged(QPointF);
void on_btImageAction_clicked();
void on_btMove_clicked(bool checked);
void on_btSelect_clicked(bool checked);
void on_gwArea_mouseModeChanged(int);
void on_gwArea_settingsActivated(bool);
void on_btSett_clicked(bool checked);
void on_spnBorder_valueChanged(int );
void on_spnOpacity_valueChanged(int );
void on_ccPen_bgColorSelected(QColor);
void on_ccFill_bgColorSelected(QColor);
};
#endif // MIMAGEWIDGET_H