ScreenTranslator/SelectionDialog.h

37 lines
628 B
C
Raw Normal View History

2013-11-23 13:48:34 +07:00
#ifndef SELECTIONDIALOG_H
#define SELECTIONDIALOG_H
#include <QDialog>
#include <QPixmap>
2013-11-26 13:44:00 +07:00
#include "ProcessingItem.h"
2013-11-23 13:48:34 +07:00
namespace Ui {
class SelectionDialog;
}
class SelectionDialog : public QDialog
{
Q_OBJECT
public:
explicit SelectionDialog(QWidget *parent = 0);
~SelectionDialog();
bool eventFilter (QObject *object, QEvent *event);
signals:
2013-11-26 13:44:00 +07:00
void selected (ProcessingItem pixmap);
2013-11-23 13:48:34 +07:00
public slots:
void setPixmap (QPixmap pixmap);
private:
Ui::SelectionDialog *ui;
QPoint startSelectPos_;
QPoint currentSelectPos_;
QPixmap currentPixmap_;
};
#endif // SELECTIONDIALOG_H