Subversion Repositories tpanel

Rev

Rev 23 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23 Rev 31
Line 81... Line 81...
81
        void setBackground(ulong handle, QByteArray image, size_t rowBytes, ulong color);
81
        void setBackground(ulong handle, QByteArray image, size_t rowBytes, ulong color);
82
        void setText(ulong handle, const std::string& text, const std::string& font, const std::string& family, int size, int x, int y, ulong color, ulong effectColor, FONT_STYLE style, Button::TEXT_ORIENTATION ori, Button::TEXT_EFFECT effect, bool ww);
82
        void setText(ulong handle, const std::string& text, const std::string& font, const std::string& family, int size, int x, int y, ulong color, ulong effectColor, FONT_STYLE style, Button::TEXT_ORIENTATION ori, Button::TEXT_EFFECT effect, bool ww);
83
        void dropPage(ulong handle);
83
        void dropPage(ulong handle);
84
        void dropSubPage(ulong handle);
84
        void dropSubPage(ulong handle);
85
        void playVideo(ulong handle, ulong parent, int left, int top, int width, int height, const std::string& url, const std::string& user, const std::string& pw);
85
        void playVideo(ulong handle, ulong parent, int left, int top, int width, int height, const std::string& url, const std::string& user, const std::string& pw);
-
 
86
        void appStateChanged(Qt::ApplicationState state);
86
 
87
 
87
    private:
88
    private:
88
        void createActions();
89
        void createActions();
89
        void writeSettings();
90
        void writeSettings();
-
 
91
        void removeFromShowList(ulong handle);
-
 
92
        void playShowList();
90
 
93
 
91
        void _displayButton(ulong handle, ulong parent, unsigned char* buffer, int width, int height, int pixline, int left, int top);
94
        void _displayButton(ulong handle, ulong parent, unsigned char* buffer, int width, int height, int pixline, int left, int top);
92
        void _setPage(ulong handle, int width, int height);
95
        void _setPage(ulong handle, int width, int height);
93
        void _setSubPage(ulong handle, int left, int top, int width, int height);
96
        void _setSubPage(ulong handle, int left, int top, int width, int height);
94
        void _setBackground(ulong handle, unsigned char *image, size_t size, size_t rowBytes, ulong color);
97
        void _setBackground(ulong handle, unsigned char *image, size_t size, size_t rowBytes, ulong color);
Line 100... Line 103...
100
        TQtSettings *mSettings{nullptr};    // The pointer to the settings dialog
103
        TQtSettings *mSettings{nullptr};    // The pointer to the settings dialog
101
        bool settingsChanged{false};        // true = settings have changed
104
        bool settingsChanged{false};        // true = settings have changed
102
        QWidget *mBackground{nullptr};      // The background of the visible page
105
        QWidget *mBackground{nullptr};      // The background of the visible page
103
        std::string mVideoURL;              // If the button is a video, this is the URL where it plays from.
106
        std::string mVideoURL;              // If the button is a video, this is the URL where it plays from.
104
        std::string mFileConfig;            // Path and file name of the config file
107
        std::string mFileConfig;            // Path and file name of the config file
-
 
108
        bool mHasFocus{true};               // If this is FALSE, no output to sceen is allowed.
-
 
109
        std::map<ulong, QWidget *> mToShow; // List of widgets to show after focus is restored
105
};
110
};
106
 
111
 
107
#endif
112
#endif