X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fmainframe.h;h=944c7b8bbceb513001396163566b3ccf6075fee2;hb=2a1cfc426e60b77c7b212d827e2592de01041266;hp=c450fd549ca50a9231b9bf0e8d49c8b7ffcd1341;hpb=c85916d1be6ef2356a9ca2449ba7da7978eaf50b;p=xonotic%2Fnetradiant.git diff --git a/radiant/mainframe.h b/radiant/mainframe.h index c450fd54..944c7b8b 100644 --- a/radiant/mainframe.h +++ b/radiant/mainframe.h @@ -22,6 +22,7 @@ #if !defined( INCLUDED_MAINFRAME_H ) #define INCLUDED_MAINFRAME_H +#include #include "gtkutil/window.h" #include "gtkutil/idledraw.h" #include "gtkutil/widget.h" @@ -36,8 +37,6 @@ class XYWnd; class CamWnd; class ZWnd; -typedef struct _GtkWidget GtkWidget; -typedef struct _GtkWindow GtkWindow; const int c_command_status = 0; const int c_position_status = 1; @@ -60,7 +59,7 @@ enum EViewStyle MainFrame(); ~MainFrame(); -GtkWindow* m_window; +ui::Window m_window{ui::null}; CopiedString m_command_status; CopiedString m_position_status; @@ -73,9 +72,9 @@ void Create(); void SaveWindowInfo(); void Shutdown(); -GtkWidget* m_vSplit; -GtkWidget* m_hSplit; -GtkWidget* m_vSplit2; +ui::Widget m_vSplit{ui::null}; +ui::Widget m_hSplit{ui::null}; +ui::Widget m_vSplit2{ui::null}; XYWnd* m_pXYWnd; XYWnd* m_pYZWnd; @@ -86,7 +85,7 @@ XYWnd* m_pActiveXY; bool m_bSleeping; -GtkWidget *m_pStatusLabel[c_count_status]; +void *m_pStatusLabel[c_count_status]; EViewStyle m_nCurrentStyle; @@ -104,10 +103,10 @@ void OnSleep(); void SetStatusText( CopiedString& status_text, const char* pText ); void UpdateStatusText(); void RedrawStatusText(); -typedef MemberCaller RedrawStatusTextCaller; +typedef MemberCaller RedrawStatusTextCaller; void SetGridStatus(); -typedef MemberCaller SetGridStatusCaller; +typedef MemberCaller SetGridStatusCaller; void SetActiveXY( XYWnd* p ); XYWnd* ActiveXY(){ @@ -142,7 +141,7 @@ bool FloatingGroupDialog(){ extern MainFrame* g_pParentWnd; -GtkWindow* MainFrame_getWindow(); +ui::Window MainFrame_getWindow(); enum EMouseButtonMode { @@ -165,8 +164,7 @@ void GLWindow_Destroy(); extern glwindow_globals_t g_glwindow_globals; template class LatchedValue; -typedef LatchedValue LatchedBool; -extern LatchedBool g_Layout_enableDetachableMenus; +extern LatchedValue g_Layout_enableDetachableMenus; void deleteSelection(); @@ -271,6 +269,6 @@ void XYWindowDestroyed_disconnect( SignalHandlerId id ); MouseEventHandlerId XYWindowMouseDown_connect( const MouseEventHandler& handler ); void XYWindowMouseDown_disconnect( MouseEventHandlerId id ); -extern GtkWidget* g_page_entity; +extern ui::Widget g_page_entity; #endif