ScreenTranslator/Manager.h

46 lines
772 B
C
Raw Normal View History

2013-11-23 13:48:34 +07:00
#ifndef MANAGER_H
#define MANAGER_H
#include <QObject>
#include <QPixmap>
2013-11-24 19:43:37 +07:00
class QAction;
2013-11-23 13:48:34 +07:00
class QMenu;
class QSystemTrayIcon;
class SelectionDialog;
class Manager : public QObject
{
Q_OBJECT
public:
explicit Manager(QObject *parent = 0);
~Manager ();
signals:
void showPixmap (QPixmap pixmap);
void recognize (QPixmap pixmap);
2013-11-24 19:43:37 +07:00
void settingsEdited ();
2013-11-23 13:48:34 +07:00
private slots:
void capture ();
void settings ();
void close ();
2013-11-24 19:43:37 +07:00
void applySettings ();
void showTranslation (QString sourceText, QString translatedText);
2013-11-24 19:43:37 +07:00
void showError (QString text);
2013-11-23 13:48:34 +07:00
private:
QMenu* trayContextMenu ();
private:
QSystemTrayIcon* trayIcon_;
SelectionDialog* selection_;
2013-11-24 19:43:37 +07:00
QAction* captureAction_;
2013-11-23 13:48:34 +07:00
};
#endif // MANAGER_H