Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp
/* Copyright (C) 2022 Wildfire Games. | /* Copyright (C) 2023 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 375 Lines • ▼ Show 20 Lines | BEGIN_EVENT_TABLE(ScenarioEditor, wxFrame) | ||||
EVT_IDLE(ScenarioEditor::OnIdle) | EVT_IDLE(ScenarioEditor::OnIdle) | ||||
END_EVENT_TABLE() | END_EVENT_TABLE() | ||||
static AtlasWindowCommandProc g_CommandProc; | static AtlasWindowCommandProc g_CommandProc; | ||||
AtlasWindowCommandProc& ScenarioEditor::GetCommandProc() { return g_CommandProc; } | AtlasWindowCommandProc& ScenarioEditor::GetCommandProc() { return g_CommandProc; } | ||||
ScenarioEditor::ScenarioEditor(wxWindow* parent) | ScenarioEditor::ScenarioEditor(wxWindow* parent) | ||||
: wxFrame(parent, wxID_ANY, _T(""), wxDefaultPosition, wxSize(1024, 768)) | : wxFrame(parent, wxID_ANY, _T(""), wxDefaultPosition, wxSize(1280, 768)) | ||||
, m_FileHistory(_T("Scenario Editor")) | , m_FileHistory(_T("Scenario Editor")) | ||||
, m_ObjectSettings(g_SelectedObjects, AtlasMessage::eRenderView::GAME) | , m_ObjectSettings(g_SelectedObjects, AtlasMessage::eRenderView::GAME) | ||||
, m_ToolManager(this) | , m_ToolManager(this) | ||||
{ | { | ||||
// Global application initialisation: | // Global application initialisation: | ||||
wxImage::AddHandler(new wxICOHandler); | wxImage::AddHandler(new wxICOHandler); | ||||
▲ Show 20 Lines • Show All 757 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator