Exemplo n.º 1
0
void Brush_constructPreferences(PreferencesPage& page)
{
  page.appendCheckBox(
    "", "Snap planes to integer grid",
    FaceImportSnapPlanesCaller(),
    FaceExportSnapPlanesCaller()
  );
  page.appendEntry(
    "Default texture scale",
    g_texdef_default_scale
  );
  if(g_showAlternativeTextureProjectionOption)
  {
    page.appendCheckBox(
      "", "Use alternative texture-projection",
      LatchedBoolImportCaller(g_useAlternativeTextureProjection),
      BoolExportCaller(g_useAlternativeTextureProjection.m_latched)
    );
  }
  // d1223m
  page.appendCheckBox("", 
    "Always use caulk for new brushes",
    g_brush_always_caulk
  );
}
Exemplo n.º 2
0
void MultiMonitor_constructPreferences(PreferencesPage& page)
{
  GtkWidget* primary_monitor = page.appendCheckBox("Multi Monitor", "Start on Primary Monitor", g_multimon_globals.m_bStartOnPrimMon);
  GtkWidget* popup = page.appendCheckBox(
    "", "Disable system menu on popup windows",
    LatchedBoolImportCaller(g_Multimon_enableSysMenuPopups),
    BoolExportCaller(g_Multimon_enableSysMenuPopups.m_latched)
  );
  Widget_connectToggleDependency(popup, primary_monitor);
}
Exemplo n.º 3
0
void Interface_constructPreferences( PreferencesPage& page ){
#ifdef WIN32
	page.appendCheckBox( "", "Default Text Editor", g_TextEditor_useWin32Editor );
#else
	{
		GtkWidget* use_custom = page.appendCheckBox( "Text Editor", "Custom", g_TextEditor_useCustomEditor );
		GtkWidget* custom_editor = page.appendPathEntry( "Text Editor Command", g_TextEditor_editorCommand, true );
		Widget_connectToggleDependency( custom_editor, use_custom );
	}
#endif
}
Exemplo n.º 4
0
void Mouse_constructPreferences( PreferencesPage& page ){
	{
		const char* buttons[] = { "2 button", "3 button", };
		page.appendRadio( "Mouse Type",  g_glwindow_globals.m_nMouseType, STRING_ARRAY_RANGE( buttons ) );
	}
	page.appendCheckBox( "Right Button", "Activates Context Menu", g_xywindow_globals.m_bRightClick );
}
Exemplo n.º 5
0
void Entity_constructPreferences(PreferencesPage& page)
{
  page.appendCheckBox(
    "Show", "Light Radii",
    LightRadiiImportCaller(GlobalEntityCreator()),
    LightRadiiExportCaller(GlobalEntityCreator())
  );
}
Exemplo n.º 6
0
void Entity_constructPreferences( PreferencesPage& page ){
	page.appendSpinner(	"Names Display Distance (3D)", 512.0, 0.0, 200500.0,
		IntImportCallback( ShowNamesDistImportCaller( GlobalEntityCreator() ) ),
		IntExportCallback( ShowNamesDistExportCaller( GlobalEntityCreator() ) )
		);
	page.appendSpinner(	"Names Display Ratio (2D)", 64.0, 0.0, 100500.0,
		IntImportCallback( ShowNamesRatioImportCaller( GlobalEntityCreator() ) ),
		IntExportCallback( ShowNamesRatioExportCaller( GlobalEntityCreator() ) )
		);
	page.appendCheckBox( "Entity Names", "= Targetnames",
		BoolImportCallback( ShowTargetNamesImportCaller( GlobalEntityCreator() ) ),
		BoolExportCallback( ShowTargetNamesExportCaller( GlobalEntityCreator() ) ) );
}
Exemplo n.º 7
0
void CGameDialog::CreateGlobalFrame( PreferencesPage& page ){
	std::vector<const char*> games;
	games.reserve( mGames.size() );
	for ( std::list<CGameDescription *>::iterator i = mGames.begin(); i != mGames.end(); ++i )
	{
		games.push_back( ( *i )->getRequiredKeyValue( "name" ) );
	}
	page.appendCombo(
		"Select the game",
		StringArrayRange( &( *games.begin() ), &( *games.end() ) ),
		ReferenceCaller1<CGameDialog, int, CGameDialog_GameFileImport>( *this ),
		ReferenceCaller1<CGameDialog, const IntImportCallback&, CGameDialog_GameFileExport>( *this )
		);
	page.appendCheckBox( "Startup", "Show Global Preferences", m_bGamePrompt );
}
Exemplo n.º 8
0
void Global_constructPreferences(PreferencesPage& page)
{
  page.appendCheckBox("Console", "Enable Logging", g_Console_enableLogging);
}
Exemplo n.º 9
0
void Entity_constructPreferences( PreferencesPage& page ){
	page.appendCheckBox(
			"Show", "Light Radii",
			make_property<LightRadii>(GlobalEntityCreator())
	);
}