Subversion Repositories tpanel

Rev

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

Rev 152 Rev 154
Line 28... Line 28...
28
#include "terror.h"
28
#include "terror.h"
29
#include "tpalette.h"
29
#include "tpalette.h"
30
#include "tfont.h"
30
#include "tfont.h"
31
 
31
 
32
#define ZORDER_INVALID      -1
32
#define ZORDER_INVALID      -1
-
 
33
#define MAX_PAGE_ID         500
-
 
34
 
33
 
35
 
34
typedef struct PAGECHAIN_T
36
typedef struct PAGECHAIN_T
35
{
37
{
36
    TSubPage *subpage{nullptr}; // Ponter to subpage
38
    TSubPage *subpage{nullptr}; // Ponter to subpage
-
 
39
    PAGECHAIN_T *prev{nullptr}; // Pointer to previous element
37
    PAGECHAIN_T *next{nullptr}; // Pointer to next element
40
    PAGECHAIN_T *next{nullptr}; // Pointer to next element
38
}PAGECHAIN_T;
41
}PAGECHAIN_T;
39
 
42
 
40
class TPage : public TValidateFile
43
class TPage : public TValidateFile
41
{
44
{
Line 66... Line 69...
66
        PAGECHAIN_T *addSubPage(TSubPage *pg);
69
        PAGECHAIN_T *addSubPage(TSubPage *pg);
67
        TSubPage *getSubPage(int pageID);
70
        TSubPage *getSubPage(int pageID);
68
        TSubPage *getSubPage(const std::string& name);
71
        TSubPage *getSubPage(const std::string& name);
69
        TSubPage *getFirstSubPage();
72
        TSubPage *getFirstSubPage();
70
        TSubPage *getNextSubPage();
73
        TSubPage *getNextSubPage();
-
 
74
        TSubPage *getPrevSubPage();
-
 
75
        TSubPage *getLastSubPage();
71
        bool removeSubPage(int ID);
76
        bool removeSubPage(int ID);
72
        bool removeSubPage(const std::string& nm);
77
        bool removeSubPage(const std::string& nm);
73
        int getActZOrder() { return mZOrder; }
78
        int getActZOrder() { return mZOrder; }
74
        int getNextZOrder();
79
        int getNextZOrder();
75
        int decZOrder();
80
        int decZOrder();