Moved the WINE notepad.

svn path=/trunk/; revision=8773
This commit is contained in:
Steven Edwards 2004-03-17 01:28:14 +00:00
parent b17d04d3a2
commit e816725be5
35 changed files with 3530 additions and 1024 deletions

View file

@ -1,14 +1,11 @@
*.exe
*.a
*.o *.o
*.d *.d
*.exe
*.coff *.coff
*.dsp
*.dsw
*.aps
*.ncb
*.opt
*.sym *.sym
*.plg
*.bak
*.map *.map
notepad.nostrip.exe
notepad.ncb
notepad.suo
notepad.exe
Release

126
rosapps/notepad/Da.rc Normal file
View 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
rosapps/notepad/De.rc Normal file
View 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
rosapps/notepad/En.rc Normal file
View 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
rosapps/notepad/Es.rc Normal file
View 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
rosapps/notepad/Fi.rc Normal file
View 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
rosapps/notepad/Fr.rc Normal file
View 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
rosapps/notepad/Hu.rc Normal file
View 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
rosapps/notepad/It.rc Normal file
View 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."
}

View 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
rosapps/notepad/Nl.rc Normal file
View 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
rosapps/notepad/Pt.rc Normal file
View 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
rosapps/notepad/Ru.rc Normal file
View 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
rosapps/notepad/Si.rc Normal file
View 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
rosapps/notepad/Sk.rc Normal file
View 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
rosapps/notepad/Sw.rc Normal file
View 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
rosapps/notepad/Th.rc Normal file
View 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
rosapps/notepad/Wa.rc Normal file
View 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
rosapps/notepad/Zh.rc Normal file
View 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
rosapps/notepad/dialog.c Normal file
View 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
rosapps/notepad/dialog.h Normal file
View 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);

View file

@ -1,503 +0,0 @@
/*
* ReactOS notepad
*
* framewnd.c
*
* Copyright (C) 2002 Robert Dickenson <robd@reactos.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
*/
#include <windows.h>
#include <tchar.h>
#include <stdlib.h>
#include <commctrl.h>
#include <commdlg.h>
//#include <shellapi.h>
#include "main.h"
#include "framewnd.h"
////////////////////////////////////////////////////////////////////////////////
// Global and Local Variables:
//
static BOOL bInMenuLoop = FALSE; // Tells us if we are in the menu loop
static HWND hChildWnd;
////////////////////////////////////////////////////////////////////////////////
// Local module support methods
//
static void resize_frame_rect(HWND hWnd, PRECT prect)
{
RECT rt;
/*
if (IsWindowVisible(hToolBar)) {
SendMessage(hToolBar, WM_SIZE, 0, 0);
GetClientRect(hToolBar, &rt);
prect->top = rt.bottom+3;
prect->bottom -= rt.bottom+3;
}
*/
if (IsWindowVisible(hStatusBar)) {
SetupStatusBar(hWnd, TRUE);
GetClientRect(hStatusBar, &rt);
prect->bottom -= rt.bottom;
}
MoveWindow(hChildWnd, prect->left, prect->top, prect->right, prect->bottom, TRUE);
}
void resize_frame_client(HWND hWnd)
{
RECT rect;
GetClientRect(hWnd, &rect);
resize_frame_rect(hWnd, &rect);
}
////////////////////////////////////////////////////////////////////////////////
static void OnEnterMenuLoop(HWND hWnd)
{
int nParts;
// Update the status bar pane sizes
nParts = -1;
SendMessage(hStatusBar, SB_SETPARTS, 1, (long)&nParts);
bInMenuLoop = TRUE;
SendMessage(hStatusBar, SB_SETTEXT, (WPARAM)0, (LPARAM)_T(""));
}
static void OnExitMenuLoop(HWND hWnd)
{
bInMenuLoop = FALSE;
// Update the status bar pane sizes
SetupStatusBar(hWnd, TRUE);
UpdateStatusBar();
}
static void OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
{
TCHAR str[100];
_tcscpy(str, _T(""));
if (nFlags & MF_POPUP) {
if (hSysMenu != GetMenu(hWnd)) {
if (nItemID == 2) nItemID = 5;
}
}
if (LoadString(hInst, nItemID, str, 100)) {
// load appropriate string
LPTSTR lpsz = str;
// first newline terminates actual string
lpsz = _tcschr(lpsz, '\n');
if (lpsz != NULL)
*lpsz = '\0';
}
SendMessage(hStatusBar, SB_SETTEXT, 0, (LPARAM)str);
}
void SetupStatusBar(HWND hWnd, BOOL bResize)
{
RECT rc;
int nParts;
GetClientRect(hWnd, &rc);
nParts = rc.right;
// nParts = -1;
if (bResize)
SendMessage(hStatusBar, WM_SIZE, 0, 0);
SendMessage(hStatusBar, SB_SETPARTS, 1, (LPARAM)&nParts);
}
void UpdateStatusBar(void)
{
TCHAR text[260];
DWORD size;
size = sizeof(text)/sizeof(TCHAR);
GetComputerName(text, &size);
SendMessage(hStatusBar, SB_SETTEXT, 0, (LPARAM)text);
}
static void toggle_child(HWND hWnd, UINT cmd, HWND hchild)
{
BOOL vis = IsWindowVisible(hchild);
HMENU hMenuView = GetSubMenu(hMenuFrame, ID_VIEW_MENU);
CheckMenuItem(hMenuView, cmd, vis?MF_BYCOMMAND:MF_BYCOMMAND|MF_CHECKED);
ShowWindow(hchild, vis?SW_HIDE:SW_SHOW);
resize_frame_client(hWnd);
}
static BOOL CheckCommDlgError(HWND hWnd)
{
DWORD dwErrorCode = CommDlgExtendedError();
switch (dwErrorCode) {
case CDERR_DIALOGFAILURE:
break;
case CDERR_FINDRESFAILURE:
break;
case CDERR_NOHINSTANCE:
break;
case CDERR_INITIALIZATION:
break;
case CDERR_NOHOOK:
break;
case CDERR_LOCKRESFAILURE:
break;
case CDERR_NOTEMPLATE:
break;
case CDERR_LOADRESFAILURE:
break;
case CDERR_STRUCTSIZE:
break;
case CDERR_LOADSTRFAILURE:
break;
case FNERR_BUFFERTOOSMALL:
break;
case CDERR_MEMALLOCFAILURE:
break;
case FNERR_INVALIDFILENAME:
break;
case CDERR_MEMLOCKFAILURE:
break;
case FNERR_SUBCLASSFAILURE:
break;
default:
break;
}
return TRUE;
}
UINT_PTR CALLBACK File_OFNHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
{
OPENFILENAME* pOpenFileName;
OFNOTIFY* pOfNotify;
switch (uiMsg) {
case WM_INITDIALOG:
pOpenFileName = (OPENFILENAME*)lParam;
break;
case WM_NOTIFY:
pOfNotify = (OFNOTIFY*)lParam;
if (pOfNotify->hdr.code == CDN_INITDONE) {
}
break;
default:
break;
}
return 0L;
}
#define MAX_CUSTOM_FILTER_SIZE 50
TCHAR CustomFilterBuffer[MAX_CUSTOM_FILTER_SIZE];
TCHAR FileNameBuffer[_MAX_PATH];
TCHAR FileTitleBuffer[_MAX_PATH];
static BOOL InitOpenFileName(HWND hWnd, OPENFILENAME* pofn)
{
memset(pofn, 0, sizeof(OPENFILENAME));
pofn->lStructSize = sizeof(OPENFILENAME);
pofn->hwndOwner = hWnd;
pofn->hInstance = hInst;
pofn->lpstrFilter = _T("Registration Files\0*.reg\0Win9x/NT4 Registration Files (notepad4)\0*.reg\0All Files (*.*)\0*.*\0\0");
pofn->lpstrCustomFilter = CustomFilterBuffer;
pofn->nMaxCustFilter = MAX_CUSTOM_FILTER_SIZE;
pofn->nFilterIndex = 0;
pofn->lpstrFile = FileNameBuffer;
pofn->nMaxFile = _MAX_PATH;
pofn->lpstrFileTitle = FileTitleBuffer;
pofn->nMaxFileTitle = _MAX_PATH;
// pofn->lpstrInitialDir = _T("");
// pofn->lpstrTitle = _T("Import Registry File");
// pofn->Flags = OFN_ENABLETEMPLATE + OFN_EXPLORER + OFN_ENABLESIZING;
pofn->Flags = OFN_HIDEREADONLY;
// pofn->nFileOffset = ;
// pofn->nFileExtension = ;
// pofn->lpstrDefExt = _T("");
// pofn->lCustData = ;
// pofn->lpfnHook = ImportRegistryFile_OFNHookProc;
// pofn->lpTemplateName = _T("ID_DLG_IMPORT_REGFILE");
// pofn->lpTemplateName = MAKEINTRESOURCE(IDD_DIALOG1);
// pofn->FlagsEx = ;
return TRUE;
}
BOOL open_file(TCHAR* file_name)
{
return TRUE;
}
BOOL save_file(TCHAR* file_name, TCHAR* unused)
{
return TRUE;
}
static BOOL OpenFileName(HWND hWnd)
{
OPENFILENAME ofn;
InitOpenFileName(hWnd, &ofn);
ofn.lpstrTitle = _T("Import Registry File");
// ofn.lCustData = ;
if (GetOpenFileName(&ofn)) {
if (!open_file(ofn.lpstrFile)) {
//printf("Can't open file \"%s\"\n", ofn.lpstrFile);
return FALSE;
}
} else {
CheckCommDlgError(hWnd);
}
return TRUE;
}
static BOOL SaveFileName(HWND hWnd)
{
OPENFILENAME ofn;
TCHAR ExportKeyPath[_MAX_PATH];
ExportKeyPath[0] = _T('\0');
InitOpenFileName(hWnd, &ofn);
ofn.lpstrTitle = _T("Export Registry File");
// ofn.lCustData = ;
ofn.Flags = OFN_ENABLETEMPLATE + OFN_EXPLORER;
ofn.lpfnHook = File_OFNHookProc;
ofn.lpTemplateName = MAKEINTRESOURCE(IDD_DIALOG1);
if (GetSaveFileName(&ofn)) {
BOOL result;
result = save_file(ofn.lpstrFile, ExportKeyPath);
//result = export_registry_key(ofn.lpstrFile, NULL);
//if (!export_registry_key(ofn.lpstrFile, NULL)) {
if (!result) {
//printf("Can't open file \"%s\"\n", ofn.lpstrFile);
return FALSE;
}
} else {
CheckCommDlgError(hWnd);
}
return TRUE;
}
BOOL PrintFile(HWND hWnd, LPTSTR path)
{
#if 1
PRINTDLG pd;
ZeroMemory(&pd, sizeof(PRINTDLG));
pd.lStructSize = sizeof(PRINTDLG);
pd.hwndOwner = hWnd;
pd.hDevMode = NULL; // Don't forget to free or store hDevMode
pd.hDevNames = NULL; // Don't forget to free or store hDevNames
pd.Flags = PD_USEDEVMODECOPIESANDCOLLATE | PD_RETURNDC;
pd.nCopies = 1;
pd.nFromPage = 0xFFFF;
pd.nToPage = 0xFFFF;
pd.nMinPage = 1;
pd.nMaxPage = 0xFFFF;
if (PrintDlg(&pd) == TRUE) {
// GDI calls to render output.
DeleteDC(pd.hDC); // Delete DC when done.
}
#else
HRESULT hResult;
PRINTDLGEX pd;
hResult = PrintDlgEx(&pd);
if (hResult == S_OK) {
switch (pd.dwResultAction) {
case PD_RESULT_APPLY:
//The user clicked the Apply button and later clicked the Cancel button. This indicates that the user wants to apply the changes made in the property sheet, but does not yet want to print. The PRINTDLGEX structure contains the information specified by the user at the time the Apply button was clicked.
break;
case PD_RESULT_CANCEL:
//The user clicked the Cancel button. The information in the PRINTDLGEX structure is unchanged.
break;
case PD_RESULT_PRINT:
//The user clicked the Print button. The PRINTDLGEX structure contains the information specified by the user.
break;
default:
break;
}
} else {
switch (hResult) {
case E_OUTOFMEMORY:
//Insufficient memory.
break;
case E_INVALIDARG:
// One or more arguments are invalid.
break;
case E_POINTER:
//Invalid pointer.
break;
case E_HANDLE:
//Invalid handle.
break;
case E_FAIL:
//Unspecified error.
break;
default:
break;
}
return FALSE;
}
#endif
return TRUE;
}
BOOL CopyToClipboard(HWND hWnd, LPTSTR keyName)
{
BOOL result;
result = OpenClipboard(hWnd);
if (result) {
result = EmptyClipboard();
if (result) {
//HANDLE hClipData;
//hClipData = SetClipboardData(UINT uFormat, HANDLE hMem);
} else {
// error emptying clipboard
DWORD dwError = GetLastError();
}
if (!CloseClipboard()) {
// error closing clipboard
DWORD dwError = GetLastError();
}
} else {
// error opening clipboard
DWORD dwError = GetLastError();
}
return result;
}
BOOL RefreshView(HWND hWnd)
{
// TODO:
MessageBeep(-1);
MessageBeep(MB_ICONASTERISK);
MessageBeep(MB_ICONEXCLAMATION);
MessageBeep(MB_ICONHAND);
MessageBeep(MB_ICONQUESTION);
MessageBeep(MB_OK);
return TRUE;
}
////////////////////////////////////////////////////////////////////////////////
//
// FUNCTION: _CmdWndProc(HWND, unsigned, WORD, LONG)
//
// PURPOSE: Processes WM_COMMAND messages for the main frame window.
//
//
static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (LOWORD(wParam)) {
// Parse the menu selections:
case ID_FILE_OPEN:
OpenFileName(hWnd);
break;
case ID_FILE_SAVE:
case ID_FILE_SAVEAS:
SaveFileName(hWnd);
break;
case ID_FILE_PAGESETUP:
case ID_FILE_PRINT:
PrintFile(hWnd, _T(""));
break;
//case ID_FILE_PRINTERSETUP:
//PRINTDLG pd;
//PrintDlg(&pd);
//PAGESETUPDLG psd;
//PageSetupDlg(&psd);
// break;
case ID_FILE_EXIT:
DestroyWindow(hWnd);
break;
case ID_EDIT_COPY:
CopyToClipboard(hWnd, _T(""));
break;
case ID_VIEW_REFRESH:
RefreshView(hWnd);
break;
// case ID_VIEW_TOOLBAR:
// toggle_child(hWnd, LOWORD(wParam), hToolBar);
// break;
// case ID_VIEW_STATUSBAR:
// toggle_child(hWnd, LOWORD(wParam), hStatusBar);
// break;
case ID_HELP_HELPTOPICS:
// WinHelp(hWnd, _T("notepad"), HELP_CONTENTS, 0);
WinHelp(hWnd, _T("notepad"), HELP_FINDER, 0);
break;
case ID_HELP_ABOUT:
#ifdef WINSHELLAPI
// ShellAbout(hWnd, szTitle, _T(""), LoadIcon(hInst, (LPCTSTR)IDI_notepad));
#else
// ShowAboutBox(hWnd);
#endif
break;
default:
return FALSE;
}
return TRUE;
}
////////////////////////////////////////////////////////////////////////////////
//
// FUNCTION: FrameWndProc(HWND, unsigned, WORD, LONG)
//
// PURPOSE: Processes messages for the main frame window.
//
LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) {
case WM_CREATE:
hChildWnd = CreateWindowEx(WS_EX_CLIENTEDGE, WC_TREEVIEW, _T("notepad edit"),
WS_VISIBLE | WS_CHILD,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
hWnd, (HMENU)0, hInst, NULL);
break;
case WM_COMMAND:
if (!_CmdWndProc(hWnd, message, wParam, lParam)) {
return DefWindowProc(hWnd, message, wParam, lParam);
}
break;
case WM_SIZE:
resize_frame_client(hWnd);
break;
case WM_TIMER:
break;
case WM_ENTERMENULOOP:
OnEnterMenuLoop(hWnd);
break;
case WM_EXITMENULOOP:
OnExitMenuLoop(hWnd);
break;
case WM_MENUSELECT:
OnMenuSelect(hWnd, LOWORD(wParam), HIWORD(wParam), (HMENU)lParam);
break;
case WM_DESTROY:
WinHelp(hWnd, _T("notepad"), HELP_QUIT, 0);
PostQuitMessage(0);
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
return 0;
}

View file

@ -1,9 +1,7 @@
/* /*
* ReactOS notepad * Notepad (license.h)
* *
* framewnd.h * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
*
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -20,22 +18,23 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifndef __FRAMEWND_H__ #include <windows.h>
#define __FRAMEWND_H__ #include "license.h"
#ifdef __cplusplus VOID WineLicense(HWND Wnd)
extern "C" { {
#endif /* FIXME: should load strings from resources */
LICENSE *License = &WineLicense_En;
MessageBox(Wnd, License->License, License->LicenseCaption,
MB_ICONINFORMATION | MB_OK);
}
LRESULT CALLBACK FrameWndProc(HWND, UINT, WPARAM, LPARAM); VOID WineWarranty(HWND Wnd)
{
/* FIXME: should load strings from resources */
LICENSE *License = &WineLicense_En;
MessageBox(Wnd, License->Warranty, License->WarrantyCaption,
MB_ICONEXCLAMATION | MB_OK);
}
void SetupStatusBar(HWND hWnd, BOOL bResize);
void UpdateStatusBar(void);
#ifdef __cplusplus
};
#endif
#endif // __FRAMEWND_H__

52
rosapps/notepad/license.h Normal file
View 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;
*/

View file

@ -1,9 +1,10 @@
/* /*
* ReactOS notepad * Notepad
* *
* main.c * Copyright 2000 Mike McCormack <Mike_McCormack@looksmart.com.au>
* * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org> * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* Copyright 2002 Andriy Palamarchuk
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -18,141 +19,336 @@
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/ */
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #define UNICODE
#include <windows.h> #include <windows.h>
#include <tchar.h> #include <stdio.h>
#include <stdlib.h>
#include <commctrl.h>
#include "main.h" #include "main.h"
#include "framewnd.h" #include "dialog.h"
#include "notepad_res.h"
NOTEPAD_GLOBALS Globals;
static ATOM aFINDMSGSTRING;
//////////////////////////////////////////////////////////////////////////////// /***********************************************************************
// Global Variables: *
// * SetFileName
*
HINSTANCE hInst; * Sets Global File Name.
HWND hFrameWnd; */
HWND hStatusBar; VOID SetFileName(LPCWSTR szFileName)
HMENU hMenuFrame;
UINT nClipboardFormat;
LPCTSTR strClipboardFormat = _T("TODO: SET CORRECT FORMAT");
TCHAR szTitle[MAX_LOADSTRING];
TCHAR szFrameClass[MAX_LOADSTRING];
TCHAR szChildClass[MAX_LOADSTRING];
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{ {
WNDCLASSEX wcFrame = { lstrcpy(Globals.szFileName, szFileName);
sizeof(WNDCLASSEX), Globals.szFileTitle[0] = 0;
CS_HREDRAW | CS_VREDRAW/*style*/, GetFileTitle(szFileName, Globals.szFileTitle, sizeof(Globals.szFileTitle));
FrameWndProc,
0/*cbClsExtra*/,
0/*cbWndExtra*/,
hInstance,
LoadIcon(hInstance, MAKEINTRESOURCE(IDI_NOTEPAD)),
LoadCursor(0, IDC_ARROW),
0/*hbrBackground*/,
0/*lpszMenuName*/,
szFrameClass,
(HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_NOTEPAD), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED)
};
ATOM hFrameWndClass = RegisterClassEx(&wcFrame); // register frame window class
#if 0
WNDCLASSEX wcChild = {
sizeof(WNDCLASSEX),
CS_HREDRAW | CS_VREDRAW/*style*/,
ChildWndProc,
0/*cbClsExtra*/,
sizeof(HANDLE)/*cbWndExtra*/,
hInstance,
LoadIcon(hInstance, MAKEINTRESOURCE(IDI_NOTEPAD)),
LoadCursor(0, IDC_ARROW),
0/*hbrBackground*/,
0/*lpszMenuName*/,
szChildClass,
(HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_NOTEPAD), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED)
};
ATOM hChildWndClass = RegisterClassEx(&wcChild); // register child windows class
hChildWndClass = hChildWndClass; // warning eater
#endif
hMenuFrame = LoadMenu(hInstance, MAKEINTRESOURCE(IDR_NOTEPAD_MENU));
// Initialize the Windows Common Controls DLL
InitCommonControls();
nClipboardFormat = RegisterClipboardFormat(strClipboardFormat);
if (nClipboardFormat == 0) {
DWORD dwError = GetLastError();
}
hFrameWnd = CreateWindowEx(0, (LPCTSTR)(int)hFrameWndClass, szTitle,
WS_OVERLAPPEDWINDOW | WS_EX_CLIENTEDGE,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL, hMenuFrame, hInstance, NULL/*lpParam*/);
if (!hFrameWnd) {
return FALSE;
}
// Create the status bar
hStatusBar = CreateStatusWindow(WS_VISIBLE|WS_CHILD|WS_CLIPSIBLINGS|SBT_NOBORDERS,
_T(""), hFrameWnd, STATUS_WINDOW);
if (hStatusBar) {
// Create the status bar panes
SetupStatusBar(hFrameWnd, FALSE);
CheckMenuItem(GetSubMenu(hMenuFrame, ID_VIEW_MENU), ID_VIEW_STATUSBAR, MF_BYCOMMAND|MF_CHECKED);
}
ShowWindow(hFrameWnd, nCmdShow);
UpdateWindow(hFrameWnd);
return TRUE;
} }
//////////////////////////////////////////////////////////////////////////////// /***********************************************************************
*
void ExitInstance(void) * NOTEPAD_MenuCommand
*
* All handling of main menu events
*/
static int NOTEPAD_MenuCommand(WPARAM wParam)
{ {
DestroyMenu(hMenuFrame); 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;
} }
int APIENTRY WinMain(HINSTANCE hInstance, /***********************************************************************
HINSTANCE hPrevInstance, * Data Initialization
LPSTR lpCmdLine, */
int nCmdShow) static VOID NOTEPAD_InitData(VOID)
{ {
MSG msg; LPWSTR p = Globals.szFilter;
HACCEL hAccel; static const WCHAR txt_files[] = { '*','.','t','x','t',0 };
static const WCHAR all_files[] = { '*','.','*',0 };
// Initialize global strings LoadString(Globals.hInstance, STRING_TEXT_FILES_TXT, p, MAX_STRING_LEN);
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); p += lstrlen(p) + 1;
LoadString(hInstance, IDC_NOTEPAD_FRAME, szFrameClass, MAX_LOADSTRING); lstrcpy(p, txt_files);
LoadString(hInstance, IDC_NOTEPAD, szChildClass, MAX_LOADSTRING); 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;
// Store instance handle in our global variable /* skip white space */
hInst = hInstance; while (*cmdline && *cmdline == ' ') cmdline++;
// Perform application initialization: /* skip executable name */
if (!InitInstance(hInstance, nCmdShow)) { delimiter = ' ';
return FALSE; if (*cmdline == '"')
delimiter = '"';
do
{
cmdline++;
} }
hAccel = LoadAccelerators(hInstance, (LPCTSTR)IDC_NOTEPAD); while (*cmdline && *cmdline != delimiter);
if (*cmdline == delimiter) cmdline++;
// Main message loop: while (*cmdline && (*cmdline == ' ' || *cmdline == '-'))
while (GetMessage(&msg, (HWND)NULL, 0, 0)) { {
if (!TranslateAccelerator(msg.hwnd, hAccel, &msg)) { WCHAR option;
TranslateMessage(&msg);
DispatchMessage(&msg); 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;
} }
} }
ExitInstance();
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; return msg.wParam;
} }

View file

@ -1,9 +1,8 @@
/* /*
* ReactOS notepad * Notepad (notepad.h)
* *
* main.h * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -20,38 +19,35 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifndef __MAIN_H__ #define SIZEOF(a) sizeof(a)/sizeof((a)[0])
#define __MAIN_H__
#ifdef __cplusplus #include "notepad_res.h"
extern "C" {
#endif
#define MAX_STRING_LEN 255
#include "resource.h" 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;
#define STATUS_WINDOW 2001 extern NOTEPAD_GLOBALS Globals;
#define MAX_LOADSTRING 100
VOID SetFileName(LPCWSTR szFileName);
////////////////////////////////////////////////////////////////////////////////
// Global Variables:
//
extern HINSTANCE hInst;
extern HWND hFrameWnd;
extern HMENU hMenuFrame;
extern HWND hStatusBar;
extern HFONT hFont;
extern TCHAR szTitle[];
extern TCHAR szFrameClass[];
extern TCHAR szChildClass[];
#ifdef __cplusplus
};
#endif
#endif // __MAIN_H__

View file

@ -1,37 +1,24 @@
# # $Id: makefile,v 1.4 2004/03/17 01:28:13 sedwards Exp $
# ReactOS notepad
#
# Makefile
#
PATH_TO_TOP = ../../reactos PATH_TO_TOP = ../../reactos
TARGET_NORC = no
TARGET_TYPE = program TARGET_TYPE = program
TARGET_APPTYPE = console TARGET_APPTYPE = windows
TARGET_NAME = notepad TARGET_NAME = notepad
TARGET_CFLAGS = -D_WIN32_IE=0x0400 # -DUNICODE -D_UNICODE TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
TARGET_RCFLAGS = -D_WIN32_IE=0x0400 TARGET_SDKLIBS = comdlg32.a shell32.a user32.a gdi32.a
WINE_MODE = yes
WINE_RC = $(TARGET_NAME)
WINE_INCLUDE = ./
TARGET_SDKLIBS = \
kernel32.a \
user32.a \
gdi32.a \
comctl32.a \
comdlg32.a
TARGET_OBJECTS = \ TARGET_OBJECTS = \
framewnd.o \ License_En.o \
main.o dialog.o \
license.o \
main.o
include $(PATH_TO_TOP)/rules.mak include $(PATH_TO_TOP)/rules.mak

BIN
rosapps/notepad/notepad.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -1,259 +1,3 @@
#include <windows.h> // Compatiblity Include
#include <reactos/resource.h>
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// 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 DISCARDABLE "res/notepad.ico"
IDI_SMALL ICON DISCARDABLE "res/small.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDC_NOTEPAD MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", ID_FILE_EXIT
END
POPUP "&Help"
BEGIN
MENUITEM "&About ...", ID_HELP_ABOUT
END
END
IDR_NOTEPAD_MENU MENU DISCARDABLE
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, GRAYED
MENUITEM "&Print\tCtrl+P", ID_FILE_PRINT, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit", ID_FILE_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Undo", ID_EDIT_UNDO, GRAYED
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, GRAYED
MENUITEM "Find Ne&xt\tF3", ID_EDIT_FINDNEXT, GRAYED
MENUITEM "&Replace...\tCtrl+H", ID_EDIT_REPLACE, GRAYED
MENUITEM "&Go To...\tCtrl+G", ID_EDIT_GOTO, GRAYED
MENUITEM SEPARATOR
MENUITEM "Select &All..\tCtrl+A", ID_EDIT_SELECTALL
MENUITEM "Time/&Date...\tF5", ID_EDIT_TIMEDATE
END
POPUP "&View"
BEGIN
MENUITEM "&Status Bar", ID_VIEW_STATUSBAR, GRAYED
MENUITEM "&Tool Bar", ID_VIEW_TOOLBAR, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Refresh\tF5", ID_VIEW_REFRESH, GRAYED
END
POPUP "F&ormat"
BEGIN
MENUITEM "&Word Wrap", ID_FORMAT_WORDWRAP, GRAYED
MENUITEM "&Font...", ID_FORMAT_FONT
END
POPUP "&Help"
BEGIN
MENUITEM "&Help Topics", ID_HELP_HELPTOPICS
MENUITEM SEPARATOR
MENUITEM "&About Notepad", ID_HELP_ABOUT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOG DISCARDABLE 22, 17, 230, 75
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "System"
BEGIN
ICON IDI_NOTEPAD,IDI_NOTEPAD,14,9,16,16
LTEXT "ReactOS Notepad Version 1.0",IDC_STATIC,49,10,119,8,
SS_NOPREFIX
LTEXT "Copyright (C) 2002 ReactOS Team",IDC_STATIC,49,20,119,8
DEFPUSHBUTTON "OK",IDOK,195,6,30,11,WS_GROUP
END
IDD_DIALOG1 DIALOG DISCARDABLE 50, 50, 268, 98
STYLE DS_3DLOOK | DS_CONTROL | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS |
WS_BORDER
FONT 8, "MS Sans Serif"
BEGIN
END
IDD_DIALOG2 DIALOG DISCARDABLE 0, 0, 187, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,130,7,50,14
PUSHBUTTON "Cancel",IDCANCEL,130,24,50,14
END
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
(1) VERSIONINFO
FILEVERSION 0,0,21,3
PRODUCTVERSION 0,0,21,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "Absolutely no warranties whatsoever - Use at your own risk\0"
VALUE "CompanyName", "ReactOS Development Team\0"
VALUE "FileDescription", "ReactOS Notepad by Robert Dickenson\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "notepad\0"
VALUE "LegalCopyright", "Copyright © 2002 Robert Dickenson\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "notepad.exe\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "ReactOS Operating System\0"
VALUE "ProductVersion", "0.0.21\0"
VALUE "SpecialBuild", "Non-versioned Development Beta Release\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0xc09, 1200
END
END
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_APP_TITLE "ReactOS Notepad"
IDC_NOTEPAD "NOTEPAD"
IDC_NOTEPAD_FRAME "NOTEPAD_FRAME"
END
STRINGTABLE DISCARDABLE
BEGIN
ID_FILE_MENU "Contains commands for loading and saving files"
ID_EDIT_MENU "Contains commands for editing the current text"
ID_VIEW_MENU "Contains commands for manipulating notepad's options"
ID_FORMAT_MENU "Contains commands for customising the look of the text"
ID_HELP_MENU "Contains commands for displaying help and information about notepad"
END
STRINGTABLE DISCARDABLE
BEGIN
ID_FILE_NEW "Creates and empty un-named text buffer"
ID_FILE_OPEN "Opens a text file into notepads buffer"
ID_FILE_SAVE "Saves the current text buffer to file"
ID_FILE_SAVEAS "Saves the current text buffer to a new file"
ID_FILE_PAGESETUP "Modify the setup options for printing the text"
ID_FILE_PRINT "Prints all or part of the current text buffer"
ID_HELP_HELPTOPICS "Opens notepad help"
ID_HELP_ABOUT "Displays program information, version number and copyright"
ID_FILE_EXIT "Quits this notepad text editor"
END
STRINGTABLE DISCARDABLE
BEGIN
ID_EDIT_UNDO "Undo the last buffer editing operation performed"
ID_EDIT_CUT "Removes the selected text and places it on the clipboard"
ID_EDIT_COPY "Copies the selected text to the clipboard"
ID_EDIT_PASTE "Pastes the contents of the clipboard at the cursor location"
ID_EDIT_DELETE "Deletes the selected text"
ID_EDIT_FIND "Finds a text string in the buffer"
ID_EDIT_FINDNEXT "Finds next occurrence of text specified in previous search"
ID_EDIT_GOTO "Jump to specified line number in buffer"
ID_EDIT_SELECTALL "Selects the entire text buffer"
ID_EDIT_TIMEDATE "Inserts the current date and time at the cursor location"
ID_VIEW_STATUSBAR "Shows or hides the status bar"
ID_VIEW_TOOLBAR "Shows or hides the tool bar"
ID_VIEW_SPLIT "Change position of split between two panes"
ID_VIEW_REFRESH "Refreshes the text buffer from it's file"
ID_FORMAT_WORDWRAP "Toggles word-wrap display mode"
ID_FORMAT_FONT "Select font for displaying and printing buffer text"
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// English (Australia) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
ID_HELP_HELPTOPICS "Opens Registry Editor Help."
ID_HELP_ABOUT "Displays program information, version number, and copyright."
END
#endif // English (Australia) resources
/////////////////////////////////////////////////////////////////////////////
#include "rsrc.rc"

View 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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

View file

@ -1,59 +0,0 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by notepad.rc
//
#define ID_FILE_MENU 0
#define ID_EDIT_MENU 1
#define ID_FORMAT_MENU 2
#define ID_HELP_MENU 3
#define ID_VIEW_MENU 4
#define IDD_ABOUTBOX 103
#define IDS_APP_TITLE 104
#define IDI_NOTEPAD 107
#define IDI_SMALL 108
#define IDC_NOTEPAD 109
#define IDC_NOTEPAD_FRAME 110
#define IDR_NOTEPAD_MENU 130
#define IDD_DIALOG1 131
#define IDD_DIALOG2 135
#define ID_FILE_NEW 32773
#define ID_FILE_OPEN 32774
#define ID_FILE_SAVE 32775
#define ID_FILE_SAVEAS 32776
#define ID_FILE_PAGESETUP 32777
#define ID_FILE_PRINT 32778
#define ID_FILE_EXIT 32779
#define ID_EDIT_UNDO 32780
#define ID_EDIT_CUT 32781
#define ID_EDIT_COPY 32782
#define ID_EDIT_PASTE 32783
#define ID_EDIT_DELETE 32784
#define ID_EDIT_FIND 32785
#define ID_EDIT_FINDNEXT 32786
#define ID_EDIT_REPLACE 32787
#define ID_EDIT_GOTO 32788
#define ID_EDIT_SELECTALL 32789
#define ID_EDIT_TIMEDATE 32790
#define ID_VIEW_STATUSBAR 32791
#define ID_VIEW_TOOLBAR 32792
#define ID_VIEW_SPLIT 32793
#define ID_VIEW_REFRESH 32794
#define ID_FORMAT_WORDWRAP 32795
#define ID_FORMAT_FONT 32796
#define ID_HELP_HELPTOPICS 32797
#define ID_HELP_ABOUT 32798
#define IDC_STATIC -1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 133
#define _APS_NEXT_COMMAND_VALUE 32836
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 110
#endif
#endif

58
rosapps/notepad/rsrc.rc Normal file
View 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"

BIN
rosapps/notepad/small.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB