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
ee20ca13
Commit
ee20ca13
authored
Jan 31, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Move the license and warranty text into the resources.
parent
c4182260
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
61 deletions
+44
-61
En.rc
programs/winefile/En.rc
+24
-0
Makefile.in
programs/winefile/Makefile.in
+0
-1
license.c
programs/winefile/license.c
+0
-56
resource.h
programs/winefile/resource.h
+4
-0
winefile.c
programs/winefile/winefile.c
+16
-0
winefile.h
programs/winefile/winefile.h
+0
-4
No files found.
programs/winefile/En.rc
View file @
ee20ca13
...
...
@@ -262,3 +262,27 @@ STRINGTABLE
IDS_FREE_SPACE_FMT "%s of %s free"
}
STRINGTABLE
{
IDS_LICENSE_CAPTION, "LICENSE"
IDS_LICENSE,
"This library is free software; you can redistribute it and/or \
modify it under the terms of the GNU Lesser General Public \
License as published by the Free Software Foundation; either \
version 2.1 of the License, or (at your option) any later version.\n\
This library is distributed in the hope that it will be useful, \
but WITHOUT ANY WARRANTY; without even the implied warranty of \
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU \
Lesser General Public License for more details.\n\
You should have received a copy of the GNU Lesser General Public \
License along with this library; if not, write to the Free Software \
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"
IDS_WARRANTY_CAPTION, "NO WARRANTY"
IDS_WARRANTY,
"This library is distributed in the hope that it will be useful, \
but WITHOUT ANY WARRANTY; without even the implied warranty of \
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU \
Lesser General Public License for more details."
}
programs/winefile/Makefile.in
View file @
ee20ca13
...
...
@@ -9,7 +9,6 @@ IMPORTS = shell32 comdlg32 comctl32 ole32 mpr version user32 gdi32 advapi32 ke
EXTRALIBS
=
-luuid
C_SRCS
=
\
license.c
\
splitpath.c
\
winefile.c
...
...
programs/winefile/license.c
deleted
100644 → 0
View file @
c4182260
/*
* Copyright 2000 Martin Fuchs
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "winefile.h"
#ifdef __WINE__
static
const
CHAR
LicenseCaption
[]
=
"LICENSE"
;
static
const
CHAR
License
[]
=
"This library is free software; you can redistribute it and/or "
"modify it under the terms of the GNU Lesser General Public "
"License as published by the Free Software Foundation; either "
"version 2.1 of the License, or (at your option) any later version.
\n
"
"This library is distributed in the hope that it will be useful, "
"but WITHOUT ANY WARRANTY; without even the implied warranty of "
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU "
"Lesser General Public License for more details.
\n
"
"You should have received a copy of the GNU Lesser General Public "
"License along with this library; if not, write to the Free Software "
"Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"
;
static
const
CHAR
NoWarrantyCaption
[]
=
"NO WARRANTY"
;
static
const
CHAR
NoWarranty
[]
=
"This library is distributed in the hope that it will be useful, "
"but WITHOUT ANY WARRANTY; without even the implied warranty of "
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU "
"Lesser General Public License for more details."
;
VOID
WineLicense
(
HWND
hwnd
)
{
MessageBoxA
(
hwnd
,
License
,
LicenseCaption
,
MB_ICONINFORMATION
|
MB_OK
);
}
VOID
WineWarranty
(
HWND
hwnd
)
{
MessageBoxA
(
hwnd
,
NoWarranty
,
NoWarrantyCaption
,
MB_ICONEXCLAMATION
|
MB_OK
);
}
#endif
programs/winefile/resource.h
View file @
ee20ca13
...
...
@@ -135,6 +135,10 @@
#define IDS_COL_SEC 1218
#define IDS_FREE_SPACE_FMT 1219
#define IDS_LICENSE_CAPTION 1300
#define IDS_LICENSE 1301
#define IDS_WARRANTY_CAPTION 1302
#define IDS_WARRANTY 1303
/* range for drive bar command ids: 0x9000..0x90FF */
...
...
programs/winefile/winefile.c
View file @
ee20ca13
...
...
@@ -235,6 +235,22 @@ static void display_network_error(HWND hwnd)
MessageBox
(
hwnd
,
msg
,
RS
(
b2
,
IDS_WINEFILE
),
MB_OK
);
}
static
VOID
WineLicense
(
HWND
Wnd
)
{
TCHAR
cap
[
20
],
text
[
1024
];
LoadString
(
Globals
.
hInstance
,
IDS_LICENSE
,
text
,
1024
);
LoadString
(
Globals
.
hInstance
,
IDS_LICENSE_CAPTION
,
cap
,
20
);
MessageBox
(
Wnd
,
text
,
cap
,
MB_ICONINFORMATION
|
MB_OK
);
}
static
VOID
WineWarranty
(
HWND
Wnd
)
{
TCHAR
cap
[
20
],
text
[
1024
];
LoadString
(
Globals
.
hInstance
,
IDS_WARRANTY
,
text
,
1024
);
LoadString
(
Globals
.
hInstance
,
IDS_WARRANTY_CAPTION
,
cap
,
20
);
MessageBox
(
Wnd
,
text
,
cap
,
MB_ICONEXCLAMATION
|
MB_OK
);
}
#ifdef __WINE__
...
...
programs/winefile/winefile.h
View file @
ee20ca13
...
...
@@ -144,10 +144,6 @@ extern WINEFILE_GLOBALS Globals;
#ifdef __WINE__
extern
void
WineLicense
(
HWND
hwnd
);
extern
void
WineWarranty
(
HWND
hwnd
);
#ifdef UNICODE
extern
void
_wsplitpath
(
const
WCHAR
*
path
,
WCHAR
*
drv
,
WCHAR
*
dir
,
WCHAR
*
name
,
WCHAR
*
ext
);
#define _tsplitpath _wsplitpath
...
...
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