minor refactoring

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@81 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
spog
2006-06-11 11:28:42 +00:00
parent 6c3931aff8
commit e00838f66e
9 changed files with 31 additions and 19 deletions

View File

@@ -1208,8 +1208,10 @@ void PatchInspector_Construct()
GlobalPreferenceSystem().registerPreference("SI_PatchTexdef_Shift2", FloatImportStringCaller(g_pi_globals.shift[1]), FloatExportStringCaller(g_pi_globals.shift[1]));
GlobalPreferenceSystem().registerPreference("SI_PatchTexdef_Rotate", FloatImportStringCaller(g_pi_globals.rotate), FloatExportStringCaller(g_pi_globals.rotate));
GlobalSelectionSystem().addSelectionChangeCallback(FreeCaller1<const Selectable&, PatchInspector_SelectionChanged>());
Patch_addTextureChangedCallback(FreeCaller<PatchInspector_queueDraw>());
typedef FreeCaller1<const Selectable&, PatchInspector_SelectionChanged> PatchInspectorSelectionChangedCaller;
GlobalSelectionSystem().addSelectionChangeCallback(PatchInspectorSelectionChangedCaller());
typedef FreeCaller<PatchInspector_queueDraw> PatchInspectorQueueDrawCaller;
Patch_addTextureChangedCallback(PatchInspectorQueueDrawCaller());
}
void PatchInspector_Destroy()
{