/** * Common header for widget classes */ #pragma once // Import the basename c function #include #include "common.h" #ifdef WX_PRECOMP #include "wx_pch.h" #endif #ifndef WX_PRECOMP #include #endif // Common helpers/functionality #include #include #include #include #include #include #include #include #include #include #include /** * Calculate original window size based on size of the current monitor */ wxSize static CalculateWindowSize() { wxDisplay display; wxVideoMode mode = display.GetCurrentMode(); wxLogDebug("Current display: %ix%i", mode.w, mode.h); auto width = (int)((float)mode.w * 0.9); auto height = (int)((float)mode.h * 0.9); wxSize base(width, height); return base; } wxString static BaseName(const wxString &path) { auto fullPath = path.char_str(); auto base = basename(fullPath); return (wxString) base; } // Tyro-specific variables #include "definitions.h"