MythTV master
screenwizard.h
Go to the documentation of this file.
1#ifndef SCREENWIZARD_H
2#define SCREENWIZARD_H
3
4// Qt
5#include <QString>
6#include <QStringList>
7
8// MythTV
16
17class XMLParse;
19{
20 Q_OBJECT
21
22 public:
23
24 ScreenWizard(MythScreenStack *parent, const char *name);
25 ~ScreenWizard() override = default;
26
27 void SetInitialSettings(int _x, int _y, int _w, int _h);
28 bool Create(void) override; // MythScreenType
29 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
30 void customEvent(QEvent *event) override; // MythUIType
31
32 protected:
33 void doMenu();
34 void doExit();
35 private:
36 bool m_whichCorner { true };
37 bool m_coarseFine { false }; // fine adjustments by default
38 bool m_changed { false };
39 int m_fine { 1 }; // fine moves corners by one pixel
40 int m_coarse { 10 }; // coarse moves corners by ten pixels
42 int m_topLeftX { 0 };
43 int m_topLeftY { 0 };
44 int m_bottomRightX { 0 };
45 int m_bottomRightY { 0 };
46 int m_screenWidth { 0 };
47 int m_screenHeight { 0 };
48 int m_xSize { 0 };
49 int m_ySize { 0 };
50 int m_xOffset { 0 };
51 int m_yOffset { 0 };
52
55
56 MythUIShape *m_blackout { nullptr };
57 MythUIImage *m_preview { nullptr };
58 MythUIText *m_size { nullptr };
59 MythUIText *m_offsets { nullptr };
62
63 bool moveTLUp(void);
64 bool moveTLDown(void);
65 bool moveTLLeft(void);
66 bool moveTLRight(void);
67
68 bool moveBRUp(void);
69 bool moveBRDown(void);
70 bool moveBRLeft(void);
71 bool moveBRRight(void);
72
74 void updateScreen();
75 bool anythingChanged() const;
76
77 void slotSaveSettings() const;
79 static void slotResetSettings();
80};
81
82#endif
Basic menu dialog, message and a list of options.
Screen in which all other widgets are contained and rendered.
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
A widget for rendering primitive shapes and lines.
Definition: mythuishape.h:22
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
bool moveTLUp(void)
QRect m_arrowsRect
Definition: screenwizard.h:54
bool moveBRDown(void)
bool m_whichCorner
Definition: screenwizard.h:36
void slotChangeCoarseFine()
int m_bottomRightX
Definition: screenwizard.h:44
int m_bottomRightY
Definition: screenwizard.h:45
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void updateScreen()
static void slotResetSettings()
bool moveBRUp(void)
bool m_coarseFine
Definition: screenwizard.h:37
bool moveBRRight(void)
bool Create(void) override
~ScreenWizard() override=default
bool moveTLLeft(void)
void slotSaveSettings() const
ScreenWizard(MythScreenStack *parent, const char *name)
bool moveBRLeft(void)
MythUIShape * m_blackout
Definition: screenwizard.h:56
bool moveTLDown(void)
bool anythingChanged() const
QRect m_menuRect
Definition: screenwizard.h:53
MythUIText * m_changeAmount
Definition: screenwizard.h:60
int m_screenHeight
Definition: screenwizard.h:47
void wireUpTheme()
MythDialogBox * m_menuPopup
Definition: screenwizard.h:61
MythUIText * m_offsets
Definition: screenwizard.h:59
bool moveTLRight(void)
MythUIText * m_size
Definition: screenwizard.h:58
void customEvent(QEvent *event) override
void SetInitialSettings(int _x, int _y, int _w, int _h)
MythUIImage * m_preview
Definition: screenwizard.h:57