Commit 07bcfbdc authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

programs: Add an implementation of Wordpad.

parent c9de37d7
......@@ -1697,6 +1697,7 @@ programs/winetest/Makefile
programs/winevdm/Makefile
programs/winhelp/Makefile
programs/winver/Makefile
programs/wordpad/Makefile
server/Makefile
tools/Makefile
tools/widl/Makefile
......
......@@ -38,7 +38,8 @@ SUBDIRS = \
winetest \
winevdm \
winhelp \
winver
winver \
wordpad
# Sub-directories to run make install into
INSTALLSUBDIRS = \
......@@ -71,7 +72,8 @@ INSTALLSUBDIRS = \
winepath \
winevdm \
winhelp \
winver
winver \
wordpad
# Programs to install in bin directory
INSTALLPROGS = \
......@@ -128,7 +130,8 @@ SYMLINKS = \
winetest.exe$(DLLEXT) \
winevdm.exe$(DLLEXT) \
winhelp.exe$(DLLEXT) \
winver.exe$(DLLEXT)
winver.exe$(DLLEXT) \
wordpad.exe$(DLLEXT)
@MAKE_RULES@
......@@ -278,6 +281,9 @@ winhelp.exe$(DLLEXT): winhelp/winhelp.exe$(DLLEXT)
winver.exe$(DLLEXT): winver/winver.exe$(DLLEXT)
$(RM) $@ && $(LN_S) winver/winver.exe$(DLLEXT) $@
wordpad.exe$(DLLEXT): wordpad/wordpad.exe$(DLLEXT)
$(RM) $@ && $(LN_S) wordpad/wordpad.exe$(DLLEXT) $@
avitools/aviinfo.exe$(DLLEXT): avitools
avitools/aviplay.exe$(DLLEXT): avitools
clock/clock.exe$(DLLEXT): clock
......@@ -313,5 +319,6 @@ winetest/winetest.exe$(DLLEXT): winetest
winevdm/winevdm.exe$(DLLEXT): winevdm
winhelp/winhelp.exe$(DLLEXT): winhelp
winver/winver.exe$(DLLEXT): winver
wordpad/wordpad.exe$(DLLEXT): wordpad
### Dependencies:
Makefile
rsrc.res
toolbar.bmp
wordpad
/*
* Copyright 2004 by Krzysztof Foltman
*
* 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 "resource.h"
MAINMENU MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", ID_FILE_NEW
MENUITEM "&Open", ID_FILE_OPEN
MENUITEM "&Save", ID_FILE_SAVE
MENUITEM SEPARATOR
MENUITEM "&Exit", ID_FILE_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Undo\tCtrl+Z", ID_EDIT_UNDO
MENUITEM "&Redo\tCtrl+Y", ID_EDIT_REDO
MENUITEM "&Select all\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", ID_EDIT_CUT
MENUITEM "&Copy\tCtrl+C", ID_EDIT_COPY
MENUITEM SEPARATOR
MENUITEM "Read-&only", ID_EDIT_READONLY
MENUITEM "&Modified", ID_EDIT_MODIFIED
MENUITEM SEPARATOR
POPUP "&Extras"
BEGIN
MENUITEM "Selection &info", ID_EDIT_SELECTIONINFO
MENUITEM "Character &format", ID_EDIT_CHARFORMAT
MENUITEM "&Def. char format", ID_EDIT_DEFCHARFORMAT
MENUITEM "Paragrap&h format", ID_EDIT_PARAFORMAT
MENUITEM "&Get text", ID_EDIT_GETTEXT
END
END
POPUP "F&ormat"
BEGIN
POPUP "&Background"
BEGIN
MENUITEM "&System\tCtrl+1", ID_BACK_1
MENUITEM "&PostThat yellowish\tCtrl+2", ID_BACK_2
END
POPUP "&Alignment"
BEGIN
MENUITEM "&Left\tCtrl+L", ID_ALIGN_LEFT
MENUITEM "&Center\tCtrl+E", ID_ALIGN_CENTER
MENUITEM "&Right\tCtrl+R", ID_ALIGN_RIGHT
END
END
END
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = wordpad.exe
APPMODE = -mwindows
IMPORTS = comdlg32 shell32 user32 gdi32 msvcrt advapi32 kernel32 comctl32
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
EXTRADEFS = -DNO_LIBWINE_PORT
MODCFLAGS = @BUILTINFLAG@
C_SRCS = \
wordpad.c
RC_SRCS = rsrc.rc
RC_BINSRC = rsrc.rc
RC_BINARIES = \
toolbar.bmp
@MAKE_PROG_RULES@
### Dependencies:
/*
* Copyright 2004 by Krzysztof Foltman
*
* 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 ID_FILE_EXIT 1000
#define ID_FILE_OPEN 1001
#define ID_FILE_SAVE 1002
#define ID_FILE_NEW 1003
#define ID_ALIGN_LEFT 1100
#define ID_ALIGN_CENTER 1101
#define ID_ALIGN_RIGHT 1102
#define ID_BACK_1 1200
#define ID_BACK_2 1201
#define ID_EDIT_SELECTALL 1300
#define ID_EDIT_SELECTIONINFO 1301
#define ID_EDIT_READONLY 1302
#define ID_EDIT_MODIFIED 1303
#define ID_EDIT_CHARFORMAT 1304
#define ID_EDIT_PARAFORMAT 1305
#define ID_EDIT_DEFCHARFORMAT 1306
#define ID_EDIT_UNDO 1307
#define ID_EDIT_REDO 1308
#define ID_EDIT_GETTEXT 1309
#define ID_EDIT_COPY 1310
#define ID_EDIT_CUT 1311
#define ID_FORMAT_BOLD 1400
#define ID_FORMAT_ITALIC 1401
#define ID_FORMAT_UNDERLINE 1402
#define IDC_STATUSBAR 2000
#define IDC_EDITOR 2001
#define IDC_TOOLBAR 2002
#define IDC_REBAR 2003
#define IDC_COMBO 2004
#define IDB_TOOLBAR 100
/*
* Copyright 2004 by Krzysztof Foltman
*
* 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 "resource.h"
MAINACCELTABLE ACCELERATORS
BEGIN
"1", ID_BACK_1, VIRTKEY, CONTROL
"2", ID_BACK_2, VIRTKEY, CONTROL
"L", ID_ALIGN_LEFT, VIRTKEY, CONTROL
"E", ID_ALIGN_CENTER, VIRTKEY, CONTROL
"R", ID_ALIGN_RIGHT, VIRTKEY, CONTROL
"A", ID_EDIT_SELECTALL, VIRTKEY, CONTROL
"X", ID_EDIT_CUT, VIRTKEY, CONTROL
"C", ID_EDIT_COPY, VIRTKEY, CONTROL
"Z", ID_EDIT_UNDO, VIRTKEY, CONTROL
"Y", ID_EDIT_REDO, VIRTKEY, CONTROL
"B", ID_FORMAT_BOLD, VIRTKEY, CONTROL
"I", ID_FORMAT_ITALIC, VIRTKEY, CONTROL
"U", ID_FORMAT_UNDERLINE,VIRTKEY, CONTROL
"N", ID_FILE_NEW, VIRTKEY, CONTROL
"O", ID_FILE_OPEN, VIRTKEY, CONTROL
"S", ID_FILE_SAVE, VIRTKEY, CONTROL
END
/* BINRES toolbar.bmp */
IDB_TOOLBAR BITMAP "toolbar.bmp"
/* {
'42 4D F6 01 00 00 00 00 00 00 76 00 00 00 28 00'
'00 00 30 00 00 00 10 00 00 00 01 00 04 00 00 00'
'00 00 80 01 00 00 00 00 00 00 00 00 00 00 00 00'
'00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 80'
'00 00 00 80 80 00 80 00 00 00 80 00 80 00 80 80'
'00 00 80 80 80 00 C0 C0 C0 00 00 00 FF 00 00 FF'
'00 00 00 FF FF 00 FF 00 00 00 FF 00 FF 00 FF FF'
'00 00 FF FF FF 00 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'00 00 00 00 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 80'
'00 00 00 88 88 88 88 88 00 00 08 88 88 88 88 88'
'80 00 00 08 88 88 88 80 08 88 80 08 88 88 88 88'
'88 08 88 88 88 88 88 88 08 88 88 80 88 88 88 80'
'08 88 80 08 88 88 88 88 88 08 88 88 88 88 88 88'
'08 88 88 80 88 88 88 80 08 88 80 08 88 88 88 88'
'88 08 88 88 88 88 88 88 08 88 88 80 88 88 88 80'
'08 88 80 08 88 88 88 88 88 80 88 88 88 88 88 88'
'08 88 88 80 88 88 88 80 00 00 00 88 88 88 88 88'
'88 80 88 88 88 88 88 88 08 88 88 80 88 88 88 80'
'08 88 80 08 88 88 88 88 88 80 88 88 88 88 88 88'
'08 88 88 80 88 88 88 80 08 88 80 08 88 88 88 88'
'88 88 08 88 88 88 88 88 08 88 88 80 88 88 88 80'
'08 88 80 08 88 88 88 88 88 88 08 88 88 88 88 88'
'08 88 88 80 88 88 88 80 00 00 00 88 88 88 88 88'
'88 00 00 08 88 88 88 88 08 88 88 80 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88'
} */
#include "En.rc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment