Subversion Repositories tpanel

Rev

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

Rev 118 Rev 165
Line 59... Line 59...
59
    std::string i;      // image file name
59
    std::string i;      // image file name
60
    int id{0};
60
    int id{0};
61
    int rt{0};
61
    int rt{0};
62
    int pg{0};          // page number
62
    int pg{0};          // page number
63
    int bt{0};          // button number
63
    int bt{0};          // button number
64
    int st{0};
64
    int st{0};          // button instance
65
    int sl{0};
65
    int sl{0};
66
    std::string pn;     // page name
66
    std::string pn;     // page name
67
    std::string bn;     // button name
67
    std::string bn;     // button name
68
}MAP_BM_T;
68
}MAP_BM_T;
69
 
69
 
Line 101... Line 101...
101
 
101
 
102
        typedef enum MAP_TYPE
102
        typedef enum MAP_TYPE
103
        {
103
        {
104
            TYPE_CM = 1,    // ON / OFF
104
            TYPE_CM = 1,    // ON / OFF
105
            TYPE_AM,        // TXT, ...
105
            TYPE_AM,        // TXT, ...
106
            TYPE_LM         // Bargraphs
106
            TYPE_LM        // Bargraphs
107
        }MAP_TYPE;
107
        }MAP_TYPE;
108
 
108
 
109
        TAmxCommands();
109
        TAmxCommands();
110
        ~TAmxCommands();
110
        ~TAmxCommands();
111
 
111
 
112
        void setPChain(PCHAIN_T *ch) { mPChain = ch; }
112
        void setPChain(PCHAIN_T *ch) { mPChain = ch; }
113
        void setSPChain(SPCHAIN_T *ch) { mSPChain = ch; }
113
        void setSPChain(SPCHAIN_T *ch) { mSPChain = ch; }
114
        bool parseCommand(int device, int port, const std::string& cmd);
114
        bool parseCommand(int device, int port, const std::string& cmd);
115
        std::vector<MAP_T> findButtons(int port, std::vector<int>& channels, MAP_TYPE mt = TYPE_AM);
115
        std::vector<MAP_T> findButtons(int port, std::vector<int>& channels, MAP_TYPE mt = TYPE_AM);
-
 
116
        std::string findImage(int bt, int page, int instance=0);
-
 
117
        std::string findImage(const std::string& name);
116
        std::vector<MAP_T> findButtonByName(const std::string& name);
118
        std::vector<MAP_T> findButtonByName(const std::string& name);
117
        std::vector<MAP_T> findBargraphs(int port, std::vector<int>& channels);
119
        std::vector<MAP_T> findBargraphs(int port, std::vector<int>& channels);
118
        std::vector<std::string> findSounds();
120
        std::vector<std::string> findSounds();
119
        bool soundExist(const std::string& sname);
121
        bool soundExist(const std::string& sname);
120
        void registerCommand(std::function<void (int port, std::vector<int>& channels, std::vector<std::string>& pars)> command, const std::string& name);
122
        void registerCommand(std::function<void (int port, std::vector<int>& channels, std::vector<std::string>& pars)> command, const std::string& name);