mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Added notepad ported from WINE. Not built by default but its there
if you want to edit your code under ROS without a reboot. We should move this to where ever the apps realy belong...... subsys/system? apps/utils?....... svn path=/trunk/; revision=7597
This commit is contained in:
parent
c24c294c02
commit
e1399c5621
33 changed files with 3606 additions and 553 deletions
126
reactos/apps/dist/notepad/Da.rc
vendored
Normal file
126
reactos/apps/dist/notepad/Da.rc
vendored
Normal file
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
* Notepad (Danish resources)
|
||||
*
|
||||
* Copyright 1998 Henrik Olsen <henrik@iaeste.dk>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_DANISH, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Filef" {
|
||||
MENUITEM "&Ny...", CMD_NEW
|
||||
MENUITEM "Å&bn\tEnter", CMD_OPEN
|
||||
MENUITEM "&Gem", CMD_SAVE
|
||||
MENUITEM "Gem so&m...", CMD_SAVE_AS
|
||||
MENUITEM "&Udskriv", CMD_PRINT
|
||||
MENUITEM "Side&opsætning...", CMD_PAGE_SETUP
|
||||
MENUITEM "&Indstil printer...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Afslut", CMD_EXIT
|
||||
}
|
||||
POPUP "&Rediger" {
|
||||
MENUITEM "&Fortryd\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Klip\tCtrl+X", CMD_CUT
|
||||
MENUITEM "K&opier\tCtrl+C", CMD_COPY
|
||||
MENUITEM "Sæt &ind\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Slet\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Marker &alt", CMD_SELECT_ALL
|
||||
MENUITEM "&Dato/tid\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Automatisk &linjeskift", CMD_WRAP
|
||||
}
|
||||
POPUP "&Søg" {
|
||||
MENUITEM "&Søg...", CMD_SEARCH
|
||||
MENUITEM "&Find næste\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Hjælp" {
|
||||
MENUITEM "&Indhold", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Søg efter hjælp om...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Brug af Hjælp", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "&Om Notesblok..." {
|
||||
MENUITEM "&Licens", CMD_LICENSE
|
||||
MENUITEM "&NO WARRANTY", CMD_NO_WARRANTY
|
||||
MENUITEM "&Om WINE", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Sideopsætning"
|
||||
{
|
||||
LTEXT "&Sidehoved:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "Side&fod:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "Margener:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Venstre:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Højre:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Bund:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Annuller", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Hjælp", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Notesblok"
|
||||
STRING_ERROR, "FEJL"
|
||||
STRING_WARNING, "ADVARSEL"
|
||||
STRING_INFO, "Information"
|
||||
|
||||
STRING_UNTITLED, "(ikke-navngivet)"
|
||||
|
||||
STRING_ALL_FILES, "Alle filer (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Tekst filer (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Filen '%s' er for stor til Notesblok. \
|
||||
\nBrug en anden editor til at redigere filen."
|
||||
STRING_NOTEXT, "Du har ikke skrevet noget tekst. \
|
||||
\nSkriv noget tekst, og prøv så igen"
|
||||
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
|
||||
Do you want to create a new file ?"
|
||||
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
|
||||
Would you like to save the changes ?"
|
||||
STRING_NOTFOUND, "Kan ikke finde '%s'."
|
||||
STRING_OUT_OF_MEMORY, "Der er ikke nok hukommelse til at udføre \
|
||||
denne operation. \nAfslut et eller flere aktive programmer for at frigøre \
|
||||
hukommelse, og prøv så igen."
|
||||
|
||||
}
|
129
reactos/apps/dist/notepad/De.rc
vendored
Normal file
129
reactos/apps/dist/notepad/De.rc
vendored
Normal file
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* Notepad (German resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_GERMAN, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Datei" {
|
||||
MENUITEM "&Neu...", CMD_NEW
|
||||
MENUITEM "Ö&ffnen...", CMD_OPEN
|
||||
MENUITEM "&Speichern", CMD_SAVE
|
||||
MENUITEM "Speichern &unter...", CMD_SAVE_AS
|
||||
MENUITEM "&Drucken", CMD_PRINT
|
||||
MENUITEM "Seite ein&richten...", CMD_PAGE_SETUP
|
||||
MENUITEM "Drucker&einrichtung...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Beenden", CMD_EXIT
|
||||
}
|
||||
POPUP "&Bearbeiten" {
|
||||
MENUITEM "&Rückgängig\tStrg+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Ausschneiden\tStrg+X", CMD_CUT
|
||||
MENUITEM "&Kopieren\tStrg+C", CMD_COPY
|
||||
MENUITEM "&Einfügen\tStrg+V", CMD_PASTE
|
||||
MENUITEM "&Löschen\tEntf", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Alles &markieren", CMD_SELECT_ALL
|
||||
MENUITEM "&Uhrzeit/Datum\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Zeilenumbruch", CMD_WRAP
|
||||
}
|
||||
POPUP "&Suchen" {
|
||||
MENUITEM "Suchen...", CMD_SEARCH
|
||||
MENUITEM "&Weitersuchen\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Hilfe" {
|
||||
MENUITEM "&Inhalt", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Suchen...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Hilfe benutzen", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&o..." {
|
||||
MENUITEM "&Lizenz", CMD_LICENSE
|
||||
MENUITEM "&KEINE GARANTIE", CMD_NO_WARRANTY
|
||||
MENUITEM "&Über Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Seite einrichten"
|
||||
{
|
||||
LTEXT "&Kopfzeile:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Fußzeile:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "Ränder", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Links:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Oben:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Rechts:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Unten:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Abbrechen", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Hilfe", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Editor"
|
||||
STRING_ERROR, "FEHLER"
|
||||
STRING_WARNING, "ACHTUNG"
|
||||
STRING_INFO, "Information"
|
||||
|
||||
STRING_UNTITLED, "(unbenannt)"
|
||||
|
||||
STRING_ALL_FILES, "Alle Dateien (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Textdateien (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "'%s' ist zu gross für den Editor\n \
|
||||
Benutzen Sie bitte einen anderen Editor, um diese Datei zu bearbeiten."
|
||||
STRING_NOTEXT, "Sie haben keinen Text eingegeben, der \
|
||||
gespeichert\n werden könnte. Geben Sie Text ein, und versuchen Sie es \
|
||||
\nerneut."
|
||||
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
|
||||
Do you want to create a new file ?"
|
||||
STRING_NOTSAVED, "Datei %s\n wurde geaendert.\n\n \
|
||||
Moechten Sie die Aenderungen speichern ?"
|
||||
STRING_NOTFOUND, "'%s' kann nicht gefunden werden."
|
||||
STRING_OUT_OF_MEMORY, "Nicht genügend Arbeitsspeicher, \
|
||||
um diese Funktion \nabzuschließen. Beenden Sie eine oder mehrere \
|
||||
\nAnwendungen, um den verfügbaren Arbeitsspeicher zu \nerhöhen."
|
||||
|
||||
|
||||
}
|
129
reactos/apps/dist/notepad/En.rc
vendored
Normal file
129
reactos/apps/dist/notepad/En.rc
vendored
Normal file
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* Notepad (English resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&File" {
|
||||
MENUITEM "&New...", CMD_NEW
|
||||
MENUITEM "&Open\tCtrl+O", CMD_OPEN
|
||||
MENUITEM "&Save\tCtrl+S", CMD_SAVE
|
||||
MENUITEM "Save &as...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Print", CMD_PRINT
|
||||
MENUITEM "Page Se&tup...", CMD_PAGE_SETUP
|
||||
MENUITEM "P&rinter Setup...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&xit", CMD_EXIT
|
||||
}
|
||||
POPUP "&Edit" {
|
||||
MENUITEM "&Undo\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Cu&t\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Copy\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Paste\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Delete\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Select &all\tCtrl+A", CMD_SELECT_ALL
|
||||
MENUITEM "&Time/Date\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Wrap long lines", CMD_WRAP
|
||||
MENUITEM "&Font...", CMD_FONT
|
||||
}
|
||||
POPUP "&Search" {
|
||||
MENUITEM "&Search\tCtrl+F", CMD_SEARCH
|
||||
MENUITEM "&Search next\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Help" {
|
||||
MENUITEM "&Contents", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Search...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Help on help", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&o..." {
|
||||
MENUITEM "&License", CMD_LICENSE
|
||||
MENUITEM "&NO WARRANTY", CMD_NO_WARRANTY
|
||||
MENUITEM "&About Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Page Setup"
|
||||
{
|
||||
LTEXT "&Header:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Footer:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Margins:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Left:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Right:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Bottom:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Cancel", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Notepad"
|
||||
STRING_ERROR, "ERROR"
|
||||
STRING_WARNING, "WARNING"
|
||||
STRING_INFO, "Information"
|
||||
|
||||
STRING_UNTITLED, "(untitled)"
|
||||
|
||||
STRING_ALL_FILES, "All files (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Text files (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "File '%s' is too large for notepad.\n \
|
||||
Please use a different editor."
|
||||
STRING_NOTEXT, "You didn't enter any text. \
|
||||
\nPlease type something and try again"
|
||||
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
|
||||
Do you want to create a new file ?"
|
||||
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
|
||||
Would you like to save the changes ?"
|
||||
STRING_NOTFOUND, "'%s' can not be found."
|
||||
STRING_OUT_OF_MEMORY, "Not enough memory to complete this \
|
||||
task. \nClose one or more applications to increase the amount of \nfree \
|
||||
memory."
|
||||
|
||||
}
|
130
reactos/apps/dist/notepad/Es.rc
vendored
Normal file
130
reactos/apps/dist/notepad/Es.rc
vendored
Normal file
|
@ -0,0 +1,130 @@
|
|||
/*
|
||||
* Notepad (Spanish resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
|
||||
* Proofread 1999 by Jose Marcos Lopez <jose.lopez@upcnet.upc.es>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
* Copyright 2003 José Manuel Ferrer Ortiz
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_SPANISH, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Archivo" {
|
||||
MENUITEM "&Nuevo", CMD_NEW
|
||||
MENUITEM "&Abrir", CMD_OPEN
|
||||
MENUITEM "&Guardar", CMD_SAVE
|
||||
MENUITEM "Guardar &como...", CMD_SAVE_AS
|
||||
MENUITEM "&Imprimir", CMD_PRINT
|
||||
MENUITEM "Configurar &página...", CMD_PAGE_SETUP
|
||||
MENUITEM "Configuración &impresora...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Salir", CMD_EXIT
|
||||
}
|
||||
POPUP "&Editar" {
|
||||
MENUITEM "&Deshacer\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Cor&tar\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Copiar\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Pegar\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Borrar\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Seleccionar t&odo", CMD_SELECT_ALL
|
||||
MENUITEM "&Hora y Fecha\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Ajuste de línea automático", CMD_WRAP
|
||||
}
|
||||
POPUP "&Buscar" {
|
||||
MENUITEM "&Buscar...", CMD_SEARCH
|
||||
MENUITEM "Buscar &siguiente\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Ayuda" {
|
||||
MENUITEM "Í&ndice", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Buscar...", CMD_HELP_SEARCH
|
||||
MENUITEM "A&yuda sobre la ayuda", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "&Información..." {
|
||||
MENUITEM "&Licencia", CMD_LICENSE
|
||||
MENUITEM "SIN &GARANTÍA", CMD_NO_WARRANTY
|
||||
MENUITEM "&Acerca de Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "&Ajuste de página"
|
||||
{
|
||||
LTEXT "&Cabecera:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Pie:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Márgenes:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Izquierda:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "A&rriba:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Derecha:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "Aba&jo:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "Aceptar", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Cancelar", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Ayuda", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Página &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Bloc de Notas"
|
||||
STRING_ERROR, "ERROR"
|
||||
STRING_WARNING, "ADVERTENCIA"
|
||||
STRING_INFO, "Información"
|
||||
|
||||
STRING_UNTITLED, "(sin título)"
|
||||
|
||||
STRING_ALL_FILES, "Todos los archivos (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Documentos de texto (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "El archivo '%s' es demasiado grande para el bloc de notas.\n \
|
||||
Use otro editor."
|
||||
STRING_NOTEXT, "No escribió nada. \
|
||||
\nPor favor escriba algo y pruebe de nuevo"
|
||||
STRING_DOESNOTEXIST, "El archivo '%s'\nno existe\n\n \
|
||||
¿Desea crear un nuevo archivo?"
|
||||
STRING_NOTSAVED, "El texto en el archivo '%s' ha cambiado\n\n \
|
||||
¿Desea guardar los cambios?"
|
||||
STRING_NOTFOUND, "no se encontró '%s'."
|
||||
STRING_OUT_OF_MEMORY, "No hay suficiente memoria para terminar \
|
||||
esta tarea. \nCierre una o más aplicaciones para aumentar la cantidad \nde \
|
||||
memoria libre."
|
||||
|
||||
|
||||
}
|
126
reactos/apps/dist/notepad/Fi.rc
vendored
Normal file
126
reactos/apps/dist/notepad/Fi.rc
vendored
Normal file
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
* Notepad (Finnish resources)
|
||||
*
|
||||
* Copyright 1999 by Jukka Iivonen <iivonen@iki.fi>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Tiedosto" {
|
||||
MENUITEM "&Uusi...", CMD_NEW
|
||||
MENUITEM "&Avaa", CMD_OPEN
|
||||
MENUITEM "Ta&lleta", CMD_SAVE
|
||||
MENUITEM "Talleta &nimellä...", CMD_SAVE_AS
|
||||
MENUITEM "T&ulosta", CMD_PRINT
|
||||
MENUITEM "&Sivun asetukset...", CMD_PAGE_SETUP
|
||||
MENUITEM "&Kirjoittimen asetukset...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Poistu", CMD_EXIT
|
||||
}
|
||||
POPUP "&Muokkaa" {
|
||||
MENUITEM "&Palauta\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Leikkaa\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Kopioi\tCtrl+C", CMD_COPY
|
||||
MENUITEM "L&iitä\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "P&oista\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Valitse kaikki", CMD_SELECT_ALL
|
||||
MENUITEM "&Aika/Päivämäärä\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Ka&tkaise pitkä rivi", CMD_WRAP
|
||||
}
|
||||
POPUP "&Etsi" {
|
||||
MENUITEM "Etsi...", CMD_SEARCH
|
||||
MENUITEM "Etsi &seuraava\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Apua" {
|
||||
MENUITEM "&Sisältö", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Etsi...", CMD_HELP_SEARCH
|
||||
MENUITEM "Apua &Opastuksesta", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&o..." {
|
||||
MENUITEM "&Lisenssi", CMD_LICENSE
|
||||
MENUITEM "&EI TAKUUTA", CMD_NO_WARRANTY
|
||||
MENUITEM "&Tietoja Wine:ista", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Sivun asetukset"
|
||||
{
|
||||
LTEXT "&Yläotsikko:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "Alao&tsikko:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Marginaali:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Vasen:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "Y&lä:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Oikea:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Ala:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Peruuta", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Apua", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Sivu &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Notepad"
|
||||
STRING_ERROR, "VIRHE"
|
||||
STRING_WARNING, "VAROITUS"
|
||||
STRING_INFO, "Tiedoitus"
|
||||
|
||||
STRING_UNTITLED, "(otsikoimaton)"
|
||||
|
||||
STRING_ALL_FILES, "Kaikki tiedostot (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Teksti tiedostot (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Tiedosto '%s' on liian suuri.\n \
|
||||
Please use a different editor."
|
||||
STRING_NOTEXT, "Et syöttänyt lainkaan tekstiä. \
|
||||
\nKirjoita jotain ja yritä uudelleen"
|
||||
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
|
||||
Do you want to create a new file ?"
|
||||
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
|
||||
Would you like to save the changes ?"
|
||||
STRING_NOTFOUND, "'%s' ei löydy."
|
||||
STRING_OUT_OF_MEMORY, "Muistia ei ole riittävästi tämän \
|
||||
\ntehtävän tekemiseksi. Sulje jokin sovellus vapauttaaksesi\n \
|
||||
muistia."
|
||||
|
||||
}
|
129
reactos/apps/dist/notepad/Fr.rc
vendored
Normal file
129
reactos/apps/dist/notepad/Fr.rc
vendored
Normal file
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* Notepad (French resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Translation by Laurent Buffler <laurent@bluewin.ch>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Fichier" {
|
||||
MENUITEM "&Nouveau...", CMD_NEW
|
||||
MENUITEM "&Ouvrir\tCtrl+O", CMD_OPEN
|
||||
MENUITEM "&Enregistrer\tCtrl+S", CMD_SAVE
|
||||
MENUITEM "Enregistrer &sous...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Im&primer", CMD_PRINT
|
||||
MENUITEM "&Mise en page...", CMD_PAGE_SETUP
|
||||
MENUITEM "&Configuration de l'imprimante...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Quitter", CMD_EXIT
|
||||
}
|
||||
POPUP "&Edition" {
|
||||
MENUITEM "&Annuler\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Co&uper\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Copier\tCtrl+C", CMD_COPY
|
||||
MENUITEM "C&oller\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Effacer\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Tout &sélectionner\tCtrl+A", CMD_SELECT_ALL
|
||||
MENUITEM "&Heure/Date\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Retour à la ligne", CMD_WRAP
|
||||
MENUITEM "&Police...", CMD_FONT
|
||||
}
|
||||
POPUP "&Rechercher" {
|
||||
MENUITEM "&Rechercher\tCtrl+F", CMD_SEARCH
|
||||
MENUITEM "&Suivant\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Aide" {
|
||||
MENUITEM "&Sommaire", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Rechercher...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Utiliser l'aide", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&o..." {
|
||||
MENUITEM "&Licence", CMD_LICENSE
|
||||
MENUITEM "&AUCUNE GARANTIE", CMD_NO_WARRANTY
|
||||
MENUITEM "&A propos de Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Mise en page"
|
||||
{
|
||||
LTEXT "&En-tête :", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Pied de page :", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Marges :", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Gauche :", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Haut :", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Droite :", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Bas :", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Annuler", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Aide", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Bloc-notes"
|
||||
STRING_ERROR, "ERREUR"
|
||||
STRING_WARNING, "ATTENTION"
|
||||
STRING_INFO, "Information"
|
||||
|
||||
STRING_UNTITLED, "(sans-titre)"
|
||||
|
||||
STRING_ALL_FILES, "Tous fichiers (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Fichiers texte (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Le fichier '%s' est trop grand pour le bloc-notes.\n \
|
||||
Veuillez utiliser un autre éditeur."
|
||||
STRING_NOTEXT, "Vous n'avez pas entré de texte. \
|
||||
Veuillez taper quelque chose et recommencer"
|
||||
STRING_DOESNOTEXIST, "Le fichier '%s'\nn'existe pas.\n\n \
|
||||
Voulez-vous créer un nouveau fichier ?"
|
||||
STRING_NOTSAVED, "Le fichier '%s'\na été modifié\n\n \
|
||||
Voulez-vous enregistrer vos modifications ?"
|
||||
STRING_NOTFOUND, "'%s' non trouvé."
|
||||
STRING_OUT_OF_MEMORY, "Pas assez de mémoire pour compléter cette \
|
||||
tâche. \nFermez une ou plusieurs applications pour libérer\n\
|
||||
de la mémoire."
|
||||
|
||||
}
|
128
reactos/apps/dist/notepad/Hu.rc
vendored
Normal file
128
reactos/apps/dist/notepad/Hu.rc
vendored
Normal file
|
@ -0,0 +1,128 @@
|
|||
/*
|
||||
* Notepad (Hungarian resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur
|
||||
* Proofread 1998 by David Lee Lambert
|
||||
* Copyright 2002 Sylvain Petreolle
|
||||
* Copyright 2002 Zoly Nagy
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
MAIN_MENU MENU LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
|
||||
{
|
||||
POPUP "&Fájl" {
|
||||
MENUITEM "Ú&j", CMD_NEW
|
||||
MENUITEM "Meg&nyitás...", CMD_OPEN
|
||||
MENUITEM "&Mentés", CMD_SAVE
|
||||
MENUITEM "Mentés má&sként...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Oldalbeállítás...", CMD_PAGE_SETUP
|
||||
MENUITEM "Nyom&tatás...", CMD_PRINT
|
||||
MENUITEM "Nyomtató &beállítás...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Kilépés", CMD_EXIT
|
||||
}
|
||||
POPUP "S&zerkesztés" {
|
||||
MENUITEM "&Visszavonás\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Kivá&gás\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Másolás\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Beillesztés\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "Tör&lés\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Az összes kijelölése", CMD_SELECT_ALL
|
||||
MENUITEM "&Idõ/dátum\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Hosszú sorok tördelése", CMD_WRAP
|
||||
}
|
||||
POPUP "&Keresés" {
|
||||
MENUITEM "&Keresés...", CMD_SEARCH
|
||||
MENUITEM "Köve&tkezõ keresése\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Súgó" {
|
||||
MENUITEM "&Témakörök", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Keresés...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Használat", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&ormáció..." {
|
||||
MENUITEM "&Licenc", CMD_LICENSE
|
||||
MENUITEM "&SEMMI GARANCIA", CMD_NO_WARRANTY
|
||||
MENUITEM "&Wine névjegy", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Oldalbeállítás"
|
||||
{
|
||||
LTEXT "&Fejléc:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Lábléc:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Margók:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Bal:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Felsõ:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Jobb:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Alsó:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Mégse", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Súgó", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Oldalszám: &s." /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Jegyzettömb"
|
||||
STRING_ERROR, "HIBA"
|
||||
STRING_WARNING, "FIGYELMEZTETÉS"
|
||||
STRING_INFO, "Információ"
|
||||
|
||||
STRING_UNTITLED, "(névtelen)"
|
||||
|
||||
STRING_ALL_FILES, "Minden fájl (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Szövegfájlok (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "'%s' fájl túl nagy méretû.\n \
|
||||
Kérem használjon másik szövegszerkesztõ programot."
|
||||
STRING_NOTEXT, "A szöveg nem tartalmaz karaktert! \
|
||||
\nKérem gépeljen be néhány karaktert és próbálja újra!"
|
||||
STRING_DOESNOTEXIST, "A megadott '%s'\nfájl nem létezik!\n\n \
|
||||
Kíván létrehozni új fájlt?"
|
||||
STRING_NOTSAVED, "'%s' fájl\nmódosult\n\n \
|
||||
Szeretné menteni a változásokat?"
|
||||
STRING_NOTFOUND, "'%s' nem található!"
|
||||
STRING_OUT_OF_MEMORY, "Nincs elegendõ szabad memória!\
|
||||
\nZárjon be néhány alkalmazást, ezzel növelve a szabad memória méretét\
|
||||
!"
|
||||
|
||||
}
|
130
reactos/apps/dist/notepad/It.rc
vendored
Normal file
130
reactos/apps/dist/notepad/It.rc
vendored
Normal file
|
@ -0,0 +1,130 @@
|
|||
/*
|
||||
* Notepad (Italian resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
* Copyright 2003 Marcelo Duarte
|
||||
* Copyright 2003 Ivan Leo Murray-Smith <puoti@inwind.it>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_ITALIAN, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&File" {
|
||||
MENUITEM "&Nuovo", CMD_NEW
|
||||
MENUITEM "&Apri...\tCtrl+O", CMD_OPEN
|
||||
MENUITEM "&Salva\tCtrl+S", CMD_SAVE
|
||||
MENUITEM "Salva &con nome...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Stampa", CMD_PRINT
|
||||
MENUITEM "&Imposta pagina...", CMD_PAGE_SETUP
|
||||
MENUITEM "&Configurazione di stampa...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&sci", CMD_EXIT
|
||||
}
|
||||
POPUP "&Modifica" {
|
||||
MENUITEM "&Anulla\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Taglia\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Copia\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Incolla\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Elimina\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Seleziona &tutto\tCtrl+A", CMD_SELECT_ALL
|
||||
MENUITEM "&Ora/Data\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&A campo automatico", CMD_WRAP
|
||||
MENUITEM "&Imposta carattere...", CMD_FONT
|
||||
}
|
||||
POPUP "&Trova" {
|
||||
MENUITEM "&Trova\tCtrl+F", CMD_SEARCH
|
||||
MENUITEM "&Trova successivo\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Aiuto" {
|
||||
MENUITEM "&Contenuti", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Trova...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Aiuto sulla Guida", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&o..." {
|
||||
MENUITEM "&Licenza", CMD_LICENSE
|
||||
MENUITEM "&Garanzia", CMD_NO_WARRANTY
|
||||
MENUITEM "&Informazioni sul Blocco Note", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Setup di pagina"
|
||||
{
|
||||
LTEXT "&Note a inizio pagina:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Note a piè di pagina:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Margini:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Sinistro:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Superiore:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Destro:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Inferiore:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Cancella", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Aiuto", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Blocco note"
|
||||
STRING_ERROR, "ERRORE"
|
||||
STRING_WARNING, "ATTENZIONE"
|
||||
STRING_INFO, "Info"
|
||||
|
||||
STRING_UNTITLED, "(senza nome)"
|
||||
|
||||
STRING_ALL_FILES, "Tutti i file (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "File di testo (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Il file '%s' è troppo grande per il blocco note.\n \
|
||||
Per favore usare un altro editor."
|
||||
STRING_NOTEXT, "Non è stato inserito alcun testo. \
|
||||
\nPer favore digitare qualcosa e riprovare"
|
||||
STRING_DOESNOTEXIST, "Il file '%s'\nnon esiste\n\n \
|
||||
Creare un nuovo file ?"
|
||||
STRING_NOTSAVED, "Il file '%s'\ne' stato modificato\n\n \
|
||||
Salvare le modifiche ?"
|
||||
STRING_NOTFOUND, "'%s' non è stato trovato."
|
||||
STRING_OUT_OF_MEMORY, "Memoria insufficente per completare questa operazione \
|
||||
task. \nChiudere una o più applicazioni per aumentare la quantita'\n di memoria libera."
|
||||
|
||||
}
|
28
reactos/apps/dist/notepad/License_En.c
vendored
Normal file
28
reactos/apps/dist/notepad/License_En.c
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
#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};
|
126
reactos/apps/dist/notepad/Nl.rc
vendored
Normal file
126
reactos/apps/dist/notepad/Nl.rc
vendored
Normal file
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
* Notepad (Dutch resources)
|
||||
*
|
||||
* Copyright 2003 Hans Leidekker
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_DUTCH, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Bestand" {
|
||||
MENUITEM "&Nieuw...", CMD_NEW
|
||||
MENUITEM "&Openen\tCtrl+O", CMD_OPEN
|
||||
MENUITEM "O&pslaan\tCtrl+p", CMD_SAVE
|
||||
MENUITEM "Ops&laan als...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Afdrukken", CMD_PRINT
|
||||
MENUITEM "Pagina-in&stelling...", CMD_PAGE_SETUP
|
||||
MENUITEM "Printerinstellingen...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Afsluiten", CMD_EXIT
|
||||
}
|
||||
POPUP "Be&werken" {
|
||||
MENUITEM "&Ongedaan maken\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "K&nippen\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Kopiëren\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Plakken\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Verwijderen\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Alles selecteren\tCtrl+A", CMD_SELECT_ALL
|
||||
MENUITEM "Tijd/&datum\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "A&utomatische terugloop", CMD_WRAP
|
||||
MENUITEM "&Lettertype instellen...", CMD_FONT
|
||||
}
|
||||
POPUP "&Zoeken" {
|
||||
MENUITEM "&Zoeken\tCtrl+Z", CMD_SEARCH
|
||||
MENUITEM "&Volgende zoeken\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Help" {
|
||||
MENUITEM "&Help-onderwerpen", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Zoeken...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Hulp bij Help", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&o..." {
|
||||
MENUITEM "&Licentie", CMD_LICENSE
|
||||
MENUITEM "&GEEN GARANTIE", CMD_NO_WARRANTY
|
||||
MENUITEM "&Over Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Pagina-instelling"
|
||||
{
|
||||
LTEXT "&Koptekst:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Voettekst:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Marges:", 0x144, 10, 43,160, 45
|
||||
LTEXT "Li&nks:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Boven:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Rechts:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Onder:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Annuleren", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Pagina &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Kladblok"
|
||||
STRING_ERROR, "FOUT"
|
||||
STRING_WARNING, "WAARSCHUWING"
|
||||
STRING_INFO, "Informatie"
|
||||
|
||||
STRING_UNTITLED, "(naamloos)"
|
||||
|
||||
STRING_ALL_FILES, "Alle bestanden (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Tekstbestanden (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Het bestand '%s' is te groot voor Kladblok.\n \
|
||||
Gebruik een andere editor."
|
||||
STRING_NOTEXT, "U heeft geen tekst ingevoerd. \
|
||||
\nType uw tekst en probeer het nogmaals"
|
||||
STRING_DOESNOTEXIST, "Het bestand '%s'\nbestaat niet\n\n \
|
||||
Wilt u een nieuw bestand maken?"
|
||||
STRING_NOTSAVED, "Het bestand '%s'\nis gewijzigd\n\n \
|
||||
Wilt u de wijzigingen opslaan?"
|
||||
STRING_NOTFOUND, "'%s' kan niet worden gevonden."
|
||||
STRING_OUT_OF_MEMORY, "Onvoldoende geheugen. \
|
||||
\nSluit een of meer applicaties om de hoeveelheid \nbeschikbaar geheugen te vergroten."
|
||||
|
||||
}
|
129
reactos/apps/dist/notepad/Pt.rc
vendored
Normal file
129
reactos/apps/dist/notepad/Pt.rc
vendored
Normal file
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* Notepad
|
||||
* Portuguese Language Support
|
||||
*
|
||||
* Copyright 1999 Marcel Baur <alves@correionet.com.br>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
* Copyright 2003 Marcelo Duarte
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_PORTUGUESE, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Arquivo" {
|
||||
MENUITEM "&Novo...", CMD_NEW
|
||||
MENUITEM "A&brir", CMD_OPEN
|
||||
MENUITEM "&Salvar", CMD_SAVE
|
||||
MENUITEM "Salvar &como...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Imprimir", CMD_PRINT
|
||||
MENUITEM "C&onfigurar página...", CMD_PAGE_SETUP
|
||||
MENUITEM "Configurar i&mpressora...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Sai&r", CMD_EXIT
|
||||
}
|
||||
POPUP "&Editar" {
|
||||
MENUITEM "&Desfazer\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Recortar\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Copiar\tCtrl+C", CMD_COPY
|
||||
MENUITEM "C&olar\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "E&xcluir\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Selecionar &tudo", CMD_SELECT_ALL
|
||||
MENUITEM "&Data/Hora\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Quebrar automática de linha", CMD_WRAP
|
||||
MENUITEM "&Fonte...", CMD_FONT
|
||||
}
|
||||
POPUP "&Pesquisa" {
|
||||
MENUITEM "&Localizar...", CMD_SEARCH
|
||||
MENUITEM "Localizar &próxima\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Ajuda" {
|
||||
MENUITEM "&Conteúdo", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Procurar...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Ajuda na ajuda", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "&Informações..." {
|
||||
MENUITEM "&Licença", CMD_LICENSE
|
||||
MENUITEM "&SEM GARANTIA", CMD_NO_WARRANTY
|
||||
MENUITEM "&Sobre o Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Configurar página"
|
||||
{
|
||||
LTEXT "&Cabeçalho:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Rodapé:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Margens:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Esquerda:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Superior:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Direita:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Inferior:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Cancelar", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Ajuda", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Página &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Notepad"
|
||||
STRING_ERROR, "ERRO"
|
||||
STRING_WARNING, "AVISO"
|
||||
STRING_INFO, "Informação"
|
||||
|
||||
STRING_UNTITLED, "(sem nome)"
|
||||
|
||||
STRING_ALL_FILES, "Todos os arquivos (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Arquivos texto (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Arquivo '%s' é muito longo para o notepad.\n \
|
||||
Por favor use um editor diferente."
|
||||
STRING_NOTEXT, "Você não digitou nenhum texto. \
|
||||
\nPor favor digite alguma coisa e tente novamente"
|
||||
STRING_DOESNOTEXIST, "Arquivo '%s'\nnão existe\n\n \
|
||||
Você deseja criar um novo arquivo?"
|
||||
STRING_NOTSAVED, "Arquivo '%s'\nfoi modificado\n\n \
|
||||
Gostaria de salvar as alteraçÕes?"
|
||||
STRING_NOTFOUND, "'%s' não pode ser encontrado."
|
||||
STRING_OUT_OF_MEMORY, "Não há memória suficiente para completar essa \
|
||||
tarefa. \nFeche uma ou mais aplicações para aumentar a quantidade de memória livre."
|
||||
|
||||
}
|
124
reactos/apps/dist/notepad/Ru.rc
vendored
Normal file
124
reactos/apps/dist/notepad/Ru.rc
vendored
Normal file
|
@ -0,0 +1,124 @@
|
|||
/*
|
||||
* Notepad (Russian resources)
|
||||
*
|
||||
* Copyright 2003 Igor Stepin
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
MAIN_MENU MENU LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
{
|
||||
POPUP "&Ôàéë" {
|
||||
MENUITEM "Ñîçä&àòü", CMD_NEW
|
||||
MENUITEM "&Îòêðûòü...", CMD_OPEN
|
||||
MENUITEM "&Ñîõðàíèòü", CMD_SAVE
|
||||
MENUITEM "Ñîõðàíèòü &êàê...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Ïàðà&ìåòðû ñòðàíèöû...", CMD_PAGE_SETUP
|
||||
MENUITEM "&Íàñòðîéêà ïðèíòåðà...", CMD_PRINTER_SETUP
|
||||
MENUITEM "&Ïå÷àòàòü", CMD_PRINT
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Â&ûõîä", CMD_EXIT
|
||||
}
|
||||
POPUP "&Ïðàâêà" {
|
||||
MENUITEM "&Îòìåíèòü\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Âûðåçàòü\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Êîïèðîâàòü\tCtrl+C", CMD_COPY
|
||||
MENUITEM "Âñò&àâèòü\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Óäàëèòü\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Âûäåëèòü â&ñå", CMD_SELECT_ALL
|
||||
MENUITEM "Âðåì&ÿ è äàòà\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Ïåðåíîñ ïî ñëîâàì", CMD_WRAP
|
||||
}
|
||||
POPUP "Ï&îèñê" {
|
||||
MENUITEM "&Íàéòè", CMD_SEARCH
|
||||
MENUITEM "Íàéòè &äàëåå\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Ñïðàâêà" {
|
||||
MENUITEM "&Ñîäåðæàíèå", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Ïîèñê...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Èñïîëüçîâàíèå ñïðàâêè", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "&Ñâåäåíèÿ..." {
|
||||
MENUITEM "&Ëèöåíçèÿ", CMD_LICENSE
|
||||
MENUITEM "&ÁÅÇ ÃÀÐÀÍÒÈÉ", CMD_NO_WARRANTY
|
||||
MENUITEM "&O Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Ïàðàìåòðû ñòðàíèöû"
|
||||
{
|
||||
LTEXT "Â&åðõíèé êîëîíòèòóë:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "Í&èæíèé êîëîíòèòóë:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "Ïîëÿ (ìì):", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Ëåâîå:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Âåðõíåå:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Ïðàâîå:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Íèæíåå:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Îòìåíà", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Ñïðàâêà", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Ñòðàíèöà &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 ìì" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 ìì" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 ìì" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 ìì" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Áëîêíîò"
|
||||
STRING_ERROR, "ÎØÈÁÊÀ"
|
||||
STRING_WARNING, "ÂÍÈÌÀÍÈÅ"
|
||||
STRING_INFO, "Èíôîðìàöèÿ"
|
||||
|
||||
STRING_UNTITLED, "(áåç çàãîëîâêà)"
|
||||
|
||||
STRING_ALL_FILES, "Âñå ôàéëû (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Òåêñòîâûå ôàéëû (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Ôàéë '%s' ñëèøêîì áîëüøîé äëÿ áëîêíîòà.\n \
|
||||
Èñïîëüçóéòå äðóãîé ðåäàêòîð."
|
||||
STRING_NOTEXT, "Âû íå ââåëè íèêàêîãî òåêñòà. \
|
||||
\nÂâåäèòå ÷òî-íèáóäü è ïîïðîáóéòå åùå."
|
||||
STRING_DOESNOTEXIST, "Ôàéë '%s'\níå ñóùåñòâóåò\n\n \
|
||||
Õîòèòå ñîçäàòü íîâûé ôàéë?"
|
||||
STRING_NOTSAVED, "Ôàéë '%s'\náûë èçìåíåí\n\n \
|
||||
Õîòèòå ñîõðàíèòü èçìåíåíèÿ?"
|
||||
STRING_NOTFOUND, "'%s' íå íàéäåí."
|
||||
STRING_OUT_OF_MEMORY, "Íåäîñòàòî÷íî ïàìÿòè äëÿ çàâåðøåíèÿ ýòîé îïåðàöèè \
|
||||
\nÇàêðîéòå îäíî èëè íåñêîëüêî ïðèëîæåíèé è ïîâòîðèòå ïîïûòêó."
|
||||
|
||||
}
|
125
reactos/apps/dist/notepad/Si.rc
vendored
Normal file
125
reactos/apps/dist/notepad/Si.rc
vendored
Normal file
|
@ -0,0 +1,125 @@
|
|||
/*
|
||||
* Notepad (Slovenian resources)
|
||||
*
|
||||
* Copyright 2002-2003 Rok Mandeljc <rok.mandeljc@gimb.org>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Datoteka" {
|
||||
MENUITEM "&Nova", CMD_NEW
|
||||
MENUITEM "&Odpri ...", CMD_OPEN
|
||||
MENUITEM "&Shrani", CMD_SAVE
|
||||
MENUITEM "Shrani &kot ...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Na&tisni", CMD_PRINT
|
||||
MENUITEM "P&riprava strani ...", CMD_PAGE_SETUP
|
||||
MENUITEM "&Tiskalnik ...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Iz&hod", CMD_EXIT
|
||||
}
|
||||
POPUP "&Urejanje" {
|
||||
MENUITEM "&Razveljavi\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Izreži\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Kopiraj\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Prilepi\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "Izbri&ši\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Izberi &vse", CMD_SELECT_ALL
|
||||
MENUITEM "Èas/&Datum\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Pr&elom vrstice", CMD_WRAP
|
||||
}
|
||||
POPUP "&Iskanje" {
|
||||
MENUITEM "&Najdi ...", CMD_SEARCH
|
||||
MENUITEM "Na&daljuj iskanje\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Pomoè" {
|
||||
MENUITEM "&Teme pomoèi", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Najdi ...", CMD_HELP_SEARCH
|
||||
MENUITEM "&O pomoèi", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&ormacije ..." {
|
||||
MENUITEM "&Licenèna pogodba", CMD_LICENSE
|
||||
MENUITEM "&BREZ GARANCIJE", CMD_NO_WARRANTY
|
||||
MENUITEM "&O Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Priprava strani"
|
||||
CAPTION "Page Setup"
|
||||
{
|
||||
LTEXT "&Glava:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Noga:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "Robovi", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Levo:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Desno:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Zgoraj:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Spodaj:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "V redu", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Preklièi", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Pomoè", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Stran &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Beležnica"
|
||||
STRING_ERROR, "NAPAKA"
|
||||
STRING_WARNING, "OPOZORILO"
|
||||
STRING_INFO, "Informacija"
|
||||
|
||||
STRING_UNTITLED, "Neimenovana"
|
||||
|
||||
STRING_ALL_FILES, "Vse datoteke (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Datoteke z besedilom (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Datoteka '%s' je prevelika za Beležnico.\n \
|
||||
Uporabite drug urejevalnik."
|
||||
STRING_NOTEXT, "Niste vnesli besedila. \
|
||||
\nVnesite besedilo in poskusite znova."
|
||||
STRING_DOESNOTEXIST, "Datoteka '%s' ne obstaja.\n\n \
|
||||
Ali želite ustvariti novo datoteko?"
|
||||
STRING_NOTSAVED, "Vsebina datoteke '%s'je bila spremenjena.\n\n \
|
||||
Ali želite shraniti spremembe?"
|
||||
STRING_NOTFOUND, "Ni mogoèe najti '%s'."
|
||||
STRING_OUT_OF_MEMORY, "Na voljo ni dovolj pomnilnika, da bi bilo mogoèe dokonèati to \
|
||||
operacijo. \nÈe ga želite sprostiti, konèajte enega ali veè programov in poskusite znova. "
|
||||
|
||||
}
|
127
reactos/apps/dist/notepad/Sk.rc
vendored
Normal file
127
reactos/apps/dist/notepad/Sk.rc
vendored
Normal file
|
@ -0,0 +1,127 @@
|
|||
/*
|
||||
* Notepad (Slovak resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&File" {
|
||||
MENUITEM "&New...", CMD_NEW
|
||||
MENUITEM "&Open", CMD_OPEN
|
||||
MENUITEM "&Save", CMD_SAVE
|
||||
MENUITEM "Save &as...", CMD_SAVE_AS
|
||||
MENUITEM "&Print", CMD_PRINT
|
||||
MENUITEM "Page Se&tup...", CMD_PAGE_SETUP
|
||||
MENUITEM "P&rinter Setup...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Exit", CMD_EXIT
|
||||
}
|
||||
POPUP "&Edit" {
|
||||
MENUITEM "&Undo\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Cu&t\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Copy\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Paste\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Delete\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Select &all", CMD_SELECT_ALL
|
||||
MENUITEM "&Time/Date\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Wrap long lines", CMD_WRAP
|
||||
}
|
||||
POPUP "&Search" {
|
||||
MENUITEM "&Search", CMD_SEARCH
|
||||
MENUITEM "&Search next\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Help" {
|
||||
MENUITEM "&Contents", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Search...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Help on help", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&o..." {
|
||||
MENUITEM "&License", CMD_LICENSE
|
||||
MENUITEM "&NO WARRANTY", CMD_NO_WARRANTY
|
||||
MENUITEM "&About Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Page Setup"
|
||||
{
|
||||
LTEXT "&Header:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Footer:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Margins:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Left:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Right:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Bottom:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Cancel", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Notepad"
|
||||
STRING_ERROR, "ERROR"
|
||||
STRING_WARNING, "WARNING"
|
||||
STRING_INFO, "Information"
|
||||
|
||||
STRING_UNTITLED, "(untitled)"
|
||||
|
||||
STRING_ALL_FILES, "All files (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Text files (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "File '%s' is too large for notepad.\n \
|
||||
Please use a different editor."
|
||||
STRING_NOTEXT, "You didn't enter any text. \
|
||||
\nPlease type something and try again"
|
||||
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
|
||||
Do you want to create a new file ?"
|
||||
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
|
||||
Would you like to save the changes ?"
|
||||
STRING_NOTFOUND, "'%s' can not be found."
|
||||
STRING_OUT_OF_MEMORY, "Not enough memory to complete this \
|
||||
task. \nClose one or more applications to increase the amount of \nfree \
|
||||
memory."
|
||||
|
||||
}
|
127
reactos/apps/dist/notepad/Sw.rc
vendored
Normal file
127
reactos/apps/dist/notepad/Sw.rc
vendored
Normal file
|
@ -0,0 +1,127 @@
|
|||
/*
|
||||
* Notepad (Swedish resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_SWEDISH, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Arkiv" {
|
||||
MENUITEM "&Ny...", CMD_NEW
|
||||
MENUITEM "Ö&ppna", CMD_OPEN
|
||||
MENUITEM "&Spara", CMD_SAVE
|
||||
MENUITEM "Spara &som...", CMD_SAVE_AS
|
||||
MENUITEM "&Skriv ut", CMD_PRINT
|
||||
MENUITEM "Sid La&yout...", CMD_PAGE_SETUP
|
||||
MENUITEM "Skrivar &inställningar...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Avsluta", CMD_EXIT
|
||||
}
|
||||
POPUP "&Redigera" {
|
||||
MENUITEM "&Undo\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Klippa\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Kopiera\tCtrl+C", CMD_COPY
|
||||
MENUITEM "&Klistra in\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Ta bort\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Markera &allt", CMD_SELECT_ALL
|
||||
MENUITEM "&Tid/Datum\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Dela långa meningar", CMD_WRAP
|
||||
}
|
||||
POPUP "&Sök" {
|
||||
MENUITEM "Sök...", CMD_SEARCH
|
||||
MENUITEM "&Sök nästa\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Hjälp" {
|
||||
MENUITEM "&Innehåll", CMD_HELP_CONTENTS
|
||||
MENUITEM "&Sök...", CMD_HELP_SEARCH
|
||||
MENUITEM "Användningen &av hjälp", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "Inf&ormation..." {
|
||||
MENUITEM "&Licens", CMD_LICENSE
|
||||
MENUITEM "&INGEN GARANTI", CMD_NO_WARRANTY
|
||||
MENUITEM "&Om Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Sid Layout"
|
||||
{
|
||||
LTEXT "&Huvudnot:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Fotnot:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "Kanter:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Vänster:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Över:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Höger:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Under:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Avbryt", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Hjälp", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Anteckningar"
|
||||
STRING_ERROR, "FEL"
|
||||
STRING_WARNING, "WARNING"
|
||||
STRING_INFO, "Information"
|
||||
|
||||
STRING_UNTITLED, "(untitled)"
|
||||
|
||||
STRING_ALL_FILES, "Alla filer (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Text filer (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Filen '%s' är för stor för notepad.\n \
|
||||
Använd en annan editor."
|
||||
STRING_NOTEXT, "Du skrev inte in någon text. \
|
||||
\nSkriv något och försök sedan igen"
|
||||
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
|
||||
Do you want to create a new file ?"
|
||||
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
|
||||
Would you like to save the changes ?"
|
||||
STRING_NOTFOUND, "'%s' hittades inte."
|
||||
STRING_OUT_OF_MEMORY, "Inte tillräkligt med minne för att slutföra \
|
||||
den här uppgiften. \nAvsluta ett eller flera program för att öka mängden \nfritt \
|
||||
minne."
|
||||
|
||||
}
|
121
reactos/apps/dist/notepad/Th.rc
vendored
Normal file
121
reactos/apps/dist/notepad/Th.rc
vendored
Normal file
|
@ -0,0 +1,121 @@
|
|||
/*
|
||||
* Notepad (Thai Resources)
|
||||
*
|
||||
* Copyright 2003 Jon Griffiths
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
LANGUAGE LANG_THAI, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "á¿éÁ" {
|
||||
MENUITEM "ÊÃéÒ§ãËÁè...", CMD_NEW
|
||||
MENUITEM "à»Ô´...\tCtrl+O", CMD_OPEN
|
||||
MENUITEM "ºÑ¹·×¡\tCtrl+S", CMD_SAVE
|
||||
MENUITEM "ºÑ¹·×¡à»ç¹...", CMD_SAVE_AS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "¾ÔÁ¾ì", CMD_PRINT
|
||||
MENUITEM "»ÃѺáµè§Ë¹éÒ...", CMD_PAGE_SETUP
|
||||
MENUITEM "»ÃѺáµè§à¤Ã×èͧ¾ÔÁ¾ì...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "ÍÍ¡", CMD_EXIT
|
||||
}
|
||||
POPUP "á¡éä¢" {
|
||||
MENUITEM "àÃÕ¡¤×¹\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "µÑ´\tCtrl+X", CMD_CUT
|
||||
MENUITEM "µÑ´ÅÍ¡\tCtrl+C", CMD_COPY
|
||||
MENUITEM "ÇÒ§\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "ź\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "àÅ×Í¡·Ñé§ËÁ´\tCtrl+A", CMD_SELECT_ALL
|
||||
MENUITEM "Çѹ·Õè/\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "ËèͺÃ÷ѴÂÒÇ", CMD_WRAP
|
||||
MENUITEM "ÃٻẺ´ÑÇÍÑ¡ÉÃ...", CMD_FONT
|
||||
}
|
||||
POPUP "¤Ñ¹ËÒ" {
|
||||
MENUITEM "¤é¹ËÒ\tCtrl+F", CMD_SEARCH
|
||||
MENUITEM "¤é¹ËÒµèÍä»\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "ªèÇÂàËÅÕÍ" {
|
||||
MENUITEM "à¹×éÍËÒ", CMD_HELP_CONTENTS
|
||||
MENUITEM "¤é¹ËÒ...", CMD_HELP_SEARCH
|
||||
MENUITEM "à¡ÕèÂǡѺªèÇÂàËÅÕÍ", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "ÃÒÂÅÐàÍÕ´..." {
|
||||
MENUITEM "ãºÍ¹ØÒµ", CMD_LICENSE
|
||||
MENUITEM "äÁèÁÕ WARRANTY", CMD_NO_WARRANTY
|
||||
MENUITEM "à¡ÕèÂǡѺ Wine... ", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "»ÃѺáµè§Ë¹éÒ"
|
||||
{
|
||||
LTEXT "ËÑÇ:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Footer:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "¢Íº¡ÃдÒÉ:", 0x144, 10, 43,160, 45
|
||||
LTEXT "£éÒÂ:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "º¹:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "¢ÇÒ:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "ÅèÒ§:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "µ¡Å§", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "¡àÅÔ¡", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "ªèÇÂàËÅÕÍ", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "˹éÒ &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 ÁÁ." /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 ÁÁ." /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 ÁÁ." /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 ÁÁ." /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Notepad"
|
||||
STRING_ERROR, "¤ÇÒÁ»Ô´"
|
||||
STRING_WARNING, "¤íÒµ×͹"
|
||||
STRING_INFO, "ÃÒÂÅÐàÍÕ´"
|
||||
|
||||
STRING_UNTITLED, "äÁè¡íÒ˹´ªÖèÍ"
|
||||
|
||||
STRING_ALL_FILES, "·Ø¡á¿éÁ (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "á¿éÁµíÒÃÒ (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "á¿éÁ '%s' ãËèà¡Ô¹ä»"
|
||||
STRING_NOTEXT, "¤Ø³äÁèã´à¢Õ¹ÍÐäÃ\n¡ÃسÒÅͧãËÁè"
|
||||
STRING_DOESNOTEXIST, "äÁ辺á¿éÁ '%s' ·Õèµéͧ¡ÒÃà»Ô´\n¤Ø³µéͧ¡ÒÃÊÃéÒ§ãËÁèäÁè ?"
|
||||
STRING_NOTSAVED, "ÁÕ¡ÒÃà»ÅÕè¹á»Å§¡ÑºàÍ¡ÊÒÃ\n\n'%s'\n\n¤Ø³µéͧ¡Òúѹ·Ö¡ÁѹËÃ×ÍäÁè ?"
|
||||
STRING_NOTFOUND, "äÁ辺¢éͤÇÒÁ '%s' ·Õèµéͧ¡Òäé¹ËÒ"
|
||||
STRING_OUT_OF_MEMORY, "¤ÇÒÁ¨íÒËÁ´\n¡ÃسÒÅͧãËÁè"
|
||||
|
||||
}
|
130
reactos/apps/dist/notepad/Wa.rc
vendored
Normal file
130
reactos/apps/dist/notepad/Wa.rc
vendored
Normal file
|
@ -0,0 +1,130 @@
|
|||
/*
|
||||
* Notepad (Walon resources)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
#ifdef LANG_WALON
|
||||
|
||||
LANGUAGE LANG_WALON, SUBLANG_DEFAULT
|
||||
|
||||
MAIN_MENU MENU
|
||||
{
|
||||
POPUP "&Fitchî" {
|
||||
MENUITEM "&Novea...", CMD_NEW
|
||||
MENUITEM "&Drovî", CMD_OPEN
|
||||
MENUITEM "&Schaper", CMD_SAVE
|
||||
MENUITEM "Schaper èt r&lomer...", CMD_SAVE_AS
|
||||
MENUITEM "&Rexhe", CMD_PRINT
|
||||
MENUITEM "Arrandjmint del &Pådje...", CMD_PAGE_SETUP
|
||||
MENUITEM "&Apontiaedje del scrirece...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Moussî &Foû", CMD_EXIT
|
||||
}
|
||||
POPUP "&Candjî" {
|
||||
MENUITEM "&Disfé\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Cô&per\tCtrl+X", CMD_CUT
|
||||
MENUITEM "&Copyî\tCtrl+C", CMD_COPY
|
||||
MENUITEM "C&laper\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "&Rafacer\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Tchwezi totafwait", CMD_SELECT_ALL
|
||||
MENUITEM "&Eure/Date\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Côper les ro&yes", CMD_WRAP
|
||||
}
|
||||
POPUP "C&werî" {
|
||||
MENUITEM "Cwerî...", CMD_SEARCH
|
||||
MENUITEM "&Shûvant\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "&Aide" {
|
||||
MENUITEM "Å&dvins", CMD_HELP_CONTENTS
|
||||
MENUITEM "C&werî...", CMD_HELP_SEARCH
|
||||
MENUITEM "&Aide so l' Aide", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "&Informåcion..." {
|
||||
MENUITEM "&Licinse", CMD_LICENSE
|
||||
MENUITEM "&NOLE WARANTEYE", CMD_NO_WARRANTY
|
||||
MENUITEM "Å &dfait di Wine", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "Helv"
|
||||
CAPTION "Arindjmint del Pådje"
|
||||
{
|
||||
LTEXT "&Tite:", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Pînote:", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "&Mardjes:", 0x144, 10, 43,160, 45
|
||||
LTEXT "&Hintche:", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Copete:", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Droete:", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "&Bas:", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "I Va", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "Rinoncî", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "&Aide", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Pådje &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "Notepad"
|
||||
STRING_ERROR, "AROKE"
|
||||
STRING_WARNING, "ADVERTIXHMINT"
|
||||
STRING_INFO, "Informåcion"
|
||||
|
||||
STRING_UNTITLED, "(sin tite)"
|
||||
|
||||
STRING_ALL_FILES, "Tos les fitchîs (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "Fitchîs tekse (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "Li fitchî '%s' est trop gros pol notepad.\n \
|
||||
Eployoz on ôte aspougneu di tekse."
|
||||
STRING_NOTEXT, "Vos n' avoz rén sicrît. \
|
||||
\nTapez ene sacwe èt rasayez"
|
||||
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
|
||||
Do you want to create a new file ?"
|
||||
STRING_NOTSAVED, "Li fitchî '%s'\na candjî\n\n \
|
||||
El voloz schaper ?"
|
||||
STRING_NOTFOUND, "'%s' pout nén esse trové."
|
||||
STRING_OUT_OF_MEMORY, "Li memwere est plinne. \n\
|
||||
Cloyoz on programe ou pus po monter li memwere libe."
|
||||
|
||||
}
|
||||
|
||||
#endif /* LANG_WALON */
|
123
reactos/apps/dist/notepad/Zh.rc
vendored
Normal file
123
reactos/apps/dist/notepad/Zh.rc
vendored
Normal file
|
@ -0,0 +1,123 @@
|
|||
/*
|
||||
* Notepad (Simplified Chinese resources)
|
||||
*
|
||||
* Copyright 2002 liuspider <liuspider@yahoo.com>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
MAIN_MENU MENU LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
||||
{
|
||||
POPUP "文件(&F)" {
|
||||
MENUITEM "新建(&N)...", CMD_NEW
|
||||
MENUITEM "打开(&O)", CMD_OPEN
|
||||
MENUITEM "保存(&S)", CMD_SAVE
|
||||
MENUITEM "另存为(&A)...", CMD_SAVE_AS
|
||||
MENUITEM "打印(&P)", CMD_PRINT
|
||||
MENUITEM "页面设置(&T)...", CMD_PAGE_SETUP
|
||||
MENUITEM "打印设置(&R)...", CMD_PRINTER_SETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "退出(&E)", CMD_EXIT
|
||||
}
|
||||
POPUP "编辑(&E)" {
|
||||
MENUITEM "撤消(&U)\tCtrl+Z", CMD_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "剪切(&T)\tCtrl+X", CMD_CUT
|
||||
MENUITEM "复制(&C)\tCtrl+C", CMD_COPY
|
||||
MENUITEM "粘贴(&P)\tCtrl+V", CMD_PASTE
|
||||
MENUITEM "删除(&D)\tDel", CMD_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "全选(&A)", CMD_SELECT_ALL
|
||||
MENUITEM "插入日期、时间(&T)\tF5", CMD_TIME_DATE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "自动换行(&W)", CMD_WRAP
|
||||
}
|
||||
POPUP "搜索(&S)" {
|
||||
MENUITEM "搜索(&S)", CMD_SEARCH
|
||||
MENUITEM "搜索下一个(&S)\tF3", CMD_SEARCH_NEXT
|
||||
}
|
||||
POPUP "帮助(&H)" {
|
||||
MENUITEM "内容(&C)", CMD_HELP_CONTENTS
|
||||
MENUITEM "搜索(&S)...", CMD_HELP_SEARCH
|
||||
MENUITEM "如何使用帮助(&H)", CMD_HELP_ON_HELP
|
||||
MENUITEM SEPARATOR
|
||||
POPUP "资料信息(&O)..." {
|
||||
MENUITEM "用户许可协议(&L)", CMD_LICENSE
|
||||
MENUITEM "责任无关(&N)", CMD_NO_WARRANTY
|
||||
MENUITEM "关于 Wine(&A)", CMD_ABOUT_WINE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dialog `Page setup' */
|
||||
|
||||
DIALOG_PAGESETUP DIALOG 0, 0, 225, 95
|
||||
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 10, "Helv"
|
||||
CAPTION "页面设置"
|
||||
{
|
||||
LTEXT "页眉(&H):", 0x140, 10, 07, 40, 15
|
||||
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
|
||||
LTEXT "脚注(&F):", 0x142, 10, 24, 40, 15
|
||||
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
|
||||
|
||||
GROUPBOX "边缘空白(&M):", 0x144, 10, 43,160, 45
|
||||
LTEXT "左(&L):", 0x145, 20, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "上(&T):", 0x148, 20, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "右(&R):", 0x14B, 100, 55, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
LTEXT "下(&B):", 0x14E,100, 73, 30, 10, WS_CHILD
|
||||
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
|
||||
|
||||
DEFPUSHBUTTON "确定", 0x151, 180, 3, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "取消", 0x152, 180, 21, 40, 15, WS_TABSTOP
|
||||
PUSHBUTTON "帮助(&)", 0x153, 180, 39, 40, 15, WS_TABSTOP
|
||||
}
|
||||
|
||||
STRINGTABLE DISCARDABLE LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
||||
{
|
||||
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
|
||||
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
|
||||
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
|
||||
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
|
||||
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
|
||||
|
||||
STRING_NOTEPAD, "记事本"
|
||||
STRING_ERROR, "错误"
|
||||
STRING_WARNING, "警告"
|
||||
STRING_INFO, "信息"
|
||||
|
||||
STRING_UNTITLED, "(未命名)"
|
||||
|
||||
STRING_ALL_FILES, "所有文件 (*.*)"
|
||||
STRING_TEXT_FILES_TXT, "文本文件 (*.txt)"
|
||||
|
||||
STRING_TOOLARGE, "记事本不能打开 '%s' 这么大的文件。\n \
|
||||
请使用别的编辑器。"
|
||||
STRING_NOTEXT, "您没有输入任何文本。 \
|
||||
\n请输入一些再试"
|
||||
STRING_DOESNOTEXIST, "文件 '%s'\n不存在\n\n \
|
||||
您想新建一个文件吗?"
|
||||
STRING_NOTSAVED, "文件 '%s'\n正文已更改\n\n \
|
||||
是否保存更改?"
|
||||
STRING_NOTFOUND, "找不到文件 '%s'"
|
||||
STRING_OUT_OF_MEMORY, "没有足够的内存可以用来完成此项任务。 \
|
||||
\n请关闭一些程序施放内存后再试。"
|
||||
|
||||
}
|
717
reactos/apps/dist/notepad/dialog.c
vendored
Normal file
717
reactos/apps/dist/notepad/dialog.c
vendored
Normal file
|
@ -0,0 +1,717 @@
|
|||
/*
|
||||
* Notepad (dialog.c)
|
||||
*
|
||||
* Copyright 1998,99 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
* Copyright 2002 Andriy Palamarchuk
|
||||
*
|
||||
* 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 UNICODE
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
#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 };
|
||||
|
||||
static INT_PTR WINAPI DIALOG_PAGESETUP_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
VOID ShowLastError(void)
|
||||
{
|
||||
DWORD error = GetLastError();
|
||||
if (error != NO_ERROR)
|
||||
{
|
||||
LPWSTR lpMsgBuf;
|
||||
WCHAR szTitle[MAX_STRING_LEN];
|
||||
|
||||
LoadString(Globals.hInstance, STRING_ERROR, szTitle, SIZEOF(szTitle));
|
||||
FormatMessage(
|
||||
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL, error, 0,
|
||||
(LPTSTR) &lpMsgBuf, 0, NULL);
|
||||
MessageBox(NULL, lpMsgBuf, szTitle, MB_OK | MB_ICONERROR);
|
||||
LocalFree(lpMsgBuf);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the caption of the main window according to Globals.szFileTitle:
|
||||
* Notepad - (untitled) if no file is open
|
||||
* Notepad - [filename] if a file is given
|
||||
*/
|
||||
static void UpdateWindowCaption(void)
|
||||
{
|
||||
WCHAR szCaption[MAX_STRING_LEN];
|
||||
WCHAR szUntitled[MAX_STRING_LEN];
|
||||
|
||||
LoadString(Globals.hInstance, STRING_NOTEPAD, szCaption, SIZEOF(szCaption));
|
||||
|
||||
if (Globals.szFileTitle[0] != '\0') {
|
||||
static const WCHAR bracket_lW[] = { ' ','-',' ','[',0 };
|
||||
static const WCHAR bracket_rW[] = { ']',0 };
|
||||
lstrcat(szCaption, bracket_lW);
|
||||
lstrcat(szCaption, Globals.szFileTitle);
|
||||
lstrcat(szCaption, bracket_rW);
|
||||
}
|
||||
else
|
||||
{
|
||||
static const WCHAR hyphenW[] = { ' ','-',' ',0 };
|
||||
LoadString(Globals.hInstance, STRING_UNTITLED, szUntitled, SIZEOF(szUntitled));
|
||||
lstrcat(szCaption, hyphenW);
|
||||
lstrcat(szCaption, szUntitled);
|
||||
}
|
||||
|
||||
SetWindowText(Globals.hMainWnd, szCaption);
|
||||
}
|
||||
|
||||
static void AlertFileNotFound(LPCWSTR szFileName)
|
||||
{
|
||||
WCHAR szMessage[MAX_STRING_LEN];
|
||||
WCHAR szResource[MAX_STRING_LEN];
|
||||
|
||||
/* Load and format szMessage */
|
||||
LoadString(Globals.hInstance, STRING_NOTFOUND, szResource, SIZEOF(szResource));
|
||||
wsprintf(szMessage, szResource, szFileName);
|
||||
|
||||
/* Load szCaption */
|
||||
LoadString(Globals.hInstance, STRING_ERROR, szResource, SIZEOF(szResource));
|
||||
|
||||
/* Display Modal Dialog */
|
||||
MessageBox(Globals.hMainWnd, szMessage, szResource, MB_ICONEXCLAMATION);
|
||||
}
|
||||
|
||||
static int AlertFileNotSaved(LPCWSTR szFileName)
|
||||
{
|
||||
WCHAR szMessage[MAX_STRING_LEN];
|
||||
WCHAR szResource[MAX_STRING_LEN];
|
||||
WCHAR szUntitled[MAX_STRING_LEN];
|
||||
|
||||
LoadString(Globals.hInstance, STRING_UNTITLED, szUntitled, SIZEOF(szUntitled));
|
||||
|
||||
/* Load and format Message */
|
||||
LoadString(Globals.hInstance, STRING_NOTSAVED, szResource, SIZEOF(szResource));
|
||||
wsprintf(szMessage, szResource, szFileName[0] ? szFileName : szUntitled);
|
||||
|
||||
/* Load Caption */
|
||||
LoadString(Globals.hInstance, STRING_ERROR, szResource, SIZEOF(szResource));
|
||||
|
||||
/* Display modal */
|
||||
return MessageBox(Globals.hMainWnd, szMessage, szResource, MB_ICONEXCLAMATION|MB_YESNOCANCEL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns:
|
||||
* TRUE - if file exists
|
||||
* FALSE - if file does not exist
|
||||
*/
|
||||
BOOL FileExists(LPCWSTR szFilename)
|
||||
{
|
||||
WIN32_FIND_DATA entry;
|
||||
HANDLE hFile;
|
||||
|
||||
hFile = FindFirstFile(szFilename, &entry);
|
||||
FindClose(hFile);
|
||||
|
||||
return (hFile != INVALID_HANDLE_VALUE);
|
||||
}
|
||||
|
||||
|
||||
static VOID DoSaveFile(VOID)
|
||||
{
|
||||
HANDLE hFile;
|
||||
DWORD dwNumWrite;
|
||||
LPSTR pTemp;
|
||||
DWORD size;
|
||||
|
||||
hFile = CreateFile(Globals.szFileName, GENERIC_WRITE, FILE_SHARE_WRITE,
|
||||
NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if(hFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
|
||||
size = GetWindowTextLengthA(Globals.hEdit) + 1;
|
||||
pTemp = HeapAlloc(GetProcessHeap(), 0, size);
|
||||
if (!pTemp)
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
size = GetWindowTextA(Globals.hEdit, pTemp, size);
|
||||
|
||||
if (!WriteFile(hFile, pTemp, size, &dwNumWrite, NULL))
|
||||
ShowLastError();
|
||||
|
||||
CloseHandle(hFile);
|
||||
HeapFree(GetProcessHeap(), 0, pTemp);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns:
|
||||
* TRUE - User agreed to close (both save/don't save)
|
||||
* FALSE - User cancelled close by selecting "Cancel"
|
||||
*/
|
||||
BOOL DoCloseFile(void)
|
||||
{
|
||||
int nResult;
|
||||
static const WCHAR empty_strW[] = { 0 };
|
||||
|
||||
if (SendMessage(Globals.hEdit, EM_GETMODIFY, 0, 0))
|
||||
{
|
||||
/* prompt user to save changes */
|
||||
nResult = AlertFileNotSaved(Globals.szFileName);
|
||||
switch (nResult) {
|
||||
case IDYES: DIALOG_FileSave();
|
||||
break;
|
||||
|
||||
case IDNO: break;
|
||||
|
||||
case IDCANCEL: return(FALSE);
|
||||
break;
|
||||
|
||||
default: return(FALSE);
|
||||
break;
|
||||
} /* switch */
|
||||
} /* if */
|
||||
|
||||
SetFileName(empty_strW);
|
||||
|
||||
UpdateWindowCaption();
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
||||
void DoOpenFile(LPCWSTR szFileName)
|
||||
{
|
||||
HANDLE hFile;
|
||||
LPSTR pTemp;
|
||||
DWORD size;
|
||||
DWORD dwNumRead;
|
||||
|
||||
/* Close any files and prompt to save changes */
|
||||
if (!DoCloseFile())
|
||||
return;
|
||||
|
||||
hFile = CreateFile(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL,
|
||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if(hFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
|
||||
size = GetFileSize(hFile, NULL);
|
||||
if (size == INVALID_FILE_SIZE)
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
size++;
|
||||
|
||||
pTemp = HeapAlloc(GetProcessHeap(), 0, size);
|
||||
if (!pTemp)
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, pTemp, size, &dwNumRead, NULL))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
HeapFree(GetProcessHeap(), 0, pTemp);
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
|
||||
CloseHandle(hFile);
|
||||
pTemp[dwNumRead] = 0;
|
||||
|
||||
if (IsTextUnicode(pTemp, dwNumRead, NULL))
|
||||
{
|
||||
LPWSTR p = (LPWSTR)pTemp;
|
||||
/* We need to strip BOM Unicode character, SetWindowTextW won't do it for us. */
|
||||
if (*p == 0xFEFF || *p == 0xFFFE) p++;
|
||||
SetWindowTextW(Globals.hEdit, p);
|
||||
}
|
||||
else
|
||||
SetWindowTextA(Globals.hEdit, pTemp);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, pTemp);
|
||||
|
||||
SendMessage(Globals.hEdit, EM_SETMODIFY, FALSE, 0);
|
||||
SendMessage(Globals.hEdit, EM_EMPTYUNDOBUFFER, 0, 0);
|
||||
SetFocus(Globals.hEdit);
|
||||
|
||||
SetFileName(szFileName);
|
||||
UpdateWindowCaption();
|
||||
}
|
||||
|
||||
VOID DIALOG_FileNew(VOID)
|
||||
{
|
||||
static const WCHAR empty_strW[] = { 0 };
|
||||
|
||||
/* Close any files and promt to save changes */
|
||||
if (DoCloseFile()) {
|
||||
SetWindowText(Globals.hEdit, empty_strW);
|
||||
SendMessage(Globals.hEdit, EM_EMPTYUNDOBUFFER, 0, 0);
|
||||
SetFocus(Globals.hEdit);
|
||||
}
|
||||
}
|
||||
|
||||
VOID DIALOG_FileOpen(VOID)
|
||||
{
|
||||
OPENFILENAME openfilename;
|
||||
WCHAR szPath[MAX_PATH];
|
||||
WCHAR szDir[MAX_PATH];
|
||||
static const WCHAR szDefaultExt[] = { 't','x','t',0 };
|
||||
static const WCHAR txt_files[] = { '*','.','t','x','t',0 };
|
||||
|
||||
ZeroMemory(&openfilename, sizeof(openfilename));
|
||||
|
||||
GetCurrentDirectory(SIZEOF(szDir), szDir);
|
||||
lstrcpy(szPath, txt_files);
|
||||
|
||||
openfilename.lStructSize = sizeof(openfilename);
|
||||
openfilename.hwndOwner = Globals.hMainWnd;
|
||||
openfilename.hInstance = Globals.hInstance;
|
||||
openfilename.lpstrFilter = Globals.szFilter;
|
||||
openfilename.lpstrFile = szPath;
|
||||
openfilename.nMaxFile = SIZEOF(szPath);
|
||||
openfilename.lpstrInitialDir = szDir;
|
||||
openfilename.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST |
|
||||
OFN_HIDEREADONLY;
|
||||
openfilename.lpstrDefExt = szDefaultExt;
|
||||
|
||||
|
||||
if (GetOpenFileName(&openfilename)) {
|
||||
if (FileExists(openfilename.lpstrFile))
|
||||
DoOpenFile(openfilename.lpstrFile);
|
||||
else
|
||||
AlertFileNotFound(openfilename.lpstrFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
VOID DIALOG_FileSave(VOID)
|
||||
{
|
||||
if (Globals.szFileName[0] == '\0')
|
||||
DIALOG_FileSaveAs();
|
||||
else
|
||||
DoSaveFile();
|
||||
}
|
||||
|
||||
VOID DIALOG_FileSaveAs(VOID)
|
||||
{
|
||||
OPENFILENAME saveas;
|
||||
WCHAR szPath[MAX_PATH];
|
||||
WCHAR szDir[MAX_PATH];
|
||||
static const WCHAR szDefaultExt[] = { 't','x','t',0 };
|
||||
static const WCHAR txt_files[] = { '*','.','t','x','t',0 };
|
||||
|
||||
ZeroMemory(&saveas, sizeof(saveas));
|
||||
|
||||
GetCurrentDirectory(SIZEOF(szDir), szDir);
|
||||
lstrcpy(szPath, txt_files);
|
||||
|
||||
saveas.lStructSize = sizeof(OPENFILENAME);
|
||||
saveas.hwndOwner = Globals.hMainWnd;
|
||||
saveas.hInstance = Globals.hInstance;
|
||||
saveas.lpstrFilter = Globals.szFilter;
|
||||
saveas.lpstrFile = szPath;
|
||||
saveas.nMaxFile = SIZEOF(szPath);
|
||||
saveas.lpstrInitialDir = szDir;
|
||||
saveas.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT |
|
||||
OFN_HIDEREADONLY;
|
||||
saveas.lpstrDefExt = szDefaultExt;
|
||||
|
||||
if (GetSaveFileName(&saveas)) {
|
||||
SetFileName(szPath);
|
||||
UpdateWindowCaption();
|
||||
DoSaveFile();
|
||||
}
|
||||
}
|
||||
|
||||
VOID DIALOG_FilePrint(VOID)
|
||||
{
|
||||
DOCINFO di;
|
||||
PRINTDLG printer;
|
||||
SIZE szMetric;
|
||||
int cWidthPels, cHeightPels, border;
|
||||
int xLeft, yTop, i, pagecount, dopage, copycount;
|
||||
LOGFONT hdrFont;
|
||||
HFONT font, old_font=0;
|
||||
DWORD size;
|
||||
LPWSTR pTemp;
|
||||
static const WCHAR times_new_romanW[] = { 'T','i','m','e','s',' ','N','e','w',' ','R','o','m','a','n',0 };
|
||||
|
||||
/* Get a small font and print some header info on each page */
|
||||
hdrFont.lfHeight = 100;
|
||||
hdrFont.lfWidth = 0;
|
||||
hdrFont.lfEscapement = 0;
|
||||
hdrFont.lfOrientation = 0;
|
||||
hdrFont.lfWeight = FW_BOLD;
|
||||
hdrFont.lfItalic = 0;
|
||||
hdrFont.lfUnderline = 0;
|
||||
hdrFont.lfStrikeOut = 0;
|
||||
hdrFont.lfCharSet = ANSI_CHARSET;
|
||||
hdrFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
|
||||
hdrFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||
hdrFont.lfQuality = PROOF_QUALITY;
|
||||
hdrFont.lfPitchAndFamily = VARIABLE_PITCH | FF_ROMAN;
|
||||
lstrcpy(hdrFont.lfFaceName, times_new_romanW);
|
||||
|
||||
font = CreateFontIndirect(&hdrFont);
|
||||
|
||||
/* Get Current Settings */
|
||||
ZeroMemory(&printer, sizeof(printer));
|
||||
printer.lStructSize = sizeof(printer);
|
||||
printer.hwndOwner = Globals.hMainWnd;
|
||||
printer.hInstance = Globals.hInstance;
|
||||
|
||||
/* Set some default flags */
|
||||
printer.Flags = PD_RETURNDC;
|
||||
printer.nFromPage = 0;
|
||||
printer.nMinPage = 1;
|
||||
/* we really need to calculate number of pages to set nMaxPage and nToPage */
|
||||
printer.nToPage = 0;
|
||||
printer.nMaxPage = -1;
|
||||
|
||||
/* Let commdlg manage copy settings */
|
||||
printer.nCopies = (WORD)PD_USEDEVMODECOPIES;
|
||||
|
||||
if (!PrintDlg(&printer)) return;
|
||||
|
||||
assert(printer.hDC != 0);
|
||||
|
||||
/* initialize DOCINFO */
|
||||
di.cbSize = sizeof(DOCINFO);
|
||||
di.lpszDocName = Globals.szFileTitle;
|
||||
di.lpszOutput = NULL;
|
||||
di.lpszDatatype = NULL;
|
||||
di.fwType = 0;
|
||||
|
||||
if (StartDoc(printer.hDC, &di) <= 0) return;
|
||||
|
||||
/* Get the page dimensions in pixels. */
|
||||
cWidthPels = GetDeviceCaps(printer.hDC, HORZRES);
|
||||
cHeightPels = GetDeviceCaps(printer.hDC, VERTRES);
|
||||
|
||||
/* Get the file text */
|
||||
size = GetWindowTextLength(Globals.hEdit) + 1;
|
||||
pTemp = HeapAlloc(GetProcessHeap(), 0, size * sizeof(WCHAR));
|
||||
if (!pTemp)
|
||||
{
|
||||
ShowLastError();
|
||||
return;
|
||||
}
|
||||
size = GetWindowText(Globals.hEdit, pTemp, size);
|
||||
|
||||
border = 150;
|
||||
for (copycount=1; copycount <= printer.nCopies; copycount++) {
|
||||
i = 0;
|
||||
pagecount = 1;
|
||||
do {
|
||||
static const WCHAR letterM[] = { 'M',0 };
|
||||
|
||||
if (pagecount >= printer.nFromPage &&
|
||||
/* ((printer.Flags & PD_PAGENUMS) == 0 || pagecount <= printer.nToPage))*/
|
||||
pagecount <= printer.nToPage)
|
||||
dopage = 1;
|
||||
else
|
||||
dopage = 0;
|
||||
|
||||
old_font = SelectObject(printer.hDC, font);
|
||||
GetTextExtentPoint32(printer.hDC, letterM, 1, &szMetric);
|
||||
|
||||
if (dopage) {
|
||||
if (StartPage(printer.hDC) <= 0) {
|
||||
static const WCHAR failedW[] = { 'S','t','a','r','t','P','a','g','e',' ','f','a','i','l','e','d',0 };
|
||||
static const WCHAR errorW[] = { 'P','r','i','n','t',' ','E','r','r','o','r',0 };
|
||||
MessageBox(Globals.hMainWnd, failedW, errorW, MB_ICONEXCLAMATION);
|
||||
return;
|
||||
}
|
||||
/* Write a rectangle and header at the top of each page */
|
||||
Rectangle(printer.hDC, border, border, cWidthPels-border, border+szMetric.cy*2);
|
||||
/* I don't know what's up with this TextOut command. This comes out
|
||||
kind of mangled.
|
||||
*/
|
||||
TextOut(printer.hDC, border*2, border+szMetric.cy/2, Globals.szFileTitle, lstrlen(Globals.szFileTitle));
|
||||
}
|
||||
|
||||
/* The starting point for the main text */
|
||||
xLeft = border*2;
|
||||
yTop = border+szMetric.cy*4;
|
||||
|
||||
SelectObject(printer.hDC, old_font);
|
||||
GetTextExtentPoint32(printer.hDC, letterM, 1, &szMetric);
|
||||
|
||||
/* Since outputting strings is giving me problems, output the main
|
||||
text one character at a time.
|
||||
*/
|
||||
do {
|
||||
if (pTemp[i] == '\n') {
|
||||
xLeft = border*2;
|
||||
yTop += szMetric.cy;
|
||||
}
|
||||
else if (pTemp[i] != '\r') {
|
||||
if (dopage)
|
||||
TextOut(printer.hDC, xLeft, yTop, &pTemp[i], 1);
|
||||
xLeft += szMetric.cx;
|
||||
}
|
||||
} while (i++<size && yTop<(cHeightPels-border*2));
|
||||
|
||||
if (dopage)
|
||||
EndPage(printer.hDC);
|
||||
pagecount++;
|
||||
} while (i<size);
|
||||
}
|
||||
|
||||
EndDoc(printer.hDC);
|
||||
DeleteDC(printer.hDC);
|
||||
HeapFree(GetProcessHeap(), 0, pTemp);
|
||||
}
|
||||
|
||||
VOID DIALOG_FilePrinterSetup(VOID)
|
||||
{
|
||||
PRINTDLG printer;
|
||||
|
||||
ZeroMemory(&printer, sizeof(printer));
|
||||
printer.lStructSize = sizeof(printer);
|
||||
printer.hwndOwner = Globals.hMainWnd;
|
||||
printer.hInstance = Globals.hInstance;
|
||||
printer.Flags = PD_PRINTSETUP;
|
||||
printer.nCopies = 1;
|
||||
|
||||
PrintDlg(&printer);
|
||||
}
|
||||
|
||||
VOID DIALOG_FileExit(VOID)
|
||||
{
|
||||
PostMessage(Globals.hMainWnd, WM_CLOSE, 0, 0l);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditUndo(VOID)
|
||||
{
|
||||
SendMessage(Globals.hEdit, EM_UNDO, 0, 0);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditCut(VOID)
|
||||
{
|
||||
SendMessage(Globals.hEdit, WM_CUT, 0, 0);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditCopy(VOID)
|
||||
{
|
||||
SendMessage(Globals.hEdit, WM_COPY, 0, 0);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditPaste(VOID)
|
||||
{
|
||||
SendMessage(Globals.hEdit, WM_PASTE, 0, 0);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditDelete(VOID)
|
||||
{
|
||||
SendMessage(Globals.hEdit, WM_CLEAR, 0, 0);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditSelectAll(VOID)
|
||||
{
|
||||
SendMessage(Globals.hEdit, EM_SETSEL, 0, (LPARAM)-1);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditTimeDate(VOID)
|
||||
{
|
||||
SYSTEMTIME st;
|
||||
WCHAR szDate[MAX_STRING_LEN];
|
||||
static const WCHAR spaceW[] = { ' ',0 };
|
||||
|
||||
GetLocalTime(&st);
|
||||
|
||||
GetTimeFormat(LOCALE_USER_DEFAULT, 0, &st, NULL, szDate, MAX_STRING_LEN);
|
||||
SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szDate);
|
||||
|
||||
SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)spaceW);
|
||||
|
||||
GetDateFormat(LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, szDate, MAX_STRING_LEN);
|
||||
SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szDate);
|
||||
}
|
||||
|
||||
VOID DIALOG_EditWrap(VOID)
|
||||
{
|
||||
Globals.bWrapLongLines = !Globals.bWrapLongLines;
|
||||
CheckMenuItem(GetMenu(Globals.hMainWnd), CMD_WRAP,
|
||||
MF_BYCOMMAND | (Globals.bWrapLongLines ? MF_CHECKED : MF_UNCHECKED));
|
||||
}
|
||||
|
||||
VOID DIALOG_SelectFont(VOID)
|
||||
{
|
||||
CHOOSEFONT cf;
|
||||
LOGFONT lf=Globals.lfFont;
|
||||
|
||||
ZeroMemory( &cf, sizeof(cf) );
|
||||
cf.lStructSize=sizeof(cf);
|
||||
cf.hwndOwner=Globals.hMainWnd;
|
||||
cf.lpLogFont=&lf;
|
||||
cf.Flags=CF_SCREENFONTS;
|
||||
|
||||
if( ChooseFont(&cf) )
|
||||
{
|
||||
HFONT currfont=Globals.hFont;
|
||||
|
||||
Globals.hFont=CreateFontIndirect( &lf );
|
||||
Globals.lfFont=lf;
|
||||
SendMessage( Globals.hEdit, WM_SETFONT, (WPARAM)Globals.hFont, (LPARAM)TRUE );
|
||||
if( currfont!=NULL )
|
||||
DeleteObject( currfont );
|
||||
}
|
||||
}
|
||||
|
||||
VOID DIALOG_Search(VOID)
|
||||
{
|
||||
ZeroMemory(&Globals.find, sizeof(Globals.find));
|
||||
Globals.find.lStructSize = sizeof(Globals.find);
|
||||
Globals.find.hwndOwner = Globals.hMainWnd;
|
||||
Globals.find.hInstance = Globals.hInstance;
|
||||
Globals.find.lpstrFindWhat = Globals.szFindText;
|
||||
Globals.find.wFindWhatLen = SIZEOF(Globals.szFindText);
|
||||
Globals.find.Flags = FR_DOWN;
|
||||
|
||||
/* We only need to create the modal FindReplace dialog which will */
|
||||
/* notify us of incoming events using hMainWnd Window Messages */
|
||||
|
||||
Globals.hFindReplaceDlg = FindText(&Globals.find);
|
||||
assert(Globals.hFindReplaceDlg !=0);
|
||||
}
|
||||
|
||||
VOID DIALOG_SearchNext(VOID)
|
||||
{
|
||||
/* FIXME: Search Next */
|
||||
DIALOG_Search();
|
||||
}
|
||||
|
||||
VOID DIALOG_HelpContents(VOID)
|
||||
{
|
||||
WinHelp(Globals.hMainWnd, helpfileW, HELP_INDEX, 0);
|
||||
}
|
||||
|
||||
VOID DIALOG_HelpSearch(VOID)
|
||||
{
|
||||
/* Search Help */
|
||||
}
|
||||
|
||||
VOID DIALOG_HelpHelp(VOID)
|
||||
{
|
||||
WinHelp(Globals.hMainWnd, helpfileW, HELP_HELPONHELP, 0);
|
||||
}
|
||||
|
||||
VOID DIALOG_HelpLicense(VOID)
|
||||
{
|
||||
WineLicense(Globals.hMainWnd);
|
||||
}
|
||||
|
||||
VOID DIALOG_HelpNoWarranty(VOID)
|
||||
{
|
||||
WineWarranty(Globals.hMainWnd);
|
||||
}
|
||||
|
||||
VOID DIALOG_HelpAboutWine(VOID)
|
||||
{
|
||||
static const WCHAR notepadW[] = { 'N','o','t','e','p','a','d','\n',0 };
|
||||
WCHAR szNotepad[MAX_STRING_LEN];
|
||||
|
||||
LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, SIZEOF(szNotepad));
|
||||
ShellAbout(Globals.hMainWnd, szNotepad, notepadW, 0);
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* DIALOG_FilePageSetup
|
||||
*/
|
||||
VOID DIALOG_FilePageSetup(void)
|
||||
{
|
||||
DialogBox(Globals.hInstance, MAKEINTRESOURCE(DIALOG_PAGESETUP),
|
||||
Globals.hMainWnd, DIALOG_PAGESETUP_DlgProc);
|
||||
}
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
*
|
||||
* DIALOG_PAGESETUP_DlgProc
|
||||
*/
|
||||
|
||||
static INT_PTR WINAPI DIALOG_PAGESETUP_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
||||
switch (msg)
|
||||
{
|
||||
case WM_COMMAND:
|
||||
switch (wParam)
|
||||
{
|
||||
case IDOK:
|
||||
/* save user input and close dialog */
|
||||
GetDlgItemText(hDlg, 0x141, Globals.szHeader, SIZEOF(Globals.szHeader));
|
||||
GetDlgItemText(hDlg, 0x143, Globals.szFooter, SIZEOF(Globals.szFooter));
|
||||
GetDlgItemText(hDlg, 0x14A, Globals.szMarginTop, SIZEOF(Globals.szMarginTop));
|
||||
GetDlgItemText(hDlg, 0x150, Globals.szMarginBottom, SIZEOF(Globals.szMarginBottom));
|
||||
GetDlgItemText(hDlg, 0x147, Globals.szMarginLeft, SIZEOF(Globals.szMarginLeft));
|
||||
GetDlgItemText(hDlg, 0x14D, Globals.szMarginRight, SIZEOF(Globals.szMarginRight));
|
||||
EndDialog(hDlg, IDOK);
|
||||
return TRUE;
|
||||
|
||||
case IDCANCEL:
|
||||
/* discard user input and close dialog */
|
||||
EndDialog(hDlg, IDCANCEL);
|
||||
return TRUE;
|
||||
|
||||
case IDHELP:
|
||||
{
|
||||
/* FIXME: Bring this to work */
|
||||
static const WCHAR sorryW[] = { 'S','o','r','r','y',',',' ','n','o',' ','h','e','l','p',' ','a','v','a','i','l','a','b','l','e',0 };
|
||||
static const WCHAR helpW[] = { 'H','e','l','p',0 };
|
||||
MessageBox(Globals.hMainWnd, sorryW, helpW, MB_ICONEXCLAMATION);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_INITDIALOG:
|
||||
/* fetch last user input prior to display dialog */
|
||||
SetDlgItemText(hDlg, 0x141, Globals.szHeader);
|
||||
SetDlgItemText(hDlg, 0x143, Globals.szFooter);
|
||||
SetDlgItemText(hDlg, 0x14A, Globals.szMarginTop);
|
||||
SetDlgItemText(hDlg, 0x150, Globals.szMarginBottom);
|
||||
SetDlgItemText(hDlg, 0x147, Globals.szMarginLeft);
|
||||
SetDlgItemText(hDlg, 0x14D, Globals.szMarginRight);
|
||||
break;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
57
reactos/apps/dist/notepad/dialog.h
vendored
Normal file
57
reactos/apps/dist/notepad/dialog.h
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* Notepad (dialog.h)
|
||||
*
|
||||
* Copyright 1998 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 DIALOG_FileNew(VOID);
|
||||
VOID DIALOG_FileOpen(VOID);
|
||||
VOID DIALOG_FileSave(VOID);
|
||||
VOID DIALOG_FileSaveAs(VOID);
|
||||
VOID DIALOG_FilePrint(VOID);
|
||||
VOID DIALOG_FilePageSetup(VOID);
|
||||
VOID DIALOG_FilePrinterSetup(VOID);
|
||||
VOID DIALOG_FileExit(VOID);
|
||||
|
||||
VOID DIALOG_EditUndo(VOID);
|
||||
VOID DIALOG_EditCut(VOID);
|
||||
VOID DIALOG_EditCopy(VOID);
|
||||
VOID DIALOG_EditPaste(VOID);
|
||||
VOID DIALOG_EditDelete(VOID);
|
||||
VOID DIALOG_EditSelectAll(VOID);
|
||||
VOID DIALOG_EditTimeDate(VOID);
|
||||
VOID DIALOG_EditWrap(VOID);
|
||||
|
||||
VOID DIALOG_Search(VOID);
|
||||
VOID DIALOG_SearchNext(VOID);
|
||||
|
||||
VOID DIALOG_SelectFont(VOID);
|
||||
|
||||
VOID DIALOG_HelpContents(VOID);
|
||||
VOID DIALOG_HelpSearch(VOID);
|
||||
VOID DIALOG_HelpHelp(VOID);
|
||||
VOID DIALOG_HelpLicense(VOID);
|
||||
VOID DIALOG_HelpNoWarranty(VOID);
|
||||
VOID DIALOG_HelpAboutWine(VOID);
|
||||
|
||||
VOID DIALOG_TimeDate(VOID);
|
||||
|
||||
/* utility functions */
|
||||
VOID ShowLastError();
|
||||
BOOL FileExists(LPCWSTR szFilename);
|
||||
BOOL DoCloseFile(void);
|
||||
void DoOpenFile(LPCWSTR szFileName);
|
40
reactos/apps/dist/notepad/license.c
vendored
Normal file
40
reactos/apps/dist/notepad/license.c
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* 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
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
52
reactos/apps/dist/notepad/license.h
vendored
Normal file
52
reactos/apps/dist/notepad/license.h
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* 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;
|
||||
*/
|
354
reactos/apps/dist/notepad/main.c
vendored
Normal file
354
reactos/apps/dist/notepad/main.c
vendored
Normal file
|
@ -0,0 +1,354 @@
|
|||
/*
|
||||
* Notepad
|
||||
*
|
||||
* Copyright 2000 Mike McCormack <Mike_McCormack@looksmart.com.au>
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
* Copyright 2002 Andriy Palamarchuk
|
||||
*
|
||||
* 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 UNICODE
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "dialog.h"
|
||||
#include "notepad_res.h"
|
||||
|
||||
NOTEPAD_GLOBALS Globals;
|
||||
static ATOM aFINDMSGSTRING;
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* SetFileName
|
||||
*
|
||||
* Sets Global File Name.
|
||||
*/
|
||||
VOID SetFileName(LPCWSTR szFileName)
|
||||
{
|
||||
lstrcpy(Globals.szFileName, szFileName);
|
||||
Globals.szFileTitle[0] = 0;
|
||||
GetFileTitle(szFileName, Globals.szFileTitle, sizeof(Globals.szFileTitle));
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* NOTEPAD_MenuCommand
|
||||
*
|
||||
* All handling of main menu events
|
||||
*/
|
||||
static int NOTEPAD_MenuCommand(WPARAM wParam)
|
||||
{
|
||||
switch (wParam)
|
||||
{
|
||||
case CMD_NEW: DIALOG_FileNew(); break;
|
||||
case CMD_OPEN: DIALOG_FileOpen(); break;
|
||||
case CMD_SAVE: DIALOG_FileSave(); break;
|
||||
case CMD_SAVE_AS: DIALOG_FileSaveAs(); break;
|
||||
case CMD_PRINT: DIALOG_FilePrint(); break;
|
||||
case CMD_PAGE_SETUP: DIALOG_FilePageSetup(); break;
|
||||
case CMD_PRINTER_SETUP: DIALOG_FilePrinterSetup();break;
|
||||
case CMD_EXIT: DIALOG_FileExit(); break;
|
||||
|
||||
case CMD_UNDO: DIALOG_EditUndo(); break;
|
||||
case CMD_CUT: DIALOG_EditCut(); break;
|
||||
case CMD_COPY: DIALOG_EditCopy(); break;
|
||||
case CMD_PASTE: DIALOG_EditPaste(); break;
|
||||
case CMD_DELETE: DIALOG_EditDelete(); break;
|
||||
case CMD_SELECT_ALL: DIALOG_EditSelectAll(); break;
|
||||
case CMD_TIME_DATE: DIALOG_EditTimeDate();break;
|
||||
|
||||
case CMD_SEARCH: DIALOG_Search(); break;
|
||||
case CMD_SEARCH_NEXT: DIALOG_SearchNext(); break;
|
||||
|
||||
case CMD_WRAP: DIALOG_EditWrap(); break;
|
||||
case CMD_FONT: DIALOG_SelectFont(); break;
|
||||
|
||||
case CMD_HELP_CONTENTS: DIALOG_HelpContents(); break;
|
||||
case CMD_HELP_SEARCH: DIALOG_HelpSearch(); break;
|
||||
case CMD_HELP_ON_HELP: DIALOG_HelpHelp(); break;
|
||||
case CMD_LICENSE: DIALOG_HelpLicense(); break;
|
||||
case CMD_NO_WARRANTY: DIALOG_HelpNoWarranty(); break;
|
||||
case CMD_ABOUT_WINE: DIALOG_HelpAboutWine(); break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* Data Initialization
|
||||
*/
|
||||
static VOID NOTEPAD_InitData(VOID)
|
||||
{
|
||||
LPWSTR p = Globals.szFilter;
|
||||
static const WCHAR txt_files[] = { '*','.','t','x','t',0 };
|
||||
static const WCHAR all_files[] = { '*','.','*',0 };
|
||||
|
||||
LoadString(Globals.hInstance, STRING_TEXT_FILES_TXT, p, MAX_STRING_LEN);
|
||||
p += lstrlen(p) + 1;
|
||||
lstrcpy(p, txt_files);
|
||||
p += lstrlen(p) + 1;
|
||||
LoadString(Globals.hInstance, STRING_ALL_FILES, p, MAX_STRING_LEN);
|
||||
p += lstrlen(p) + 1;
|
||||
lstrcpy(p, all_files);
|
||||
p += lstrlen(p) + 1;
|
||||
*p = '\0';
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* NOTEPAD_WndProc
|
||||
*/
|
||||
static LRESULT WINAPI NOTEPAD_WndProc(HWND hWnd, UINT msg, WPARAM wParam,
|
||||
LPARAM lParam)
|
||||
{
|
||||
switch (msg) {
|
||||
|
||||
case WM_CREATE:
|
||||
{
|
||||
static const WCHAR editW[] = { 'e','d','i','t',0 };
|
||||
RECT rc;
|
||||
GetClientRect(hWnd, &rc);
|
||||
Globals.hEdit = CreateWindow(editW, NULL,
|
||||
WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL |
|
||||
ES_AUTOVSCROLL | ES_MULTILINE,
|
||||
0, 0, rc.right, rc.bottom, hWnd,
|
||||
NULL, Globals.hInstance, NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_COMMAND:
|
||||
NOTEPAD_MenuCommand(LOWORD(wParam));
|
||||
break;
|
||||
|
||||
case WM_DESTROYCLIPBOARD:
|
||||
/*MessageBox(Globals.hMainWnd, "Empty clipboard", "Debug", MB_ICONEXCLAMATION);*/
|
||||
break;
|
||||
|
||||
case WM_CLOSE:
|
||||
if (DoCloseFile()) {
|
||||
DestroyWindow(hWnd);
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_DESTROY:
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
|
||||
case WM_SIZE:
|
||||
SetWindowPos(Globals.hEdit, NULL, 0, 0, LOWORD(lParam), HIWORD(lParam),
|
||||
SWP_NOOWNERZORDER | SWP_NOZORDER);
|
||||
break;
|
||||
|
||||
case WM_SETFOCUS:
|
||||
SetFocus(Globals.hEdit);
|
||||
break;
|
||||
|
||||
case WM_DROPFILES:
|
||||
{
|
||||
WCHAR szFileName[MAX_PATH];
|
||||
HANDLE hDrop = (HANDLE) wParam;
|
||||
|
||||
DragQueryFile(hDrop, 0, szFileName, SIZEOF(szFileName));
|
||||
DragFinish(hDrop);
|
||||
DoOpenFile(szFileName);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
return DefWindowProc(hWnd, msg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int AlertFileDoesNotExist(LPCWSTR szFileName)
|
||||
{
|
||||
int nResult;
|
||||
WCHAR szMessage[MAX_STRING_LEN];
|
||||
WCHAR szResource[MAX_STRING_LEN];
|
||||
|
||||
LoadString(Globals.hInstance, STRING_DOESNOTEXIST, szResource, SIZEOF(szResource));
|
||||
wsprintf(szMessage, szResource, szFileName);
|
||||
|
||||
LoadString(Globals.hInstance, STRING_ERROR, szResource, SIZEOF(szResource));
|
||||
|
||||
nResult = MessageBox(Globals.hMainWnd, szMessage, szResource,
|
||||
MB_ICONEXCLAMATION | MB_YESNO);
|
||||
|
||||
return(nResult);
|
||||
}
|
||||
|
||||
static void HandleCommandLine(LPWSTR cmdline)
|
||||
{
|
||||
WCHAR delimiter;
|
||||
|
||||
/* skip white space */
|
||||
while (*cmdline && *cmdline == ' ') cmdline++;
|
||||
|
||||
/* skip executable name */
|
||||
delimiter = ' ';
|
||||
if (*cmdline == '"')
|
||||
delimiter = '"';
|
||||
|
||||
do
|
||||
{
|
||||
cmdline++;
|
||||
}
|
||||
while (*cmdline && *cmdline != delimiter);
|
||||
if (*cmdline == delimiter) cmdline++;
|
||||
|
||||
while (*cmdline && (*cmdline == ' ' || *cmdline == '-'))
|
||||
{
|
||||
WCHAR option;
|
||||
|
||||
if (*cmdline++ == ' ') continue;
|
||||
|
||||
option = *cmdline;
|
||||
if (option) cmdline++;
|
||||
while (*cmdline && *cmdline == ' ') cmdline++;
|
||||
|
||||
switch(option)
|
||||
{
|
||||
case 'p':
|
||||
case 'P': printf("Print file: ");
|
||||
/* TODO - not yet able to print a file */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (*cmdline)
|
||||
{
|
||||
/* file name is passed in the command line */
|
||||
LPCWSTR file_name;
|
||||
BOOL file_exists;
|
||||
WCHAR buf[MAX_PATH];
|
||||
|
||||
if (cmdline[0] == '"')
|
||||
{
|
||||
cmdline++;
|
||||
cmdline[lstrlen(cmdline) - 1] = 0;
|
||||
}
|
||||
|
||||
if (FileExists(cmdline))
|
||||
{
|
||||
file_exists = TRUE;
|
||||
file_name = cmdline;
|
||||
}
|
||||
else
|
||||
{
|
||||
static const WCHAR txtW[] = { '.','t','x','t',0 };
|
||||
|
||||
/* try to find file with ".txt" extension */
|
||||
if (!lstrcmp(txtW, cmdline + lstrlen(cmdline) - lstrlen(txtW)))
|
||||
{
|
||||
file_exists = FALSE;
|
||||
file_name = cmdline;
|
||||
}
|
||||
else
|
||||
{
|
||||
lstrcpyn(buf, cmdline, MAX_PATH - lstrlen(txtW) - 1);
|
||||
lstrcat(buf, txtW);
|
||||
file_name = buf;
|
||||
file_exists = FileExists(buf);
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists)
|
||||
{
|
||||
DoOpenFile(file_name);
|
||||
InvalidateRect(Globals.hMainWnd, NULL, FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (AlertFileDoesNotExist(file_name)) {
|
||||
case IDYES:
|
||||
DoOpenFile(file_name);
|
||||
break;
|
||||
|
||||
case IDNO:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* WinMain
|
||||
*/
|
||||
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
{
|
||||
MSG msg;
|
||||
HACCEL hAccel;
|
||||
WNDCLASSEX class;
|
||||
static const WCHAR className[] = {'N','P','C','l','a','s','s',0};
|
||||
static const WCHAR winName[] = {'N','o','t','e','p','a','d',0};
|
||||
|
||||
aFINDMSGSTRING = RegisterWindowMessage(FINDMSGSTRING);
|
||||
|
||||
ZeroMemory(&Globals, sizeof(Globals));
|
||||
Globals.hInstance = hInstance;
|
||||
|
||||
ZeroMemory(&class, sizeof(class));
|
||||
class.cbSize = sizeof(class);
|
||||
class.lpfnWndProc = NOTEPAD_WndProc;
|
||||
class.hInstance = Globals.hInstance;
|
||||
class.hIcon = LoadIcon(0, IDI_APPLICATION);
|
||||
class.hCursor = LoadCursor(0, IDC_ARROW);
|
||||
class.hbrBackground = (HBRUSH)(COLOR_WINDOW);
|
||||
class.lpszMenuName = MAKEINTRESOURCE(MAIN_MENU);
|
||||
class.lpszClassName = className;
|
||||
|
||||
if (!RegisterClassEx(&class)) return FALSE;
|
||||
|
||||
/* Setup windows */
|
||||
|
||||
Globals.hMainWnd =
|
||||
CreateWindow(className, winName, WS_OVERLAPPEDWINDOW,
|
||||
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0,
|
||||
NULL, NULL, Globals.hInstance, NULL);
|
||||
if (!Globals.hMainWnd)
|
||||
{
|
||||
ShowLastError();
|
||||
ExitProcess(1);
|
||||
}
|
||||
|
||||
NOTEPAD_InitData();
|
||||
DIALOG_FileNew();
|
||||
|
||||
ShowWindow(Globals.hMainWnd, show);
|
||||
UpdateWindow(Globals.hMainWnd);
|
||||
DragAcceptFiles(Globals.hMainWnd, TRUE);
|
||||
|
||||
HandleCommandLine(GetCommandLine());
|
||||
|
||||
hAccel = LoadAccelerators( hInstance, MAKEINTRESOURCE(ID_ACCEL) );
|
||||
|
||||
while (GetMessage(&msg, 0, 0, 0))
|
||||
{
|
||||
if (!TranslateAccelerator(Globals.hMainWnd, hAccel, &msg) && !IsDialogMessage(Globals.hFindReplaceDlg, &msg))
|
||||
{
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
}
|
||||
return msg.wParam;
|
||||
}
|
53
reactos/apps/dist/notepad/main.h
vendored
Normal file
53
reactos/apps/dist/notepad/main.h
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Notepad (notepad.h)
|
||||
*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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 SIZEOF(a) sizeof(a)/sizeof((a)[0])
|
||||
|
||||
#include "notepad_res.h"
|
||||
|
||||
#define MAX_STRING_LEN 255
|
||||
|
||||
typedef struct
|
||||
{
|
||||
HANDLE hInstance;
|
||||
HWND hMainWnd;
|
||||
HWND hFindReplaceDlg;
|
||||
HWND hEdit;
|
||||
HFONT hFont; /* Font used by the edit control */
|
||||
LOGFONT lfFont;
|
||||
BOOL bWrapLongLines;
|
||||
WCHAR szFindText[MAX_PATH];
|
||||
WCHAR szFileName[MAX_PATH];
|
||||
WCHAR szFileTitle[MAX_PATH];
|
||||
WCHAR szFilter[2 * MAX_STRING_LEN + 100];
|
||||
WCHAR szMarginTop[MAX_PATH];
|
||||
WCHAR szMarginBottom[MAX_PATH];
|
||||
WCHAR szMarginLeft[MAX_PATH];
|
||||
WCHAR szMarginRight[MAX_PATH];
|
||||
WCHAR szHeader[MAX_PATH];
|
||||
WCHAR szFooter[MAX_PATH];
|
||||
|
||||
FINDREPLACE find;
|
||||
} NOTEPAD_GLOBALS;
|
||||
|
||||
extern NOTEPAD_GLOBALS Globals;
|
||||
|
||||
VOID SetFileName(LPCWSTR szFileName);
|
12
reactos/apps/dist/notepad/makefile
vendored
12
reactos/apps/dist/notepad/makefile
vendored
|
@ -1,4 +1,4 @@
|
|||
# $Id: makefile,v 1.3 2003/12/30 14:28:48 weiden Exp $
|
||||
# $Id: makefile,v 1.4 2004/01/13 00:01:52 sedwards Exp $
|
||||
|
||||
PATH_TO_TOP = ../../..
|
||||
|
||||
|
@ -10,11 +10,15 @@ TARGET_APPTYPE = windows
|
|||
|
||||
TARGET_NAME = notepad
|
||||
|
||||
TARGET_SDKLIBS = user32.a
|
||||
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
|
||||
|
||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||
TARGET_SDKLIBS = comdlg32.a shell32.a user32.a gdi32.a
|
||||
|
||||
TARGET_CFLAGS = -Wall -Werror
|
||||
TARGET_OBJECTS = \
|
||||
License_En.o \
|
||||
dialog.o \
|
||||
license.o \
|
||||
main.o
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
|
|
161
reactos/apps/dist/notepad/notepad.c
vendored
161
reactos/apps/dist/notepad/notepad.c
vendored
|
@ -1,161 +0,0 @@
|
|||
/*
|
||||
* ReactOS Applications
|
||||
* Copyright (C) 1998-2004 ReactOS Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: notepad.c,v 1.2 2003/12/31 00:38:09 rcampbell Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Applications
|
||||
* PURPOSE: Notepad Replacement
|
||||
* FILE: apps/dist/notepad/notepad.c
|
||||
* PROGRAMER: Richard Campbell (eek2121@comcast.net)
|
||||
*/
|
||||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <windows.h>
|
||||
#include "notepad.h"
|
||||
|
||||
HWND g_hWnd, g_EditWnd;
|
||||
char *szFilename = "Untitled";
|
||||
|
||||
LRESULT WINAPI MainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch(uMsg)
|
||||
{
|
||||
case WM_SIZE:
|
||||
case WM_MOVE:
|
||||
{
|
||||
RECT r;
|
||||
|
||||
GetClientRect(g_hWnd,&r);
|
||||
MoveWindow(g_EditWnd,r.left, r.top, r.right - r.left, r.bottom - r.top, TRUE);
|
||||
break;
|
||||
}
|
||||
case WM_CLOSE:
|
||||
{
|
||||
DestroyWindow(g_EditWnd);
|
||||
DestroyWindow(g_hWnd);
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
}
|
||||
case WM_COMMAND:
|
||||
{
|
||||
switch(LOWORD(wParam))
|
||||
{
|
||||
case ID_FILE_NEW:
|
||||
{
|
||||
MessageBox(g_hWnd,"The text in the Untitled file has changed.\n\n Do you want to save the changes?","Notepad",MB_YESNOCANCEL | MB_ICONEXCLAMATION);
|
||||
}
|
||||
case ID_FILE_EXIT:
|
||||
PostQuitMessage(0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
HWND CreateMainWnd()
|
||||
{
|
||||
WNDCLASS wc;
|
||||
HWND hWnd;
|
||||
wc.lpszMenuName = NULL;
|
||||
wc.lpszClassName = TEXT("Notepad");
|
||||
wc.lpfnWndProc = MainWndProc;
|
||||
|
||||
wc.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
|
||||
wc.cbClsExtra = 0;
|
||||
wc.cbWndExtra = 0;
|
||||
|
||||
if(!RegisterClass(&wc))
|
||||
return NULL;
|
||||
|
||||
hWnd = CreateWindowEx( WS_EX_ACCEPTFILES | WS_EX_WINDOWEDGE |
|
||||
WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR |
|
||||
WS_EX_LEFT,
|
||||
"Notepad",
|
||||
"Notepad",
|
||||
WS_OVERLAPPEDWINDOW,
|
||||
CW_USEDEFAULT,
|
||||
CW_USEDEFAULT,
|
||||
CW_USEDEFAULT,
|
||||
CW_USEDEFAULT,
|
||||
0,
|
||||
LoadMenu(NULL,MAKEINTRESOURCE(IDC_NOTEPAD)),
|
||||
NULL,
|
||||
0);
|
||||
|
||||
return hWnd;
|
||||
}
|
||||
|
||||
HWND CreateEditWnd(HWND hParent, DWORD dwWidth, DWORD dwHeight)
|
||||
{
|
||||
HWND hWnd;
|
||||
hWnd = CreateWindowEx(WS_EX_CLIENTEDGE | WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR,
|
||||
"EDIT",
|
||||
NULL,
|
||||
WS_HSCROLL | WS_VSCROLL | WS_VISIBLE |
|
||||
WS_CHILD | ES_LEFT | ES_MULTILINE | ES_NOHIDESEL,
|
||||
0,
|
||||
0,
|
||||
dwWidth,
|
||||
dwHeight,
|
||||
hParent,
|
||||
0,
|
||||
NULL,
|
||||
0);
|
||||
return hWnd;
|
||||
}
|
||||
|
||||
int WINAPI
|
||||
WinMain(HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPSTR lpszCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
MSG msg;
|
||||
RECT r;
|
||||
HACCEL hAccel;
|
||||
g_hWnd = CreateMainWnd();
|
||||
|
||||
if(!g_hWnd)
|
||||
PostQuitMessage(0);
|
||||
|
||||
GetClientRect(g_hWnd,&r);
|
||||
g_EditWnd = CreateEditWnd(g_hWnd, r.right - r.left, r.bottom - r.top);
|
||||
|
||||
if (!g_EditWnd)
|
||||
{
|
||||
return GetLastError();
|
||||
}
|
||||
|
||||
ShowWindow(g_hWnd,nCmdShow);
|
||||
UpdateWindow(g_hWnd);
|
||||
|
||||
hAccel = LoadAccelerators( hInstance, MAKEINTRESOURCE(IDC_NOTEPAD) );
|
||||
|
||||
while( GetMessage(&msg, 0, 0, 0))
|
||||
{
|
||||
if( !TranslateAccelerator(g_hWnd, hAccel, &msg ) )
|
||||
{
|
||||
TranslateMessage( &msg );
|
||||
DispatchMessage( &msg );
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
1
reactos/apps/dist/notepad/notepad.h
vendored
1
reactos/apps/dist/notepad/notepad.h
vendored
|
@ -1 +0,0 @@
|
|||
#include "resource.h"
|
171
reactos/apps/dist/notepad/notepad.rc
vendored
171
reactos/apps/dist/notepad/notepad.rc
vendored
|
@ -1,170 +1,3 @@
|
|||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#define APSTUDIO_HIDDEN_SYMBOLS
|
||||
#include "windows.h"
|
||||
#undef APSTUDIO_HIDDEN_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_NOTEPAD ICON "notepad.ico"
|
||||
IDI_SMALL ICON "small.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDC_NOTEPAD MENU
|
||||
BEGIN
|
||||
POPUP "&File"
|
||||
BEGIN
|
||||
MENUITEM "&New\tCtrl+N", ID_FILE_NEW
|
||||
MENUITEM "&Open...\tCtrl+O", ID_FILE_OPEN
|
||||
MENUITEM "&Save\tCtrl+S", ID_FILE_SAVE
|
||||
MENUITEM "Save &As...", ID_FILE_SAVEAS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Page Set&up...", ID_FILE_PAGESETUP
|
||||
MENUITEM "&Print...\tCtrl+P", ID_FILE_PRINT
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&xit", ID_FILE_EXIT
|
||||
END
|
||||
POPUP "&Edit"
|
||||
BEGIN
|
||||
MENUITEM "&Undo\tCtrl+Z", ID_EDIT_UNDO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Cu&t\tCtrl+X", ID_EDIT_CUT
|
||||
MENUITEM "&Copy\tCtrl+C", ID_EDIT_COPY
|
||||
MENUITEM "&Paste\tCtrl+V", ID_EDIT_PASTE
|
||||
MENUITEM "De&lete\tDel", ID_EDIT_DELETE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Find...\tCtrl+F", ID_EDIT_FIND
|
||||
MENUITEM "Find &Next\tF3", ID_EDIT_FINDNEXT
|
||||
MENUITEM "&Replace...\tCtrl+H", ID_EDIT_REPLACE
|
||||
MENUITEM "&Goto\tCtrl+G", ID_EDIT_GOTO
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Select &All\tCtrl+A", ID_EDIT_SELECTALL
|
||||
MENUITEM "Time/&Date\tF5", ID_EDIT_TIME
|
||||
END
|
||||
POPUP "&Format"
|
||||
BEGIN
|
||||
MENUITEM "&Word Wrap", ID_FORMAT_WORDWRAP
|
||||
MENUITEM "&Font...", ID_FORMAT_FONT
|
||||
END
|
||||
POPUP "&View"
|
||||
BEGIN
|
||||
MENUITEM "&Status Bar", ID_VIEW_STATUSBAR
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&Help Topics", ID_HELP_HELPTOPICS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&About ReactOS Application Suite",
|
||||
ID_HELP_ABOUTREACTOSAPPLICATIONSUITE
|
||||
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Accelerator
|
||||
//
|
||||
|
||||
IDC_NOTEPAD ACCELERATORS
|
||||
BEGIN
|
||||
"N", ID_FILE_NEW, VIRTKEY, CONTROL, NOINVERT
|
||||
"O", ID_FILE_OPEN, VIRTKEY, CONTROL, NOINVERT
|
||||
"S", ID_FILE_SAVE, VIRTKEY, CONTROL, NOINVERT
|
||||
"P", ID_FILE_PRINT, VIRTKEY, CONTROL, NOINVERT
|
||||
"Z", ID_EDIT_UNDO, VIRTKEY, CONTROL, NOINVERT
|
||||
"X", ID_EDIT_CUT, VIRTKEY, CONTROL, NOINVERT
|
||||
"C", ID_EDIT_COPY, VIRTKEY, CONTROL, NOINVERT
|
||||
"V", ID_EDIT_PASTE, VIRTKEY, CONTROL, NOINVERT
|
||||
VK_DELETE, ID_EDIT_DELETE, VIRTKEY, NOINVERT
|
||||
"F", ID_EDIT_FIND, VIRTKEY, CONTROL, NOINVERT
|
||||
VK_F3, ID_EDIT_FINDNEXT, VIRTKEY, NOINVERT
|
||||
"H", ID_EDIT_REPLACE, VIRTKEY, CONTROL, NOINVERT
|
||||
"G", ID_EDIT_GOTO, VIRTKEY, CONTROL, NOINVERT
|
||||
"A", ID_EDIT_SELECTALL, VIRTKEY, CONTROL, NOINVERT
|
||||
VK_F5, ID_EDIT_TIME, VIRTKEY, NOINVERT
|
||||
END
|
||||
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
||||
"#include ""windows.h""\r\n"
|
||||
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_APP_TITLE "notepad"
|
||||
IDC_NOTEPAD "NOTEPAD"
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
// Compatiblity Include
|
||||
|
||||
#include "rsrc.rc"
|
||||
|
|
21
reactos/apps/dist/notepad/notepad.sln
vendored
21
reactos/apps/dist/notepad/notepad.sln
vendored
|
@ -1,21 +0,0 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "notepad", "notepad.vcproj", "{30DEE1B2-3D8D-4F19-A3D3-9B086EAB7595}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{30DEE1B2-3D8D-4F19-A3D3-9B086EAB7595}.Debug.ActiveCfg = Release|Win32
|
||||
{30DEE1B2-3D8D-4F19-A3D3-9B086EAB7595}.Debug.Build.0 = Release|Win32
|
||||
{30DEE1B2-3D8D-4F19-A3D3-9B086EAB7595}.Release.ActiveCfg = Release|Win32
|
||||
{30DEE1B2-3D8D-4F19-A3D3-9B086EAB7595}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
147
reactos/apps/dist/notepad/notepad.vcproj
vendored
147
reactos/apps/dist/notepad/notepad.vcproj
vendored
|
@ -1,147 +0,0 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="notepad"
|
||||
ProjectGUID="{30DEE1B2-3D8D-4F19-A3D3-9B086EAB7595}"
|
||||
Keyword="Win32Proj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="TRUE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="5"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="TRUE"
|
||||
DebugInformationFormat="4"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="$(OutDir)/notepad.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="TRUE"
|
||||
ProgramDatabaseFile="$(OutDir)/notepad.pdb"
|
||||
SubSystem="2"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
RuntimeLibrary="4"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="TRUE"
|
||||
DebugInformationFormat="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="$(OutDir)/notepad.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
|
||||
<File
|
||||
RelativePath=".\notepad.c">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
|
||||
<File
|
||||
RelativePath=".\notepad.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\resource.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||
<File
|
||||
RelativePath=".\notepad.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\notepad.rc">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\small.ico">
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
78
reactos/apps/dist/notepad/notepad_res.h
vendored
Normal file
78
reactos/apps/dist/notepad/notepad_res.h
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* Constants, used in resources.
|
||||
*
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
* Copyright 2002 Andriy Palamarchuk
|
||||
*
|
||||
* 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 MAIN_MENU 0x201
|
||||
#define DIALOG_PAGESETUP 0x202
|
||||
#define ID_ACCEL 0x203
|
||||
|
||||
/* Commands */
|
||||
#define CMD_NEW 0x100
|
||||
#define CMD_OPEN 0x101
|
||||
#define CMD_SAVE 0x102
|
||||
#define CMD_SAVE_AS 0x103
|
||||
#define CMD_PRINT 0x104
|
||||
#define CMD_PAGE_SETUP 0x105
|
||||
#define CMD_PRINTER_SETUP 0x106
|
||||
#define CMD_EXIT 0x108
|
||||
|
||||
#define CMD_UNDO 0x110
|
||||
#define CMD_CUT 0x111
|
||||
#define CMD_COPY 0x112
|
||||
#define CMD_PASTE 0x113
|
||||
#define CMD_DELETE 0x114
|
||||
#define CMD_SELECT_ALL 0x116
|
||||
#define CMD_TIME_DATE 0x117
|
||||
|
||||
#define CMD_SEARCH 0x120
|
||||
#define CMD_SEARCH_NEXT 0x121
|
||||
|
||||
#define CMD_WRAP 0x119
|
||||
#define CMD_FONT 0x140
|
||||
|
||||
#define CMD_HELP_CONTENTS 0x130
|
||||
#define CMD_HELP_SEARCH 0x131
|
||||
#define CMD_HELP_ON_HELP 0x132
|
||||
#define CMD_LICENSE 0x135
|
||||
#define CMD_NO_WARRANTY 0x136
|
||||
#define CMD_ABOUT_WINE 0x137
|
||||
|
||||
/* Strings */
|
||||
#define STRING_PAGESETUP_HEADERVALUE 0x160
|
||||
#define STRING_PAGESETUP_FOOTERVALUE 0x161
|
||||
#define STRING_PAGESETUP_LEFTVALUE 0x162
|
||||
#define STRING_PAGESETUP_RIGHTVALUE 0x163
|
||||
#define STRING_PAGESETUP_TOPVALUE 0x164
|
||||
#define STRING_PAGESETUP_BOTTOMVALUE 0x165
|
||||
|
||||
#define STRING_NOTEPAD 0x170
|
||||
#define STRING_ERROR 0x171
|
||||
#define STRING_WARNING 0x172
|
||||
#define STRING_INFO 0x173
|
||||
#define STRING_UNTITLED 0x174
|
||||
#define STRING_ALL_FILES 0x175
|
||||
#define STRING_TEXT_FILES_TXT 0x176
|
||||
#define STRING_TOOLARGE 0x177
|
||||
#define STRING_NOTEXT 0x178
|
||||
#define STRING_DOESNOTEXIST 0x179
|
||||
#define STRING_NOTSAVED 0x17A
|
||||
|
||||
#define STRING_NOTFOUND 0x17B
|
||||
#define STRING_OUT_OF_MEMORY 0x17C
|
50
reactos/apps/dist/notepad/resource.h
vendored
50
reactos/apps/dist/notepad/resource.h
vendored
|
@ -1,50 +0,0 @@
|
|||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by notepad.rc
|
||||
//
|
||||
#define IDC_MYICON 2
|
||||
#define IDD_NOTEPAD_DIALOG 102
|
||||
#define IDS_APP_TITLE 103
|
||||
#define IDM_ABOUT 104
|
||||
#define IDM_EXIT 105
|
||||
#define IDI_NOTEPAD 107
|
||||
#define IDI_SMALL 108
|
||||
#define IDC_NOTEPAD 109
|
||||
#define IDR_MAINFRAME 128
|
||||
#define ID_FILE_NEW 32771
|
||||
#define ID_FILE_OPEN 32772
|
||||
#define ID_FILE_SAVE 32773
|
||||
#define ID_FILE_SAVEAS 32774
|
||||
#define ID_FILE_PAGESETUP 32775
|
||||
#define ID_FILE_PRINT 32776
|
||||
#define ID_EDIT_CUT 32777
|
||||
#define ID_EDIT_COPY 32778
|
||||
#define ID_EDIT_PASTE 32779
|
||||
#define ID_EDIT_UNDO 32780
|
||||
#define ID_EDIT_REDO 32781
|
||||
#define ID_EDIT_DELETE 32782
|
||||
#define ID_EDIT_FIND 32783
|
||||
#define ID_EDIT_FINDNEXT 32784
|
||||
#define ID_EDIT_REPLACE 32785
|
||||
#define ID_EDIT_GOTO 32786
|
||||
#define ID_EDIT_SELECTALL 32787
|
||||
#define ID_EDIT_TIME 32788
|
||||
#define ID_FORMAT_WORDWRAP 32789
|
||||
#define ID_FORMAT_FONT 32790
|
||||
#define ID_VIEW_STATUSBAR 32791
|
||||
#define ID_HELP_HELPTOPICS 32792
|
||||
#define ID_HELP_ABOUTREACTOSAPPLICATIONSUITE 32793
|
||||
#define ID_FILE_EXIT 32796
|
||||
#define IDC_STATIC -1
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NO_MFC 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 129
|
||||
#define _APS_NEXT_COMMAND_VALUE 32816
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 110
|
||||
#endif
|
||||
#endif
|
58
reactos/apps/dist/notepad/rsrc.rc
vendored
Normal file
58
reactos/apps/dist/notepad/rsrc.rc
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
|
||||
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
|
||||
*
|
||||
* 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 "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "main.h"
|
||||
#include "winnls.h"
|
||||
#include "commctrl.h"
|
||||
#include "notepad_res.h"
|
||||
|
||||
ID_ACCEL ACCELERATORS
|
||||
{
|
||||
"^A", CMD_SELECT_ALL
|
||||
"^C", CMD_COPY
|
||||
"^F", CMD_SEARCH
|
||||
"^O", CMD_OPEN
|
||||
"^S", CMD_SAVE
|
||||
"^V", CMD_PASTE
|
||||
"^X", CMD_CUT
|
||||
"^Z", CMD_UNDO
|
||||
VK_F3, CMD_SEARCH_NEXT, VIRTKEY
|
||||
VK_F5, CMD_TIME_DATE, VIRTKEY
|
||||
}
|
||||
|
||||
#include "Da.rc"
|
||||
#include "De.rc"
|
||||
#include "En.rc"
|
||||
#include "Es.rc"
|
||||
#include "Fi.rc"
|
||||
#include "Fr.rc"
|
||||
#include "Hu.rc"
|
||||
#include "It.rc"
|
||||
#include "Nl.rc"
|
||||
#include "Pt.rc"
|
||||
#include "Ru.rc"
|
||||
#include "Si.rc"
|
||||
#include "Sk.rc"
|
||||
#include "Sw.rc"
|
||||
#include "Th.rc"
|
||||
#include "Wa.rc"
|
||||
#include "Zh.rc"
|
Loading…
Reference in a new issue