Differential D825 Diff 9982 source/tools/atlas/AtlasUI/CustomControls/MapResizeDialog/PseudoMiniMapPanel.h
Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/AtlasUI/CustomControls/MapResizeDialog/PseudoMiniMapPanel.h
Show All 10 Lines | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
* GNU General Public License for more details. | * GNU General Public License for more details. | ||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef INCLUDED_PseudoMINIMAPPANEL | #ifndef INCLUDED_PSEUDOMINIMAPPANEL | ||||
vladislavbelov: Wrong case, we use it in upper case. | |||||
#define INCLUDED_PseudoMINIMAPPANEL | #define INCLUDED_PSEUDOMINIMAPPANEL | ||||
#include <wx/panel.h> | #include <wx/panel.h> | ||||
class PseudoMiniMapPanel : public wxPanel | class PseudoMiniMapPanel : public wxPanel | ||||
{ | { | ||||
public: | public: | ||||
PseudoMiniMapPanel(wxWindow* parent, int currentSize); | PseudoMiniMapPanel(wxWindow* parent, int currentSize); | ||||
Show All 14 Lines | private: | ||||
std::map<int, wxBitmap> m_ScreenTones; | std::map<int, wxBitmap> m_ScreenTones; | ||||
std::map<int, wxBitmap> m_Backgrounds; | std::map<int, wxBitmap> m_Backgrounds; | ||||
wxPoint m_LastMousePos; | wxPoint m_LastMousePos; | ||||
bool m_Dragging; | bool m_Dragging; | ||||
wxPoint m_SelectionCenter; | wxPoint m_SelectionCenter; | ||||
int m_SelectionRadius; | int m_SelectionRadius; | ||||
bool m_SameOrGrowing; | bool m_SameOrGrowing; | ||||
int m_NewSize; | int m_NewSize; | ||||
Done Inline ActionsI think ssize_t instead of int like in other places. vladislavbelov: I think `ssize_t` instead of `int` like in other places. | |||||
Done Inline ActionsSee comment above. Or am I dumb and maybe I used size_t which is not signed hence breaking the feature? Stan: See comment above. Or am I dumb and maybe I used size_t which is not signed hence breaking the… | |||||
DECLARE_EVENT_TABLE(); | DECLARE_EVENT_TABLE(); | ||||
}; | }; | ||||
#endif // INCLUDED_PseudoMINIMAPPANEL | #endif // INCLUDED_PSEUDOMINIMAPPANEL |
Wildfire Games · Phabricator
Wrong case, we use it in upper case.