Subversion Repositories tpanel

Rev

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

Rev 462 Rev 486
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2020 to 2022 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2020 to 2025 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 41... Line 41...
41
    std::string fontFile;
41
    std::string fontFile;
42
    std::string themeFile;
42
    std::string themeFile;
43
    std::string iconFile;               // Only on TP4
43
    std::string iconFile;               // Only on TP4
44
    std::string externalButtonFile;
44
    std::string externalButtonFile;
45
    std::string appFile;                // Only on TP5
45
    std::string appFile;                // Only on TP5
-
 
46
    std::string logFile;                // Only on TP5
46
}SUPPORT_FILES;
47
}SUPPORT_FILES;
47
 
48
 
48
typedef struct PALETTE_SETUP
49
typedef struct PALETTE_SETUP
49
{
50
{
50
    std::string name;
51
    std::string name;
Line 157... Line 158...
157
        std::vector<RESOURCE_LIST_T>& getResourcesList() { return mResourceLists; }
158
        std::vector<RESOURCE_LIST_T>& getResourcesList() { return mResourceLists; }
158
        bool loadSettings(bool initial=false);
159
        bool loadSettings(bool initial=false);
159
        std::string& getPowerUpPage() { return mSetup.powerUpPage; }
160
        std::string& getPowerUpPage() { return mSetup.powerUpPage; }
160
        int getVoipCmdPort() { return mSetup.voipCommandPort; }
161
        int getVoipCmdPort() { return mSetup.voipCommandPort; }
161
        std::string& getPanelType() { return mProject.panelType; }
162
        std::string& getPanelType() { return mProject.panelType; }
162
        bool isTP5() { return mSetup.versionInfo.g5appsVersion > 0; }
163
        bool isTP5() { return mIsTp5; }
163
 
164
 
164
    private:
165
    private:
165
        RESOURCE_LIST_T findResourceType(const std::string& type);
166
        RESOURCE_LIST_T findResourceType(const std::string& type);
166
 
167
 
167
        std::string mPath;                              // The path to the resources
168
        std::string mPath;                              // The path to the resources
168
        PANEL_SETUP_T mSetup;                           // Settings read from file prj.xma
169
        PANEL_SETUP_T mSetup;                           // Settings read from file prj.xma
169
        PROJECT_INFO mProject;                          // The project information.
170
        PROJECT_INFO mProject;                          // The project information.
170
        std::vector<RESOURCE_LIST_T> mResourceLists;    // Resources (cameras) read from prj.xma
171
        std::vector<RESOURCE_LIST_T> mResourceLists;    // Resources (cameras) read from prj.xma
-
 
172
        bool mIsTp5{false};
171
};
173
};
172
 
174
 
173
 
175
 
174
 
176
 
175
#endif //AMXPANEL_SETTINGS_H
177
#endif //AMXPANEL_SETTINGS_H