Subversion Repositories tpanel

Rev

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

Rev 32 Rev 33
Line 34... Line 34...
34
    EXT_CURSOR_ROTATE_LEFT,
34
    EXT_CURSOR_ROTATE_LEFT,
35
    EXT_CURSOR_ROTATE_RIGHT,
35
    EXT_CURSOR_ROTATE_RIGHT,
36
    EXT_GESTURE_LEFT,
36
    EXT_GESTURE_LEFT,
37
    EXT_GESTURE_RIGHT,
37
    EXT_GESTURE_RIGHT,
38
    EXT_GESTURE_UP,
38
    EXT_GESTURE_UP,
39
    EXT_GESTURE_DOWN
39
    EXT_GESTURE_DOWN,
-
 
40
    EXT_GESTURE_ROTATE_LEFT,
-
 
41
    EXT_GESTURE_ROTATE_RIGHT,
-
 
42
    EXT_GESTURE_DOUBLE_PRESS,
-
 
43
    EXT_GENERAL
40
}extButtons_t;
44
}extButtons_t;
41
 
45
 
42
typedef struct EXTBUTTON_t
46
typedef struct EXTBUTTON_t
43
{
47
{
44
    int bi{0};              //!< Button index
48
    int bi{0};              //!< Button index
Line 61... Line 65...
61
    int rh{255};            //!< Level range high
65
    int rh{255};            //!< Level range high
62
    int lu{2};              //!< Level time up
66
    int lu{2};              //!< Level time up
63
    int ld{2};              //!< Level time down
67
    int ld{2};              //!< Level time down
64
    int so{1};
68
    int so{1};
65
    int co{1};
69
    int co{1};
-
 
70
    std::string ac;
-
 
71
    int ac_de{0};
-
 
72
    int at{0};
66
}EXBUTTON_t;
73
}EXBUTTON_t;
67
 
74
 
68
typedef struct EXTPAGE_t
75
typedef struct EXTPAGE_t
69
{
76
{
70
    int pageID;         //!< The ID of the page
77
    int pageID;         //!< The ID of the page
Line 78... Line 85...
78
        TExternal();
85
        TExternal();
79
 
86
 
80
        void setFileName(const std::string& fn);
87
        void setFileName(const std::string& fn);
81
        EXTBUTTON_t getButton(extButtons_t bt);
88
        EXTBUTTON_t getButton(extButtons_t bt);
82
        EXTBUTTON_t getButton(int pageId, extButtons_t bt);
89
        EXTBUTTON_t getButton(int pageId, extButtons_t bt);
-
 
90
        void setStrict(bool s) { mStrict = s; }
-
 
91
        bool getStrict() { return mStrict; }
83
 
92
 
84
    private:
93
    private:
85
        void initialize();
94
        void initialize();
-
 
95
        extButtons_t findCompatibel(extButtons_t bt);
86
 
96
 
87
        std::string mFileName;          //!< The file name of the configuration file
97
        std::string mFileName;          //!< The file name of the configuration file
88
        std::vector<EXTPAGE_t> mPages;  //!< External pages and buttons
98
        std::vector<EXTPAGE_t> mPages;  //!< External pages and buttons
-
 
99
        bool mStrict{true};             //!< TRUE = exact button comparison; FALSE = compatible button compare
89
};
100
};
90
 
101
 
91
#endif // TEXTERNAL_H
102
#endif // TEXTERNAL_H