Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
33e8e88e
Commit
33e8e88e
authored
Aug 25, 2005
by
Frank Richter
Committed by
Alexandre Julliard
Aug 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load tab titles and property sheet caption from string resources.
parent
8aa1a919
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
60 additions
and
34 deletions
+60
-34
De.rc
programs/winecfg/De.rc
+6
-1
En.rc
programs/winecfg/En.rc
+6
-1
Fr.rc
programs/winecfg/Fr.rc
+0
-1
Ja.rc
programs/winecfg/Ja.rc
+0
-1
Nl.rc
programs/winecfg/Nl.rc
+0
-1
Ru.rc
programs/winecfg/Ru.rc
+0
-1
main.c
programs/winecfg/main.c
+42
-27
resource.h
programs/winecfg/resource.h
+6
-1
No files found.
programs/winecfg/De.rc
View file @
33e8e88e
...
...
@@ -183,11 +183,16 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WINE_VERSION "CVS"
IDS_TAB_
GENERAL "Allgemei
n"
IDS_TAB_
APPLICATIONS "Anwendunge
n"
IDS_TAB_DLLS "Bibliotheken"
IDS_TAB_DRIVES "Laufwerke"
IDS_CHOOSE_PATH "Bitte whlen Sie ein Unix-Verzeichnis fr das Laufwerk."
IDS_HIDE_ADVANCED "Verstecke Erweitert"
IDS_SHOW_ADVANCED "Zeige Erweitert"
IDS_NOTHEME "(Kein Motiv)"
IDS_TAB_GRAPHICS "Grafik"
IDS_TAB_APPEARANCE "Darstellung"
IDS_TAB_AUDIO "Audio"
IDS_TAB_ABOUT "ber"
IDS_WINECFG_TITLE "Wine-Konfiguration"
END
programs/winecfg/En.rc
View file @
33e8e88e
...
...
@@ -185,13 +185,18 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WINE_VERSION "CVS"
IDS_TAB_
GENERAL "General
"
IDS_TAB_
APPLICATIONS "Applications
"
IDS_TAB_DLLS "Libraries"
IDS_TAB_DRIVES "Drives"
IDS_CHOOSE_PATH "Select the unix directory to be mapped, please."
IDS_HIDE_ADVANCED "Hide Advanced"
IDS_SHOW_ADVANCED "Show Advanced"
IDS_NOTHEME "(No Theme)"
IDS_TAB_GRAPHICS "Graphics"
IDS_TAB_APPEARANCE "Appearance"
IDS_TAB_AUDIO "Audio"
IDS_TAB_ABOUT "About"
IDS_WINECFG_TITLE "Wine configuration"
END
...
...
programs/winecfg/Fr.rc
View file @
33e8e88e
...
...
@@ -170,7 +170,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WINE_VERSION "CVS"
IDS_TAB_GENERAL "Gnral"
IDS_TAB_DLLS "Bibliothques"
IDS_TAB_DRIVES "Lecteurs"
IDS_CHOOSE_PATH "Veuillez slectionner le rpertoire unix assigner."
...
...
programs/winecfg/Ja.rc
View file @
33e8e88e
...
...
@@ -172,7 +172,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WINE_VERSION "CVS"
IDS_TAB_GENERAL "全般"
IDS_TAB_DLLS "ライブラリ"
IDS_TAB_DRIVES "ドライブ"
IDS_CHOOSE_PATH "マッピングするUnixディレクトリーを選んでください"
...
...
programs/winecfg/Nl.rc
View file @
33e8e88e
...
...
@@ -169,7 +169,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WINE_VERSION "CVS"
IDS_TAB_GENERAL "Algemeen"
IDS_TAB_DLLS "Bibliotheken"
IDS_TAB_DRIVES "Stations"
IDS_CHOOSE_PATH "Selecteer een unix folder voor dit station."
...
...
programs/winecfg/Ru.rc
View file @
33e8e88e
...
...
@@ -173,7 +173,6 @@ END
STRINGTABLE DISCARDABLE
BEGIN
IDS_WINE_VERSION "CVS"
IDS_TAB_GENERAL ""
IDS_TAB_DLLS ""
IDS_TAB_DRIVES ""
IDS_CHOOSE_PATH " unix ."
...
...
programs/winecfg/main.c
View file @
33e8e88e
...
...
@@ -86,26 +86,41 @@ AboutDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
FALSE
;
}
static
WCHAR
*
load_string
(
UINT
id
)
{
WCHAR
buf
[
100
];
int
len
;
WCHAR
*
newStr
;
LoadStringW
(
GetModuleHandle
(
NULL
),
id
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
len
=
lstrlenW
(
buf
);
newStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
memcpy
(
newStr
,
buf
,
len
*
sizeof
(
WCHAR
));
newStr
[
len
]
=
0
;
return
newStr
;
}
#define NUM_PROPERTY_PAGES 7
static
INT_PTR
doPropertySheet
(
HINSTANCE
hInstance
,
HWND
hOwner
)
{
PROPSHEETPAGE
psp
[
NUM_PROPERTY_PAGES
];
PROPSHEETHEADER
psh
;
PROPSHEETPAGE
W
psp
[
NUM_PROPERTY_PAGES
];
PROPSHEETHEADER
W
psh
;
int
pg
=
0
;
/* start with page 0 */
/*
* Fill out the (Applications) PROPSHEETPAGE data structure
* for the property sheet
*/
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
);
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
W
);
psp
[
pg
].
dwFlags
=
PSP_USETITLE
;
psp
[
pg
].
hInstance
=
hInstance
;
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
(
IDD_APPCFG
);
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
W
(
IDD_APPCFG
);
psp
[
pg
].
u2
.
pszIcon
=
NULL
;
psp
[
pg
].
pfnDlgProc
=
AppDlgProc
;
psp
[
pg
].
pszTitle
=
"Applications"
;
psp
[
pg
].
pszTitle
=
load_string
(
IDS_TAB_APPLICATIONS
)
;
psp
[
pg
].
lParam
=
0
;
pg
++
;
...
...
@@ -113,13 +128,13 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
* Fill out the (Libraries) PROPSHEETPAGE data structure
* for the property sheet
*/
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
);
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
W
);
psp
[
pg
].
dwFlags
=
PSP_USETITLE
;
psp
[
pg
].
hInstance
=
hInstance
;
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
(
IDD_DLLCFG
);
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
W
(
IDD_DLLCFG
);
psp
[
pg
].
u2
.
pszIcon
=
NULL
;
psp
[
pg
].
pfnDlgProc
=
LibrariesDlgProc
;
psp
[
pg
].
pszTitle
=
"Libraries"
;
psp
[
pg
].
pszTitle
=
load_string
(
IDS_TAB_DLLS
)
;
psp
[
pg
].
lParam
=
0
;
pg
++
;
...
...
@@ -127,43 +142,43 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
* Fill out the (X11Drv) PROPSHEETPAGE data structure
* for the property sheet
*/
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
);
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
W
);
psp
[
pg
].
dwFlags
=
PSP_USETITLE
;
psp
[
pg
].
hInstance
=
hInstance
;
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
(
IDD_GRAPHCFG
);
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
W
(
IDD_GRAPHCFG
);
psp
[
pg
].
u2
.
pszIcon
=
NULL
;
psp
[
pg
].
pfnDlgProc
=
GraphDlgProc
;
psp
[
pg
].
pszTitle
=
"Graphics"
;
psp
[
pg
].
pszTitle
=
load_string
(
IDS_TAB_GRAPHICS
)
;
psp
[
pg
].
lParam
=
0
;
pg
++
;
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
);
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
W
);
psp
[
pg
].
dwFlags
=
PSP_USETITLE
;
psp
[
pg
].
hInstance
=
hInstance
;
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
(
IDD_APPEARANCE
);
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
W
(
IDD_APPEARANCE
);
psp
[
pg
].
u2
.
pszIcon
=
NULL
;
psp
[
pg
].
pfnDlgProc
=
ThemeDlgProc
;
psp
[
pg
].
pszTitle
=
"Appearance"
;
psp
[
pg
].
pszTitle
=
load_string
(
IDS_TAB_APPEARANCE
)
;
psp
[
pg
].
lParam
=
0
;
pg
++
;
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
);
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
W
);
psp
[
pg
].
dwFlags
=
PSP_USETITLE
;
psp
[
pg
].
hInstance
=
hInstance
;
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
(
IDD_DRIVECFG
);
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
W
(
IDD_DRIVECFG
);
psp
[
pg
].
u2
.
pszIcon
=
NULL
;
psp
[
pg
].
pfnDlgProc
=
DriveDlgProc
;
psp
[
pg
].
pszTitle
=
"Drives"
;
psp
[
pg
].
pszTitle
=
load_string
(
IDS_TAB_DRIVES
)
;
psp
[
pg
].
lParam
=
0
;
pg
++
;
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
);
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
W
);
psp
[
pg
].
dwFlags
=
PSP_USETITLE
;
psp
[
pg
].
hInstance
=
hInstance
;
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
(
IDD_AUDIOCFG
);
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
W
(
IDD_AUDIOCFG
);
psp
[
pg
].
u2
.
pszIcon
=
NULL
;
psp
[
pg
].
pfnDlgProc
=
AudioDlgProc
;
psp
[
pg
].
pszTitle
=
"Audio"
;
psp
[
pg
].
pszTitle
=
load_string
(
IDS_TAB_AUDIO
)
;
psp
[
pg
].
lParam
=
0
;
pg
++
;
...
...
@@ -171,34 +186,34 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
* Fill out the (General) PROPSHEETPAGE data structure
* for the property sheet
*/
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
);
psp
[
pg
].
dwSize
=
sizeof
(
PROPSHEETPAGE
W
);
psp
[
pg
].
dwFlags
=
PSP_USETITLE
;
psp
[
pg
].
hInstance
=
hInstance
;
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
(
IDD_ABOUTCFG
);
psp
[
pg
].
u
.
pszTemplate
=
MAKEINTRESOURCE
W
(
IDD_ABOUTCFG
);
psp
[
pg
].
u2
.
pszIcon
=
NULL
;
psp
[
pg
].
pfnDlgProc
=
AboutDlgProc
;
psp
[
pg
].
pszTitle
=
"About"
;
psp
[
pg
].
pszTitle
=
load_string
(
IDS_TAB_ABOUT
)
;
psp
[
pg
].
lParam
=
0
;
pg
++
;
/*
* Fill out the PROPSHEETHEADER
*/
psh
.
dwSize
=
sizeof
(
PROPSHEETHEADER
);
psh
.
dwSize
=
sizeof
(
PROPSHEETHEADER
W
);
psh
.
dwFlags
=
PSH_PROPSHEETPAGE
|
PSH_USEICONID
|
PSH_USECALLBACK
;
psh
.
hwndParent
=
hOwner
;
psh
.
hInstance
=
hInstance
;
psh
.
u
.
pszIcon
=
NULL
;
psh
.
pszCaption
=
"Wine Configuration"
;
psh
.
pszCaption
=
load_string
(
IDS_WINECFG_TITLE
)
;
psh
.
nPages
=
NUM_PROPERTY_PAGES
;
psh
.
u3
.
ppsp
=
(
LPCPROPSHEETPAGE
)
&
psp
;
psh
.
u3
.
ppsp
=
(
LPCPROPSHEETPAGE
W
)
&
psp
;
psh
.
pfnCallback
=
(
PFNPROPSHEETCALLBACK
)
PropSheetCallback
;
psh
.
u2
.
nStartPage
=
0
;
/*
* Display the modal property sheet
*/
return
PropertySheet
(
&
psh
);
return
PropertySheet
W
(
&
psh
);
}
/******************************************************************************
...
...
programs/winecfg/resource.h
View file @
33e8e88e
...
...
@@ -25,13 +25,18 @@
#define IDC_STATIC -1
#define IDS_WINE_VERSION 1
#define IDS_TAB_
GENERAL
2
#define IDS_TAB_
APPLICATIONS
2
#define IDS_TAB_DLLS 3
#define IDS_TAB_DRIVES 4
#define IDS_CHOOSE_PATH 5
#define IDS_SHOW_ADVANCED 6
#define IDS_HIDE_ADVANCED 7
#define IDS_NOTHEME 8
#define IDS_TAB_GRAPHICS 9
#define IDS_TAB_APPEARANCE 10
#define IDS_TAB_AUDIO 11
#define IDS_TAB_ABOUT 12
#define IDS_WINECFG_TITLE 13
#define IDD_MAINDLG 101
#define IDB_WINE 104
#define IDD_ABOUTCFG 107
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment