mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 15:21:59 +00:00
Beep save option
This commit is contained in:
parent
60ee00288d
commit
1f11d6019d
3 changed files with 13 additions and 2 deletions
|
@ -816,8 +816,10 @@ void Map_SaveFile( const char *filename, qboolean use_region ){
|
|||
|
||||
time( &timer );
|
||||
|
||||
Sys_Beep();
|
||||
|
||||
if( g_PrefsDlg.m_bSaveBeep )
|
||||
{
|
||||
Sys_Beep();
|
||||
}
|
||||
Sys_Status( _( "Saved." ), 0 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
#define VERTEX_KEY "NewVertex"
|
||||
#define AUTOSAVE_KEY "Autosave"
|
||||
#define AUTOSAVETIME_KEY "AutosaveMinutes"
|
||||
#define SAVEBEEP_KEY "SaveBeep"
|
||||
#define PAK_KEY "UsePAK"
|
||||
#define NEWAPPLY_KEY "ApplyDismissesSurface"
|
||||
#define HACK_KEY "Gatewayescapehack"
|
||||
|
@ -587,6 +588,7 @@ PrefsDlg::PrefsDlg (){
|
|||
m_bSetGame = FALSE;
|
||||
m_bAutoSave = TRUE;
|
||||
m_nAutoSave = 5;
|
||||
m_bSaveBeep = TRUE;
|
||||
m_bLoadLastMap = FALSE;
|
||||
m_bTextureWindow = FALSE;
|
||||
m_bSnapShots = FALSE;
|
||||
|
@ -2452,6 +2454,11 @@ void PrefsDlg::BuildDialog(){
|
|||
gtk_box_pack_start( GTK_BOX( hbox2 ), label, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( label );
|
||||
|
||||
check = gtk_check_button_new_with_label( _( "Beep on save" ) );
|
||||
gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( check );
|
||||
AddDialogData( check, &m_bSaveBeep, DLG_CHECK_BOOL );
|
||||
|
||||
// Add the page to the notebook
|
||||
gtk_notebook_append_page( GTK_NOTEBOOK( notebook ), pageframe, preflabel );
|
||||
|
||||
|
@ -2906,6 +2913,7 @@ void PrefsDlg::LoadPrefs(){
|
|||
mLocalPrefs.GetPref( TINYBRUSH_KEY, &m_bCleanTiny, FALSE );
|
||||
mLocalPrefs.GetPref( TINYSIZE_KEY, &m_fTinySize, 0.5f );
|
||||
mLocalPrefs.GetPref( AUTOSAVETIME_KEY, &m_nAutoSave, 5 );
|
||||
mLocalPrefs.GetPref( SAVEBEEP_KEY, &m_bSaveBeep, TRUE );
|
||||
mLocalPrefs.GetPref( SNAPSHOT_KEY, &m_bSnapShots, FALSE );
|
||||
mLocalPrefs.GetPref( MOVESPEED_KEY, &m_nMoveSpeed, 100 );
|
||||
mLocalPrefs.GetPref( ANGLESPEED_KEY, &m_nAngleSpeed, 3 );
|
||||
|
|
|
@ -589,6 +589,7 @@ bool m_bInternalBSP;
|
|||
bool m_bRightClick;
|
||||
bool m_bSetGame;
|
||||
bool m_bAutoSave;
|
||||
bool m_bSaveBeep;
|
||||
bool m_bLoadLastMap;
|
||||
bool m_bTextureWindow;
|
||||
bool m_bSnapShots;
|
||||
|
|
Loading…
Reference in a new issue