parent
25e1ad50d9
commit
dee00be204
|
|
@ -91,10 +91,11 @@ void Brush_constructPreferences( PreferencesPage& page ){
|
|||
FaceExportSnapPlanesCaller()
|
||||
);
|
||||
page.appendSpinner(
|
||||
"Default texture scale",
|
||||
g_texdef_default_scale,
|
||||
"Default texture scale",
|
||||
g_texdef_default_scale,
|
||||
0.0625,
|
||||
64
|
||||
64,
|
||||
4
|
||||
);
|
||||
if ( g_multipleBrushTypes ) {
|
||||
const char* names[] = { BrushType_getName( g_brushTypes[0] ), BrushType_getName( g_brushTypes[1] ), BrushType_getName( g_brushTypes[2] ) };
|
||||
|
|
|
|||
|
|
@ -2455,9 +2455,10 @@ void Camera_constructPreferences( PreferencesPage& page ){
|
|||
StringArrayRange( strafe_mode )
|
||||
);
|
||||
|
||||
page.appendSpinner( "Field Of View", 1.0, 175.0,
|
||||
page.appendSpinner( "Field Of View", 1.0, 175.0,
|
||||
FloatImportCallback( fieldOfViewImportCaller() ),
|
||||
FloatExportCallback( FloatExportCaller( camera_t::fieldOfView ) )
|
||||
FloatExportCallback( FloatExportCaller( camera_t::fieldOfView ) ),
|
||||
0
|
||||
);
|
||||
}
|
||||
void Camera_constructPage( PreferenceGroup& group ){
|
||||
|
|
|
|||
|
|
@ -515,14 +515,14 @@ QWidget* Dialog::addSpinner( QGridLayout* grid, const char* name, int& data, int
|
|||
return addSpinner( grid, name, lower, upper, IntImportCallback( IntImportCaller( data ) ), IntExportCallback( IntExportCaller( data ) ) );
|
||||
}
|
||||
|
||||
QWidget* Dialog::addSpinner( QGridLayout* grid, const char* name, double lower, double upper, const FloatImportCallback& importViewer, const FloatExportCallback& exportViewer ){
|
||||
auto spin = new DoubleSpinBox( lower, upper );
|
||||
QWidget* Dialog::addSpinner( QGridLayout* grid, const char* name, double lower, double upper, const FloatImportCallback& importViewer, const FloatExportCallback& exportViewer, int decimals ){
|
||||
auto spin = new DoubleSpinBox( lower, upper, 0, decimals );
|
||||
spin->setStepType( QAbstractSpinBox::StepType::AdaptiveDecimalStepType );
|
||||
AddFloatSpinnerData( *spin, importViewer, exportViewer );
|
||||
DialogGrid_packRow( grid, spin, new SpinBoxLabel( name, spin ) );
|
||||
return spin;
|
||||
}
|
||||
|
||||
QWidget* Dialog::addSpinner( QGridLayout* grid, const char* name, float& data, double lower, double upper ){
|
||||
return addSpinner( grid, name, lower, upper, FloatImportCallback( FloatImportCaller( data ) ), FloatExportCallback( FloatExportCaller( data ) ) );
|
||||
QWidget* Dialog::addSpinner( QGridLayout* grid, const char* name, float& data, double lower, double upper, int decimals ){
|
||||
return addSpinner( grid, name, lower, upper, FloatImportCallback( FloatImportCaller( data ) ), FloatExportCallback( FloatExportCaller( data ) ), decimals );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,8 +153,8 @@ public:
|
|||
void addPathEntry( QGridLayout *grid, const char* name, CopiedString& data, bool directory );
|
||||
QWidget* addSpinner( QGridLayout *grid, const char* name, int& data, int lower, int upper );
|
||||
QWidget* addSpinner( QGridLayout *grid, const char* name, int lower, int upper, const IntImportCallback& importCallback, const IntExportCallback& exportCallback );
|
||||
QWidget* addSpinner( QGridLayout *grid, const char* name, double lower, double upper, const FloatImportCallback& importCallback, const FloatExportCallback& exportCallback );
|
||||
QWidget* addSpinner( QGridLayout* grid, const char* name, float& data, double lower, double upper );
|
||||
QWidget* addSpinner( QGridLayout *grid, const char* name, double lower, double upper, const FloatImportCallback& importCallback, const FloatExportCallback& exportCallback, int decimals );
|
||||
QWidget* addSpinner( QGridLayout* grid, const char* name, float& data, double lower, double upper, int decimals );
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
|||
|
|
@ -666,11 +666,11 @@ typedef ReferenceCaller1<EntityCreator, const BoolImportCallback&, ShowTargetNam
|
|||
|
||||
|
||||
void Entity_constructPreferences( PreferencesPage& page ){
|
||||
page.appendSpinner( "Names Display Distance (3D)", 0.0, 200500.0,
|
||||
page.appendSpinner( "Names Display Distance (3D)", 0, 200500,
|
||||
IntImportCallback( ShowNamesDistImportCaller( GlobalEntityCreator() ) ),
|
||||
IntExportCallback( ShowNamesDistExportCaller( GlobalEntityCreator() ) )
|
||||
);
|
||||
page.appendSpinner( "Names Display Ratio (2D)", 0.0, 100500.0,
|
||||
page.appendSpinner( "Names Display Ratio (2D)", 0, 100500,
|
||||
IntImportCallback( ShowNamesRatioImportCaller( GlobalEntityCreator() ) ),
|
||||
IntExportCallback( ShowNamesRatioExportCaller( GlobalEntityCreator() ) )
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1343,7 +1343,7 @@ typedef ReferenceCaller1<CopiedString, const char*, FoldersToLoadImport> Folders
|
|||
void ModelBrowser_constructPage( PreferenceGroup& group ){
|
||||
PreferencesPage page( group.createPage( "Model Browser", "Model Browser Preferences" ) );
|
||||
|
||||
page.appendSpinner( "Model View Size", 16.0, 8192.0,
|
||||
page.appendSpinner( "Model View Size", 16, 8192,
|
||||
IntImportCallback( CellSizeImportCaller( g_ModelBrowser.m_cellSize ) ),
|
||||
IntExportCallback( IntExportCaller( g_ModelBrowser.m_cellSize ) ) );
|
||||
page.appendEntry( "List of *folderToLoad/depth*",
|
||||
|
|
|
|||
|
|
@ -93,11 +93,11 @@ public:
|
|||
QWidget* appendSpinner( const char* name, int lower, int upper, const IntImportCallback& importCallback, const IntExportCallback& exportCallback ){
|
||||
return m_dialog.addSpinner( m_grid, name, lower, upper, importCallback, exportCallback );
|
||||
}
|
||||
QWidget* appendSpinner( const char* name, double lower, double upper, const FloatImportCallback& importCallback, const FloatExportCallback& exportCallback ){
|
||||
return m_dialog.addSpinner( m_grid, name, lower, upper, importCallback, exportCallback );
|
||||
QWidget* appendSpinner( const char* name, double lower, double upper, const FloatImportCallback& importCallback, const FloatExportCallback& exportCallback, int decimals = 2 ){
|
||||
return m_dialog.addSpinner( m_grid, name, lower, upper, importCallback, exportCallback, decimals );
|
||||
}
|
||||
QWidget* appendSpinner( const char* name, float& data, double lower, double upper ){
|
||||
return m_dialog.addSpinner( m_grid, name, data, lower, upper );
|
||||
QWidget* appendSpinner( const char* name, float& data, double lower, double upper, int decimals = 2 ){
|
||||
return m_dialog.addSpinner( m_grid, name, data, lower, upper, decimals );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user