Skip to content

Commit

Permalink
Update to code of release 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed May 4, 2006
1 parent de136ee commit 19c7f76
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Build/Code_Blocks/dsp_freeverb_gpl.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<Linker>
<Add library="gdi32" />
</Linker>
<ExtraCommands>
<Add after="..\..\__copyrun.bat" />
<Mode after="always" />
</ExtraCommands>
<Unit filename="..\..\Source\Components\allpass.cpp">
<Option compilerVar="CPP" />
<Option target="default" />
Expand Down
31 changes: 26 additions & 5 deletions Source/dsp_freeverb_gpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using namespace std;
#endif

#define PLUGIN_TITLE "GPL Freeverb"
#define PLUGIN_VERSION "0.7"
#define PLUGIN_VERSION "0.71"


struct struct_full_preset
Expand Down Expand Up @@ -945,11 +945,15 @@ BOOL CALLBACK WndprocConfig( HWND hwnd, UINT message, WPARAM wp, LPARAM lp )
hEdits[ 4 ] = GetDlgItem( hwnd, IDC_EDIT_WIDTH );
hEdits[ 5 ] = GetDlgItem( hwnd, IDC_EDIT_VOL );

hActive = GetDlgItem( hwnd, IDC_ACTIVE );
hChoosePreset = GetDlgItem( hwnd, IDC_CHOOSE_PRESET );
hActive = GetDlgItem( hwnd, IDC_ACTIVE );
hChoosePreset = GetDlgItem( hwnd, IDC_CHOOSE_PRESET );

// Init power button
CheckDlgButton( hwnd, IDC_ACTIVE, ( bActive ? BST_CHECKED : BST_UNCHECKED ) );
if( bActive )
{
CheckDlgButton( hwnd, IDC_ACTIVE, BST_CHECKED );
SetWindowText( hActive, "ON" );
}

// Create header
RECT r;
Expand Down Expand Up @@ -1053,7 +1057,24 @@ BOOL CALLBACK WndprocConfig( HWND hwnd, UINT message, WPARAM wp, LPARAM lp )
break;

case IDC_ACTIVE:
bActive = ( IsDlgButtonChecked( hwnd, IDC_ACTIVE ) == BST_CHECKED );
switch( IsDlgButtonChecked( hwnd, IDC_ACTIVE ) )
{
case BST_CHECKED:
// Uncheck
CheckDlgButton( hwnd, IDC_ACTIVE, BST_UNCHECKED );
SetWindowText( hActive, "OFF" );
bActive = false;
break;

case BST_INDETERMINATE:
case BST_UNCHECKED:
// Uncheck
CheckDlgButton( hwnd, IDC_ACTIVE, BST_CHECKED );
SetWindowText( hActive, "ON" );
bActive = true;
break;

}
break;

case IDC_CHOOSE_PRESET:
Expand Down
13 changes: 6 additions & 7 deletions Source/dsp_freeverb_gpl.rc
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER |
WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "ON",IDC_ACTIVE,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE |
WS_TABSTOP,11,53,36,13
CHECKBOX "OFF",IDC_ACTIVE,11,53,36,13,BS_PUSHLIKE
COMBOBOX IDC_CHOOSE_PRESET,52,53,140,118,CBS_DROPDOWNLIST |
CBS_SORT | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "+",IDC_ADD,197,53,16,13
Expand Down Expand Up @@ -68,16 +67,16 @@ BEGIN
SS_SUNKEN | WS_DISABLED
END

IDD_ADD DIALOGEX 0, 0, 200, 55
IDD_ADD DIALOGEX 0, 0, 168, 55
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION
CAPTION "Create/update preset"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
GROUPBOX "Preset title",IDC_STATIC,3,2,193,30
COMBOBOX IDC_EDIT_TITLE,9,12,181,102,CBS_DROPDOWN | CBS_SORT |
GROUPBOX "Preset title",IDC_STATIC,4,2,159,30
COMBOBOX IDC_EDIT_TITLE,9,12,148,102,CBS_DROPDOWN | CBS_SORT |
WS_VSCROLL | WS_TABSTOP
DEFPUSHBUTTON "OK",IDOK,55,37,42,13,WS_DISABLED
PUSHBUTTON "Cancel",IDCANCEL,103,37,41,13
DEFPUSHBUTTON "OK",IDOK,39,37,42,13,WS_DISABLED
PUSHBUTTON "Cancel",IDCANCEL,87,37,41,13
END

#endif // German (Germany) resources
Expand Down

0 comments on commit 19c7f76

Please sign in to comment.