278 lines
8.3 KiB
C
278 lines
8.3 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <string>
|
|||
|
//#include "UI/TextureBean.h"
|
|||
|
#include "external/SQLiteCpp/SQLiteCpp.h"
|
|||
|
#include <map>
|
|||
|
using namespace std;
|
|||
|
|
|||
|
class ChartletManager
|
|||
|
{
|
|||
|
public:
|
|||
|
bool Init();
|
|||
|
void LoadCharlet();
|
|||
|
void LoadLogoIcon();
|
|||
|
static ChartletManager* GetInstance();
|
|||
|
bool HasIcoLogo() { return m_HasIcoLogo; }
|
|||
|
private:
|
|||
|
ChartletManager(const ChartletManager&) {};
|
|||
|
ChartletManager& operator=(const ChartletManager&) {};
|
|||
|
ChartletManager();
|
|||
|
~ChartletManager();
|
|||
|
public:
|
|||
|
//map<string, TextureBean*> m_TextureMap;
|
|||
|
|
|||
|
////TextureBean* m_RecyBottle;
|
|||
|
//TextureBean* m_LogoTitle;
|
|||
|
//TextureBean* m_LogoTitleEn;
|
|||
|
//TextureBean* m_ScreenWin;
|
|||
|
//TextureBean* m_ScreenFull;
|
|||
|
//TextureBean* m_AppClose;
|
|||
|
//TextureBean* m_ToolbarRight;
|
|||
|
//TextureBean* m_AutoOxygenDisable;
|
|||
|
//TextureBean* m_AutoOxygenEnable;
|
|||
|
//TextureBean* m_LaserOff;
|
|||
|
//TextureBean* m_LaserOn;
|
|||
|
//TextureBean* m_LightOff;
|
|||
|
//TextureBean* m_LightOn;
|
|||
|
//TextureBean* m_HeatOn;
|
|||
|
//TextureBean* m_HeatOff;
|
|||
|
//TextureBean* m_CheckEnable;
|
|||
|
//TextureBean* m_CheckDisable;
|
|||
|
//TextureBean* m_FitView;
|
|||
|
//TextureBean* m_Lock;
|
|||
|
//TextureBean* m_StartEnable;
|
|||
|
//TextureBean* m_StartDisable;
|
|||
|
//TextureBean* m_Pause;
|
|||
|
//TextureBean* m_StopEnable;
|
|||
|
//TextureBean* m_StopDisable;
|
|||
|
//TextureBean* m_SystemStatus;
|
|||
|
//TextureBean* m_SafeDoorStatus;
|
|||
|
//TextureBean* m_PositionStatus;
|
|||
|
//TextureBean* m_PositionPowder;
|
|||
|
//TextureBean* m_OxygenStatus;
|
|||
|
//TextureBean* m_HNarrow;
|
|||
|
//TextureBean* m_HExpand;
|
|||
|
//TextureBean* m_UpArrowGreenBar;
|
|||
|
//TextureBean* m_UpArrowRedBar;
|
|||
|
//TextureBean* m_UpArrowGreen;
|
|||
|
//TextureBean* m_UpArrowRed;
|
|||
|
//TextureBean* m_DownArrowGreenBar;
|
|||
|
//TextureBean* m_DownArrowRedBar;
|
|||
|
//TextureBean* m_DownArrowGreen;
|
|||
|
//TextureBean* m_DownArrowRed;
|
|||
|
//TextureBean* m_ToZero;
|
|||
|
//TextureBean* m_LeftArrowGreen;
|
|||
|
//TextureBean* m_LeftArrowGreenBar;
|
|||
|
//TextureBean* m_LeftArrowRed;
|
|||
|
//TextureBean* m_LeftArrowRedBar;
|
|||
|
//TextureBean* m_RightArrowGreen;
|
|||
|
//TextureBean* m_RightArrowGreenBar;
|
|||
|
//TextureBean* m_RightArrowRed;
|
|||
|
//TextureBean* m_RightArrowRedBar;
|
|||
|
//TextureBean* m_Cursor;
|
|||
|
//TextureBean* m_Mold;
|
|||
|
//TextureBean* m_Arm;
|
|||
|
//TextureBean* m_CoverBody;
|
|||
|
//TextureBean* m_CoverArm;
|
|||
|
//TextureBean* m_CoverMold;
|
|||
|
//TextureBean* m_CoverPowder;
|
|||
|
//TextureBean* m_PowderDown;
|
|||
|
//TextureBean* m_MotionBg;
|
|||
|
//TextureBean* m_LeftPressure;
|
|||
|
//TextureBean* m_RightPressure;
|
|||
|
//TextureBean* m_MoldSupportLeft;
|
|||
|
//TextureBean* m_MoldSupportRight;
|
|||
|
//TextureBean* m_JackUp;
|
|||
|
//TextureBean* m_BasePlatform;
|
|||
|
//TextureBean* m_LoadIn;
|
|||
|
//TextureBean* m_LoadOut;
|
|||
|
//TextureBean* m_CleanCloseConnect;
|
|||
|
//TextureBean* m_CleanCloseDisconnect;
|
|||
|
//TextureBean* m_CleanOpenConnect;
|
|||
|
//TextureBean* m_CleanOpenDisconnect;
|
|||
|
//TextureBean* m_ResetException;
|
|||
|
//TextureBean* m_AlarmRemove;
|
|||
|
|
|||
|
//TextureBean* m_MoldMove3RSepDisable;
|
|||
|
//TextureBean* m_MoldMove3RSepEnable;
|
|||
|
//TextureBean* m_MoldMove3RSeping;
|
|||
|
//TextureBean* m_MoldMoveDeoxygenDisable;
|
|||
|
//TextureBean* m_MoldMoveDeoxygenEnable;
|
|||
|
//TextureBean* m_MoldMoveDeoxygening;
|
|||
|
//TextureBean* m_MoldMoveDownestDisable;
|
|||
|
//TextureBean* m_MoldMoveDownestEnable;
|
|||
|
//TextureBean* m_MoldMoveDownesting;
|
|||
|
//TextureBean* m_MoldMovePlatformDisable;
|
|||
|
//TextureBean* m_MoldMovePlatformEnable;
|
|||
|
//TextureBean* m_MoldMovePlatforming;
|
|||
|
//TextureBean* m_MoldMovePlatformBottomDisable;
|
|||
|
//TextureBean* m_MoldMovePlatformBottomEnable;
|
|||
|
//TextureBean* m_MoldMovePlatformBottoming;
|
|||
|
//TextureBean* m_MoldMoveSepDisable;
|
|||
|
//TextureBean* m_MoldMoveSepEnable;
|
|||
|
//TextureBean* m_MoldMoveSeping;
|
|||
|
|
|||
|
//TextureBean* m_LoadCleanPosDisable;
|
|||
|
//TextureBean* m_LoadCleanPosEnable;
|
|||
|
//TextureBean* m_LoadCleanPosing;
|
|||
|
//TextureBean* m_LoadHandPosDisable;
|
|||
|
//TextureBean* m_LoadHandPosEnable;
|
|||
|
//TextureBean* m_LoadHandPosing;
|
|||
|
//TextureBean* m_LoadPrintPosDisable;
|
|||
|
//TextureBean* m_LoadPrintPosEnable;
|
|||
|
//TextureBean* m_LoadPrintPosing;
|
|||
|
//TextureBean* m_LoadWaitPosDisable;
|
|||
|
//TextureBean* m_LoadWaitPosEnable;
|
|||
|
//TextureBean* m_LoadWaitPosing;
|
|||
|
|
|||
|
//TextureBean* m_ArmAcceptPosDisable;
|
|||
|
//TextureBean* m_ArmAcceptPosEnable;
|
|||
|
//TextureBean* m_ArmAcceptPosing;
|
|||
|
//TextureBean* m_ArmFrontDropPosDisable;
|
|||
|
//TextureBean* m_ArmFrontDropPosEnable;
|
|||
|
//TextureBean* m_ArmFrontDropPosing;
|
|||
|
|
|||
|
//TextureBean* m_SetPlatformLevelPos;
|
|||
|
|
|||
|
//TextureBean* m_GreenRound;
|
|||
|
//TextureBean* m_RedRound;
|
|||
|
|
|||
|
//TextureBean* m_AppLogo48;
|
|||
|
//TextureBean* m_AppLogo32;
|
|||
|
//TextureBean* m_AppLogo16;
|
|||
|
//TextureBean* m_AppLogo48En;
|
|||
|
//TextureBean* m_AppLogo32En;
|
|||
|
//TextureBean* m_AppLogo16En;
|
|||
|
private:
|
|||
|
SQLite::Database* m_pDB;
|
|||
|
bool m_HasIcoLogo;
|
|||
|
public:
|
|||
|
static string SPLASH_BG;
|
|||
|
static string SPLASH_BG_EN;
|
|||
|
static string CURSOR;
|
|||
|
static string LEFT_ARROW_GREEN;
|
|||
|
static string LEFT_ARROW_GREEN_BAR;
|
|||
|
static string LEFT_ARROW_RED;
|
|||
|
static string LEFT_ARROW_RED_BAR;
|
|||
|
static string UP_ARROW_GREEN;
|
|||
|
static string UP_ARROW_GREEN_BAR;
|
|||
|
static string UP_ARROW_RED;
|
|||
|
static string UP_ARROW_RED_BAR;
|
|||
|
static string RIGHT_ARROW_GREEN;
|
|||
|
static string RIGHT_ARROW_GREEN_BAR;
|
|||
|
static string RIGHT_ARROW_RED;
|
|||
|
static string RIGHT_ARROW_RED_BAR;
|
|||
|
static string DOWN_ARROW_GREEN;
|
|||
|
static string DOWN_ARROW_GREEN_BAR;
|
|||
|
static string DOWN_ARROW_RED;
|
|||
|
static string DOWN_ARROW_RED_BAR;
|
|||
|
static string AXIS_ON;
|
|||
|
static string AXIS_OFF;
|
|||
|
static string HEXPAND;
|
|||
|
static string HNARROW;
|
|||
|
static string LOAD;
|
|||
|
static string UNLOAD;
|
|||
|
static string START_ENABLE;
|
|||
|
static string START_DISABLE;
|
|||
|
static string PAUSE_ENABLE;
|
|||
|
static string PAUSE_DISABLE;
|
|||
|
static string STOP_ENABLE;
|
|||
|
static string STOP_DISABLE;
|
|||
|
static string AUTO_OXYGEN_ENABLE;
|
|||
|
static string AUTO_OXYGEN_DISABLE;
|
|||
|
static string REMOVE;
|
|||
|
static string OXYGEN_STATUS;
|
|||
|
static string SYSTEM_STATUS;
|
|||
|
static string SAFEDOOR_STATUS;
|
|||
|
static string POSITION_STATUS;
|
|||
|
static string LOCK;
|
|||
|
static string MOLD;
|
|||
|
static string TOOLBAR_RIGHT;
|
|||
|
static string ARM;
|
|||
|
static string DEDUSTE_ENABLE;
|
|||
|
static string DEDUSTE_DISABLE;
|
|||
|
static string FIT_VIEW;
|
|||
|
static string TO_ZERO;
|
|||
|
static string LOGO_TITLE;
|
|||
|
static string LOGO_TITLE_EN;
|
|||
|
static string SCREEN_WIN;
|
|||
|
static string SCREEN_FULL;
|
|||
|
static string APP_CLOSE;
|
|||
|
static string LASER_ON;
|
|||
|
static string LASER_OFF;
|
|||
|
static string LIGHT_ON;
|
|||
|
static string LIGHT_OFF;
|
|||
|
static string COVER_BODY;
|
|||
|
static string COVER_ARM;
|
|||
|
static string COVER_MOLD;
|
|||
|
static string COVER_POWDER;
|
|||
|
static string PAUSE;
|
|||
|
static string POSITION_POWDER;
|
|||
|
static string HEAT_ON;
|
|||
|
static string HEAT_OFF;
|
|||
|
static string POWDER_DOWN;
|
|||
|
static string CHECK_ENABLE;
|
|||
|
static string CHECK_DISABLE;
|
|||
|
static string ICO_LOGO_48;
|
|||
|
static string ICO_LOGO_32;
|
|||
|
static string ICO_LOGO_16;
|
|||
|
static string ICO_LOGO_48_EN;
|
|||
|
static string ICO_LOGO_32_EN;
|
|||
|
static string ICO_LOGO_16_EN;
|
|||
|
static string MOTION_BG;
|
|||
|
static string LEFT_PRESSURE;
|
|||
|
static string RIGHT_PRESSURE;
|
|||
|
static string MOLD_SUPPORT_LEFT;
|
|||
|
static string MOLD_SUPPORT_RIGHT;
|
|||
|
static string JACK_UP;
|
|||
|
static string BASE_PLATFORM;
|
|||
|
static string CLEAN_CLOSE_CONNECT;
|
|||
|
static string CLEAN_CLOSE_UNCONNECT;
|
|||
|
static string CLEAN_OPEN_CONNECT;
|
|||
|
static string CLEAN_OPEN_UNCONNECT;
|
|||
|
static string RESET_EXCEPTION;
|
|||
|
static string ALARM_REMOVE;
|
|||
|
|
|||
|
static string MOLD_MOVE_3R_SEP_DISABLE;
|
|||
|
static string MOLD_MOVE_3R_SEP_Enable;
|
|||
|
static string MOLD_MOVE_3R_SEPING;
|
|||
|
static string MOLD_MOVE_DEOXYGEN_DISABLE;
|
|||
|
static string MOLD_MOVE_DEOXYGEN_ENABLE;
|
|||
|
static string MOLD_MOVE_DEOXYGENING;
|
|||
|
static string MOLD_MOVE_DOWNEST_DISABLE;
|
|||
|
static string MOLD_MOVE_DOWNEST_ENABLE;
|
|||
|
static string MOLD_MOVE_DOWNESTING;
|
|||
|
static string MOLD_MOVE_PLATFORM_DISABLE;
|
|||
|
static string MOLD_MOVE_PLATFORM_ENABLE;
|
|||
|
static string MOLD_MOVE_PLATFORMING;
|
|||
|
static string MOLD_MOVE_PLATFORM_BOTTOM_DISABLE;
|
|||
|
static string MOLD_MOVE_PLATFORM_BOTTOM_ENABLE;
|
|||
|
static string MOLD_MOVE_PLATFORM_BOTTOMING;
|
|||
|
static string MOLD_MOVE_SEP_DISABLE;
|
|||
|
static string MOLD_MOVE_SEP_ENABLE;
|
|||
|
static string MOLD_MOVE_SEPING;
|
|||
|
static string LOAD_CLEAN_POS_DISABLE;
|
|||
|
static string LOAD_CLEAN_POS_ENABLE;
|
|||
|
static string LOAD_CLEAN_POSING;
|
|||
|
static string LOAD_HAND_POS_DISABLE;
|
|||
|
static string LOAD_HAND_POS_ENABLE;
|
|||
|
static string LOAD_HAND_POSING;
|
|||
|
static string LOAD_PRINT_POS_DISABLE;
|
|||
|
static string LOAD_PRINT_POS_ENABLE;
|
|||
|
static string LOAD_PRINT_POSING;
|
|||
|
static string LOAD_WAIT_POS_DISABLE;
|
|||
|
static string LOAD_WAIT_POS_ENABLE;
|
|||
|
static string LOAD_WAIT_POSING;
|
|||
|
static string ARM_ACCEPT_POS_DISABLE;
|
|||
|
static string ARM_ACCEPT_POS_ENABLE;
|
|||
|
static string ARM_ACCEPT_POSING;
|
|||
|
static string ARM_FRONT_DROP_POS_DIABLE;
|
|||
|
static string ARM_FRONT_DROP_POS_ENABLE;
|
|||
|
static string ARM_FRONT_DROP_POSING;
|
|||
|
static string SET_PLATFORM_LEVEL_POS;
|
|||
|
static string GREEN_ROUND;
|
|||
|
static string RED_ROUND;
|
|||
|
};
|
|||
|
|