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
5d5695a2
Commit
5d5695a2
authored
Feb 07, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Move license text to resources.
parent
4f53d5a5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
126 deletions
+37
-126
En.rc
programs/notepad/En.rc
+24
-0
License_En.c
programs/notepad/License_En.c
+0
-28
Makefile.in
programs/notepad/Makefile.in
+0
-2
dialog.c
programs/notepad/dialog.c
+8
-3
license.c
programs/notepad/license.c
+0
-41
license.h
programs/notepad/license.h
+0
-52
notepad_res.h
programs/notepad/notepad_res.h
+5
-0
No files found.
programs/notepad/En.rc
View file @
5d5695a2
...
...
@@ -127,3 +127,27 @@ task. \nClose one or more applications to increase the amount of \nfree \
memory."
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
{
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/notepad/License_En.c
deleted
100644 → 0
View file @
4f53d5a5
#include <windows.h>
#include "license.h"
static
const
CHAR
LicenseCaption_En
[]
=
"LICENSE"
;
static
const
CHAR
License_En
[]
=
"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_En
[]
=
"NO WARRANTY"
;
static
const
CHAR
NoWarranty_En
[]
=
"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."
;
LICENSE
WineLicense_En
=
{
License_En
,
LicenseCaption_En
,
NoWarranty_En
,
NoWarrantyCaption_En
};
programs/notepad/Makefile.in
View file @
5d5695a2
...
...
@@ -10,9 +10,7 @@ MODCFLAGS = @BUILTINFLAG@
EXTRADEFS
=
-DNO_LIBWINE_PORT
C_SRCS
=
\
License_En.c
\
dialog.c
\
license.c
\
main.c
RC_SRCS
=
rsrc.rc
...
...
programs/notepad/dialog.c
View file @
5d5695a2
...
...
@@ -28,7 +28,6 @@
#include <commdlg.h>
#include "main.h"
#include "license.h"
#include "dialog.h"
static
const
WCHAR
helpfileW
[]
=
{
'n'
,
'o'
,
't'
,
'e'
,
'p'
,
'a'
,
'd'
,
'.'
,
'h'
,
'l'
,
'p'
,
0
};
...
...
@@ -684,12 +683,18 @@ VOID DIALOG_HelpHelp(VOID)
VOID
DIALOG_HelpLicense
(
VOID
)
{
WineLicense
(
Globals
.
hMainWnd
);
TCHAR
cap
[
20
],
text
[
1024
];
LoadString
(
Globals
.
hInstance
,
IDS_LICENSE
,
text
,
1024
);
LoadString
(
Globals
.
hInstance
,
IDS_LICENSE_CAPTION
,
cap
,
20
);
MessageBox
(
Globals
.
hMainWnd
,
text
,
cap
,
MB_ICONINFORMATION
|
MB_OK
);
}
VOID
DIALOG_HelpNoWarranty
(
VOID
)
{
WineWarranty
(
Globals
.
hMainWnd
);
TCHAR
cap
[
20
],
text
[
1024
];
LoadString
(
Globals
.
hInstance
,
IDS_WARRANTY
,
text
,
1024
);
LoadString
(
Globals
.
hInstance
,
IDS_WARRANTY_CAPTION
,
cap
,
20
);
MessageBox
(
Globals
.
hMainWnd
,
text
,
cap
,
MB_ICONEXCLAMATION
|
MB_OK
);
}
VOID
DIALOG_HelpAboutWine
(
VOID
)
...
...
programs/notepad/license.c
deleted
100644 → 0
View file @
4f53d5a5
/*
* Notepad (license.h)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
*
* 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
*/
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "license.h"
VOID
WineLicense
(
HWND
Wnd
)
{
/* FIXME: should load strings from resources */
LICENSE
*
License
=
&
WineLicense_En
;
MessageBox
(
Wnd
,
License
->
License
,
License
->
LicenseCaption
,
MB_ICONINFORMATION
|
MB_OK
);
}
VOID
WineWarranty
(
HWND
Wnd
)
{
/* FIXME: should load strings from resources */
LICENSE
*
License
=
&
WineLicense_En
;
MessageBox
(
Wnd
,
License
->
Warranty
,
License
->
WarrantyCaption
,
MB_ICONEXCLAMATION
|
MB_OK
);
}
programs/notepad/license.h
deleted
100644 → 0
View file @
4f53d5a5
/*
* Notepad (license.h)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
*
* 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
*/
VOID
WineLicense
(
HWND
hWnd
);
VOID
WineWarranty
(
HWND
hWnd
);
typedef
struct
{
LPCSTR
License
,
LicenseCaption
;
LPCSTR
Warranty
,
WarrantyCaption
;
}
LICENSE
;
/*
extern LICENSE WineLicense_Ca;
extern LICENSE WineLicense_Cz;
extern LICENSE WineLicense_Da;
extern LICENSE WineLicense_De;
*/
extern
LICENSE
WineLicense_En
;
/*
extern LICENSE WineLicense_Eo;
extern LICENSE WineLicense_Es;
extern LICENSE WineLicense_Fi;
extern LICENSE WineLicense_Fr;
extern LICENSE WineLicense_Hu;
extern LICENSE WineLicense_It;
extern LICENSE WineLicense_Ko;
extern LICENSE WineLicense_No;
extern LICENSE WineLicense_Pl;
extern LICENSE WineLicense_Po;
extern LICENSE WineLicense_Sw;
extern LICENSE WineLicense_Va;
*/
programs/notepad/notepad_res.h
View file @
5d5695a2
...
...
@@ -76,3 +76,8 @@
#define STRING_NOTFOUND 0x17B
#define STRING_OUT_OF_MEMORY 0x17C
#define IDS_LICENSE_CAPTION 0x180
#define IDS_LICENSE 0x181
#define IDS_WARRANTY_CAPTION 0x182
#define IDS_WARRANTY 0x183
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