//--------------------------------------------------------- CWKSP::CWKSP(wxWindow *pParent) : wxNotebook(pParent, ID_WND_WKSP, wxDefaultPosition, wxDefaultSize, wxNB_TOP|wxNB_MULTILINE, _TL("Manager")) { wxNotebook *pNotebook; //----------------------------------------------------- g_pWKSP = this; //----------------------------------------------------- AssignImageList(new wxImageList(IMG_SIZE_NOTEBOOK, IMG_SIZE_NOTEBOOK, true, 0)); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_WKSP_TOOLS); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_WKSP_DATA); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_WKSP_MAPS); //----------------------------------------------------- m_pTools = new CWKSP_Tool_Control(this); SUBNB_CREATE(ID_WND_WKSP_DATA, _TL("Data")); m_pData = new CWKSP_Data_Control(pNotebook); m_pData_Buttons = new CWKSP_Data_Buttons(pNotebook); SUBNB_CREATE(ID_WND_WKSP_MAPS, _TL("Maps")); m_pMaps = new CWKSP_Map_Control (pNotebook); m_pMaps_Buttons = new CWKSP_Map_Buttons (pNotebook); }
//--------------------------------------------------------- CACTIVE::CACTIVE(wxWindow *pParent) : wxNotebook(pParent, ID_WND_ACTIVE, wxDefaultPosition, wxDefaultSize, wxNB_TOP|wxNB_MULTILINE, _TL("Properties")) { g_pACTIVE = this; m_pItem = NULL; //----------------------------------------------------- AssignImageList(new wxImageList(IMG_SIZE_NOTEBOOK, IMG_SIZE_NOTEBOOK, true, 0)); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_ACTIVE_PARAMETERS); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_ACTIVE_DESCRIPTION); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_ACTIVE_HISTORY); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_ACTIVE_ATTRIBUTES); IMG_ADD_TO_NOTEBOOK(ID_IMG_NB_ACTIVE_LEGEND); //----------------------------------------------------- m_pParameters = new CACTIVE_Parameters (this); m_pParameters ->SetName(_TL("Settings")); m_pDescription = new CACTIVE_Description (this); m_pDescription ->SetName(_TL("Description")); m_pHistory = new CACTIVE_History (this); m_pHistory ->SetName(_TL("History")); m_pLegend = new CACTIVE_Legend (this); m_pLegend ->SetName(_TL("Legend")); m_pAttributes = new CACTIVE_Attributes (this); m_pAttributes ->SetName(_TL("Attributes")); #if defined(_SAGA_MSW) m_pParameters ->Hide(); m_pDescription ->Hide(); m_pHistory ->Hide(); m_pLegend ->Hide(); m_pAttributes ->Hide(); #endif }