X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fgrid.h;h=d3c28ec27d5d0631f7c38ca8cc391f2032f6df65;hb=e269d4f03840b076d6ebbd406b8aca9d1a268df5;hp=02e664fe70e121db3c07b421317997e4cd02d9f8;hpb=12b372f89ce109a4db9d510884fbe7d05af79870;p=xonotic%2Fnetradiant.git diff --git a/radiant/grid.h b/radiant/grid.h index 02e664fe..d3c28ec2 100644 --- a/radiant/grid.h +++ b/radiant/grid.h @@ -1,36 +1,38 @@ /* -Copyright (C) 2001-2006, William Joseph. -All Rights Reserved. + Copyright (C) 2001-2006, William Joseph. + All Rights Reserved. -This file is part of GtkRadiant. + This file is part of GtkRadiant. -GtkRadiant is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + GtkRadiant is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -GtkRadiant is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + GtkRadiant is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with GtkRadiant; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ + You should have received a copy of the GNU General Public License + along with GtkRadiant; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ -#if !defined(INCLUDED_GRID_H) +#if !defined( INCLUDED_GRID_H ) #define INCLUDED_GRID_H +#include +#include "signal/signalfwd.h" + +float GetSnapGridSize(); float GetGridSize(); int Grid_getPower(); -class Callback; -void AddGridChangeCallback(const Callback& callback); +void AddGridChangeCallback( const SignalHandler& handler ); void Grid_registerCommands(); -typedef struct _GtkMenu GtkMenu; -void Grid_constructMenu(GtkMenu* menu); +void Grid_constructMenu( ui::Menu menu ); void Grid_registerShortcuts();