ScreenTranslator/Manager.h

40 lines
637 B
C++

#ifndef MANAGER_H
#define MANAGER_H
#include <QObject>
#include <QPixmap>
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);
private slots:
void capture ();
void settings ();
void close ();
void showTranslation (QString sourceText, QString translatedText);
private:
QMenu* trayContextMenu ();
private:
QSystemTrayIcon* trayIcon_;
SelectionDialog* selection_;
};
#endif // MANAGER_H