Subversion Repositories tpanel

Rev

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

Rev 209 Rev 211
Line 17... Line 17...
17
 */
17
 */
18
 
18
 
19
#ifndef __TPAGEINTERFACE_H__
19
#ifndef __TPAGEINTERFACE_H__
20
#define __TPAGEINTERFACE_H__
20
#define __TPAGEINTERFACE_H__
21
 
21
 
-
 
22
#include <functional>
-
 
23
 
22
#include "tfont.h"
24
#include "tfont.h"
23
#include "tbutton.h"
25
#include "tbutton.h"
24
 
26
 
25
#define REGULAR_PAGE_START              0
27
#define REGULAR_PAGE_START              0
26
#define REGULAR_SUBPAGE_START           500
28
#define REGULAR_SUBPAGE_START           500
Line 221... Line 223...
221
        inline void registerListCallback(Button::TButton *button, T *pg)
223
        inline void registerListCallback(Button::TButton *button, T *pg)
222
        {
224
        {
223
            if (!button || !pg)
225
            if (!button || !pg)
224
                return;
226
                return;
225
 
227
 
226
            button->regCallListContent(bind(&TPageInterface::getListContent, pg, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6));
228
            button->regCallListContent(std::bind(&TPageInterface::getListContent, pg, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6));
227
            button->regCallListRow(bind(&TPageInterface::getListRow, pg, std::placeholders::_1, std::placeholders::_2));
229
            button->regCallListRow(std::bind(&TPageInterface::getListRow, pg, std::placeholders::_1, std::placeholders::_2));
228
            button->regCallGlobalSettings(bind(&TPageInterface::setGlobalSettings, pg, std::placeholders::_1));
230
            button->regCallGlobalSettings(std::bind(&TPageInterface::setGlobalSettings, pg, std::placeholders::_1));
229
        }
231
        }
230
 
232
 
231
        static bool isSystemPage(int ID) { return ID >= SYSTEM_PAGE_START && ID < SYSTEM_SUBPAGE_START; }
233
        static bool isSystemPage(int ID) { return ID >= SYSTEM_PAGE_START && ID < SYSTEM_SUBPAGE_START; }
232
        static bool isSystemSubPage(int ID) { return ID >= SYSTEM_SUBPAGE_START; }
234
        static bool isSystemSubPage(int ID) { return ID >= SYSTEM_SUBPAGE_START; }
233
        static bool isRegularPage(int ID) { return ID > REGULAR_PAGE_START && ID < REGULAR_SUBPAGE_START; }
235
        static bool isRegularPage(int ID) { return ID > REGULAR_PAGE_START && ID < REGULAR_SUBPAGE_START; }