X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fxywindow.cpp;h=7897df0740783b24c5e69bc64b3cd47e00c1e11c;hb=2a1cfc426e60b77c7b212d827e2592de01041266;hp=d6f228333cc1f69c9bb1a6fa1c649320b376956c;hpb=1ede3dc63143af40210a3e9c1c601028359fac11;p=xonotic%2Fnetradiant.git diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index d6f22833..7897df07 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -2587,97 +2587,97 @@ void ShowNamesToggle(){ XY_UpdateAllWindows(); } typedef FreeCaller ShowNamesToggleCaller; -void ShowNamesExport( const BoolImportCallback& importer ){ +void ShowNamesExport( const ImportExportCallback::Import_t& importer ){ importer( GlobalEntityCreator().getShowNames() ); } -typedef FreeCaller ShowNamesExportCaller; +typedef FreeCaller::Import_t&), ShowNamesExport> ShowNamesExportCaller; void ShowAnglesToggle(){ GlobalEntityCreator().setShowAngles( !GlobalEntityCreator().getShowAngles() ); XY_UpdateAllWindows(); } typedef FreeCaller ShowAnglesToggleCaller; -void ShowAnglesExport( const BoolImportCallback& importer ){ +void ShowAnglesExport( const ImportExportCallback::Import_t& importer ){ importer( GlobalEntityCreator().getShowAngles() ); } -typedef FreeCaller ShowAnglesExportCaller; +typedef FreeCaller::Import_t&), ShowAnglesExport> ShowAnglesExportCaller; void ShowBlocksToggle(){ g_xywindow_globals_private.show_blocks ^= 1; XY_UpdateAllWindows(); } typedef FreeCaller ShowBlocksToggleCaller; -void ShowBlocksExport( const BoolImportCallback& importer ){ +void ShowBlocksExport( const ImportExportCallback::Import_t& importer ){ importer( g_xywindow_globals_private.show_blocks ); } -typedef FreeCaller ShowBlocksExportCaller; +typedef FreeCaller::Import_t&), ShowBlocksExport> ShowBlocksExportCaller; void ShowCoordinatesToggle(){ g_xywindow_globals_private.show_coordinates ^= 1; XY_UpdateAllWindows(); } typedef FreeCaller ShowCoordinatesToggleCaller; -void ShowCoordinatesExport( const BoolImportCallback& importer ){ +void ShowCoordinatesExport( const ImportExportCallback::Import_t& importer ){ importer( g_xywindow_globals_private.show_coordinates ); } -typedef FreeCaller ShowCoordinatesExportCaller; +typedef FreeCaller::Import_t&), ShowCoordinatesExport> ShowCoordinatesExportCaller; void ShowOutlineToggle(){ g_xywindow_globals_private.show_outline ^= 1; XY_UpdateAllWindows(); } typedef FreeCaller ShowOutlineToggleCaller; -void ShowOutlineExport( const BoolImportCallback& importer ){ +void ShowOutlineExport( const ImportExportCallback::Import_t& importer ){ importer( g_xywindow_globals_private.show_outline ); } -typedef FreeCaller ShowOutlineExportCaller; +typedef FreeCaller::Import_t&), ShowOutlineExport> ShowOutlineExportCaller; void ShowAxesToggle(){ g_xywindow_globals_private.show_axis ^= 1; XY_UpdateAllWindows(); } typedef FreeCaller ShowAxesToggleCaller; -void ShowAxesExport( const BoolImportCallback& importer ){ +void ShowAxesExport( const ImportExportCallback::Import_t& importer ){ importer( g_xywindow_globals_private.show_axis ); } -typedef FreeCaller ShowAxesExportCaller; +typedef FreeCaller::Import_t&), ShowAxesExport> ShowAxesExportCaller; void ShowWorkzoneToggle(){ g_xywindow_globals_private.d_show_work ^= 1; XY_UpdateAllWindows(); } typedef FreeCaller ShowWorkzoneToggleCaller; -void ShowWorkzoneExport( const BoolImportCallback& importer ){ +void ShowWorkzoneExport( const ImportExportCallback::Import_t& importer ){ importer( g_xywindow_globals_private.d_show_work ); } -typedef FreeCaller ShowWorkzoneExportCaller; +typedef FreeCaller::Import_t&), ShowWorkzoneExport> ShowWorkzoneExportCaller; ShowNamesExportCaller g_show_names_caller; -BoolExportCallback g_show_names_callback( g_show_names_caller ); +ImportExportCallback::Export_t g_show_names_callback( g_show_names_caller ); ToggleItem g_show_names( g_show_names_callback ); ShowAnglesExportCaller g_show_angles_caller; -BoolExportCallback g_show_angles_callback( g_show_angles_caller ); +ImportExportCallback::Export_t g_show_angles_callback( g_show_angles_caller ); ToggleItem g_show_angles( g_show_angles_callback ); ShowBlocksExportCaller g_show_blocks_caller; -BoolExportCallback g_show_blocks_callback( g_show_blocks_caller ); +ImportExportCallback::Export_t g_show_blocks_callback( g_show_blocks_caller ); ToggleItem g_show_blocks( g_show_blocks_callback ); ShowCoordinatesExportCaller g_show_coordinates_caller; -BoolExportCallback g_show_coordinates_callback( g_show_coordinates_caller ); +ImportExportCallback::Export_t g_show_coordinates_callback( g_show_coordinates_caller ); ToggleItem g_show_coordinates( g_show_coordinates_callback ); ShowOutlineExportCaller g_show_outline_caller; -BoolExportCallback g_show_outline_callback( g_show_outline_caller ); +ImportExportCallback::Export_t g_show_outline_callback( g_show_outline_caller ); ToggleItem g_show_outline( g_show_outline_callback ); ShowAxesExportCaller g_show_axes_caller; -BoolExportCallback g_show_axes_callback( g_show_axes_caller ); +ImportExportCallback::Export_t g_show_axes_callback( g_show_axes_caller ); ToggleItem g_show_axes( g_show_axes_callback ); ShowWorkzoneExportCaller g_show_workzone_caller; -BoolExportCallback g_show_workzone_callback( g_show_workzone_caller ); +ImportExportCallback::Export_t g_show_workzone_callback( g_show_workzone_caller ); ToggleItem g_show_workzone( g_show_workzone_callback ); void XYShow_registerCommands(){ @@ -2733,10 +2733,10 @@ void ToggleShown_importBool( ToggleShown& self, bool value ){ self.set( value ); } typedef ReferenceCaller ToggleShownImportBoolCaller; -void ToggleShown_exportBool( const ToggleShown& self, const BoolImportCallback& importer ){ +void ToggleShown_exportBool( const ToggleShown& self, const ImportExportCallback::Import_t& importer ){ importer( self.active() ); } -typedef ConstReferenceCaller ToggleShownExportBoolCaller; +typedef ConstReferenceCaller::Import_t&), ToggleShown_exportBool> ToggleShownExportBoolCaller; void XYWindow_Construct(){