39 explicit FotoBox(QWidget *parent =
nullptr);
75 void preferenceDialog();
78 #if defined(Q_OS_MACOS)
83 void closeFullscreenWindowOnMac();
91 void keyPressEvent(QKeyEvent *event)
override;
98 void mouseReleaseEvent(QMouseEvent *event)
override;
119 void loadPhoto(
const QString &i_filePath);
125 void drawText(
const QString &i_text);
133 auto static calculateFontSize(
double i_width,
double i_widthFont) -> double;
136 static constexpr
int STATUSBAR_MSG_TIMEOUT = 8000;
139 static constexpr
double COMPARE = 1.25;
163 const std::vector<Qt::Key>
164 m_triggerKey{Qt::Key_N, Qt::Key_Return, Qt::Key_Enter, Qt::Key_PageDown, Qt::Key_PageUp, Qt::Key_Left, Qt::Key_Right, Qt::Key_Up, Qt::Key_Down, Qt::Key_Space, Qt::Key_Backspace};
167 const std::vector<Qt::Key> m_preferenceKey{Qt::Key_P, Qt::Key_S, Qt::Key_E};
170 const std::vector<Qt::Key> m_quitKey{Qt::Key_Escape, Qt::Key_Q};
This class handles the buzzer.
The Camera class Use gphoto2 to send commands to camera.
void startBuzzer()
signal: start query pin with Buzzer class
void start()
signal: start FotoBox
FotoBox(const FotoBox &other)=delete
FotoBox default copy constructor.
FotoBox & operator=(const FotoBox &other)=delete
FotoBox default copy assignment.
FotoBox(FotoBox &&other)=delete
FotoBox default move constructor.
FotoBox & operator=(FotoBox &&other)=delete
FotoBox default move assignment.