コード例 #1
0
 SmartAttributeEditorManager::SmartAttributeEditorManager(wxWindow* parent, View::MapDocumentWPtr document) :
 wxPanel(parent),
 m_document(document),
 m_name("") {
     createEditors();
     activateEditor(defaultEditor(), "");
     bindObservers();
 }
コード例 #2
0
        void EntityDefinitionManager::setDefinitions(const EntityDefinitionList& newDefinitions) {
            clear();

            m_definitions = newDefinitions;

            updateIndices();
            updateGroups();
            updateCache();
            bindObservers();
        }
コード例 #3
0
 FaceAttribsEditor::FaceAttribsEditor(wxWindow* parent, MapDocumentWPtr document, GLContextManager& contextManager) :
 wxPanel(parent),
 m_document(document),
 m_uvEditor(NULL),
 m_xOffsetEditor(NULL),
 m_yOffsetEditor(NULL),
 m_xScaleEditor(NULL),
 m_yScaleEditor(NULL),
 m_rotationEditor(NULL),
 m_surfaceValueLabel(NULL),
 m_surfaceValueEditor(NULL),
 m_faceAttribsSizer(NULL),
 m_surfaceFlagsLabel(NULL),
 m_surfaceFlagsEditor(NULL),
 m_contentFlagsLabel(NULL),
 m_contentFlagsEditor(NULL) {
     createGui(contextManager);
     bindEvents();
     bindObservers();
 }
コード例 #4
0
 void GameDialog::createDialog(wxWindow* parent, const wxString& title, const wxString& infoText) {
     Create(wxGetTopLevelParent(parent), wxID_ANY, title);
     createGui(title, infoText);
     bindObservers();
     CentreOnParent();
 }