SVN maintenance

svn path=/trunk/; revision=40899
This commit is contained in:
Pierre Schweitzer 2009-05-12 14:15:48 +00:00
parent e53dfae7ea
commit 7bdc8391f9
79 changed files with 5216 additions and 5216 deletions

318
reactos/base/applications/paint/definitions.h Executable file → Normal file
View File

@ -1,159 +1,159 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: definitions.h
* PURPOSE: Defines the resource ids
* PROGRAMMERS: Benedikt Freisen
*/
/* DEFINES **********************************************************/
#define IDI_APPICON 500
#define IDB_TOOLBARICONS 510
#define IDI_TRANSPARENT 526
#define IDI_NONTRANSPARENT 527
#define IDC_FILL 530
#define IDC_COLOR 531
#define IDC_ZOOM 532
#define IDC_PEN 533
#define IDC_AIRBRUSH 534
#define IDI_HORZSTRETCH 535
#define IDI_VERTSTRETCH 536
#define ID_MENU 501
#define IDM_FILENEW 201
#define IDM_FILEOPEN 202
#define IDM_FILESAVE 203
#define IDM_FILESAVEAS 204
#define IDM_FILEASWALLPAPERPLANE 210
#define IDM_FILEASWALLPAPERCENTERED 211
#define IDM_FILEASWALLPAPERSTRETCHED 212
#define IDM_FILEEXIT 205
#define IDM_EDITUNDO 220
#define IDM_EDITREDO 221
#define IDM_EDITCUT 222
#define IDM_EDITCOPY 223
#define IDM_EDITPASTE 224
#define IDM_EDITDELETESELECTION 225
#define IDM_EDITINVERTSELECTION 226
#define IDM_EDITSELECTALL 227
#define IDM_EDITCOPYTO 228
#define IDM_EDITPASTEFROM 229
#define IDM_VIEWTOOLBOX 230
#define IDM_VIEWCOLORPALETTE 231
#define IDM_VIEWSTATUSBAR 232
#define IDM_FORMATICONBAR 233
#define IDM_VIEWZOOM125 234
#define IDM_VIEWZOOM25 235
#define IDM_VIEWZOOM50 236
#define IDM_VIEWZOOM100 237
#define IDM_VIEWZOOM200 238
#define IDM_VIEWZOOM400 239
#define IDM_VIEWZOOM800 240
#define IDM_VIEWFULLSCREEN 241
#define IDM_IMAGEROTATEMIRROR 250
#define IDM_IMAGECHANGESIZE 251
#define IDM_IMAGECROP 252
#define IDM_IMAGEINVERTCOLORS 253
#define IDM_IMAGEATTRIBUTES 254
#define IDM_IMAGEDELETEIMAGE 255
#define IDM_IMAGEDRAWOPAQUE 256
#define IDM_COLORSEDITPALETTE 260
#define IDM_HELPHELPTOPICS 270
#define IDM_HELPINFO 271
//the following 16 numbers need to be in order, increasing by 1
#define ID_FREESEL 600
#define ID_RECTSEL 601
#define ID_RUBBER 602
#define ID_FILL 603
#define ID_COLOR 604
#define ID_ZOOM 605
#define ID_PEN 606
#define ID_BRUSH 607
#define ID_AIRBRUSH 608
#define ID_TEXT 609
#define ID_LINE 610
#define ID_BEZIER 611
#define ID_RECT 612
#define ID_SHAPE 613
#define ID_ELLIPSE 614
#define ID_RRECT 615
#define ID_ACCELERATORS 800
#define IDD_MIRRORROTATE 700
#define IDD_MIRRORROTATEGROUP 701
#define IDD_MIRRORROTATERB1 702
#define IDD_MIRRORROTATERB2 703
#define IDD_MIRRORROTATERB3 704
#define IDD_MIRRORROTATERB4 705
#define IDD_MIRRORROTATERB5 706
#define IDD_MIRRORROTATERB6 707
#define IDD_ATTRIBUTES 710
#define IDD_ATTRIBUTESEDIT1 711
#define IDD_ATTRIBUTESEDIT2 712
#define IDD_ATTRIBUTESTEXT1 715
#define IDD_ATTRIBUTESTEXT2 716
#define IDD_ATTRIBUTESTEXT3 717
#define IDD_ATTRIBUTESTEXT4 718
#define IDD_ATTRIBUTESTEXT5 719
#define IDD_ATTRIBUTESTEXT6 720
#define IDD_ATTRIBUTESTEXT7 721
#define IDD_ATTRIBUTESTEXT8 722
#define IDD_ATTRIBUTESSTANDARD 723
#define IDD_ATTRIBUTESGROUP1 724
#define IDD_ATTRIBUTESGROUP2 725
#define IDD_ATTRIBUTESRB1 726
#define IDD_ATTRIBUTESRB2 727
#define IDD_ATTRIBUTESRB3 728
#define IDD_ATTRIBUTESRB4 729
#define IDD_ATTRIBUTESRB5 730
#define IDD_CHANGESIZE 740
#define IDD_CHANGESIZEGROUP 741
#define IDD_CHANGESIZEICON1 742
#define IDD_CHANGESIZETEXT1 743
#define IDD_CHANGESIZEEDIT1 744
#define IDD_CHANGESIZETEXT2 745
#define IDD_CHANGESIZEICON2 746
#define IDD_CHANGESIZETEXT3 747
#define IDD_CHANGESIZEEDIT2 748
#define IDD_CHANGESIZETEXT4 749
#define IDS_PROGRAMNAME 900
#define IDS_WINDOWTITLE 901
#define IDS_INFOTITLE 902
#define IDS_INFOTEXT 903
#define IDS_SAVEPROMPTTEXT 904
#define IDS_DEFAULTFILENAME 905
#define IDS_TOOLTIP1 910
#define IDS_TOOLTIP2 911
#define IDS_TOOLTIP3 912
#define IDS_TOOLTIP4 913
#define IDS_TOOLTIP5 914
#define IDS_TOOLTIP6 915
#define IDS_TOOLTIP7 916
#define IDS_TOOLTIP8 917
#define IDS_TOOLTIP9 918
#define IDS_TOOLTIP10 919
#define IDS_TOOLTIP11 920
#define IDS_TOOLTIP12 921
#define IDS_TOOLTIP13 922
#define IDS_TOOLTIP14 923
#define IDS_TOOLTIP15 924
#define IDS_TOOLTIP16 925
#define IDS_OPENFILTER 926
#define IDS_SAVEFILTER 927
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: definitions.h
* PURPOSE: Defines the resource ids
* PROGRAMMERS: Benedikt Freisen
*/
/* DEFINES **********************************************************/
#define IDI_APPICON 500
#define IDB_TOOLBARICONS 510
#define IDI_TRANSPARENT 526
#define IDI_NONTRANSPARENT 527
#define IDC_FILL 530
#define IDC_COLOR 531
#define IDC_ZOOM 532
#define IDC_PEN 533
#define IDC_AIRBRUSH 534
#define IDI_HORZSTRETCH 535
#define IDI_VERTSTRETCH 536
#define ID_MENU 501
#define IDM_FILENEW 201
#define IDM_FILEOPEN 202
#define IDM_FILESAVE 203
#define IDM_FILESAVEAS 204
#define IDM_FILEASWALLPAPERPLANE 210
#define IDM_FILEASWALLPAPERCENTERED 211
#define IDM_FILEASWALLPAPERSTRETCHED 212
#define IDM_FILEEXIT 205
#define IDM_EDITUNDO 220
#define IDM_EDITREDO 221
#define IDM_EDITCUT 222
#define IDM_EDITCOPY 223
#define IDM_EDITPASTE 224
#define IDM_EDITDELETESELECTION 225
#define IDM_EDITINVERTSELECTION 226
#define IDM_EDITSELECTALL 227
#define IDM_EDITCOPYTO 228
#define IDM_EDITPASTEFROM 229
#define IDM_VIEWTOOLBOX 230
#define IDM_VIEWCOLORPALETTE 231
#define IDM_VIEWSTATUSBAR 232
#define IDM_FORMATICONBAR 233
#define IDM_VIEWZOOM125 234
#define IDM_VIEWZOOM25 235
#define IDM_VIEWZOOM50 236
#define IDM_VIEWZOOM100 237
#define IDM_VIEWZOOM200 238
#define IDM_VIEWZOOM400 239
#define IDM_VIEWZOOM800 240
#define IDM_VIEWFULLSCREEN 241
#define IDM_IMAGEROTATEMIRROR 250
#define IDM_IMAGECHANGESIZE 251
#define IDM_IMAGECROP 252
#define IDM_IMAGEINVERTCOLORS 253
#define IDM_IMAGEATTRIBUTES 254
#define IDM_IMAGEDELETEIMAGE 255
#define IDM_IMAGEDRAWOPAQUE 256
#define IDM_COLORSEDITPALETTE 260
#define IDM_HELPHELPTOPICS 270
#define IDM_HELPINFO 271
//the following 16 numbers need to be in order, increasing by 1
#define ID_FREESEL 600
#define ID_RECTSEL 601
#define ID_RUBBER 602
#define ID_FILL 603
#define ID_COLOR 604
#define ID_ZOOM 605
#define ID_PEN 606
#define ID_BRUSH 607
#define ID_AIRBRUSH 608
#define ID_TEXT 609
#define ID_LINE 610
#define ID_BEZIER 611
#define ID_RECT 612
#define ID_SHAPE 613
#define ID_ELLIPSE 614
#define ID_RRECT 615
#define ID_ACCELERATORS 800
#define IDD_MIRRORROTATE 700
#define IDD_MIRRORROTATEGROUP 701
#define IDD_MIRRORROTATERB1 702
#define IDD_MIRRORROTATERB2 703
#define IDD_MIRRORROTATERB3 704
#define IDD_MIRRORROTATERB4 705
#define IDD_MIRRORROTATERB5 706
#define IDD_MIRRORROTATERB6 707
#define IDD_ATTRIBUTES 710
#define IDD_ATTRIBUTESEDIT1 711
#define IDD_ATTRIBUTESEDIT2 712
#define IDD_ATTRIBUTESTEXT1 715
#define IDD_ATTRIBUTESTEXT2 716
#define IDD_ATTRIBUTESTEXT3 717
#define IDD_ATTRIBUTESTEXT4 718
#define IDD_ATTRIBUTESTEXT5 719
#define IDD_ATTRIBUTESTEXT6 720
#define IDD_ATTRIBUTESTEXT7 721
#define IDD_ATTRIBUTESTEXT8 722
#define IDD_ATTRIBUTESSTANDARD 723
#define IDD_ATTRIBUTESGROUP1 724
#define IDD_ATTRIBUTESGROUP2 725
#define IDD_ATTRIBUTESRB1 726
#define IDD_ATTRIBUTESRB2 727
#define IDD_ATTRIBUTESRB3 728
#define IDD_ATTRIBUTESRB4 729
#define IDD_ATTRIBUTESRB5 730
#define IDD_CHANGESIZE 740
#define IDD_CHANGESIZEGROUP 741
#define IDD_CHANGESIZEICON1 742
#define IDD_CHANGESIZETEXT1 743
#define IDD_CHANGESIZEEDIT1 744
#define IDD_CHANGESIZETEXT2 745
#define IDD_CHANGESIZEICON2 746
#define IDD_CHANGESIZETEXT3 747
#define IDD_CHANGESIZEEDIT2 748
#define IDD_CHANGESIZETEXT4 749
#define IDS_PROGRAMNAME 900
#define IDS_WINDOWTITLE 901
#define IDS_INFOTITLE 902
#define IDS_INFOTEXT 903
#define IDS_SAVEPROMPTTEXT 904
#define IDS_DEFAULTFILENAME 905
#define IDS_TOOLTIP1 910
#define IDS_TOOLTIP2 911
#define IDS_TOOLTIP3 912
#define IDS_TOOLTIP4 913
#define IDS_TOOLTIP5 914
#define IDS_TOOLTIP6 915
#define IDS_TOOLTIP7 916
#define IDS_TOOLTIP8 917
#define IDS_TOOLTIP9 918
#define IDS_TOOLTIP10 919
#define IDS_TOOLTIP11 920
#define IDS_TOOLTIP12 921
#define IDS_TOOLTIP13 922
#define IDS_TOOLTIP14 923
#define IDS_TOOLTIP15 924
#define IDS_TOOLTIP16 925
#define IDS_OPENFILTER 926
#define IDS_SAVEFILTER 927

266
reactos/base/applications/paint/dialogs.c Executable file → Normal file
View File

@ -1,133 +1,133 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dialogs.c
* PURPOSE: Window procedures of the dialog windows plus launching functions
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "definitions.h"
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
LRESULT CALLBACK MRDlgWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
CheckDlgButton(hwnd, IDD_MIRRORROTATERB1, BST_CHECKED);
CheckDlgButton(hwnd, IDD_MIRRORROTATERB4, BST_CHECKED);
return TRUE;
case WM_CLOSE:
EndDialog(hwnd, 0);
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB1))
EndDialog(hwnd, 1);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB2))
EndDialog(hwnd, 2);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB4))
EndDialog(hwnd, 3);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB5))
EndDialog(hwnd, 4);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB6))
EndDialog(hwnd, 5);
break;
case IDCANCEL:
EndDialog(hwnd, 0);
break;
case IDD_MIRRORROTATERB3:
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB4), TRUE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB5), TRUE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB6), TRUE);
break;
case IDD_MIRRORROTATERB1:
case IDD_MIRRORROTATERB2:
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB4), FALSE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB5), FALSE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB6), FALSE);
break;
}
break;
default:
return FALSE;
}
}
int mirrorRotateDlg()
{
return DialogBox(hProgInstance, MAKEINTRESOURCE(IDD_MIRRORROTATE), hMainWnd, (DLGPROC)MRDlgWinProc);
}
LRESULT CALLBACK ATTDlgWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
CheckDlgButton(hwnd, IDD_ATTRIBUTESRB3, BST_CHECKED);
CheckDlgButton(hwnd, IDD_ATTRIBUTESRB5, BST_CHECKED);
SetDlgItemInt(hwnd, IDD_ATTRIBUTESEDIT1, imgXRes, FALSE);
SetDlgItemInt(hwnd, IDD_ATTRIBUTESEDIT2, imgYRes, FALSE);
return TRUE;
case WM_CLOSE:
EndDialog(hwnd, 0);
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
EndDialog(hwnd, 1);
break;
case IDCANCEL:
EndDialog(hwnd, 0);
break;
}
break;
default:
return FALSE;
}
}
int attributesDlg()
{
return DialogBox(hProgInstance, MAKEINTRESOURCE(IDD_ATTRIBUTES), hMainWnd, (DLGPROC)ATTDlgWinProc);
}
LRESULT CALLBACK CHSIZEDlgWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
SetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT1, 100, FALSE);
SetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT2, 100, FALSE);
return TRUE;
case WM_CLOSE:
EndDialog(hwnd, 0);
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
EndDialog(hwnd, GetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT1, NULL, FALSE) | (GetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT2, NULL, FALSE)<<16));
break;
case IDCANCEL:
EndDialog(hwnd, 0);
break;
}
break;
default:
return FALSE;
}
}
int changeSizeDlg()
{
return DialogBox(hProgInstance, MAKEINTRESOURCE(IDD_CHANGESIZE), hMainWnd, (DLGPROC)CHSIZEDlgWinProc);
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dialogs.c
* PURPOSE: Window procedures of the dialog windows plus launching functions
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "definitions.h"
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
LRESULT CALLBACK MRDlgWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
CheckDlgButton(hwnd, IDD_MIRRORROTATERB1, BST_CHECKED);
CheckDlgButton(hwnd, IDD_MIRRORROTATERB4, BST_CHECKED);
return TRUE;
case WM_CLOSE:
EndDialog(hwnd, 0);
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB1))
EndDialog(hwnd, 1);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB2))
EndDialog(hwnd, 2);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB4))
EndDialog(hwnd, 3);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB5))
EndDialog(hwnd, 4);
else if (IsDlgButtonChecked(hwnd, IDD_MIRRORROTATERB6))
EndDialog(hwnd, 5);
break;
case IDCANCEL:
EndDialog(hwnd, 0);
break;
case IDD_MIRRORROTATERB3:
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB4), TRUE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB5), TRUE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB6), TRUE);
break;
case IDD_MIRRORROTATERB1:
case IDD_MIRRORROTATERB2:
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB4), FALSE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB5), FALSE);
EnableWindow(GetDlgItem(hwnd, IDD_MIRRORROTATERB6), FALSE);
break;
}
break;
default:
return FALSE;
}
}
int mirrorRotateDlg()
{
return DialogBox(hProgInstance, MAKEINTRESOURCE(IDD_MIRRORROTATE), hMainWnd, (DLGPROC)MRDlgWinProc);
}
LRESULT CALLBACK ATTDlgWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
CheckDlgButton(hwnd, IDD_ATTRIBUTESRB3, BST_CHECKED);
CheckDlgButton(hwnd, IDD_ATTRIBUTESRB5, BST_CHECKED);
SetDlgItemInt(hwnd, IDD_ATTRIBUTESEDIT1, imgXRes, FALSE);
SetDlgItemInt(hwnd, IDD_ATTRIBUTESEDIT2, imgYRes, FALSE);
return TRUE;
case WM_CLOSE:
EndDialog(hwnd, 0);
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
EndDialog(hwnd, 1);
break;
case IDCANCEL:
EndDialog(hwnd, 0);
break;
}
break;
default:
return FALSE;
}
}
int attributesDlg()
{
return DialogBox(hProgInstance, MAKEINTRESOURCE(IDD_ATTRIBUTES), hMainWnd, (DLGPROC)ATTDlgWinProc);
}
LRESULT CALLBACK CHSIZEDlgWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
SetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT1, 100, FALSE);
SetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT2, 100, FALSE);
return TRUE;
case WM_CLOSE:
EndDialog(hwnd, 0);
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
EndDialog(hwnd, GetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT1, NULL, FALSE) | (GetDlgItemInt(hwnd, IDD_CHANGESIZEEDIT2, NULL, FALSE)<<16));
break;
case IDCANCEL:
EndDialog(hwnd, 0);
break;
}
break;
default:
return FALSE;
}
}
int changeSizeDlg()
{
return DialogBox(hProgInstance, MAKEINTRESOURCE(IDD_CHANGESIZE), hMainWnd, (DLGPROC)CHSIZEDlgWinProc);
}

26
reactos/base/applications/paint/dialogs.h Executable file → Normal file
View File

@ -1,13 +1,13 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dialogs.h
* PURPOSE: Window procedures of the dialog windows plus launching functions
* PROGRAMMERS: Benedikt Freisen
*/
int mirrorRotateDlg();
int attributesDlg();
int changeSizeDlg();
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dialogs.h
* PURPOSE: Window procedures of the dialog windows plus launching functions
* PROGRAMMERS: Benedikt Freisen
*/
int mirrorRotateDlg();
int attributesDlg();
int changeSizeDlg();

202
reactos/base/applications/paint/dib.c Executable file → Normal file
View File

@ -1,101 +1,101 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dib.c
* PURPOSE: Some DIB related functions
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
/* FUNCTIONS ********************************************************/
HBITMAP CreateDIBWithProperties(int width, int height)
{
BITMAPINFO bitmapinfo;
bitmapinfo.bmiHeader.biSize = sizeof (BITMAPINFOHEADER);
bitmapinfo.bmiHeader.biWidth = width;
bitmapinfo.bmiHeader.biHeight = height;
bitmapinfo.bmiHeader.biPlanes = 1;
bitmapinfo.bmiHeader.biBitCount = 24;
bitmapinfo.bmiHeader.biCompression = BI_RGB;
bitmapinfo.bmiHeader.biSizeImage = 0;
bitmapinfo.bmiHeader.biXPelsPerMeter = 0;
bitmapinfo.bmiHeader.biYPelsPerMeter = 0;
bitmapinfo.bmiHeader.biClrUsed = 0;
bitmapinfo.bmiHeader.biClrImportant = 0;
return CreateDIBSection(NULL, &bitmapinfo, DIB_RGB_COLORS, NULL, NULL, 0);
}
int GetDIBWidth(HBITMAP hbm)
{
BITMAP bm;
GetObject(hbm, sizeof(BITMAP), &bm);
return bm.bmWidth;
}
int GetDIBHeight(HBITMAP hbm)
{
BITMAP bm;
GetObject(hbm, sizeof(BITMAP), &bm);
return bm.bmHeight;
}
void SaveDIBToFile(HBITMAP hbm, char name[], HDC hdc)
{
BITMAP bm;
GetObject(hbm, sizeof(BITMAP), &bm);
BITMAPFILEHEADER bf;
BITMAPINFOHEADER bi;
int imgDataSize = bm.bmWidthBytes*bm.bmHeight;
bf.bfType = 0x4d42;
bf.bfSize = imgDataSize+52;
bf.bfReserved1 = 0;
bf.bfReserved2 = 0;
bf.bfOffBits = 54;
bi.biSize = 40;
bi.biWidth = bm.bmWidth;
bi.biHeight = bm.bmHeight;
bi.biPlanes = bm.bmPlanes;
bi.biBitCount = bm.bmBitsPixel;
bi.biCompression = BI_RGB;
bi.biSizeImage = 0;
bi.biXPelsPerMeter = 0;
bi.biYPelsPerMeter = 0;
bi.biClrUsed = 0;
bi.biClrImportant = 0;
int *buffer = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, imgDataSize);
GetDIBits(hdc, hbm, 0, bm.bmHeight, buffer, (LPBITMAPINFO)&bi, DIB_RGB_COLORS);
HANDLE f = CreateFile(name, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
int bytesWritten;
WriteFile(f, &bf, 14, (LPDWORD)&bytesWritten, NULL);
WriteFile(f, &bi, 40, (LPDWORD)&bytesWritten, NULL);
WriteFile(f, buffer, imgDataSize, (LPDWORD)&bytesWritten, NULL);
CloseHandle(f);
HeapFree(GetProcessHeap(), 0, buffer);
}
HBITMAP LoadDIBFromFile(char name[])
{
HBITMAP bm;
BITMAPFILEHEADER bfh;
BITMAPINFO *bi;
VOID *data;
int bytesRead;
HANDLE f = CreateFile(name, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
ReadFile(f, &bfh, 14, (LPDWORD)&bytesRead, NULL);
if (bfh.bfType!=0x4d42)
{
fclose(f);
return NULL;
}
bi = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, bfh.bfOffBits-14);
ReadFile(f, bi, bfh.bfOffBits-14, (LPDWORD)&bytesRead, NULL);
bm = CreateDIBSection(NULL, bi, DIB_RGB_COLORS, &data, NULL, 0);
ReadFile(f, data, bfh.bfSize-bfh.bfOffBits, (LPDWORD)&bytesRead, NULL);
CloseHandle(f);
HeapFree(GetProcessHeap(), 0, bi);
return bm;
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dib.c
* PURPOSE: Some DIB related functions
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
/* FUNCTIONS ********************************************************/
HBITMAP CreateDIBWithProperties(int width, int height)
{
BITMAPINFO bitmapinfo;
bitmapinfo.bmiHeader.biSize = sizeof (BITMAPINFOHEADER);
bitmapinfo.bmiHeader.biWidth = width;
bitmapinfo.bmiHeader.biHeight = height;
bitmapinfo.bmiHeader.biPlanes = 1;
bitmapinfo.bmiHeader.biBitCount = 24;
bitmapinfo.bmiHeader.biCompression = BI_RGB;
bitmapinfo.bmiHeader.biSizeImage = 0;
bitmapinfo.bmiHeader.biXPelsPerMeter = 0;
bitmapinfo.bmiHeader.biYPelsPerMeter = 0;
bitmapinfo.bmiHeader.biClrUsed = 0;
bitmapinfo.bmiHeader.biClrImportant = 0;
return CreateDIBSection(NULL, &bitmapinfo, DIB_RGB_COLORS, NULL, NULL, 0);
}
int GetDIBWidth(HBITMAP hbm)
{
BITMAP bm;
GetObject(hbm, sizeof(BITMAP), &bm);
return bm.bmWidth;
}
int GetDIBHeight(HBITMAP hbm)
{
BITMAP bm;
GetObject(hbm, sizeof(BITMAP), &bm);
return bm.bmHeight;
}
void SaveDIBToFile(HBITMAP hbm, char name[], HDC hdc)
{
BITMAP bm;
GetObject(hbm, sizeof(BITMAP), &bm);
BITMAPFILEHEADER bf;
BITMAPINFOHEADER bi;
int imgDataSize = bm.bmWidthBytes*bm.bmHeight;
bf.bfType = 0x4d42;
bf.bfSize = imgDataSize+52;
bf.bfReserved1 = 0;
bf.bfReserved2 = 0;
bf.bfOffBits = 54;
bi.biSize = 40;
bi.biWidth = bm.bmWidth;
bi.biHeight = bm.bmHeight;
bi.biPlanes = bm.bmPlanes;
bi.biBitCount = bm.bmBitsPixel;
bi.biCompression = BI_RGB;
bi.biSizeImage = 0;
bi.biXPelsPerMeter = 0;
bi.biYPelsPerMeter = 0;
bi.biClrUsed = 0;
bi.biClrImportant = 0;
int *buffer = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, imgDataSize);
GetDIBits(hdc, hbm, 0, bm.bmHeight, buffer, (LPBITMAPINFO)&bi, DIB_RGB_COLORS);
HANDLE f = CreateFile(name, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
int bytesWritten;
WriteFile(f, &bf, 14, (LPDWORD)&bytesWritten, NULL);
WriteFile(f, &bi, 40, (LPDWORD)&bytesWritten, NULL);
WriteFile(f, buffer, imgDataSize, (LPDWORD)&bytesWritten, NULL);
CloseHandle(f);
HeapFree(GetProcessHeap(), 0, buffer);
}
HBITMAP LoadDIBFromFile(char name[])
{
HBITMAP bm;
BITMAPFILEHEADER bfh;
BITMAPINFO *bi;
VOID *data;
int bytesRead;
HANDLE f = CreateFile(name, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
ReadFile(f, &bfh, 14, (LPDWORD)&bytesRead, NULL);
if (bfh.bfType!=0x4d42)
{
fclose(f);
return NULL;
}
bi = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, bfh.bfOffBits-14);
ReadFile(f, bi, bfh.bfOffBits-14, (LPDWORD)&bytesRead, NULL);
bm = CreateDIBSection(NULL, bi, DIB_RGB_COLORS, &data, NULL, 0);
ReadFile(f, data, bfh.bfSize-bfh.bfOffBits, (LPDWORD)&bytesRead, NULL);
CloseHandle(f);
HeapFree(GetProcessHeap(), 0, bi);
return bm;
}

34
reactos/base/applications/paint/dib.h Executable file → Normal file
View File

@ -1,17 +1,17 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dib.h
* PURPOSE: Some DIB related functions
* PROGRAMMERS: Benedikt Freisen
*/
HBITMAP CreateDIBWithProperties(int width, int height);
int GetDIBWidth(HBITMAP hbm);
int GetDIBHeight(HBITMAP hbm);
void SaveDIBToFile(HBITMAP hbm, char name[], HDC hdc);
HBITMAP LoadDIBFromFile(char name[]);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: dib.h
* PURPOSE: Some DIB related functions
* PROGRAMMERS: Benedikt Freisen
*/
HBITMAP CreateDIBWithProperties(int width, int height);
int GetDIBWidth(HBITMAP hbm);
int GetDIBHeight(HBITMAP hbm);
void SaveDIBToFile(HBITMAP hbm, char name[], HDC hdc);
HBITMAP LoadDIBFromFile(char name[]);

404
reactos/base/applications/paint/drawing.c Executable file → Normal file
View File

@ -1,202 +1,202 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: drawing.c
* PURPOSE: The drawing functions used by the tools
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
/* FUNCTIONS ********************************************************/
void Line(HDC hdc, short x1, short y1, short x2, short y2, int color, int thickness)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, color));
MoveToEx(hdc, x1, y1, NULL);
LineTo(hdc, x2, y2);
DeleteObject(SelectObject(hdc, oldPen));
}
void Rect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, fg));
LOGBRUSH logbrush;
if (filled) logbrush.lbStyle = BS_SOLID; else logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = bg;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Rectangle(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void Ellp(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, fg));
LOGBRUSH logbrush;
if (filled) logbrush.lbStyle = BS_SOLID; else logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = bg;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Ellipse(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void RRect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, fg));
LOGBRUSH logbrush;
if (filled) logbrush.lbStyle = BS_SOLID; else logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = bg;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
RoundRect(hdc, x1, y1, x2, y2, 16, 16);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void Fill(HDC hdc, int x, int y, int color)
{
HBRUSH oldBrush = SelectObject(hdc, CreateSolidBrush(color));
ExtFloodFill(hdc, x, y, GetPixel(hdc, x, y), FLOODFILLSURFACE);
DeleteObject(SelectObject(hdc, oldBrush));
}
void Erase(HDC hdc, short x1, short y1, short x2, short y2, int color, int radius)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, 1, color));
HBRUSH oldBrush = SelectObject(hdc, CreateSolidBrush(color));
short a;
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-radius+1, (y1*(100-a)+y2*a)/100-radius+1, (x1*(100-a)+x2*a)/100+radius+1, (y1*(100-a)+y2*a)/100+radius+1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void Airbrush(HDC hdc, short x, short y, int color, int r)
{
short a;
short b;
for (b=-r; b<=r; b++) for (a=-r; a<=r; a++) if ((a*a+b*b<=r*r)&&(rand()%4==0)) SetPixel(hdc, x+a, y+b, color);
}
void Brush(HDC hdc, short x1, short y1, short x2, short y2, int color, int style)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, 1, color));
HBRUSH oldBrush = SelectObject(hdc, CreateSolidBrush(color));
short a;
switch (style)
{
case 0:
for (a=0; a<=100; a++)
Ellipse(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100-3, (x1*(100-a)+x2*a)/100+4, (y1*(100-a)+y2*a)/100+4);
break;
case 1:
for (a=0; a<=100; a++)
Ellipse(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100-1, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100+3);
break;
case 2:
MoveToEx(hdc, x1, y1, NULL);
LineTo(hdc, x2, y2);
SetPixel(hdc, x2, y2, color);
break;
case 3:
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100-3, (x1*(100-a)+x2*a)/100+5, (y1*(100-a)+y2*a)/100+5);
break;
case 4:
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-2, (y1*(100-a)+y2*a)/100-2, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100+3);
break;
case 5:
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100-1, (x1*(100-a)+x2*a)/100+1, (y1*(100-a)+y2*a)/100+1);
break;
case 6:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100+5, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+5, (y1*(100-a)+y2*a)/100-3);
}
break;
case 7:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-2, (y1*(100-a)+y2*a)/100+3, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100-2);
}
break;
case 8:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100+1, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+1, (y1*(100-a)+y2*a)/100-1);
}
break;
case 9:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100-3, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+5, (y1*(100-a)+y2*a)/100+5);
}
break;
case 10:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-2, (y1*(100-a)+y2*a)/100-2, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100+3);
}
break;
case 11:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100-1, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+1, (y1*(100-a)+y2*a)/100+1);
}
break;
}
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void RectSel(HDC hdc, short x1, short y1, short x2, short y2)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_DOT, 1, 0x00000000));
LOGBRUSH logbrush;
logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = 0;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Rectangle(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void SelectionFrame(HDC hdc, int x1, int y1, int x2, int y2)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_DOT, 1, 0x00000000));
LOGBRUSH logbrush;
logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = 0;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Rectangle(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
oldPen = SelectObject(hdc, CreatePen(PS_SOLID, 1, 0x00000000));
oldBrush = SelectObject(hdc, CreateSolidBrush(0x00000000));
Rectangle(hdc, x1-1, y1-1, x1+2, y1+2);
Rectangle(hdc, x2-2, y1-1, x2+2, y1+2);
Rectangle(hdc, x1-1, y2-2, x1+2, y2+1);
Rectangle(hdc, x2-2, y2-2, x2+2, y2+1);
Rectangle(hdc, (x1+x2)/2-1, y1-1, (x1+x2)/2+2, y1+2);
Rectangle(hdc, (x1+x2)/2-1, y2-2, (x1+x2)/2+2, y2+1);
Rectangle(hdc, x1-1, (y1+y2)/2-1, x1+2, (y1+y2)/2+2);
Rectangle(hdc, x2-2, (y1+y2)/2-1, x2+1, (y1+y2)/2+2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: drawing.c
* PURPOSE: The drawing functions used by the tools
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
/* FUNCTIONS ********************************************************/
void Line(HDC hdc, short x1, short y1, short x2, short y2, int color, int thickness)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, color));
MoveToEx(hdc, x1, y1, NULL);
LineTo(hdc, x2, y2);
DeleteObject(SelectObject(hdc, oldPen));
}
void Rect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, fg));
LOGBRUSH logbrush;
if (filled) logbrush.lbStyle = BS_SOLID; else logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = bg;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Rectangle(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void Ellp(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, fg));
LOGBRUSH logbrush;
if (filled) logbrush.lbStyle = BS_SOLID; else logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = bg;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Ellipse(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void RRect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, thickness, fg));
LOGBRUSH logbrush;
if (filled) logbrush.lbStyle = BS_SOLID; else logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = bg;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
RoundRect(hdc, x1, y1, x2, y2, 16, 16);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void Fill(HDC hdc, int x, int y, int color)
{
HBRUSH oldBrush = SelectObject(hdc, CreateSolidBrush(color));
ExtFloodFill(hdc, x, y, GetPixel(hdc, x, y), FLOODFILLSURFACE);
DeleteObject(SelectObject(hdc, oldBrush));
}
void Erase(HDC hdc, short x1, short y1, short x2, short y2, int color, int radius)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, 1, color));
HBRUSH oldBrush = SelectObject(hdc, CreateSolidBrush(color));
short a;
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-radius+1, (y1*(100-a)+y2*a)/100-radius+1, (x1*(100-a)+x2*a)/100+radius+1, (y1*(100-a)+y2*a)/100+radius+1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void Airbrush(HDC hdc, short x, short y, int color, int r)
{
short a;
short b;
for (b=-r; b<=r; b++) for (a=-r; a<=r; a++) if ((a*a+b*b<=r*r)&&(rand()%4==0)) SetPixel(hdc, x+a, y+b, color);
}
void Brush(HDC hdc, short x1, short y1, short x2, short y2, int color, int style)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_SOLID, 1, color));
HBRUSH oldBrush = SelectObject(hdc, CreateSolidBrush(color));
short a;
switch (style)
{
case 0:
for (a=0; a<=100; a++)
Ellipse(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100-3, (x1*(100-a)+x2*a)/100+4, (y1*(100-a)+y2*a)/100+4);
break;
case 1:
for (a=0; a<=100; a++)
Ellipse(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100-1, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100+3);
break;
case 2:
MoveToEx(hdc, x1, y1, NULL);
LineTo(hdc, x2, y2);
SetPixel(hdc, x2, y2, color);
break;
case 3:
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100-3, (x1*(100-a)+x2*a)/100+5, (y1*(100-a)+y2*a)/100+5);
break;
case 4:
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-2, (y1*(100-a)+y2*a)/100-2, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100+3);
break;
case 5:
for (a=0; a<=100; a++)
Rectangle(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100-1, (x1*(100-a)+x2*a)/100+1, (y1*(100-a)+y2*a)/100+1);
break;
case 6:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100+5, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+5, (y1*(100-a)+y2*a)/100-3);
}
break;
case 7:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-2, (y1*(100-a)+y2*a)/100+3, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100-2);
}
break;
case 8:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100+1, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+1, (y1*(100-a)+y2*a)/100-1);
}
break;
case 9:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-3, (y1*(100-a)+y2*a)/100-3, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+5, (y1*(100-a)+y2*a)/100+5);
}
break;
case 10:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-2, (y1*(100-a)+y2*a)/100-2, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+3, (y1*(100-a)+y2*a)/100+3);
}
break;
case 11:
for (a=0; a<=100; a++)
{
MoveToEx(hdc, (x1*(100-a)+x2*a)/100-1, (y1*(100-a)+y2*a)/100-1, NULL);
LineTo(hdc, (x1*(100-a)+x2*a)/100+1, (y1*(100-a)+y2*a)/100+1);
}
break;
}
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void RectSel(HDC hdc, short x1, short y1, short x2, short y2)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_DOT, 1, 0x00000000));
LOGBRUSH logbrush;
logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = 0;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Rectangle(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
void SelectionFrame(HDC hdc, int x1, int y1, int x2, int y2)
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_DOT, 1, 0x00000000));
LOGBRUSH logbrush;
logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = 0;
logbrush.lbHatch = 0;
HBRUSH oldBrush = SelectObject(hdc, CreateBrushIndirect(&logbrush));
Rectangle(hdc, x1, y1, x2, y2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
oldPen = SelectObject(hdc, CreatePen(PS_SOLID, 1, 0x00000000));
oldBrush = SelectObject(hdc, CreateSolidBrush(0x00000000));
Rectangle(hdc, x1-1, y1-1, x1+2, y1+2);
Rectangle(hdc, x2-2, y1-1, x2+2, y1+2);
Rectangle(hdc, x1-1, y2-2, x1+2, y2+1);
Rectangle(hdc, x2-2, y2-2, x2+2, y2+1);
Rectangle(hdc, (x1+x2)/2-1, y1-1, (x1+x2)/2+2, y1+2);
Rectangle(hdc, (x1+x2)/2-1, y2-2, (x1+x2)/2+2, y2+1);
Rectangle(hdc, x1-1, (y1+y2)/2-1, x1+2, (y1+y2)/2+2);
Rectangle(hdc, x2-2, (y1+y2)/2-1, x2+1, (y1+y2)/2+2);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}

54
reactos/base/applications/paint/drawing.h Executable file → Normal file
View File

@ -1,27 +1,27 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: drawing.h
* PURPOSE: The drawing functions used by the tools
* PROGRAMMERS: Benedikt Freisen
*/
void Line(HDC hdc, short x1, short y1, short x2, short y2, int color, int thickness);
void Rect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled);
void Ellp(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled);
void RRect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled);
void Fill(HDC hdc, int x, int y, int color);
void Erase(HDC hdc, short x1, short y1, short x2, short y2, int color, int radius);
void Airbrush(HDC hdc, short x, short y, int color, int r);
void Brush(HDC hdc, short x1, short y1, short x2, short y2, int color, int style);
void RectSel(HDC hdc, short x1, short y1, short x2, short y2);
void SelectionFrame(HDC hdc, int x1, int y1, int x2, int y2);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: drawing.h
* PURPOSE: The drawing functions used by the tools
* PROGRAMMERS: Benedikt Freisen
*/
void Line(HDC hdc, short x1, short y1, short x2, short y2, int color, int thickness);
void Rect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled);
void Ellp(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled);
void RRect(HDC hdc, short x1, short y1, short x2, short y2, int fg, int bg, int thickness, BOOL filled);
void Fill(HDC hdc, int x, int y, int color);
void Erase(HDC hdc, short x1, short y1, short x2, short y2, int color, int radius);
void Airbrush(HDC hdc, short x, short y, int color, int r);
void Brush(HDC hdc, short x1, short y1, short x2, short y2, int color, int style);
void RectSel(HDC hdc, short x1, short y1, short x2, short y2);
void SelectionFrame(HDC hdc, int x1, int y1, int x2, int y2);

146
reactos/base/applications/paint/globalvar.h Executable file → Normal file
View File

@ -1,73 +1,73 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: globalvar.h
* PURPOSE: Declaring global variables for later initialization
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
/* VARIABLES declared in main.c *************************************/
extern HDC hDrawingDC;
extern HDC hSelDC;
extern int *bmAddress;
extern BITMAPINFO bitmapinfo;
extern int imgXRes;
extern int imgYRes;
extern HBITMAP hBms[4];
extern int currInd;
extern int undoSteps;
extern int redoSteps;
extern short startX;
extern short startY;
extern short lastX;
extern short lastY;
extern int lineWidth;
extern int shapeStyle;
extern int brushStyle;
extern int activeTool;
extern int airBrushWidth;
extern int rubberRadius;
extern int transpBg;
extern int zoom;
extern int rectSel_src[4];
extern int rectSel_dest[4];
extern HWND hSelection;
extern HWND hImageArea;
extern HBITMAP hSelBm;
extern int palColors[28];
extern int fgColor;
extern int bgColor;
extern HWND hStatusBar;
extern HWND hScrollbox;
extern HWND hMainWnd;
extern HWND hPalWin;
extern HWND hToolSettings;
extern CHOOSECOLOR choosecolor;
extern OPENFILENAME ofn;
extern OPENFILENAME sfn;
extern HICON hNontranspIcon;
extern HICON hTranspIcon;
extern HCURSOR hCurFill;
extern HCURSOR hCurColor;
extern HCURSOR hCurZoom;
extern HCURSOR hCurPen;
extern HCURSOR hCurAirbrush;
extern HWND hScrlClient;
extern HWND hToolBtn[16];
extern HINSTANCE hProgInstance;
extern char filename[256];
extern char filepathname[1000];
extern BOOL isAFile;
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: globalvar.h
* PURPOSE: Declaring global variables for later initialization
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
/* VARIABLES declared in main.c *************************************/
extern HDC hDrawingDC;
extern HDC hSelDC;
extern int *bmAddress;
extern BITMAPINFO bitmapinfo;
extern int imgXRes;
extern int imgYRes;
extern HBITMAP hBms[4];
extern int currInd;
extern int undoSteps;
extern int redoSteps;
extern short startX;
extern short startY;
extern short lastX;
extern short lastY;
extern int lineWidth;
extern int shapeStyle;
extern int brushStyle;
extern int activeTool;
extern int airBrushWidth;
extern int rubberRadius;
extern int transpBg;
extern int zoom;
extern int rectSel_src[4];
extern int rectSel_dest[4];
extern HWND hSelection;
extern HWND hImageArea;
extern HBITMAP hSelBm;
extern int palColors[28];
extern int fgColor;
extern int bgColor;
extern HWND hStatusBar;
extern HWND hScrollbox;
extern HWND hMainWnd;
extern HWND hPalWin;
extern HWND hToolSettings;
extern CHOOSECOLOR choosecolor;
extern OPENFILENAME ofn;
extern OPENFILENAME sfn;
extern HICON hNontranspIcon;
extern HICON hTranspIcon;
extern HCURSOR hCurFill;
extern HCURSOR hCurColor;
extern HCURSOR hCurZoom;
extern HCURSOR hCurPen;
extern HCURSOR hCurAirbrush;
extern HWND hScrlClient;
extern HWND hToolBtn[16];
extern HINSTANCE hProgInstance;
extern char filename[256];
extern char filepathname[1000];
extern BOOL isAFile;

0
reactos/base/applications/paint/help/Paint.chm Executable file → Normal file
View File

30
reactos/base/applications/paint/help/Paint.hhp Executable file → Normal file
View File

@ -1,15 +1,15 @@
[OPTIONS]
Compatibility=1.1 or later
Compiled file=Paint.chm
Contents file=Table of Contents.hhc
Default topic=usage.html
Display compile progress=No
Language=0x407 Deutsch (Deutschland)
Title=Hilfe zu Paint für ReactOS
[FILES]
tools.html
[INFOTYPES]
[OPTIONS]
Compatibility=1.1 or later
Compiled file=Paint.chm
Contents file=Table of Contents.hhc
Default topic=usage.html
Display compile progress=No
Language=0x407 Deutsch (Deutschland)
Title=Hilfe zu Paint für ReactOS
[FILES]
tools.html
[INFOTYPES]

View File

@ -1,24 +1,24 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<OBJECT type="text/site properties">
<param name="ImageType" value="Folder">
</OBJECT>
<UL>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Benutzung von Paint">
<param name="Local" value="usage.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Werkzeuge in Paint">
<param name="Local" value="tools.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Werkzeugeinstellungen">
<param name="Local" value="settings.html">
</OBJECT>
</UL>
</BODY></HTML>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<OBJECT type="text/site properties">
<param name="ImageType" value="Folder">
</OBJECT>
<UL>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Benutzung von Paint">
<param name="Local" value="usage.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Werkzeuge in Paint">
<param name="Local" value="tools.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Werkzeugeinstellungen">
<param name="Local" value="settings.html">
</OBJECT>
</UL>
</BODY></HTML>

0
reactos/base/applications/paint/help/airbrush.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 556 B

After

Width:  |  Height:  |  Size: 556 B

0
reactos/base/applications/paint/help/appwindow.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

0
reactos/base/applications/paint/help/bezier.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

0
reactos/base/applications/paint/help/brush.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 567 B

After

Width:  |  Height:  |  Size: 567 B

0
reactos/base/applications/paint/help/color.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 497 B

0
reactos/base/applications/paint/help/ellipse.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 561 B

0
reactos/base/applications/paint/help/fill.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 651 B

0
reactos/base/applications/paint/help/freesel.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 401 B

After

Width:  |  Height:  |  Size: 401 B

0
reactos/base/applications/paint/help/line.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 181 B

After

Width:  |  Height:  |  Size: 181 B

0
reactos/base/applications/paint/help/palette.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

0
reactos/base/applications/paint/help/pen.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 591 B

0
reactos/base/applications/paint/help/rect.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 370 B

0
reactos/base/applications/paint/help/rectsel.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

0
reactos/base/applications/paint/help/rrect.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 414 B

After

Width:  |  Height:  |  Size: 414 B

0
reactos/base/applications/paint/help/rubber.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 569 B

After

Width:  |  Height:  |  Size: 569 B

92
reactos/base/applications/paint/help/settings.html Executable file → Normal file
View File

@ -1,46 +1,46 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<Title>Werkzeugeinstellungen</Title>
<style type="text/css">
table { width:100%; }
body { font-family:sans-serif; font-size:12px; }
h1 { color:#4080c0; font-family:sans-serif; font-size:16px; font-style:bold; }
th { background-color:#4080c0; color:#ffffff; font-size:14px; font-style:bold; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
td { background-color:#f0f0f0; font-size:12px; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
</style>
</HEAD>
<BODY>
<h1>Werkzeugeinstellungen</h1>
<p>
Im Kapitel <a href="tools.html">Werkzeuge in Paint</a> wurden die Werkzeuge, die Ihnen in <b>Paint für ReactOS</b> zur Verfügung stehen, kurz vorgestellt. Einige von ihnen erlauben weitere Einstellungen, um z.B. Liniendicke, Pinselart u.Ä. genauer steuern zu können.
</p>
<table>
<tr><th>Option</th>
<th>Beschreibung</th></tr>
<tr><td><img src="settings1.png" alt=""></td>
<td><b>Transparenz</b> - Die obere Einstellung steht für <i>nicht transparent</i>, die untere steht für <i>transparent</i>. Bei den Auswahlwerkzeugen bewirkt die transparente Einstellung, dass Stelen in der Auswahl, die der Hintergrundfarbe entsprechen, nicht gezeichnet werden. Das Bild dahinter scheint daher durch.<br>Beim Textwerkzeug wird standardmäßig ein Rechteck in der Hintergrundfarbe unter den Text gelegt. Bei der transparenten Einstellung hingegen wird der Text direkt auf das Bild geschrieben.</td></tr>
<tr><td><img src="settings2.png" alt=""></td>
<td><b>Radiererbreite</b> - Lässt Sie die Breite des Radierwerkzeuges wählen. Die Kästchen entsprechen 4, 6, 8 und 10 Pixeln.</td></tr>
<tr><td><img src="settings3.png" alt=""></td>
<td><b>Pinselstil</b> - Wählen Sie eine der abgebildeten Pinselformen. Das Pinselwerkzeug zeichnet von nun an mit der gewählten Form.</td></tr>
<tr><td><img src="settings4.png" alt=""></td>
<td><b>Sprühradius</b> - Wählen Sie in dem Feld den Sprühradius aus, den Sie fortan mit der Sprühdose verwenden möchten.</td></tr>
<tr><td><img src="settings5.png" alt=""></td>
<td><b>Linienbreite</b> - Aus diesem Feld können Sie per Mausklick eine Linienbreite zwischen 1 und 5 Pixeln auswählen. Diese Einstellung beeinflusst die Werkzeuge <i>Linie</i>, <i>Bezier-Kurve</i>, <i>Rechteck</i>, <i>Polygon</i>, <i>Ellipse</i> und <i>abgerundetes Rechteck</i>.</td></tr>
<tr><td><img src="settings6.png" alt=""></td>
<td><b>Füllart</b> - Aus diesem Feld können Sie eine von drei Füllarten auswahlen. Bei der ersten Einstellung wird nur der Rahmen gezeichnet. Die zweite Einstellung füllt zudem den Innenraum der Form mit der aktuellen Hintergrundfarbe. Die dritte Einstellung zeichnet eine ausgefüllte Form in der Vordergrundfarbe ohne Rahmen. Diese Einstellungen wirken sich auf das <i>Rechteck</i>, das <i>Polygon</i>, die <i>Ellipse</i> und das <i>abgerundete Rechteck</i> aus.</td></tr>
</table>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<Title>Werkzeugeinstellungen</Title>
<style type="text/css">
table { width:100%; }
body { font-family:sans-serif; font-size:12px; }
h1 { color:#4080c0; font-family:sans-serif; font-size:16px; font-style:bold; }
th { background-color:#4080c0; color:#ffffff; font-size:14px; font-style:bold; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
td { background-color:#f0f0f0; font-size:12px; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
</style>
</HEAD>
<BODY>
<h1>Werkzeugeinstellungen</h1>
<p>
Im Kapitel <a href="tools.html">Werkzeuge in Paint</a> wurden die Werkzeuge, die Ihnen in <b>Paint für ReactOS</b> zur Verfügung stehen, kurz vorgestellt. Einige von ihnen erlauben weitere Einstellungen, um z.B. Liniendicke, Pinselart u.Ä. genauer steuern zu können.
</p>
<table>
<tr><th>Option</th>
<th>Beschreibung</th></tr>
<tr><td><img src="settings1.png" alt=""></td>
<td><b>Transparenz</b> - Die obere Einstellung steht für <i>nicht transparent</i>, die untere steht für <i>transparent</i>. Bei den Auswahlwerkzeugen bewirkt die transparente Einstellung, dass Stelen in der Auswahl, die der Hintergrundfarbe entsprechen, nicht gezeichnet werden. Das Bild dahinter scheint daher durch.<br>Beim Textwerkzeug wird standardmäßig ein Rechteck in der Hintergrundfarbe unter den Text gelegt. Bei der transparenten Einstellung hingegen wird der Text direkt auf das Bild geschrieben.</td></tr>
<tr><td><img src="settings2.png" alt=""></td>
<td><b>Radiererbreite</b> - Lässt Sie die Breite des Radierwerkzeuges wählen. Die Kästchen entsprechen 4, 6, 8 und 10 Pixeln.</td></tr>
<tr><td><img src="settings3.png" alt=""></td>
<td><b>Pinselstil</b> - Wählen Sie eine der abgebildeten Pinselformen. Das Pinselwerkzeug zeichnet von nun an mit der gewählten Form.</td></tr>
<tr><td><img src="settings4.png" alt=""></td>
<td><b>Sprühradius</b> - Wählen Sie in dem Feld den Sprühradius aus, den Sie fortan mit der Sprühdose verwenden möchten.</td></tr>
<tr><td><img src="settings5.png" alt=""></td>
<td><b>Linienbreite</b> - Aus diesem Feld können Sie per Mausklick eine Linienbreite zwischen 1 und 5 Pixeln auswählen. Diese Einstellung beeinflusst die Werkzeuge <i>Linie</i>, <i>Bezier-Kurve</i>, <i>Rechteck</i>, <i>Polygon</i>, <i>Ellipse</i> und <i>abgerundetes Rechteck</i>.</td></tr>
<tr><td><img src="settings6.png" alt=""></td>
<td><b>Füllart</b> - Aus diesem Feld können Sie eine von drei Füllarten auswahlen. Bei der ersten Einstellung wird nur der Rahmen gezeichnet. Die zweite Einstellung füllt zudem den Innenraum der Form mit der aktuellen Hintergrundfarbe. Die dritte Einstellung zeichnet eine ausgefüllte Form in der Vordergrundfarbe ohne Rahmen. Diese Einstellungen wirken sich auf das <i>Rechteck</i>, das <i>Polygon</i>, die <i>Ellipse</i> und das <i>abgerundete Rechteck</i> aus.</td></tr>
</table>
</BODY>
</HTML>

0
reactos/base/applications/paint/help/settings1.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

0
reactos/base/applications/paint/help/settings2.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 850 B

After

Width:  |  Height:  |  Size: 850 B

0
reactos/base/applications/paint/help/settings3.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 967 B

After

Width:  |  Height:  |  Size: 967 B

0
reactos/base/applications/paint/help/settings4.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
reactos/base/applications/paint/help/settings5.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 834 B

After

Width:  |  Height:  |  Size: 834 B

0
reactos/base/applications/paint/help/settings6.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 864 B

After

Width:  |  Height:  |  Size: 864 B

0
reactos/base/applications/paint/help/shape.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 455 B

After

Width:  |  Height:  |  Size: 455 B

0
reactos/base/applications/paint/help/text.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 621 B

0
reactos/base/applications/paint/help/toolbox.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

208
reactos/base/applications/paint/help/tools.html Executable file → Normal file
View File

@ -1,104 +1,104 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<Title>Werkzeuge in Paint</Title>
<style type="text/css">
table { width:100%; }
body { font-family:sans-serif; font-size:12px; }
h1 { color:#4080c0; font-family:sans-serif; font-size:16px; font-style:bold; }
th { background-color:#4080c0; color:#ffffff; font-size:14px; font-style:bold; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
td { background-color:#f0f0f0; font-size:12px; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
</style>
</HEAD>
<BODY>
<h1>Werkzeuge in Paint</h1>
<p>
<b>Paint für ReactOS</b> stellt ihnen zum Bearbeiten ihrer Bilder zahlreiche <i>Werkzeuge</i> zur Verfügung. Um eines der
Werkzeuge auszuwählen, klicken Sie bitte auf das entsprechende Symbol im <i>Werkzeugkasten</i>, der sich üblicherweise
auf der linken Seite des Fensters befindet. Es folgt eine Auflistung der Ihnen zur Verfügung stehenden
Werkzeuge mit jeweils einer kurzen Beschreibung.
</p>
<table>
<tr><th>Werkzeug</th>
<th>Beschreibung</th></tr>
<tr><td align="center"><img src="freesel.png" alt=""></td>
<td>Die <i>freie Auswahl</i> ermöglicht es Ihnen, einen beliebigen Bereich des Bildes auszuwählen. Drücken Sie
dazu im Bild die linke Maustaste und umfahren Sie mit der gedrückten Maustaste den Bereich, den Sie auswählen
möchten. Wenn Sie die Maustaste nun loslassen wird der Bereich automatisch in eine geschlossene Auswahl
umgewandelt.</td></tr>
<tr><td align="center"><img src="rectsel.png" alt=""></td>
<td>Die <i>rechteckige Auswahl</i> ermöglicht es Ihnen, im Bild einen beliebigen rechteckigen Bereich
auszuwählen. Drücken Sie dazu im Bild die linke Maustaste und ziehen Sie die Maus zur diagonal
gegenüberliegenden Seite des gewünschten Rechtecks. Wenn Sie die Maustaste loslassen, erscheint sie soeben
erstellte Auswahl.</td></tr>
<tr><td align="center"><img src="rubber.png" alt=""></td>
<td>Der <i>Radierer</i> erlaubt es Ihnen, mit der Hintergrundfarbe zu Malen, um Teile des Bildes zu löschen.
Möchten Sie das gesamte Bild löschen, verwenden Sie bitte den Menüeintrag <i>Bild löschen</i> im Menü
<i>Bild</i>.*</td></tr>
<tr><td align="center"><img src="fill.png" alt=""></td>
<td>Mit dem <i>Füllwerkzeug</i> können Sie einfarbige Flächen einfärben. Klicken Sie dazu an eine beliebige Stelle in der Fläche.*</td></tr>
<tr><td align="center"><img src="color.png" alt=""></td>
<td>Die <i>Pipette</i> lässt Sie die Farbe an einer bestimmten Position im Bild aufnehmen. Klicken Sie dazu an die Stelle im Bild. Wenn Sie die Maustaste loslassen, wird die aktuelle Vorder-/Hintergrundfarbe auf die Farbe des angeklickten Pixels gesetzt.*</td></tr>
<tr><td align="center"><img src="zoom.png" alt=""></td>
<td>Mit dem <i>Vergrößerungswerkzeug</i> können Sie die Ansicht des Bildes vergrößern (Linksklick) und verkleinern (Rechtsklick).</td></tr>
<tr><td align="center"><img src="pen.png" alt=""></td>
<td>Der <i>Stift</i> zeichnet einen dünnen Strich entlang der Linie, die Sie bei gedrückter Maustaste mit der Maus fahren. Mit der jeweils anderen Maustaste können Sie den Zeichenvorgang jederzeit Abbrechen und das Bild zurücksetzen.*</td></tr>
<tr><td align="center"><img src="brush.png" alt=""></td>
<td>Der <i>Pinsel</i> erweitert den Stift um die Möglichkeit, Zeichendicke und Zeichenform auszuwählen. Nähere Informationen hierzu entnehmen Sie bitte dem Kapitel <a href="settings.html">Werkzeugeinstellungen</a>.*</td></tr>
<tr><td align="center"><img src="airbrush.png" alt=""></td>
<td>Die <i>Sprühdose</i> kann verwendet werden, um weit gestreute Linien zu zeichnen. Die Dichte der Linie ist dabei von der Geschwindigkeit abhängig mit der Sie die Maus bewegen.*</td></tr>
<tr><td align="center"><img src="text.png" alt=""></td>
<td><i>Textwerkzeug</i></td></tr>
<tr><td align="center"><img src="line.png" alt=""></td>
<td>Eine gerade <i>Linie</i> zeichnen Sie, indem Sie zunächst die linke Maustaste drücken, mit gedrückter Maustaste zum Zielpunkt fahren und dort die Maustaste wieder loslassen.*</td></tr>
<tr><td align="center"><img src="bezier.png" alt=""></td>
<td><i>Bezier-Kurve</i>*</td></tr>
<tr><td align="center"><img src="rect.png" alt=""></td>
<td>Um ein <i>Rechteck</i> zu zeichnen, Drücken Sie die linke Maustaste. Fahren Sie mit der Maus bei gedrückter Maustaste in die diagonal gegenüberliegende Ecke und lassen Sie die Maustaste los.*</td></tr>
<tr><td align="center"><img src="shape.png" alt=""></td>
<td><i>Polygon</i>*</td></tr>
<tr><td align="center"><img src="ellipse.png" alt=""></td>
<td>Eine <i>Ellipse</i> zeichnen Sie, indem Sie mit der Maus, wie unter <i>Rechteck</i> beschrieben, die Diagonale des Außenrechtecks der Ellipse ziehen.*</td></tr>
<tr><td align="center"><img src="rrect.png" alt=""></td>
<td>Das <i>abgerundete Rechteck</i> verhält sich wie das Rechteck. Sie ziehen mit der Maus die Diagonale des Rechtecks, das Sie zeichnen möchten.*</td></tr>
</table>
<p>
* Dieses Wekzeug kann auch mit der rechten Maustaste verwendet werden. Vorder- und Hintergrundfarbe werden in diesem Fall vertauscht verwendet.
</p>
<p>
Viele Werkzeuge erlauben daruber hinaus weitere Einstellungen. Eine Liste dieser Einstellungsmöglichkeiten entnehmen Sie bitte dem Kapitel <a href="settings.html">Werkzeugeinstellungen</a>.
</p>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<Title>Werkzeuge in Paint</Title>
<style type="text/css">
table { width:100%; }
body { font-family:sans-serif; font-size:12px; }
h1 { color:#4080c0; font-family:sans-serif; font-size:16px; font-style:bold; }
th { background-color:#4080c0; color:#ffffff; font-size:14px; font-style:bold; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
td { background-color:#f0f0f0; font-size:12px; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
</style>
</HEAD>
<BODY>
<h1>Werkzeuge in Paint</h1>
<p>
<b>Paint für ReactOS</b> stellt ihnen zum Bearbeiten ihrer Bilder zahlreiche <i>Werkzeuge</i> zur Verfügung. Um eines der
Werkzeuge auszuwählen, klicken Sie bitte auf das entsprechende Symbol im <i>Werkzeugkasten</i>, der sich üblicherweise
auf der linken Seite des Fensters befindet. Es folgt eine Auflistung der Ihnen zur Verfügung stehenden
Werkzeuge mit jeweils einer kurzen Beschreibung.
</p>
<table>
<tr><th>Werkzeug</th>
<th>Beschreibung</th></tr>
<tr><td align="center"><img src="freesel.png" alt=""></td>
<td>Die <i>freie Auswahl</i> ermöglicht es Ihnen, einen beliebigen Bereich des Bildes auszuwählen. Drücken Sie
dazu im Bild die linke Maustaste und umfahren Sie mit der gedrückten Maustaste den Bereich, den Sie auswählen
möchten. Wenn Sie die Maustaste nun loslassen wird der Bereich automatisch in eine geschlossene Auswahl
umgewandelt.</td></tr>
<tr><td align="center"><img src="rectsel.png" alt=""></td>
<td>Die <i>rechteckige Auswahl</i> ermöglicht es Ihnen, im Bild einen beliebigen rechteckigen Bereich
auszuwählen. Drücken Sie dazu im Bild die linke Maustaste und ziehen Sie die Maus zur diagonal
gegenüberliegenden Seite des gewünschten Rechtecks. Wenn Sie die Maustaste loslassen, erscheint sie soeben
erstellte Auswahl.</td></tr>
<tr><td align="center"><img src="rubber.png" alt=""></td>
<td>Der <i>Radierer</i> erlaubt es Ihnen, mit der Hintergrundfarbe zu Malen, um Teile des Bildes zu löschen.
Möchten Sie das gesamte Bild löschen, verwenden Sie bitte den Menüeintrag <i>Bild löschen</i> im Menü
<i>Bild</i>.*</td></tr>
<tr><td align="center"><img src="fill.png" alt=""></td>
<td>Mit dem <i>Füllwerkzeug</i> können Sie einfarbige Flächen einfärben. Klicken Sie dazu an eine beliebige Stelle in der Fläche.*</td></tr>
<tr><td align="center"><img src="color.png" alt=""></td>
<td>Die <i>Pipette</i> lässt Sie die Farbe an einer bestimmten Position im Bild aufnehmen. Klicken Sie dazu an die Stelle im Bild. Wenn Sie die Maustaste loslassen, wird die aktuelle Vorder-/Hintergrundfarbe auf die Farbe des angeklickten Pixels gesetzt.*</td></tr>
<tr><td align="center"><img src="zoom.png" alt=""></td>
<td>Mit dem <i>Vergrößerungswerkzeug</i> können Sie die Ansicht des Bildes vergrößern (Linksklick) und verkleinern (Rechtsklick).</td></tr>
<tr><td align="center"><img src="pen.png" alt=""></td>
<td>Der <i>Stift</i> zeichnet einen dünnen Strich entlang der Linie, die Sie bei gedrückter Maustaste mit der Maus fahren. Mit der jeweils anderen Maustaste können Sie den Zeichenvorgang jederzeit Abbrechen und das Bild zurücksetzen.*</td></tr>
<tr><td align="center"><img src="brush.png" alt=""></td>
<td>Der <i>Pinsel</i> erweitert den Stift um die Möglichkeit, Zeichendicke und Zeichenform auszuwählen. Nähere Informationen hierzu entnehmen Sie bitte dem Kapitel <a href="settings.html">Werkzeugeinstellungen</a>.*</td></tr>
<tr><td align="center"><img src="airbrush.png" alt=""></td>
<td>Die <i>Sprühdose</i> kann verwendet werden, um weit gestreute Linien zu zeichnen. Die Dichte der Linie ist dabei von der Geschwindigkeit abhängig mit der Sie die Maus bewegen.*</td></tr>
<tr><td align="center"><img src="text.png" alt=""></td>
<td><i>Textwerkzeug</i></td></tr>
<tr><td align="center"><img src="line.png" alt=""></td>
<td>Eine gerade <i>Linie</i> zeichnen Sie, indem Sie zunächst die linke Maustaste drücken, mit gedrückter Maustaste zum Zielpunkt fahren und dort die Maustaste wieder loslassen.*</td></tr>
<tr><td align="center"><img src="bezier.png" alt=""></td>
<td><i>Bezier-Kurve</i>*</td></tr>
<tr><td align="center"><img src="rect.png" alt=""></td>
<td>Um ein <i>Rechteck</i> zu zeichnen, Drücken Sie die linke Maustaste. Fahren Sie mit der Maus bei gedrückter Maustaste in die diagonal gegenüberliegende Ecke und lassen Sie die Maustaste los.*</td></tr>
<tr><td align="center"><img src="shape.png" alt=""></td>
<td><i>Polygon</i>*</td></tr>
<tr><td align="center"><img src="ellipse.png" alt=""></td>
<td>Eine <i>Ellipse</i> zeichnen Sie, indem Sie mit der Maus, wie unter <i>Rechteck</i> beschrieben, die Diagonale des Außenrechtecks der Ellipse ziehen.*</td></tr>
<tr><td align="center"><img src="rrect.png" alt=""></td>
<td>Das <i>abgerundete Rechteck</i> verhält sich wie das Rechteck. Sie ziehen mit der Maus die Diagonale des Rechtecks, das Sie zeichnen möchten.*</td></tr>
</table>
<p>
* Dieses Wekzeug kann auch mit der rechten Maustaste verwendet werden. Vorder- und Hintergrundfarbe werden in diesem Fall vertauscht verwendet.
</p>
<p>
Viele Werkzeuge erlauben daruber hinaus weitere Einstellungen. Eine Liste dieser Einstellungsmöglichkeiten entnehmen Sie bitte dem Kapitel <a href="settings.html">Werkzeugeinstellungen</a>.
</p>
</BODY>
</HTML>

76
reactos/base/applications/paint/help/usage.html Executable file → Normal file
View File

@ -1,38 +1,38 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<Title>Benutzung von Paint</Title>
<style type="text/css">
table { width:100%; }
body { font-family:sans-serif; font-size:12px; }
h1 { color:#4080c0; font-family:sans-serif; font-size:16px; font-style:bold; }
th { background-color:#4080c0; color:#ffffff; font-size:14px; font-style:bold; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
td { background-color:#f0f0f0; font-size:12px; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
</style>
</HEAD>
<BODY>
<h1>Benutzung von Paint</h1>
<p>
Die Hauptbedienelemente von <b>Paint für ReactOS</b> sind die <i>Farbpalette</i>, der <i>Werkzeugkasten</i> und das Feld für die <i>Werkzeugeinstellungen</i>. Diese Bedienelemente können ohne Hilfsmittel wie die Tastaturmaus nicht über die Tastatur, sondern ausschließlich über die Maus bedient werden.
</p>
<p>
Es folgt ein Bildschirmfoto des Hauptfensters, in dem die genannten Elemente rot markiert und beschriftet sind.
</p>
<p><img src="appwindow.png" alt=""></p>
<p><table>
<tr><th>Farbpalette</th></tr>
<tr><td><img src="palette.png" alt=""><br>Über die <b>Farbpalette</b> wählen Sie die zum Malen verwendete Vorder- und Hintergrundfarbe. Klicken Sie mit der linken Maustaste auf eine Farbe in der Palette, wird diese als Vordergrundfarbe gesetzt. Wenn Sie sie mit der rechten Maustaste anklicken, wird sie als Hintergrundfarbe gesetzt. Sie können die Farbe an der entsprechenden Stelle in der Palette verändern, indem Sie mit der linken oder rechten Maustaste doppelt klicken.</td></tr>
</table></p>
<p><table>
<tr><th colspan="2">Werkzeugkasten</th></tr>
<tr><td><img src="toolbox.png" alt=""></td><td>Über den <b>Werkzeugkasten</b> können Sie durch anklicken Ihr Malwerkzeug auswählen. Eine Übersicht über die vorhandenen Werkzeuge finden Sie im Kapitel <a href="tools.html">Werkzeuge in Paint</a>. Jedes Werkzeug bringt seine eigenen <i>Werkzeugeinstellungen</i> mit sich.</td></tr>
</table></p>
<p><table>
<tr><th colspan="2">Werkzeugeinstellungen</th></tr>
<tr><td><img src="settings1.png" alt=""></td><td>Viele Werkzeuge erlauben es Ihnen, erweiterte Einstellungen vorzunehmen. Hierzu verwenden Sie das Feld unter dem <i>Werkzeugkasten</i>. Eine Liste aller möglichen Einstellungen aller Werkzeuge finden Sie im Kapitel <a href="settings.html">Werkzeugeinstellungen</a>.</td></tr>
</table></p>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
<Title>Benutzung von Paint</Title>
<style type="text/css">
table { width:100%; }
body { font-family:sans-serif; font-size:12px; }
h1 { color:#4080c0; font-family:sans-serif; font-size:16px; font-style:bold; }
th { background-color:#4080c0; color:#ffffff; font-size:14px; font-style:bold; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
td { background-color:#f0f0f0; font-size:12px; padding:5px; border-width:1px; border-color:#004080; border-style:solid; }
</style>
</HEAD>
<BODY>
<h1>Benutzung von Paint</h1>
<p>
Die Hauptbedienelemente von <b>Paint für ReactOS</b> sind die <i>Farbpalette</i>, der <i>Werkzeugkasten</i> und das Feld für die <i>Werkzeugeinstellungen</i>. Diese Bedienelemente können ohne Hilfsmittel wie die Tastaturmaus nicht über die Tastatur, sondern ausschließlich über die Maus bedient werden.
</p>
<p>
Es folgt ein Bildschirmfoto des Hauptfensters, in dem die genannten Elemente rot markiert und beschriftet sind.
</p>
<p><img src="appwindow.png" alt=""></p>
<p><table>
<tr><th>Farbpalette</th></tr>
<tr><td><img src="palette.png" alt=""><br>Über die <b>Farbpalette</b> wählen Sie die zum Malen verwendete Vorder- und Hintergrundfarbe. Klicken Sie mit der linken Maustaste auf eine Farbe in der Palette, wird diese als Vordergrundfarbe gesetzt. Wenn Sie sie mit der rechten Maustaste anklicken, wird sie als Hintergrundfarbe gesetzt. Sie können die Farbe an der entsprechenden Stelle in der Palette verändern, indem Sie mit der linken oder rechten Maustaste doppelt klicken.</td></tr>
</table></p>
<p><table>
<tr><th colspan="2">Werkzeugkasten</th></tr>
<tr><td><img src="toolbox.png" alt=""></td><td>Über den <b>Werkzeugkasten</b> können Sie durch anklicken Ihr Malwerkzeug auswählen. Eine Übersicht über die vorhandenen Werkzeuge finden Sie im Kapitel <a href="tools.html">Werkzeuge in Paint</a>. Jedes Werkzeug bringt seine eigenen <i>Werkzeugeinstellungen</i> mit sich.</td></tr>
</table></p>
<p><table>
<tr><th colspan="2">Werkzeugeinstellungen</th></tr>
<tr><td><img src="settings1.png" alt=""></td><td>Viele Werkzeuge erlauben es Ihnen, erweiterte Einstellungen vorzunehmen. Hierzu verwenden Sie das Feld unter dem <i>Werkzeugkasten</i>. Eine Liste aller möglichen Einstellungen aller Werkzeuge finden Sie im Kapitel <a href="settings.html">Werkzeugeinstellungen</a>.</td></tr>
</table></p>
</BODY>
</HTML>

0
reactos/base/applications/paint/help/zoom.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 674 B

After

Width:  |  Height:  |  Size: 674 B

222
reactos/base/applications/paint/history.c Executable file → Normal file
View File

@ -1,111 +1,111 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: history.c
* PURPOSE: Undo and redo functionality
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
#include "dib.h"
#include "definitions.h"
/* FUNCTIONS ********************************************************/
void setImgXYRes(int x, int y)
{
if ((imgXRes!=x)||(imgYRes!=y))
{
imgXRes = x;
imgYRes = y;
updateCanvasAndScrollbars();
}
}
void newReversible()
{
DeleteObject(hBms[(currInd+1)%4]);
hBms[(currInd+1)%4] = CopyImage( hBms[currInd], IMAGE_BITMAP, 0, 0, LR_COPYRETURNORG);
currInd = (currInd+1)%4;
if (undoSteps<3) undoSteps++;
redoSteps = 0;
SelectObject(hDrawingDC, hBms[currInd]);
imgXRes = GetDIBWidth(hBms[currInd]);
imgYRes = GetDIBHeight(hBms[currInd]);
}
void undo()
{
if (undoSteps>0)
{
ShowWindow(hSelection, SW_HIDE);
currInd = (currInd+3)%4;
SelectObject(hDrawingDC, hBms[currInd]);
undoSteps--;
if (redoSteps<3) redoSteps++;
setImgXYRes(GetDIBWidth(hBms[currInd]), GetDIBHeight(hBms[currInd]));
}
}
void redo()
{
if (redoSteps>0)
{
ShowWindow(hSelection, SW_HIDE);
currInd = (currInd+1)%4;
SelectObject(hDrawingDC, hBms[currInd]);
redoSteps--;
if (undoSteps<3) undoSteps++;
setImgXYRes(GetDIBWidth(hBms[currInd]), GetDIBHeight(hBms[currInd]));
}
}
void resetToU1()
{
DeleteObject(hBms[currInd]);
hBms[currInd] = CopyImage( hBms[(currInd+3)%4], IMAGE_BITMAP, 0, 0, LR_COPYRETURNORG);
SelectObject(hDrawingDC, hBms[currInd]);
imgXRes = GetDIBWidth(hBms[currInd]);
imgYRes = GetDIBHeight(hBms[currInd]);
}
void clearHistory()
{
undoSteps = 0;
redoSteps = 0;
}
void insertReversible(HBITMAP hbm)
{
DeleteObject(hBms[(currInd+1)%4]);
hBms[(currInd+1)%4] = hbm;
currInd = (currInd+1)%4;
if (undoSteps<3) undoSteps++;
redoSteps = 0;
SelectObject(hDrawingDC, hBms[currInd]);
setImgXYRes(GetDIBWidth(hBms[currInd]), GetDIBHeight(hBms[currInd]));
}
void cropReversible(int x, int y)
{
SelectObject(hDrawingDC, hBms[currInd]);
DeleteObject(hBms[(currInd+1)%4]);
hBms[(currInd+1)%4] = CreateDIBWithProperties(x, y);
currInd = (currInd+1)%4;
if (undoSteps<3) undoSteps++;
redoSteps = 0;
HBITMAP oldBitmap = SelectObject(hSelDC, hBms[currInd]);
HPEN oldPen = SelectObject(hSelDC, CreatePen(PS_SOLID, 1, bgColor));
HBRUSH oldBrush = SelectObject(hSelDC, CreateSolidBrush(bgColor));
Rectangle(hSelDC, 0, 0, x, y);
DeleteObject(SelectObject(hSelDC, oldBrush));
DeleteObject(SelectObject(hSelDC, oldPen));
BitBlt(hDrawingDC, 0, 0, imgXRes, imgYRes, hSelDC, 0, 0, SRCCOPY);
SelectObject(hDrawingDC, SelectObject(hSelDC, oldBitmap));
setImgXYRes(x, y);
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: history.c
* PURPOSE: Undo and redo functionality
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
#include "dib.h"
#include "definitions.h"
/* FUNCTIONS ********************************************************/
void setImgXYRes(int x, int y)
{
if ((imgXRes!=x)||(imgYRes!=y))
{
imgXRes = x;
imgYRes = y;
updateCanvasAndScrollbars();
}
}
void newReversible()
{
DeleteObject(hBms[(currInd+1)%4]);
hBms[(currInd+1)%4] = CopyImage( hBms[currInd], IMAGE_BITMAP, 0, 0, LR_COPYRETURNORG);
currInd = (currInd+1)%4;
if (undoSteps<3) undoSteps++;
redoSteps = 0;
SelectObject(hDrawingDC, hBms[currInd]);
imgXRes = GetDIBWidth(hBms[currInd]);
imgYRes = GetDIBHeight(hBms[currInd]);
}
void undo()
{
if (undoSteps>0)
{
ShowWindow(hSelection, SW_HIDE);
currInd = (currInd+3)%4;
SelectObject(hDrawingDC, hBms[currInd]);
undoSteps--;
if (redoSteps<3) redoSteps++;
setImgXYRes(GetDIBWidth(hBms[currInd]), GetDIBHeight(hBms[currInd]));
}
}
void redo()
{
if (redoSteps>0)
{
ShowWindow(hSelection, SW_HIDE);
currInd = (currInd+1)%4;
SelectObject(hDrawingDC, hBms[currInd]);
redoSteps--;
if (undoSteps<3) undoSteps++;
setImgXYRes(GetDIBWidth(hBms[currInd]), GetDIBHeight(hBms[currInd]));
}
}
void resetToU1()
{
DeleteObject(hBms[currInd]);
hBms[currInd] = CopyImage( hBms[(currInd+3)%4], IMAGE_BITMAP, 0, 0, LR_COPYRETURNORG);
SelectObject(hDrawingDC, hBms[currInd]);
imgXRes = GetDIBWidth(hBms[currInd]);
imgYRes = GetDIBHeight(hBms[currInd]);
}
void clearHistory()
{
undoSteps = 0;
redoSteps = 0;
}
void insertReversible(HBITMAP hbm)
{
DeleteObject(hBms[(currInd+1)%4]);
hBms[(currInd+1)%4] = hbm;
currInd = (currInd+1)%4;
if (undoSteps<3) undoSteps++;
redoSteps = 0;
SelectObject(hDrawingDC, hBms[currInd]);
setImgXYRes(GetDIBWidth(hBms[currInd]), GetDIBHeight(hBms[currInd]));
}
void cropReversible(int x, int y)
{
SelectObject(hDrawingDC, hBms[currInd]);
DeleteObject(hBms[(currInd+1)%4]);
hBms[(currInd+1)%4] = CreateDIBWithProperties(x, y);
currInd = (currInd+1)%4;
if (undoSteps<3) undoSteps++;
redoSteps = 0;
HBITMAP oldBitmap = SelectObject(hSelDC, hBms[currInd]);
HPEN oldPen = SelectObject(hSelDC, CreatePen(PS_SOLID, 1, bgColor));
HBRUSH oldBrush = SelectObject(hSelDC, CreateSolidBrush(bgColor));
Rectangle(hSelDC, 0, 0, x, y);
DeleteObject(SelectObject(hSelDC, oldBrush));
DeleteObject(SelectObject(hSelDC, oldPen));
BitBlt(hDrawingDC, 0, 0, imgXRes, imgYRes, hSelDC, 0, 0, SRCCOPY);
SelectObject(hDrawingDC, SelectObject(hSelDC, oldBitmap));
setImgXYRes(x, y);
}

42
reactos/base/applications/paint/history.h Executable file → Normal file
View File

@ -1,21 +1,21 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: history.h
* PURPOSE: Undo and redo functionality
* PROGRAMMERS: Benedikt Freisen
*/
void newReversible();
void undo();
void redo();
void resetToU1();
void clearHistory();
void insertReversible();
void cropReversible(int x, int y);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: history.h
* PURPOSE: Undo and redo functionality
* PROGRAMMERS: Benedikt Freisen
*/
void newReversible();
void undo();
void redo();
void resetToU1();
void clearHistory();
void insertReversible();
void cropReversible(int x, int y);

30
reactos/base/applications/paint/icons.rc Executable file → Normal file
View File

@ -1,15 +1,15 @@
IDI_APPICON ICON MOVEABLE PURE LOADONCALL DISCARDABLE "icons/paint.ico"
IDB_TOOLBARICONS BITMAP "icons/iconbar.bmp"
IDI_TRANSPARENT ICON "icons/transparent.ico"
IDI_NONTRANSPARENT ICON "icons/nontransparent.ico"
IDC_FILL ICON "icons/fill_cur.ico"
IDC_COLOR ICON "icons/color_cur.ico"
IDC_ZOOM ICON "icons/zoom_cur.ico"
IDC_PEN ICON "icons/pen_cur.ico"
IDC_AIRBRUSH ICON "icons/airbrush_cur.ico"
IDI_HORZSTRETCH ICON "icons/horzstretch.ico"
IDI_VERTSTRETCH ICON "icons/vertstretch.ico"
IDI_APPICON ICON MOVEABLE PURE LOADONCALL DISCARDABLE "icons/paint.ico"
IDB_TOOLBARICONS BITMAP "icons/iconbar.bmp"
IDI_TRANSPARENT ICON "icons/transparent.ico"
IDI_NONTRANSPARENT ICON "icons/nontransparent.ico"
IDC_FILL ICON "icons/fill_cur.ico"
IDC_COLOR ICON "icons/color_cur.ico"
IDC_ZOOM ICON "icons/zoom_cur.ico"
IDC_PEN ICON "icons/pen_cur.ico"
IDC_AIRBRUSH ICON "icons/airbrush_cur.ico"
IDI_HORZSTRETCH ICON "icons/horzstretch.ico"
IDI_VERTSTRETCH ICON "icons/vertstretch.ico"

0
reactos/base/applications/paint/icons/airbrush_cur.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
reactos/base/applications/paint/icons/color_cur.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
reactos/base/applications/paint/icons/fill_cur.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
reactos/base/applications/paint/icons/horzstretch.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 766 B

0
reactos/base/applications/paint/icons/iconbar.bmp Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
reactos/base/applications/paint/icons/pen_cur.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
reactos/base/applications/paint/icons/transparency.xcf Executable file → Normal file
View File

0
reactos/base/applications/paint/icons/transparent.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
reactos/base/applications/paint/icons/vertstretch.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 766 B

0
reactos/base/applications/paint/icons/zoom_cur.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,201 +1,201 @@
/* FILE: ??rospaint??/lang/cs-CZ.rc
* TRANSLATOR: Radek Liska aka Black_Fox (radekliska at gmail dot com)
* UPDATED: 2009-04-28
*/
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
ID_MENU MENU
BEGIN
POPUP "&Soubor"
BEGIN
MENUITEM "Nový\tCtrl+N", IDM_FILENEW
MENUITEM "Otevøít...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Uložit\tCtrl+S", IDM_FILESAVE
MENUITEM "Uložit jako...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Nastavit jako pozadí (vedle sebe)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Nastavit jako pozadí (na støed)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Nastavit jako pozadí (roztáhnout)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Ukonèit\tAlt+F4", IDM_FILEEXIT
END
POPUP "Úpr&avy"
BEGIN
MENUITEM "Zpìt\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Znovu\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Vyjmout\tCtrl+X", IDM_EDITCUT
MENUITEM "Kopírovat\tCtrl+C", IDM_EDITCOPY
MENUITEM "Vložit\tCtrl+V", IDM_EDITPASTE
MENUITEM "Vymazat výbìr\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invertovat výbìr", IDM_EDITINVERTSELECTION
MENUITEM "Vybrat vše\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Kopírovat do...", IDM_EDITCOPYTO
MENUITEM "Vložit z...", IDM_EDITPASTEFROM
END
POPUP "&Zobrazit"
BEGIN
MENUITEM "Panel nástrojù\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Barevná paleta\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Stavový øádek", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Format icon bar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Lupa"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Celá obrazovka\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Obrázek"
BEGIN
MENUITEM "Pøeklopit nebo otoèit...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Zmìnit velikost...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Oøíznout", IDM_IMAGECROP
MENUITEM "Inverovat barvy\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Atributy...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Vymazat obrázek", IDM_IMAGEDELETEIMAGE
MENUITEM "Kreslit neprùhlednì", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Barvy"
BEGIN
MENUITEM "Upravit paletu...", IDM_COLORSEDITPALETTE
END
POPUP "&Nápovìda"
BEGIN
MENUITEM "Témata nápovìdy", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "O programu...", IDM_HELPINFO
END
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Pøeklopit nebo otoèit"
BEGIN
GROUPBOX "Pøeklopit nebo otoèit", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Pøeklopit vodorovnì", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Pøeklopit svisle", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Otoèit o úhel", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Storno", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributy"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Šíøka:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Výška:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Datum zmìny:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Velikost souboru:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Rozlišení:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Jednotka", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Palce", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "Centimetry", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixely", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Barvy", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Èernobílé", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Barvy", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Storno", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Výchozí", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Zmìnit velikost"
BEGIN
GROUPBOX "Zmìnit velikost", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Vodorovnì:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Svisle:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Storno", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Malování"
IDS_WINDOWTITLE, "%s - Malování"
IDS_INFOTITLE, "ReactOS Malování"
IDS_INFOTEXT, "ReactOS Malování je dostupné pod licencí GNU Lesser General Public License (LGPL) verze 3 (viz. www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Chcete uložit provedené zmìny v %s?"
IDS_DEFAULTFILENAME, "Bez názvu.bmp"
IDS_TOOLTIP1, "Volný výbìr"
IDS_TOOLTIP2, "Výbìr"
IDS_TOOLTIP3, "Guma"
IDS_TOOLTIP4, "Vyplnit barvou"
IDS_TOOLTIP5, "Zvolit barvu"
IDS_TOOLTIP6, "Lupa"
IDS_TOOLTIP7, "Tužka"
IDS_TOOLTIP8, "Štìtec"
IDS_TOOLTIP9, "Sprej"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Èára"
IDS_TOOLTIP12, "Beziérova køivka"
IDS_TOOLTIP13, "Obdélník"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Elipsa"
IDS_TOOLTIP16, "Zaoblený obdélník"
IDS_OPENFILTER, "Soubory bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1Všechny soubory (*.*)\1*.*\1"
IDS_SAVEFILTER, "24bitová bitmapa (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/* FILE: ??rospaint??/lang/cs-CZ.rc
* TRANSLATOR: Radek Liska aka Black_Fox (radekliska at gmail dot com)
* UPDATED: 2009-04-28
*/
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
ID_MENU MENU
BEGIN
POPUP "&Soubor"
BEGIN
MENUITEM "Nový\tCtrl+N", IDM_FILENEW
MENUITEM "Otevøít...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Uložit\tCtrl+S", IDM_FILESAVE
MENUITEM "Uložit jako...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Nastavit jako pozadí (vedle sebe)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Nastavit jako pozadí (na støed)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Nastavit jako pozadí (roztáhnout)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Ukonèit\tAlt+F4", IDM_FILEEXIT
END
POPUP "Úpr&avy"
BEGIN
MENUITEM "Zpìt\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Znovu\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Vyjmout\tCtrl+X", IDM_EDITCUT
MENUITEM "Kopírovat\tCtrl+C", IDM_EDITCOPY
MENUITEM "Vložit\tCtrl+V", IDM_EDITPASTE
MENUITEM "Vymazat výbìr\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invertovat výbìr", IDM_EDITINVERTSELECTION
MENUITEM "Vybrat vše\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Kopírovat do...", IDM_EDITCOPYTO
MENUITEM "Vložit z...", IDM_EDITPASTEFROM
END
POPUP "&Zobrazit"
BEGIN
MENUITEM "Panel nástrojù\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Barevná paleta\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Stavový øádek", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Format icon bar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Lupa"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Celá obrazovka\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Obrázek"
BEGIN
MENUITEM "Pøeklopit nebo otoèit...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Zmìnit velikost...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Oøíznout", IDM_IMAGECROP
MENUITEM "Inverovat barvy\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Atributy...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Vymazat obrázek", IDM_IMAGEDELETEIMAGE
MENUITEM "Kreslit neprùhlednì", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Barvy"
BEGIN
MENUITEM "Upravit paletu...", IDM_COLORSEDITPALETTE
END
POPUP "&Nápovìda"
BEGIN
MENUITEM "Témata nápovìdy", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "O programu...", IDM_HELPINFO
END
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Pøeklopit nebo otoèit"
BEGIN
GROUPBOX "Pøeklopit nebo otoèit", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Pøeklopit vodorovnì", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Pøeklopit svisle", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Otoèit o úhel", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Storno", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributy"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Šíøka:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Výška:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Datum zmìny:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Velikost souboru:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Rozlišení:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Jednotka", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Palce", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "Centimetry", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixely", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Barvy", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Èernobílé", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Barvy", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Storno", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Výchozí", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Zmìnit velikost"
BEGIN
GROUPBOX "Zmìnit velikost", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Vodorovnì:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Svisle:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Storno", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Malování"
IDS_WINDOWTITLE, "%s - Malování"
IDS_INFOTITLE, "ReactOS Malování"
IDS_INFOTEXT, "ReactOS Malování je dostupné pod licencí GNU Lesser General Public License (LGPL) verze 3 (viz. www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Chcete uložit provedené zmìny v %s?"
IDS_DEFAULTFILENAME, "Bez názvu.bmp"
IDS_TOOLTIP1, "Volný výbìr"
IDS_TOOLTIP2, "Výbìr"
IDS_TOOLTIP3, "Guma"
IDS_TOOLTIP4, "Vyplnit barvou"
IDS_TOOLTIP5, "Zvolit barvu"
IDS_TOOLTIP6, "Lupa"
IDS_TOOLTIP7, "Tužka"
IDS_TOOLTIP8, "Štìtec"
IDS_TOOLTIP9, "Sprej"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Èára"
IDS_TOOLTIP12, "Beziérova køivka"
IDS_TOOLTIP13, "Obdélník"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Elipsa"
IDS_TOOLTIP16, "Zaoblený obdélník"
IDS_OPENFILTER, "Soubory bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1Všechny soubory (*.*)\1*.*\1"
IDS_SAVEFILTER, "24bitová bitmapa (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

402
reactos/base/applications/paint/lang/de-DE.rc Executable file → Normal file
View File

@ -1,201 +1,201 @@
/*
* German Language resource file / Deutsche Sprachresourcendatei
* Program's initial language / anfängliche Programmsprache, Benedikt Freisen
*/
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
ID_MENU MENU
BEGIN
POPUP "&Datei"
BEGIN
MENUITEM "Neu\tStrg+N", IDM_FILENEW
MENUITEM "Öffnen...\tStrg+O", IDM_FILEOPEN
MENUITEM "Speichern\tStrg+S", IDM_FILESAVE
MENUITEM "Speichern unter...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Als Hintergrund (Fläche)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Als Hintergrund (Zentriert)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Als Hintergrund (Gestreckt)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Beenden\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Bearbeiten"
BEGIN
MENUITEM "Rückgängig\tStrg+Z", IDM_EDITUNDO
MENUITEM "Wiederholen\tStrg+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Ausschneiden\tStrg+X", IDM_EDITCUT
MENUITEM "Kopieren\tStrg+C", IDM_EDITCOPY
MENUITEM "Einfügen\tStrg+V", IDM_EDITPASTE
MENUITEM "Auswahl löschen\tEntf", IDM_EDITDELETESELECTION
MENUITEM "Markierung umkehren", IDM_EDITINVERTSELECTION
MENUITEM "Alles markieren\tStrg+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Kopieren nach...", IDM_EDITCOPYTO
MENUITEM "Einfügen aus...", IDM_EDITPASTEFROM
END
POPUP "&Ansicht"
BEGIN
MENUITEM "Werkzeugkasten\tStrg+W", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Farbpalette\tStrg+F", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Statusleiste", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Formatsymbolleiste", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Gesamtbild\tStrg+G", IDM_VIEWFULLSCREEN
END
POPUP "B&ild"
BEGIN
MENUITEM "Drehen/Spiegeln...\tStrg+D", IDM_IMAGEROTATEMIRROR
MENUITEM "Größe ändern...\tStrg+K", IDM_IMAGECHANGESIZE
MENUITEM "Zuschneiden", IDM_IMAGECROP
MENUITEM "Farben umkehren\tStrg+U", IDM_IMAGEINVERTCOLORS
MENUITEM "Attribute...\tStrg+E", IDM_IMAGEATTRIBUTES
MENUITEM "Bild löschen\tStrg+Umschalt+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Deckend zeichnen", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Farben"
BEGIN
MENUITEM "Palette bearbeiten...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Hilfethemen", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^W", IDM_VIEWTOOLBOX
"^F", IDM_VIEWCOLORPALETTE
"^G", IDM_VIEWFULLSCREEN
"^D", IDM_IMAGEROTATEMIRROR
"^K", IDM_IMAGECHANGESIZE
"^U", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Bild drehen und spiegeln"
BEGIN
GROUPBOX "Spiegeln oder drehen", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Horizontal spiegeln", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Vertikal spiegeln", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Drehen im Winkel von", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Abbrechen", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attribute"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Breite:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Höhe:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Dateidatum:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Dateigröße:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Auflösung:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Nicht verfügbar", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Nicht verfügbar", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Nicht verfügbar", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Maßeinheit", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Zoll", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixel", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Farben", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Schwarzweiß", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Farben", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Abbrechen", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Standard", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Größe ändern"
BEGIN
GROUPBOX "Größe ändern", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertikal:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Abbrechen", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint für ReactOS"
IDS_INFOTEXT, "Paint für ReactOS steht unter der GNU Lesser General Public License (LGPL) Version 3. (siehe www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Möchten Sie die Änderungen an %s speichern?"
IDS_DEFAULTFILENAME, "Unbenannt.bmp"
IDS_TOOLTIP1, "Freie Auswahl"
IDS_TOOLTIP2, "Auswahl"
IDS_TOOLTIP3, "Radierer"
IDS_TOOLTIP4, "Farbfüller"
IDS_TOOLTIP5, "Farbe auswählen"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Stift"
IDS_TOOLTIP8, "Pinsel"
IDS_TOOLTIP9, "Sprühdose"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Linie"
IDS_TOOLTIP12, "Bezier-Kurve"
IDS_TOOLTIP13, "Rechteck"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Abgerundetes Rechteck"
IDS_OPENFILTER, "Bitmapdateien (*.bmp;*.dib)\1*.bmp;*.dib\1Alle Dateien (*.*)\1*.*\1"
IDS_SAVEFILTER, "24-Bit-Bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* German Language resource file / Deutsche Sprachresourcendatei
* Program's initial language / anfängliche Programmsprache, Benedikt Freisen
*/
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
ID_MENU MENU
BEGIN
POPUP "&Datei"
BEGIN
MENUITEM "Neu\tStrg+N", IDM_FILENEW
MENUITEM "Öffnen...\tStrg+O", IDM_FILEOPEN
MENUITEM "Speichern\tStrg+S", IDM_FILESAVE
MENUITEM "Speichern unter...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Als Hintergrund (Fläche)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Als Hintergrund (Zentriert)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Als Hintergrund (Gestreckt)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Beenden\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Bearbeiten"
BEGIN
MENUITEM "Rückgängig\tStrg+Z", IDM_EDITUNDO
MENUITEM "Wiederholen\tStrg+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Ausschneiden\tStrg+X", IDM_EDITCUT
MENUITEM "Kopieren\tStrg+C", IDM_EDITCOPY
MENUITEM "Einfügen\tStrg+V", IDM_EDITPASTE
MENUITEM "Auswahl löschen\tEntf", IDM_EDITDELETESELECTION
MENUITEM "Markierung umkehren", IDM_EDITINVERTSELECTION
MENUITEM "Alles markieren\tStrg+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Kopieren nach...", IDM_EDITCOPYTO
MENUITEM "Einfügen aus...", IDM_EDITPASTEFROM
END
POPUP "&Ansicht"
BEGIN
MENUITEM "Werkzeugkasten\tStrg+W", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Farbpalette\tStrg+F", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Statusleiste", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Formatsymbolleiste", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Gesamtbild\tStrg+G", IDM_VIEWFULLSCREEN
END
POPUP "B&ild"
BEGIN
MENUITEM "Drehen/Spiegeln...\tStrg+D", IDM_IMAGEROTATEMIRROR
MENUITEM "Größe ändern...\tStrg+K", IDM_IMAGECHANGESIZE
MENUITEM "Zuschneiden", IDM_IMAGECROP
MENUITEM "Farben umkehren\tStrg+U", IDM_IMAGEINVERTCOLORS
MENUITEM "Attribute...\tStrg+E", IDM_IMAGEATTRIBUTES
MENUITEM "Bild löschen\tStrg+Umschalt+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Deckend zeichnen", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Farben"
BEGIN
MENUITEM "Palette bearbeiten...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Hilfethemen", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^W", IDM_VIEWTOOLBOX
"^F", IDM_VIEWCOLORPALETTE
"^G", IDM_VIEWFULLSCREEN
"^D", IDM_IMAGEROTATEMIRROR
"^K", IDM_IMAGECHANGESIZE
"^U", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Bild drehen und spiegeln"
BEGIN
GROUPBOX "Spiegeln oder drehen", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Horizontal spiegeln", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Vertikal spiegeln", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Drehen im Winkel von", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Abbrechen", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attribute"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Breite:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Höhe:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Dateidatum:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Dateigröße:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Auflösung:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Nicht verfügbar", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Nicht verfügbar", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Nicht verfügbar", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Maßeinheit", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Zoll", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixel", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Farben", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Schwarzweiß", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Farben", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Abbrechen", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Standard", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Größe ändern"
BEGIN
GROUPBOX "Größe ändern", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertikal:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Abbrechen", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint für ReactOS"
IDS_INFOTEXT, "Paint für ReactOS steht unter der GNU Lesser General Public License (LGPL) Version 3. (siehe www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Möchten Sie die Änderungen an %s speichern?"
IDS_DEFAULTFILENAME, "Unbenannt.bmp"
IDS_TOOLTIP1, "Freie Auswahl"
IDS_TOOLTIP2, "Auswahl"
IDS_TOOLTIP3, "Radierer"
IDS_TOOLTIP4, "Farbfüller"
IDS_TOOLTIP5, "Farbe auswählen"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Stift"
IDS_TOOLTIP8, "Pinsel"
IDS_TOOLTIP9, "Sprühdose"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Linie"
IDS_TOOLTIP12, "Bezier-Kurve"
IDS_TOOLTIP13, "Rechteck"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Abgerundetes Rechteck"
IDS_OPENFILTER, "Bitmapdateien (*.bmp;*.dib)\1*.bmp;*.dib\1Alle Dateien (*.*)\1*.*\1"
IDS_SAVEFILTER, "24-Bit-Bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

402
reactos/base/applications/paint/lang/en-GB.rc Executable file → Normal file
View File

@ -1,201 +1,201 @@
/*
* British English Language resource file
* Translated by: Benedikt Freisen
*/
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
ID_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "New\tCtrl+N", IDM_FILENEW
MENUITEM "Open...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Save\tCtrl+S", IDM_FILESAVE
MENUITEM "Save as...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Set as wallpaper (tiled)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Set as wallpaper (centered)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Set as wallpaper (stretched)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Quit\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "Undo\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Redo\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cut\tCtrl+X", IDM_EDITCUT
MENUITEM "Copy\tCtrl+C", IDM_EDITCOPY
MENUITEM "Paste\tCtrl+V", IDM_EDITPASTE
MENUITEM "Delete selection\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invert selection", IDM_EDITINVERTSELECTION
MENUITEM "Select all\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copy to...", IDM_EDITCOPYTO
MENUITEM "Paste from...", IDM_EDITPASTEFROM
END
POPUP "&View"
BEGIN
MENUITEM "Tool box\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Colour palette\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Status bar", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Text Toolbar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Full screen\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Image"
BEGIN
MENUITEM "Rotate/Mirror...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Resize...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Crop", IDM_IMAGECROP
MENUITEM "Invert colours\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributes...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Delete image", IDM_IMAGEDELETEIMAGE
MENUITEM "Draw opaque", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colours"
BEGIN
MENUITEM "Edit palette...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Help topics", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Rotate and mirror image"
BEGIN
GROUPBOX "Rotate or mirror", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Mirror horizontally", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Mirror vertically", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Rotate by an angle of", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributes"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Width:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Height:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "File date:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "File size:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolution:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unit", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Inch", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colours", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Black and white", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colours", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Standard", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Change size"
BEGIN
GROUPBOX "Change size", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontally:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertically:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with colour"
IDS_TOOLTIP5, "Select colour"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* British English Language resource file
* Translated by: Benedikt Freisen
*/
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
ID_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "New\tCtrl+N", IDM_FILENEW
MENUITEM "Open...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Save\tCtrl+S", IDM_FILESAVE
MENUITEM "Save as...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Set as wallpaper (tiled)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Set as wallpaper (centered)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Set as wallpaper (stretched)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Quit\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "Undo\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Redo\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cut\tCtrl+X", IDM_EDITCUT
MENUITEM "Copy\tCtrl+C", IDM_EDITCOPY
MENUITEM "Paste\tCtrl+V", IDM_EDITPASTE
MENUITEM "Delete selection\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invert selection", IDM_EDITINVERTSELECTION
MENUITEM "Select all\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copy to...", IDM_EDITCOPYTO
MENUITEM "Paste from...", IDM_EDITPASTEFROM
END
POPUP "&View"
BEGIN
MENUITEM "Tool box\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Colour palette\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Status bar", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Text Toolbar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Full screen\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Image"
BEGIN
MENUITEM "Rotate/Mirror...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Resize...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Crop", IDM_IMAGECROP
MENUITEM "Invert colours\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributes...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Delete image", IDM_IMAGEDELETEIMAGE
MENUITEM "Draw opaque", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colours"
BEGIN
MENUITEM "Edit palette...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Help topics", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Rotate and mirror image"
BEGIN
GROUPBOX "Rotate or mirror", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Mirror horizontally", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Mirror vertically", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Rotate by an angle of", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributes"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Width:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Height:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "File date:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "File size:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolution:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unit", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Inch", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colours", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Black and white", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colours", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Standard", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Change size"
BEGIN
GROUPBOX "Change size", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontally:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertically:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with colour"
IDS_TOOLTIP5, "Select colour"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

402
reactos/base/applications/paint/lang/en-US.rc Executable file → Normal file
View File

@ -1,201 +1,201 @@
/*
* US-English Language resource file
* Translated by: first times touched from en-GB.rc file by Mario Kacmar
*/
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
ID_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New\tCtrl+N", IDM_FILENEW
MENUITEM "&Open...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Save\tCtrl+S", IDM_FILESAVE
MENUITEM "Save &as...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Set as wallpaper (tiled)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Set as wallpaper (centered)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Set as wallpaper (stretched)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "&Quit\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "Undo\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Redo\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cut\tCtrl+X", IDM_EDITCUT
MENUITEM "Copy\tCtrl+C", IDM_EDITCOPY
MENUITEM "Paste\tCtrl+V", IDM_EDITPASTE
MENUITEM "Delete selection\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invert selection", IDM_EDITINVERTSELECTION
MENUITEM "Select all\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copy to...", IDM_EDITCOPYTO
MENUITEM "Paste from...", IDM_EDITPASTEFROM
END
POPUP "&View"
BEGIN
MENUITEM "Tool box\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Color palette\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Status bar", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Text Toolbar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Full screen\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Image"
BEGIN
MENUITEM "Rotate/Mirror...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Resize...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Crop", IDM_IMAGECROP
MENUITEM "Invert colors\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributes...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Delete image\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Draw opaque", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colors"
BEGIN
MENUITEM "Edit palette...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Help topics", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Rotate and mirror image"
BEGIN
GROUPBOX "Rotate or mirror", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Mirror horizontally", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Mirror vertically", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Rotate by an angle of", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributes"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Width:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Height:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "File date:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "File size:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolution:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Units", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Inches", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colors", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Black and white", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colors", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Default", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Change size"
BEGIN
GROUPBOX "Change size", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontally:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertically:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with color"
IDS_TOOLTIP5, "Select color"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* US-English Language resource file
* Translated by: first times touched from en-GB.rc file by Mario Kacmar
*/
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
ID_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New\tCtrl+N", IDM_FILENEW
MENUITEM "&Open...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Save\tCtrl+S", IDM_FILESAVE
MENUITEM "Save &as...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Set as wallpaper (tiled)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Set as wallpaper (centered)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Set as wallpaper (stretched)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "&Quit\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "Undo\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Redo\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cut\tCtrl+X", IDM_EDITCUT
MENUITEM "Copy\tCtrl+C", IDM_EDITCOPY
MENUITEM "Paste\tCtrl+V", IDM_EDITPASTE
MENUITEM "Delete selection\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invert selection", IDM_EDITINVERTSELECTION
MENUITEM "Select all\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copy to...", IDM_EDITCOPYTO
MENUITEM "Paste from...", IDM_EDITPASTEFROM
END
POPUP "&View"
BEGIN
MENUITEM "Tool box\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Color palette\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Status bar", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Text Toolbar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Full screen\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Image"
BEGIN
MENUITEM "Rotate/Mirror...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Resize...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Crop", IDM_IMAGECROP
MENUITEM "Invert colors\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributes...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Delete image\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Draw opaque", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colors"
BEGIN
MENUITEM "Edit palette...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Help topics", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Rotate and mirror image"
BEGIN
GROUPBOX "Rotate or mirror", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Mirror horizontally", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Mirror vertically", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Rotate by an angle of", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributes"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Width:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Height:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "File date:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "File size:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolution:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Units", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Inches", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colors", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Black and white", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colors", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Default", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Change size"
BEGIN
GROUPBOX "Change size", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontally:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertically:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancel", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with color"
IDS_TOOLTIP5, "Select color"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

402
reactos/base/applications/paint/lang/es-ES.rc Executable file → Normal file
View File

@ -1,201 +1,201 @@
/*
* Spanish Language resource file
* Traducido por: gabriel ilardi febrero 2009
*/
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
ID_MENU MENU
BEGIN
POPUP "&Archivo"
BEGIN
MENUITEM "Nuevo\tCtrl+N", IDM_FILENEW
MENUITEM "Abrir...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Guardar\tCtrl+S", IDM_FILESAVE
MENUITEM "Guardar como...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Fondo de pantalla (normal)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Fondo de pantalla (centrado)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Fondo de pantalla (extendido)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Salir\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edición"
BEGIN
MENUITEM "Deshacer\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Rehacer\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cortar\tCtrl+X", IDM_EDITCUT
MENUITEM "Copiar\tCtrl+C", IDM_EDITCOPY
MENUITEM "Pegar\tCtrl+V", IDM_EDITPASTE
MENUITEM "Borrar selección\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invertir selección", IDM_EDITINVERTSELECTION
MENUITEM "Seleccionar todo\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copiar en...", IDM_EDITCOPYTO
MENUITEM "Pegar desde...", IDM_EDITPASTEFROM
END
POPUP "&Vista"
BEGIN
MENUITEM "Caja de herramientas\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Paleta de colores\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra de estado", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barra de formato del texto", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Ver en pantalla completa\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Imagen"
BEGIN
MENUITEM "Rotar/Invertir...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Cambiar dimensiones...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Recortar", IDM_IMAGECROP
MENUITEM "Invertir colores\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Atributos...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Borrar imagen\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colores"
BEGIN
MENUITEM "Editar paleta...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Ayuda", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Acerca", IDM_HELPINFO
END
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Rotar e invertir"
BEGIN
GROUPBOX "Rotar e invertir", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Invertir horizontalmente", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Invertir verticalmente", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Rotar", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "Aceptar", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributos"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Ancho:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altura:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Fecha modificación:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Espacio en disco:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolución:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "No disponible", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "No disponible", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "No disponible", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unidades", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Pulgadas", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colores", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Blanco y negro", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colores", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "Aceptar", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Predefinido", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Redimensionar"
BEGIN
GROUPBOX "Redimensionar", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontalmente:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Verticalmente:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "Aceptar", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with color"
IDS_TOOLTIP5, "Select color"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* Spanish Language resource file
* Traducido por: gabriel ilardi febrero 2009
*/
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
ID_MENU MENU
BEGIN
POPUP "&Archivo"
BEGIN
MENUITEM "Nuevo\tCtrl+N", IDM_FILENEW
MENUITEM "Abrir...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Guardar\tCtrl+S", IDM_FILESAVE
MENUITEM "Guardar como...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Fondo de pantalla (normal)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Fondo de pantalla (centrado)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Fondo de pantalla (extendido)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Salir\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edición"
BEGIN
MENUITEM "Deshacer\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Rehacer\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cortar\tCtrl+X", IDM_EDITCUT
MENUITEM "Copiar\tCtrl+C", IDM_EDITCOPY
MENUITEM "Pegar\tCtrl+V", IDM_EDITPASTE
MENUITEM "Borrar selección\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invertir selección", IDM_EDITINVERTSELECTION
MENUITEM "Seleccionar todo\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copiar en...", IDM_EDITCOPYTO
MENUITEM "Pegar desde...", IDM_EDITPASTEFROM
END
POPUP "&Vista"
BEGIN
MENUITEM "Caja de herramientas\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Paleta de colores\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra de estado", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barra de formato del texto", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Ver en pantalla completa\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Imagen"
BEGIN
MENUITEM "Rotar/Invertir...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Cambiar dimensiones...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Recortar", IDM_IMAGECROP
MENUITEM "Invertir colores\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Atributos...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Borrar imagen\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colores"
BEGIN
MENUITEM "Editar paleta...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Ayuda", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Acerca", IDM_HELPINFO
END
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Rotar e invertir"
BEGIN
GROUPBOX "Rotar e invertir", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Invertir horizontalmente", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Invertir verticalmente", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Rotar", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "Aceptar", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributos"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Ancho:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altura:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Fecha modificación:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Espacio en disco:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolución:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "No disponible", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "No disponible", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "No disponible", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unidades", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Pulgadas", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colores", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Blanco y negro", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colores", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "Aceptar", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Predefinido", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Redimensionar"
BEGIN
GROUPBOX "Redimensionar", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontalmente:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Verticalmente:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "Aceptar", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with color"
IDS_TOOLTIP5, "Select color"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

View File

@ -1,201 +1,201 @@
/*
* FR-French Language resource file
* Translated by:
*/
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
ID_MENU MENU
BEGIN
POPUP "&Fichier"
BEGIN
MENUITEM "&Nouveau\tCtrl+N", IDM_FILENEW
MENUITEM "&Ouvrir...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Enregistrer\tCtrl+S", IDM_FILESAVE
MENUITEM "Enregistrer &sous...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Choisir comme image d'arrière-plan (mosaïque)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Choisir comme image d'arrière-plan (centrée)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Choisir comme image d'arrière-plan (étirée)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "&Quitter\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edition"
BEGIN
MENUITEM "Annuler\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Rétablir\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Couper\tCtrl+X", IDM_EDITCUT
MENUITEM "Copier\tCtrl+C", IDM_EDITCOPY
MENUITEM "Coller\tCtrl+V", IDM_EDITPASTE
MENUITEM "Effacer la sélection\tDel", IDM_EDITDELETESELECTION
MENUITEM "Inverser la sélection", IDM_EDITINVERTSELECTION
MENUITEM "Sélectionner tout\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copier vers...", IDM_EDITCOPYTO
MENUITEM "Coller à partir de...", IDM_EDITPASTEFROM
END
POPUP "&Affichage"
BEGIN
MENUITEM "Boîte à outils\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Palette de couleurs\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barre d'état", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barre d'outils texte", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Plein écran\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Image"
BEGIN
MENUITEM "Retourner/Faire pivoter...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Redimensionner...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Rogner", IDM_IMAGECROP
MENUITEM "Inverser les couleurs\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributs...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Effacer l'image\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Dessiner opaque", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Couleurs"
BEGIN
MENUITEM "Modifier les couleurs...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Rubriques d'aide", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "À propos de Paint", IDM_HELPINFO
END
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Retourner et faire pivoter"
BEGIN
GROUPBOX "Retourner ou faire pivoter", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Retourner horizontalement", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Retourner verticalement", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Faire pivoter d'un angle de", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Annuler", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributs"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Largeur :", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Hauteur :", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Dernier enregistrement du fichier :", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Taille sur le disque :", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Résolution :", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Non disponible", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Non disponible", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Non disponible", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unités", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Pouces", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "Cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Couleurs", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Noir et blanc", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Couleurs", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annuler", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Par défaut", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Redimensionner"
BEGIN
GROUPBOX "Redimensionnement", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal :", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertical :", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annuler", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint pour ReactOS"
IDS_INFOTEXT, "Paint pour ReactOS est mise à disposition sous la Licence publique générale limitée GNU (LGPL) version 3 (voir www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Voulez-vous enregistrer les modifications de %s?"
IDS_DEFAULTFILENAME, "Sans titre.bmp"
IDS_TOOLTIP1, "Sélection libre"
IDS_TOOLTIP2, "Sélection"
IDS_TOOLTIP3, "Gomme"
IDS_TOOLTIP4, "Remplissage"
IDS_TOOLTIP5, "Prélèvement d'une couleur"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pinceau"
IDS_TOOLTIP8, "Brosse"
IDS_TOOLTIP9, "Aérographe"
IDS_TOOLTIP10, "Texte"
IDS_TOOLTIP11, "Ligne"
IDS_TOOLTIP12, "Courbe"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygone"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rectangle arrondi"
IDS_OPENFILTER, "Bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1Tous les fichiers (*.*)\1*.*\1"
IDS_SAVEFILTER, "Bitmap 24 bit (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* FR-French Language resource file
* Translated by:
*/
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
ID_MENU MENU
BEGIN
POPUP "&Fichier"
BEGIN
MENUITEM "&Nouveau\tCtrl+N", IDM_FILENEW
MENUITEM "&Ouvrir...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Enregistrer\tCtrl+S", IDM_FILESAVE
MENUITEM "Enregistrer &sous...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Choisir comme image d'arrière-plan (mosaïque)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Choisir comme image d'arrière-plan (centrée)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Choisir comme image d'arrière-plan (étirée)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "&Quitter\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Edition"
BEGIN
MENUITEM "Annuler\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Rétablir\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Couper\tCtrl+X", IDM_EDITCUT
MENUITEM "Copier\tCtrl+C", IDM_EDITCOPY
MENUITEM "Coller\tCtrl+V", IDM_EDITPASTE
MENUITEM "Effacer la sélection\tDel", IDM_EDITDELETESELECTION
MENUITEM "Inverser la sélection", IDM_EDITINVERTSELECTION
MENUITEM "Sélectionner tout\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copier vers...", IDM_EDITCOPYTO
MENUITEM "Coller à partir de...", IDM_EDITPASTEFROM
END
POPUP "&Affichage"
BEGIN
MENUITEM "Boîte à outils\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Palette de couleurs\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barre d'état", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barre d'outils texte", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Plein écran\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Image"
BEGIN
MENUITEM "Retourner/Faire pivoter...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Redimensionner...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Rogner", IDM_IMAGECROP
MENUITEM "Inverser les couleurs\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributs...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Effacer l'image\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Dessiner opaque", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Couleurs"
BEGIN
MENUITEM "Modifier les couleurs...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Rubriques d'aide", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "À propos de Paint", IDM_HELPINFO
END
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Retourner et faire pivoter"
BEGIN
GROUPBOX "Retourner ou faire pivoter", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Retourner horizontalement", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Retourner verticalement", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Faire pivoter d'un angle de", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Annuler", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributs"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Largeur :", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Hauteur :", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Dernier enregistrement du fichier :", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Taille sur le disque :", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Résolution :", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Non disponible", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Non disponible", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Non disponible", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unités", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Pouces", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "Cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Couleurs", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Noir et blanc", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Couleurs", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annuler", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Par défaut", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Redimensionner"
BEGIN
GROUPBOX "Redimensionnement", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal :", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertical :", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annuler", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint pour ReactOS"
IDS_INFOTEXT, "Paint pour ReactOS est mise à disposition sous la Licence publique générale limitée GNU (LGPL) version 3 (voir www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Voulez-vous enregistrer les modifications de %s?"
IDS_DEFAULTFILENAME, "Sans titre.bmp"
IDS_TOOLTIP1, "Sélection libre"
IDS_TOOLTIP2, "Sélection"
IDS_TOOLTIP3, "Gomme"
IDS_TOOLTIP4, "Remplissage"
IDS_TOOLTIP5, "Prélèvement d'une couleur"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pinceau"
IDS_TOOLTIP8, "Brosse"
IDS_TOOLTIP9, "Aérographe"
IDS_TOOLTIP10, "Texte"
IDS_TOOLTIP11, "Ligne"
IDS_TOOLTIP12, "Courbe"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygone"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rectangle arrondi"
IDS_OPENFILTER, "Bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1Tous les fichiers (*.*)\1*.*\1"
IDS_SAVEFILTER, "Bitmap 24 bit (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

402
reactos/base/applications/paint/lang/it-IT.rc Executable file → Normal file
View File

@ -1,201 +1,201 @@
/*
* Italian Language resource file
* Tradotto da: gabriel ilardi, febbraio 2009
*/
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
ID_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "Nuovo\tCtrl+N", IDM_FILENEW
MENUITEM "Apri...\tCtrl+F12", IDM_FILEOPEN
MENUITEM "Salva\tMaiusc+F12", IDM_FILESAVE
MENUITEM "Salva con nome...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Imposta come sfondo (normale)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Imposta come sfondo (centrata)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Imposta come sfondo (estesa)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Esci\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Modifica"
BEGIN
MENUITEM "Annulla\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Ripeti\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Taglia\tCtrl+X", IDM_EDITCUT
MENUITEM "Copia\tCtrl+C", IDM_EDITCOPY
MENUITEM "Incolla\tCtrl+V", IDM_EDITPASTE
MENUITEM "Cancella area selezionata\tCanc", IDM_EDITDELETESELECTION
MENUITEM "Inverte selezione", IDM_EDITINVERTSELECTION
MENUITEM "Seleziona tutto\tCtrl+5(tn)", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copia su...", IDM_EDITCOPYTO
MENUITEM "Incolla da...", IDM_EDITPASTEFROM
END
POPUP "&Visualizza"
BEGIN
MENUITEM "Casella degli strumenti\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Tavolozza\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra di stato", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barra degli strumenti di testo", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Visualizza a schermo intero\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Immagine"
BEGIN
MENUITEM "Capovolgi/ruota...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Ridimensiona...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Ritaglia", IDM_IMAGECROP
MENUITEM "Inverti colori\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributi...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Cancella immagine\tCtrl+Maiusc+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colori"
BEGIN
MENUITEM "Modifica colori...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Guida in linea", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Informazioni", IDM_HELPINFO
END
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
VK_F12, IDM_FILEOPEN, CONTROL, VIRTKEY
VK_F12, IDM_FILESAVE, SHIFT, VIRTKEY
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"5", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Capovolgi o ruota"
BEGIN
GROUPBOX "Capovolgi o ruota", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Capovolgi orizzontalmente", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Capovolgi verticalmente", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Ruota di", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Annulla", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributi"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Larghezza:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altezza:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Ultimo salvataggio:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Dimensioni su disco:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Risoluzione:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Non disponibile", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Non disponibile", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Non disponibile", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unità di misura", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Pollici", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "Cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixel", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colori", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Bianco e nero", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colori", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annulla", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Predefiniti", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Ridimensiona"
BEGIN
GROUPBOX "Ridimensiona", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Orizzontalmente:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Verticalmente:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annulla", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with color"
IDS_TOOLTIP5, "Select color"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* Italian Language resource file
* Tradotto da: gabriel ilardi, febbraio 2009
*/
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
ID_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "Nuovo\tCtrl+N", IDM_FILENEW
MENUITEM "Apri...\tCtrl+F12", IDM_FILEOPEN
MENUITEM "Salva\tMaiusc+F12", IDM_FILESAVE
MENUITEM "Salva con nome...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Imposta come sfondo (normale)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Imposta come sfondo (centrata)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Imposta come sfondo (estesa)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Esci\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Modifica"
BEGIN
MENUITEM "Annulla\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Ripeti\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Taglia\tCtrl+X", IDM_EDITCUT
MENUITEM "Copia\tCtrl+C", IDM_EDITCOPY
MENUITEM "Incolla\tCtrl+V", IDM_EDITPASTE
MENUITEM "Cancella area selezionata\tCanc", IDM_EDITDELETESELECTION
MENUITEM "Inverte selezione", IDM_EDITINVERTSELECTION
MENUITEM "Seleziona tutto\tCtrl+5(tn)", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copia su...", IDM_EDITCOPYTO
MENUITEM "Incolla da...", IDM_EDITPASTEFROM
END
POPUP "&Visualizza"
BEGIN
MENUITEM "Casella degli strumenti\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Tavolozza\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra di stato", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barra degli strumenti di testo", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Visualizza a schermo intero\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Immagine"
BEGIN
MENUITEM "Capovolgi/ruota...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Ridimensiona...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Ritaglia", IDM_IMAGECROP
MENUITEM "Inverti colori\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Attributi...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Cancella immagine\tCtrl+Maiusc+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Colori"
BEGIN
MENUITEM "Modifica colori...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "Guida in linea", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Informazioni", IDM_HELPINFO
END
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
VK_F12, IDM_FILEOPEN, CONTROL, VIRTKEY
VK_F12, IDM_FILESAVE, SHIFT, VIRTKEY
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"5", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Capovolgi o ruota"
BEGIN
GROUPBOX "Capovolgi o ruota", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Capovolgi orizzontalmente", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Capovolgi verticalmente", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Ruota di", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Annulla", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Attributi"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Larghezza:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altezza:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Ultimo salvataggio:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Dimensioni su disco:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Risoluzione:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Non disponibile", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Non disponibile", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Non disponibile", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unità di misura", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "Pollici", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "Cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pixel", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Colori", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Bianco e nero", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Colori", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annulla", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Predefiniti", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Ridimensiona"
BEGIN
GROUPBOX "Ridimensiona", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Orizzontalmente:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Verticalmente:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Annulla", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint for ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Do you want to save the changes to %s?"
IDS_DEFAULTFILENAME, "Unnamed.bmp"
IDS_TOOLTIP1, "Free selection"
IDS_TOOLTIP2, "Selection"
IDS_TOOLTIP3, "Rubber"
IDS_TOOLTIP4, "Fill with color"
IDS_TOOLTIP5, "Select color"
IDS_TOOLTIP6, "Zoom"
IDS_TOOLTIP7, "Pencil"
IDS_TOOLTIP8, "Brush"
IDS_TOOLTIP9, "Airbrush"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Line"
IDS_TOOLTIP12, "Bezier curve"
IDS_TOOLTIP13, "Rectangle"
IDS_TOOLTIP14, "Polygon"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Rounded rectangle"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

View File

@ -1,201 +1,201 @@
/*
* Portuguese Brazilian Language resource file
* Translated by: Wagner Leandro Bueno Angelo
*/
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
ID_MENU MENU
BEGIN
POPUP "&Arquivo"
BEGIN
MENUITEM "&Novo\tCtrl+N", IDM_FILENEW
MENUITEM "A&brir...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Salvar\tCtrl+S", IDM_FILESAVE
MENUITEM "Salvar &como...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Definir como plano de fundo (Lado a lado)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Definir como plano de fundo (Centralizado)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Definir como plano de fundo (Esticado)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Sai&r\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Editar"
BEGIN
MENUITEM "Desfa&zer\tCtrl+Z", IDM_EDITUNDO
MENUITEM "R&epetir\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "&Recortar\tCtrl+X", IDM_EDITCUT
MENUITEM "&Copiar\tCtrl+C", IDM_EDITCOPY
MENUITEM "C&olar\tCtrl+V", IDM_EDITPASTE
MENUITEM "&Limpar seleção\tDel", IDM_EDITDELETESELECTION
MENUITEM "&Inverter seleção", IDM_EDITINVERTSELECTION
MENUITEM "Selecionar &tudo\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copiar &para...", IDM_EDITCOPYTO
MENUITEM "Colar &de...", IDM_EDITPASTEFROM
END
POPUP "E&xibir"
BEGIN
MENUITEM "Caixa de &ferramentas\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Caixa de &cores\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra de &status", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "&Barra de ferramentas de texto", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "&Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "E&xibir bitmap\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Imagem"
BEGIN
MENUITEM "Inverter/&girar...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "&Alongar/inclinar...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Cortar", IDM_IMAGECROP
MENUITEM "&Inverter cores\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "A&tributos...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "&Limpar imagem\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "&Desenho opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Cores"
BEGIN
MENUITEM "&Edit cores...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "&Tópicos da Ajuda", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "So&bre", IDM_HELPINFO
END
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Inverter e girar imagem"
BEGIN
GROUPBOX "Inverter ou girar", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Inverter &horizontalmente", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Inverter &verticalmente", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "&Girar", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributos"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "&Largura:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altura:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Data do arquivo:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Tamanho do arquivo:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolução:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unidades", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "P&olegadas", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "c&m", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pi&xels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Cores", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Preto e &branco", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Co&res", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "&Padrão", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Alterar tamanho"
BEGIN
GROUPBOX "Alterar tamanho", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertical:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint para ReactOS"
IDS_INFOTEXT, "Paint para ReactOS está disponível sob a licença GNU Lesser General Public License (LGPL) versão 3 (visite www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Salvar as alterações em %s?"
IDS_DEFAULTFILENAME, "Imagem.bmp"
IDS_TOOLTIP1, "Selecionar forma livre"
IDS_TOOLTIP2, "Selecionar"
IDS_TOOLTIP3, "Apagador/Apagador de cor"
IDS_TOOLTIP4, "Preencher com cor"
IDS_TOOLTIP5, "Selecionar cor"
IDS_TOOLTIP6, "Lente de aumento"
IDS_TOOLTIP7, "Lápis"
IDS_TOOLTIP8, "Pincel"
IDS_TOOLTIP9, "Splay"
IDS_TOOLTIP10, "Texto"
IDS_TOOLTIP11, "Linnha"
IDS_TOOLTIP12, "Curva"
IDS_TOOLTIP13, "Retângulo"
IDS_TOOLTIP14, "Polígono"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Retângulo arredondado"
IDS_OPENFILTER, "Arquivos de bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1Todos os arquivos (*.*)\1*.*\1"
IDS_SAVEFILTER, "Bitmaps de 24 bits (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* Portuguese Brazilian Language resource file
* Translated by: Wagner Leandro Bueno Angelo
*/
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
ID_MENU MENU
BEGIN
POPUP "&Arquivo"
BEGIN
MENUITEM "&Novo\tCtrl+N", IDM_FILENEW
MENUITEM "A&brir...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Salvar\tCtrl+S", IDM_FILESAVE
MENUITEM "Salvar &como...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Definir como plano de fundo (Lado a lado)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Definir como plano de fundo (Centralizado)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Definir como plano de fundo (Esticado)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Sai&r\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Editar"
BEGIN
MENUITEM "Desfa&zer\tCtrl+Z", IDM_EDITUNDO
MENUITEM "R&epetir\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "&Recortar\tCtrl+X", IDM_EDITCUT
MENUITEM "&Copiar\tCtrl+C", IDM_EDITCOPY
MENUITEM "C&olar\tCtrl+V", IDM_EDITPASTE
MENUITEM "&Limpar seleção\tDel", IDM_EDITDELETESELECTION
MENUITEM "&Inverter seleção", IDM_EDITINVERTSELECTION
MENUITEM "Selecionar &tudo\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Copiar &para...", IDM_EDITCOPYTO
MENUITEM "Colar &de...", IDM_EDITPASTEFROM
END
POPUP "E&xibir"
BEGIN
MENUITEM "Caixa de &ferramentas\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Caixa de &cores\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra de &status", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "&Barra de ferramentas de texto", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "&Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "E&xibir bitmap\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Imagem"
BEGIN
MENUITEM "Inverter/&girar...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "&Alongar/inclinar...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Cortar", IDM_IMAGECROP
MENUITEM "&Inverter cores\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "A&tributos...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "&Limpar imagem\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "&Desenho opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Cores"
BEGIN
MENUITEM "&Edit cores...", IDM_COLORSEDITPALETTE
END
POPUP "&?"
BEGIN
MENUITEM "&Tópicos da Ajuda", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "So&bre", IDM_HELPINFO
END
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Inverter e girar imagem"
BEGIN
GROUPBOX "Inverter ou girar", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Inverter &horizontalmente", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Inverter &verticalmente", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "&Girar", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributos"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "&Largura:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altura:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Data do arquivo:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Tamanho do arquivo:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolução:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unidades", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "P&olegadas", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "c&m", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pi&xels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Cores", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Preto e &branco", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Co&res", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "&Padrão", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Alterar tamanho"
BEGIN
GROUPBOX "Alterar tamanho", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertical:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint para ReactOS"
IDS_INFOTEXT, "Paint para ReactOS está disponível sob a licença GNU Lesser General Public License (LGPL) versão 3 (visite www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Salvar as alterações em %s?"
IDS_DEFAULTFILENAME, "Imagem.bmp"
IDS_TOOLTIP1, "Selecionar forma livre"
IDS_TOOLTIP2, "Selecionar"
IDS_TOOLTIP3, "Apagador/Apagador de cor"
IDS_TOOLTIP4, "Preencher com cor"
IDS_TOOLTIP5, "Selecionar cor"
IDS_TOOLTIP6, "Lente de aumento"
IDS_TOOLTIP7, "Lápis"
IDS_TOOLTIP8, "Pincel"
IDS_TOOLTIP9, "Splay"
IDS_TOOLTIP10, "Texto"
IDS_TOOLTIP11, "Linnha"
IDS_TOOLTIP12, "Curva"
IDS_TOOLTIP13, "Retângulo"
IDS_TOOLTIP14, "Polígono"
IDS_TOOLTIP15, "Ellipse"
IDS_TOOLTIP16, "Retângulo arredondado"
IDS_OPENFILTER, "Arquivos de bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1Todos os arquivos (*.*)\1*.*\1"
IDS_SAVEFILTER, "Bitmaps de 24 bits (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

View File

@ -1,201 +1,201 @@
/*
* Portuguese Language resource file
* Translated by: Manuel D V Silva
*/
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
ID_MENU MENU
BEGIN
POPUP "&Ficheiro"
BEGIN
MENUITEM "&Novo\tCtrl+O", IDM_FILENEW
MENUITEM "&Abrir...\tCtrl+A", IDM_FILEOPEN
MENUITEM "&Guardar\tCtrl+G", IDM_FILESAVE
MENUITEM "Guardar &como...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Definir como fundo (Mosaico)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Definir como fundo (Centrado)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Definir como fundo (Esticado)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Sai&r\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Editar"
BEGIN
MENUITEM "An&ular\tCtrl+Z", IDM_EDITUNDO
MENUITEM "&Repetir\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cor&tar\tCtrl+X", IDM_EDITCUT
MENUITEM "&Copiar\tCtrl+C", IDM_EDITCOPY
MENUITEM "Co&lar\tCtrl+V", IDM_EDITPASTE
MENUITEM "Limpar &seleção\tDel", IDM_EDITDELETESELECTION
MENUITEM "&Inverter seleção", IDM_EDITINVERTSELECTION
MENUITEM "Selecion&ar tudo\tCtrl+T", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "C&opiar para...", IDM_EDITCOPYTO
MENUITEM "Colar &de...", IDM_EDITPASTEFROM
END
POPUP "&Ver"
BEGIN
MENUITEM "Caixa de &ferramentas\tCtrl+F", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "&Caixa de cores\tCtrl+D", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra de e&stado", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barra de f&erramentas de texto", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "&Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "&Ver mapa de bits\tCtrl+B", IDM_VIEWFULLSCREEN
END
POPUP "&Imagem"
BEGIN
MENUITEM "I&nverter/rodar...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Redimensionar/&Torcer...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "&Recortar", IDM_IMAGECROP
MENUITEM "Inverter &cores\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "&Atributos...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "&Limpar imagem\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "&Desenho opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Cores"
BEGIN
MENUITEM "&Editar cores...", IDM_COLORSEDITPALETTE
END
POPUP "&Ajuda"
BEGIN
MENUITEM "&Tópicos da Ajuda", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "&Acerca do Paint", IDM_HELPINFO
END
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
ID_ACCELERATORS ACCELERATORS
BEGIN
"^O", IDM_FILENEW
"^A", IDM_FILEOPEN
"^G", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^T", IDM_EDITSELECTALL
"^F", IDM_VIEWTOOLBOX
"^D", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Inverter e rodar"
BEGIN
GROUPBOX "Inverter ou rodar", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Inverter na &horizontal", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Inverter na &vertical", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "&Rodar por ângulo", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributos"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "&Largura:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altura:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Data do arquivo:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Tamanho do arquivo:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolução:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unidades", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "P&olegadas", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "c&m", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pi&xels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Cores", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Preto e &branco", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Co&res", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "&Predefinição", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Alterar tamanho"
BEGIN
GROUPBOX "Alterar tamanho", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertical:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint para ReactOS"
IDS_INFOTEXT, "Paint para ReactOS está disponível sob a licença GNU Lesser General Public License (LGPL) versão 3 (visite www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Pretende guardar as alterações a %s?"
IDS_DEFAULTFILENAME, "Imagem.bmp"
IDS_TOOLTIP1, "Selecionar forma livre"
IDS_TOOLTIP2, "Selecionar"
IDS_TOOLTIP3, "Borracha/Apagar cor"
IDS_TOOLTIP4, "Preencher com cor"
IDS_TOOLTIP5, "Escolher cor"
IDS_TOOLTIP6, "Lupa"
IDS_TOOLTIP7, "Lápis"
IDS_TOOLTIP8, "Pincel"
IDS_TOOLTIP9, "Aerógrafo"
IDS_TOOLTIP10, "Texto"
IDS_TOOLTIP11, "Linnha"
IDS_TOOLTIP12, "Curva"
IDS_TOOLTIP13, "Retângulo"
IDS_TOOLTIP14, "Polígono"
IDS_TOOLTIP15, "Elipse"
IDS_TOOLTIP16, "Retângulo arredondado"
IDS_OPENFILTER, "Ficheiros de mapa de bits (*.bmp;*.dib)\1*.bmp;*.dib\1Todos os arquivos (*.*)\1*.*\1"
IDS_SAVEFILTER, "Mapa de bits de 24 bits (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* Portuguese Language resource file
* Translated by: Manuel D V Silva
*/
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
ID_MENU MENU
BEGIN
POPUP "&Ficheiro"
BEGIN
MENUITEM "&Novo\tCtrl+O", IDM_FILENEW
MENUITEM "&Abrir...\tCtrl+A", IDM_FILEOPEN
MENUITEM "&Guardar\tCtrl+G", IDM_FILESAVE
MENUITEM "Guardar &como...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Definir como fundo (Mosaico)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Definir como fundo (Centrado)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Definir como fundo (Esticado)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Sai&r\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Editar"
BEGIN
MENUITEM "An&ular\tCtrl+Z", IDM_EDITUNDO
MENUITEM "&Repetir\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Cor&tar\tCtrl+X", IDM_EDITCUT
MENUITEM "&Copiar\tCtrl+C", IDM_EDITCOPY
MENUITEM "Co&lar\tCtrl+V", IDM_EDITPASTE
MENUITEM "Limpar &seleção\tDel", IDM_EDITDELETESELECTION
MENUITEM "&Inverter seleção", IDM_EDITINVERTSELECTION
MENUITEM "Selecion&ar tudo\tCtrl+T", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "C&opiar para...", IDM_EDITCOPYTO
MENUITEM "Colar &de...", IDM_EDITPASTEFROM
END
POPUP "&Ver"
BEGIN
MENUITEM "Caixa de &ferramentas\tCtrl+F", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "&Caixa de cores\tCtrl+D", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Barra de e&stado", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Barra de f&erramentas de texto", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "&Zoom"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "&Ver mapa de bits\tCtrl+B", IDM_VIEWFULLSCREEN
END
POPUP "&Imagem"
BEGIN
MENUITEM "I&nverter/rodar...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Redimensionar/&Torcer...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "&Recortar", IDM_IMAGECROP
MENUITEM "Inverter &cores\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "&Atributos...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "&Limpar imagem\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "&Desenho opaco", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Cores"
BEGIN
MENUITEM "&Editar cores...", IDM_COLORSEDITPALETTE
END
POPUP "&Ajuda"
BEGIN
MENUITEM "&Tópicos da Ajuda", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "&Acerca do Paint", IDM_HELPINFO
END
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
ID_ACCELERATORS ACCELERATORS
BEGIN
"^O", IDM_FILENEW
"^A", IDM_FILEOPEN
"^G", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^T", IDM_EDITSELECTALL
"^F", IDM_VIEWTOOLBOX
"^D", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Inverter e rodar"
BEGIN
GROUPBOX "Inverter ou rodar", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Inverter na &horizontal", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Inverter na &vertical", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "&Rodar por ângulo", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atributos"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "&Largura:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Altura:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Data do arquivo:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Tamanho do arquivo:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Resolução:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "não disponível", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Unidades", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "P&olegadas", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "c&m", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "Pi&xels", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Cores", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Preto e &branco", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "Co&res", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "&Predefinição", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Alterar tamanho"
BEGIN
GROUPBOX "Alterar tamanho", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Horizontal:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Vertical:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Cancelar", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint para ReactOS"
IDS_INFOTEXT, "Paint para ReactOS está disponível sob a licença GNU Lesser General Public License (LGPL) versão 3 (visite www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Pretende guardar as alterações a %s?"
IDS_DEFAULTFILENAME, "Imagem.bmp"
IDS_TOOLTIP1, "Selecionar forma livre"
IDS_TOOLTIP2, "Selecionar"
IDS_TOOLTIP3, "Borracha/Apagar cor"
IDS_TOOLTIP4, "Preencher com cor"
IDS_TOOLTIP5, "Escolher cor"
IDS_TOOLTIP6, "Lupa"
IDS_TOOLTIP7, "Lápis"
IDS_TOOLTIP8, "Pincel"
IDS_TOOLTIP9, "Aerógrafo"
IDS_TOOLTIP10, "Texto"
IDS_TOOLTIP11, "Linnha"
IDS_TOOLTIP12, "Curva"
IDS_TOOLTIP13, "Retângulo"
IDS_TOOLTIP14, "Polígono"
IDS_TOOLTIP15, "Elipse"
IDS_TOOLTIP16, "Retângulo arredondado"
IDS_OPENFILTER, "Ficheiros de mapa de bits (*.bmp;*.dib)\1*.bmp;*.dib\1Todos os arquivos (*.*)\1*.*\1"
IDS_SAVEFILTER, "Mapa de bits de 24 bits (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

View File

@ -1,202 +1,202 @@
/*
* Slovak Language resource file
* Translated by: Mário Kaèmár /Mario Kacmar/ aka Kario
* Last changed: 28-04-2009
*/
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
ID_MENU MENU
BEGIN
POPUP "&Súbor"
BEGIN
MENUITEM "&Nový\tCtrl+N", IDM_FILENEW
MENUITEM "&Otvori<72>...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Uloži<C5BE>\tCtrl+S", IDM_FILESAVE
MENUITEM "Uloži<C5BE> &ako...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Nastavi<76> ako pozadie (vydláždené)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Nastavi<76> ako pozadie (v strede)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Nastavi<76> ako pozadie (roztiahnuté)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Skonèi<C3A8>\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Upravi<76>"
BEGIN
MENUITEM "Spä<70>\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Znova\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Vystrihnú<6E>\tCtrl+X", IDM_EDITCUT
MENUITEM "Kopírova<76>\tCtrl+C", IDM_EDITCOPY
MENUITEM "Prilepi<70>\tCtrl+V", IDM_EDITPASTE
MENUITEM "Vymaza<7A> výber\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invertova<76> výber", IDM_EDITINVERTSELECTION
MENUITEM "Vybra<72> všetko\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Kopírova<76> do...", IDM_EDITCOPYTO
MENUITEM "Prilepi<70> z...", IDM_EDITPASTEFROM
END
POPUP "&Zobrazi<7A>"
BEGIN
MENUITEM "Panel nástrojov\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Paleta farieb\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Stavový riadok", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Format icon bar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Lupa" //Zoom
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Celá obrazovka\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Obrázok"
BEGIN
MENUITEM "Prevráti<74> alebo otoèi<C3A8>...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Zmeni<6E> ve¾kos<6F>...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Oreza<7A>", IDM_IMAGECROP
MENUITEM "Invertova<76> farby\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Atribúty...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Vymaza<7A> obrázok\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Kresli<6C> nepriesvitne", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Farby"
BEGIN
MENUITEM "Upravi<76> paletu...", IDM_COLORSEDITPALETTE
END
POPUP "&Pomocník"
BEGIN
MENUITEM "&Témy pomocníka", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Prevrátenie alebo otoèenie obrázka"
BEGIN
GROUPBOX "Prevráti<74> alebo otoèi<C3A8>", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Prevráti<74> vodorovne", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Prevráti<74> zvislo", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "&Otoèi<C3A8> o uhol", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Zruši<C5A1>", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atribúty"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Šírka:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Výška:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "File date:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "File size:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Rozlíšenie:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Nie je k dispozícii", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Nie je k dispozícii", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Nie je k dispozícii", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Jednotky", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "palce", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "pixely", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Farby", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Èierno&bielo", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "&Farebne", IDD_ATTRIBUTESRB5, 92, 100, 45, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Zruši<C5A1>", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "&Predvolené", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Zmena ve¾kosti"
BEGIN
GROUPBOX "Zmeni<6E> ve¾kos<6F>", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "&Vodorovne:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "&Zvislo:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Zruši<C5A1>", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Skicár"
IDS_WINDOWTITLE, "%s - Skicár"
IDS_INFOTITLE, "Skicár systému ReactOS"
IDS_INFOTEXT, "Skicár systému ReactOS je dostupný za podmienok GNU Lesser General Public License (LGPL) verzia 3 (viï www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Chcete uloži<C5BE> vykonané zmeny do %s?"
IDS_DEFAULTFILENAME, "Bez názvu.bmp"
IDS_TOOLTIP1, "Vo¾ný výber"
IDS_TOOLTIP2, "Výber"
IDS_TOOLTIP3, "Guma"
IDS_TOOLTIP4, "Vyplni<6E> farbou"
IDS_TOOLTIP5, "Zvoli<6C> farbu"
IDS_TOOLTIP6, "Lupa"
IDS_TOOLTIP7, "Ceruzka"
IDS_TOOLTIP8, "Štetec"
IDS_TOOLTIP9, "Sprej"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Èiara"
IDS_TOOLTIP12, "Bézierova krivka" //kreslenie kriviek pomocou bodov
IDS_TOOLTIP13, "Obdåžnik" //pravouholník
IDS_TOOLTIP14, "Polygón" //mnohouholník
IDS_TOOLTIP15, "Elipsa"
IDS_TOOLTIP16, "Zaoblený obdåžnik"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* Slovak Language resource file
* Translated by: Mário Kaèmár /Mario Kacmar/ aka Kario
* Last changed: 28-04-2009
*/
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
ID_MENU MENU
BEGIN
POPUP "&Súbor"
BEGIN
MENUITEM "&Nový\tCtrl+N", IDM_FILENEW
MENUITEM "&Otvori<72>...\tCtrl+O", IDM_FILEOPEN
MENUITEM "&Uloži<C5BE>\tCtrl+S", IDM_FILESAVE
MENUITEM "Uloži<C5BE> &ako...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "Nastavi<76> ako pozadie (vydláždené)", IDM_FILEASWALLPAPERPLANE
MENUITEM "Nastavi<76> ako pozadie (v strede)", IDM_FILEASWALLPAPERCENTERED
MENUITEM "Nastavi<76> ako pozadie (roztiahnuté)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Skonèi<C3A8>\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Upravi<76>"
BEGIN
MENUITEM "Spä<70>\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Znova\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Vystrihnú<6E>\tCtrl+X", IDM_EDITCUT
MENUITEM "Kopírova<76>\tCtrl+C", IDM_EDITCOPY
MENUITEM "Prilepi<70>\tCtrl+V", IDM_EDITPASTE
MENUITEM "Vymaza<7A> výber\tDel", IDM_EDITDELETESELECTION
MENUITEM "Invertova<76> výber", IDM_EDITINVERTSELECTION
MENUITEM "Vybra<72> všetko\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Kopírova<76> do...", IDM_EDITCOPYTO
MENUITEM "Prilepi<70> z...", IDM_EDITPASTEFROM
END
POPUP "&Zobrazi<7A>"
BEGIN
MENUITEM "Panel nástrojov\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Paleta farieb\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Stavový riadok", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Format icon bar", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Lupa" //Zoom
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Celá obrazovka\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Obrázok"
BEGIN
MENUITEM "Prevráti<74> alebo otoèi<C3A8>...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Zmeni<6E> ve¾kos<6F>...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Oreza<7A>", IDM_IMAGECROP
MENUITEM "Invertova<76> farby\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Atribúty...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Vymaza<7A> obrázok\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Kresli<6C> nepriesvitne", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Farby"
BEGIN
MENUITEM "Upravi<76> paletu...", IDM_COLORSEDITPALETTE
END
POPUP "&Pomocník"
BEGIN
MENUITEM "&Témy pomocníka", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "Info", IDM_HELPINFO
END
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Prevrátenie alebo otoèenie obrázka"
BEGIN
GROUPBOX "Prevráti<74> alebo otoèi<C3A8>", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "Prevráti<74> vodorovne", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "Prevráti<74> zvislo", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "&Otoèi<C3A8> o uhol", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Zruši<C5A1>", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Atribúty"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Šírka:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Výška:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "File date:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "File size:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Rozlíšenie:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Nie je k dispozícii", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Nie je k dispozícii", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Nie je k dispozícii", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Jednotky", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "palce", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "cm", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "pixely", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Farby", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "Èierno&bielo", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "&Farebne", IDD_ATTRIBUTESRB5, 92, 100, 45, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Zruši<C5A1>", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "&Predvolené", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Zmena ve¾kosti"
BEGIN
GROUPBOX "Zmeni<6E> ve¾kos<6F>", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "&Vodorovne:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "&Zvislo:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Zruši<C5A1>", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Skicár"
IDS_WINDOWTITLE, "%s - Skicár"
IDS_INFOTITLE, "Skicár systému ReactOS"
IDS_INFOTEXT, "Skicár systému ReactOS je dostupný za podmienok GNU Lesser General Public License (LGPL) verzia 3 (viï www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Chcete uloži<C5BE> vykonané zmeny do %s?"
IDS_DEFAULTFILENAME, "Bez názvu.bmp"
IDS_TOOLTIP1, "Vo¾ný výber"
IDS_TOOLTIP2, "Výber"
IDS_TOOLTIP3, "Guma"
IDS_TOOLTIP4, "Vyplni<6E> farbou"
IDS_TOOLTIP5, "Zvoli<6C> farbu"
IDS_TOOLTIP6, "Lupa"
IDS_TOOLTIP7, "Ceruzka"
IDS_TOOLTIP8, "Štetec"
IDS_TOOLTIP9, "Sprej"
IDS_TOOLTIP10, "Text"
IDS_TOOLTIP11, "Èiara"
IDS_TOOLTIP12, "Bézierova krivka" //kreslenie kriviek pomocou bodov
IDS_TOOLTIP13, "Obdåžnik" //pravouholník
IDS_TOOLTIP14, "Polygón" //mnohouholník
IDS_TOOLTIP15, "Elipsa"
IDS_TOOLTIP16, "Zaoblený obdåžnik"
IDS_OPENFILTER, "Bitmap files (*.bmp;*.dib)\1*.bmp;*.dib\1All files (*.*)\1*.*\1"
IDS_SAVEFILTER, "24 bit bitmap (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

View File

@ -1,202 +1,202 @@
/*
* Ukrainian Language resource file
* Translated by: Artem Reznikov
* Last changed: 29-04-2009
*/
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
ID_MENU MENU
BEGIN
POPUP "&Ôàéë"
BEGIN
MENUITEM "&Ñòâîðèòè\tCtrl+N", IDM_FILENEW
MENUITEM "Â&³äêðèòè...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Ç&áåðåãòè\tCtrl+S", IDM_FILESAVE
MENUITEM "Çáåðåãòè &ÿê...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "&Çàìîñòèòè ðîáî÷èé ñò³ë Windows", IDM_FILEASWALLPAPERPLANE
MENUITEM "Äî ö&åíòðó ðîáî÷îãî ñòîëà Windows", IDM_FILEASWALLPAPERCENTERED
MENUITEM "&Âñòàíîâèòè ÿê òëî (ðîçòÿãíóòè)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Â&èõ³ä\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Ðåäàãóâàííÿ"
BEGIN
MENUITEM "Ñêàñóâàòè\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Ïîâòîðèòè\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Âèð³çàòè\tCtrl+X", IDM_EDITCUT
MENUITEM "Êîï³þâàòè\tCtrl+C", IDM_EDITCOPY
MENUITEM "Âñòàâèòè\tCtrl+V", IDM_EDITPASTE
MENUITEM "Âèäàëèòè âèä³ëåííÿ\tDel", IDM_EDITDELETESELECTION
MENUITEM "Îáåðíóòè âèä³ëåííÿ", IDM_EDITINVERTSELECTION
MENUITEM "Âèä³ëèòè âñå\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Êîï³þâàòè äî ôàéëó...", IDM_EDITCOPYTO
MENUITEM "Âñòàâèòè ç ôàéëó...", IDM_EDITPASTEFROM
END
POPUP "Â&èãëÿä"
BEGIN
MENUITEM "Ïàíåëü åëåìåíò³â\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Ïàë³òðà\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Ðÿäîê ñòàíó", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Ïàíåëü àòðèáóò³â òåêñòó", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Ìàñøòàá"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Íà âåñü åêðàí\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Çîáðàæåííÿ"
BEGIN
MENUITEM "³äîáðàçèòè/ïîâåðíóòè...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Çì³íèòè ðîçì³ð...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Îá³òíóòè", IDM_IMAGECROP
MENUITEM "Îáåðíóòè êîëüîðè\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Àòðèáóòè...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Âèäàëèòè ìàëþíîê\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Íåïðîçîðå òëî", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Êîëüîðè"
BEGIN
MENUITEM "Çì³íèòè ïàë³òðó...", IDM_COLORSEDITPALETTE
END
POPUP "&Äîâ³äêà"
BEGIN
MENUITEM "Âèêëèê äîâ³äêè", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "²íôîðìàö³ÿ", IDM_HELPINFO
END
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "³äîáðàæåííÿ é ïîâîðîò"
BEGIN
GROUPBOX "Ïåðåãîðíóòè àáî ïîâåðíóòè", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "³äîáðàçèòè çë³âà íàïðàâî", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "³äîáðàçèòè çâåðõó âíèç", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Ïîâåðíóòè íà êóò", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Ñêàñóâàòè", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Àòðèáóòè"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Øèðèíà:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Âèñîòà:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Äàòà ôàéëà:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Ðîçì³ð ôàéëà:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Ðîçä³ëüíà çäàòí³ñòü:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Îäèíèö³ âèì³ðþâàííÿ", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "äþéìè", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "ñì", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "ï³êñåë³", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Êîëüîðè", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "÷îðíî-á³ëà", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "êîëüîðîâà", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Ñêàñóâàòè", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Çà ïðîìîâ÷àííÿì", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Çì³íà ðîçì³ðó"
BEGIN
GROUPBOX "Çì³íåííÿ ðîçì³ðó", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Ïî ãîðèçîíòàë³:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Ïî âåðòèêàë³:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Ñêàñóâàòè", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint äëÿ ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Çáåðåãòè çì³íè äî %s?"
IDS_DEFAULTFILENAME, "Áåç_³ìåí³.bmp"
IDS_TOOLTIP1, "Âèä³ëåííÿ äîâ³ëüíî¿ îáëàñò³"
IDS_TOOLTIP2, "Âèä³ëåííÿ"
IDS_TOOLTIP3, "Ëàñòèê"
IDS_TOOLTIP4, "Çàëèâêà"
IDS_TOOLTIP5, "Âèá³ð êîëüîð³â"
IDS_TOOLTIP6, "Ìàñøòàá"
IDS_TOOLTIP7, "Îë³âåöü"
IDS_TOOLTIP8, "Ïåíçåëü"
IDS_TOOLTIP9, "Ðîçïèëþâà÷"
IDS_TOOLTIP10, "Òåêñò"
IDS_TOOLTIP11, "˳í³ÿ"
IDS_TOOLTIP12, "Êðèâà Áåç'º"
IDS_TOOLTIP13, "Ïðÿìîêóòíèê"
IDS_TOOLTIP14, "Áàãàòîêóòíèê"
IDS_TOOLTIP15, "Åë³ïñ"
IDS_TOOLTIP16, "Ïðÿìîêóòíèê ç îêðóãëåíèìè êóòàìè"
IDS_OPENFILTER, "Òî÷êîâ³ ðèñóíêè (*.bmp;*.dib)\1*.bmp;*.dib\1Óñ³ ôàéëè (*.*)\1*.*\1"
IDS_SAVEFILTER, "24-ðîçðÿäíèé ðèñóíîê (*.bmp;*.dib)\1*.bmp;*.dib\1"
END
/*
* Ukrainian Language resource file
* Translated by: Artem Reznikov
* Last changed: 29-04-2009
*/
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
ID_MENU MENU
BEGIN
POPUP "&Ôàéë"
BEGIN
MENUITEM "&Ñòâîðèòè\tCtrl+N", IDM_FILENEW
MENUITEM "Â&³äêðèòè...\tCtrl+O", IDM_FILEOPEN
MENUITEM "Ç&áåðåãòè\tCtrl+S", IDM_FILESAVE
MENUITEM "Çáåðåãòè &ÿê...", IDM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "&Çàìîñòèòè ðîáî÷èé ñò³ë Windows", IDM_FILEASWALLPAPERPLANE
MENUITEM "Äî ö&åíòðó ðîáî÷îãî ñòîëà Windows", IDM_FILEASWALLPAPERCENTERED
MENUITEM "&Âñòàíîâèòè ÿê òëî (ðîçòÿãíóòè)", IDM_FILEASWALLPAPERSTRETCHED
MENUITEM SEPARATOR
MENUITEM "Â&èõ³ä\tAlt+F4", IDM_FILEEXIT
END
POPUP "&Ðåäàãóâàííÿ"
BEGIN
MENUITEM "Ñêàñóâàòè\tCtrl+Z", IDM_EDITUNDO
MENUITEM "Ïîâòîðèòè\tCtrl+Y", IDM_EDITREDO
MENUITEM SEPARATOR
MENUITEM "Âèð³çàòè\tCtrl+X", IDM_EDITCUT
MENUITEM "Êîï³þâàòè\tCtrl+C", IDM_EDITCOPY
MENUITEM "Âñòàâèòè\tCtrl+V", IDM_EDITPASTE
MENUITEM "Âèäàëèòè âèä³ëåííÿ\tDel", IDM_EDITDELETESELECTION
MENUITEM "Îáåðíóòè âèä³ëåííÿ", IDM_EDITINVERTSELECTION
MENUITEM "Âèä³ëèòè âñå\tCtrl+A", IDM_EDITSELECTALL
MENUITEM SEPARATOR
MENUITEM "Êîï³þâàòè äî ôàéëó...", IDM_EDITCOPYTO
MENUITEM "Âñòàâèòè ç ôàéëó...", IDM_EDITPASTEFROM
END
POPUP "Â&èãëÿä"
BEGIN
MENUITEM "Ïàíåëü åëåìåíò³â\tCtrl+T", IDM_VIEWTOOLBOX, CHECKED
MENUITEM "Ïàë³òðà\tCtrl+L", IDM_VIEWCOLORPALETTE, CHECKED
MENUITEM "Ðÿäîê ñòàíó", IDM_VIEWSTATUSBAR, CHECKED
MENUITEM "Ïàíåëü àòðèáóò³â òåêñòó", IDM_FORMATICONBAR, CHECKED, GRAYED
MENUITEM SEPARATOR
POPUP "Ìàñøòàá"
BEGIN
MENUITEM "12,5%", IDM_VIEWZOOM125
MENUITEM "25%", IDM_VIEWZOOM25
MENUITEM "50%", IDM_VIEWZOOM50
MENUITEM "100%", IDM_VIEWZOOM100
MENUITEM "200%", IDM_VIEWZOOM200
MENUITEM "400%", IDM_VIEWZOOM400
MENUITEM "800%", IDM_VIEWZOOM800
END
MENUITEM "Íà âåñü åêðàí\tCtrl+F", IDM_VIEWFULLSCREEN
END
POPUP "&Çîáðàæåííÿ"
BEGIN
MENUITEM "³äîáðàçèòè/ïîâåðíóòè...\tCtrl+R", IDM_IMAGEROTATEMIRROR
MENUITEM "Çì³íèòè ðîçì³ð...\tCtrl+W", IDM_IMAGECHANGESIZE
MENUITEM "Îá³òíóòè", IDM_IMAGECROP
MENUITEM "Îáåðíóòè êîëüîðè\tCtrl+I", IDM_IMAGEINVERTCOLORS
MENUITEM "Àòðèáóòè...\tCtrl+E", IDM_IMAGEATTRIBUTES
MENUITEM "Âèäàëèòè ìàëþíîê\tCtrl+Shft+N", IDM_IMAGEDELETEIMAGE
MENUITEM "Íåïðîçîðå òëî", IDM_IMAGEDRAWOPAQUE
END
POPUP "&Êîëüîðè"
BEGIN
MENUITEM "Çì³íèòè ïàë³òðó...", IDM_COLORSEDITPALETTE
END
POPUP "&Äîâ³äêà"
BEGIN
MENUITEM "Âèêëèê äîâ³äêè", IDM_HELPHELPTOPICS
MENUITEM SEPARATOR
MENUITEM "²íôîðìàö³ÿ", IDM_HELPINFO
END
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
ID_ACCELERATORS ACCELERATORS
BEGIN
"^N", IDM_FILENEW
"^O", IDM_FILEOPEN
"^S", IDM_FILESAVE
"^Z", IDM_EDITUNDO
"^Y", IDM_EDITREDO
"^X", IDM_EDITCUT
"^C", IDM_EDITCOPY
"^V", IDM_EDITPASTE
VK_DELETE, IDM_EDITDELETESELECTION, VIRTKEY
"^A", IDM_EDITSELECTALL
"^T", IDM_VIEWTOOLBOX
"^L", IDM_VIEWCOLORPALETTE
"^F", IDM_VIEWFULLSCREEN
"^R", IDM_IMAGEROTATEMIRROR
"^W", IDM_IMAGECHANGESIZE
"^I", IDM_IMAGEINVERTCOLORS
"^E", IDM_IMAGEATTRIBUTES
"N", IDM_IMAGEDELETEIMAGE, CONTROL, SHIFT, VIRTKEY
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
IDD_MIRRORROTATE DIALOGEX 100, 100, 180, 100
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "³äîáðàæåííÿ é ïîâîðîò"
BEGIN
GROUPBOX "Ïåðåãîðíóòè àáî ïîâåðíóòè", IDD_MIRRORROTATEGROUP, 6, 6, 112, 86
AUTORADIOBUTTON "³äîáðàçèòè çë³âà íàïðàâî", IDD_MIRRORROTATERB1, 12, 18, 100, 10, WS_GROUP
AUTORADIOBUTTON "³äîáðàçèòè çâåðõó âíèç", IDD_MIRRORROTATERB2, 12, 30, 100, 10
AUTORADIOBUTTON "Ïîâåðíóòè íà êóò", IDD_MIRRORROTATERB3, 12, 42, 100, 10
AUTORADIOBUTTON "90°", IDD_MIRRORROTATERB4, 42, 54, 50, 10, WS_GROUP | WS_DISABLED
AUTORADIOBUTTON "180°", IDD_MIRRORROTATERB5, 42, 66, 50, 10, WS_DISABLED
AUTORADIOBUTTON "270°", IDD_MIRRORROTATERB6, 42, 78, 50, 10, WS_DISABLED
DEFPUSHBUTTON "OK", IDOK, 125, 8, 48, 14
PUSHBUTTON "Ñêàñóâàòè", IDCANCEL, 125, 24, 48, 14
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
IDD_ATTRIBUTES DIALOGEX 100, 100, 210, 120
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Àòðèáóòè"
BEGIN
EDITTEXT IDD_ATTRIBUTESEDIT1, 40, 40, 35, 12
EDITTEXT IDD_ATTRIBUTESEDIT2, 110, 40, 35, 12
LTEXT "Øèðèíà:", IDD_ATTRIBUTESTEXT1, 10, 40, 30, 10
LTEXT "Âèñîòà:", IDD_ATTRIBUTESTEXT2, 80, 40, 30, 10
LTEXT "Äàòà ôàéëà:", IDD_ATTRIBUTESTEXT3, 10, 5, 60, 10
LTEXT "Ðîçì³ð ôàéëà:", IDD_ATTRIBUTESTEXT4, 10, 15, 60, 10
LTEXT "Ðîçä³ëüíà çäàòí³ñòü:", IDD_ATTRIBUTESTEXT5, 10, 25, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT6, 70, 5, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT7, 70, 15, 60, 10
LTEXT "Not available", IDD_ATTRIBUTESTEXT8, 70, 25, 60, 10
GROUPBOX "Îäèíèö³ âèì³ðþâàííÿ", IDD_ATTRIBUTESGROUP1, 6, 57, 139, 27
AUTORADIOBUTTON "äþéìè", IDD_ATTRIBUTESRB1, 12, 69, 35, 10, WS_GROUP
AUTORADIOBUTTON "ñì", IDD_ATTRIBUTESRB2, 52, 69, 35, 10
AUTORADIOBUTTON "ï³êñåë³", IDD_ATTRIBUTESRB3, 92, 69, 35, 10
GROUPBOX "Êîëüîðè", IDD_ATTRIBUTESGROUP2, 6, 88, 139, 27
AUTORADIOBUTTON "÷îðíî-á³ëà", IDD_ATTRIBUTESRB4, 12, 100, 70, 10, WS_GROUP
AUTORADIOBUTTON "êîëüîðîâà", IDD_ATTRIBUTESRB5, 92, 100, 35, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Ñêàñóâàòè", IDCANCEL, 155, 24, 48, 14
PUSHBUTTON "Çà ïðîìîâ÷àííÿì", IDD_ATTRIBUTESSTANDARD, 155, 40, 48, 14
END
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
IDD_CHANGESIZE DIALOGEX 100, 100, 210, 80
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
CAPTION "Çì³íà ðîçì³ðó"
BEGIN
GROUPBOX "Çì³íåííÿ ðîçì³ðó", IDD_CHANGESIZEGROUP, 6, 6, 142, 66
ICON IDI_HORZSTRETCH, IDD_CHANGESIZEICON1, 12, 18
LTEXT "Ïî ãîðèçîíòàë³:", IDD_CHANGESIZETEXT1, 45, 24, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT1, 90, 23, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT2, 125, 24, 15, 10
ICON IDI_VERTSTRETCH, IDD_CHANGESIZEICON2, 12, 43
LTEXT "Ïî âåðòèêàë³:", IDD_CHANGESIZETEXT3, 45, 49, 40, 10
EDITTEXT IDD_CHANGESIZEEDIT2, 90, 48, 32, 12
LTEXT "%", IDD_CHANGESIZETEXT4, 125, 49, 15, 10
DEFPUSHBUTTON "OK", IDOK, 155, 8, 48, 14
PUSHBUTTON "Ñêàñóâàòè", IDCANCEL, 155, 24, 48, 14
END
STRINGTABLE
BEGIN
IDS_PROGRAMNAME, "Paint"
IDS_WINDOWTITLE, "%s - Paint"
IDS_INFOTITLE, "Paint äëÿ ReactOS"
IDS_INFOTEXT, "Paint for ReactOS is available under the GNU Lesser General Public License (LGPL) version 3 (see www.gnu.org)"
IDS_SAVEPROMPTTEXT, "Çáåðåãòè çì³íè äî %s?"
IDS_DEFAULTFILENAME, "Áåç_³ìåí³.bmp"
IDS_TOOLTIP1, "Âèä³ëåííÿ äîâ³ëüíî¿ îáëàñò³"
IDS_TOOLTIP2, "Âèä³ëåííÿ"
IDS_TOOLTIP3, "Ëàñòèê"
IDS_TOOLTIP4, "Çàëèâêà"
IDS_TOOLTIP5, "Âèá³ð êîëüîð³â"
IDS_TOOLTIP6, "Ìàñøòàá"
IDS_TOOLTIP7, "Îë³âåöü"
IDS_TOOLTIP8, "Ïåíçåëü"
IDS_TOOLTIP9, "Ðîçïèëþâà÷"
IDS_TOOLTIP10, "Òåêñò"
IDS_TOOLTIP11, "˳í³ÿ"
IDS_TOOLTIP12, "Êðèâà Áåç'º"
IDS_TOOLTIP13, "Ïðÿìîêóòíèê"
IDS_TOOLTIP14, "Áàãàòîêóòíèê"
IDS_TOOLTIP15, "Åë³ïñ"
IDS_TOOLTIP16, "Ïðÿìîêóòíèê ç îêðóãëåíèìè êóòàìè"
IDS_OPENFILTER, "Òî÷êîâ³ ðèñóíêè (*.bmp;*.dib)\1*.bmp;*.dib\1Óñ³ ôàéëè (*.*)\1*.*\1"
IDS_SAVEFILTER, "24-ðîçðÿäíèé ðèñóíîê (*.bmp;*.dib)\1*.bmp;*.dib\1"
END

330
reactos/base/applications/paint/lgpl.txt Executable file → Normal file
View File

@ -1,165 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

718
reactos/base/applications/paint/main.c Executable file → Normal file
View File

@ -1,359 +1,359 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: main.c
* PURPOSE: Initializing everything
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <stdio.h>
#include "definitions.h"
#include "drawing.h"
#include "dib.h"
#include "globalvar.h"
#include "history.h"
#include "mouse.h"
#include "winproc.h"
#include "palette.h"
#include "toolsettings.h"
#include "selection.h"
/* FUNCTIONS ********************************************************/
HDC hDrawingDC;
HDC hSelDC;
int *bmAddress;
BITMAPINFO bitmapinfo;
int imgXRes = 400;
int imgYRes = 300;
HBITMAP hBms[4];
int currInd = 0;
int undoSteps = 0;
int redoSteps = 0;
// global status variables
short startX;
short startY;
short lastX;
short lastY;
int lineWidth = 1;
int shapeStyle = 0;
int brushStyle = 0;
int activeTool = 7;
int airBrushWidth = 5;
int rubberRadius = 4;
int transpBg = 0;
int zoom = 1000;
int rectSel_src[4];
int rectSel_dest[4];
HWND hSelection;
HWND hImageArea;
HBITMAP hSelBm;
// global declarations and WinMain
// initial palette colors; may be changed by the user during execution
int palColors[28] =
{0x000000, 0x464646, 0x787878, 0x300099, 0x241ced, 0x0078ff, 0x0ec2ff,
0x00f2ff, 0x1de6a8, 0x4cb122, 0xefb700, 0xf36d4d, 0x99362f, 0x98316f,
0xffffff, 0xdcdcdc, 0xb4b4b4, 0x3c5a9c, 0xb1a3ff, 0x7aaae5, 0x9ce4f5,
0xbdf9ff, 0xbcf9d3, 0x61bb9d, 0xead999, 0xd19a70, 0x8e6d54, 0xd5a5b5};
// foreground and background colors with initial value
int fgColor = 0x00000000;
int bgColor = 0x00ffffff;
// the current zoom in percent*10
HWND hStatusBar;
HWND hScrollbox;
HWND hMainWnd;
HWND hPalWin;
HWND hToolSettings;
CHOOSECOLOR choosecolor;
OPENFILENAME ofn;
OPENFILENAME sfn;
HICON hNontranspIcon;
HICON hTranspIcon;
HCURSOR hCurFill;
HCURSOR hCurColor;
HCURSOR hCurZoom;
HCURSOR hCurPen;
HCURSOR hCurAirbrush;
HWND hScrlClient;
HWND hToolBtn[16];
HINSTANCE hProgInstance;
char filename[256];
char filepathname[1000];
BOOL isAFile = FALSE;
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)
{
hProgInstance = hThisInstance;
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
// Necessary
InitCommonControls();
//initializing and registering the window class used for the main window
WNDCLASSEX wincl;
wincl.hInstance = hThisInstance;
wincl.lpszClassName = "WindowsApp";
wincl.lpfnWndProc = WindowProcedure;
wincl.style = CS_DBLCLKS;
wincl.cbSize = sizeof (WNDCLASSEX);
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (hThisInstance, MAKEINTRESOURCE(500));
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL;
wincl.cbClsExtra = 0;
wincl.cbWndExtra = 0;
wincl.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wincl);
// initializing and registering the window class used for the scroll box
WNDCLASSEX wclScroll;
wclScroll.hInstance = hThisInstance;
wclScroll.lpszClassName = "Scrollbox";
wclScroll.lpfnWndProc = WindowProcedure;
wclScroll.style = 0;
wclScroll.cbSize = sizeof (WNDCLASSEX);
wclScroll.hIcon = NULL;
wclScroll.hIconSm = NULL;
wclScroll.hCursor = LoadCursor (NULL, IDC_ARROW);
wclScroll.lpszMenuName = NULL;
wclScroll.cbClsExtra = 0;
wclScroll.cbWndExtra = 0;
wclScroll.hbrBackground = GetSysColorBrush(COLOR_APPWORKSPACE);
RegisterClassEx (&wclScroll);
// initializing and registering the window class used for the palette window
WNDCLASSEX wclPal;
wclPal.hInstance = hThisInstance;
wclPal.lpszClassName = "Palette";
wclPal.lpfnWndProc = PalWinProc;
wclPal.style = CS_DBLCLKS;
wclPal.cbSize = sizeof (WNDCLASSEX);
wclPal.hIcon = NULL;
wclPal.hIconSm = NULL;
wclPal.hCursor = LoadCursor (NULL, IDC_ARROW);
wclPal.lpszMenuName = NULL;
wclPal.cbClsExtra = 0;
wclPal.cbWndExtra = 0;
wclPal.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wclPal);
// initializing and registering the window class for the settings window
WNDCLASSEX wclSettings;
wclSettings.hInstance = hThisInstance;
wclSettings.lpszClassName = "ToolSettings";
wclSettings.lpfnWndProc = SettingsWinProc;
wclSettings.style = CS_DBLCLKS;
wclSettings.cbSize = sizeof (WNDCLASSEX);
wclSettings.hIcon = NULL;
wclSettings.hIconSm = NULL;
wclSettings.hCursor = LoadCursor (NULL, IDC_ARROW);
wclSettings.lpszMenuName = NULL;
wclSettings.cbClsExtra = 0;
wclSettings.cbWndExtra = 0;
wclSettings.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wclSettings);
// initializing and registering the window class for the selection frame
WNDCLASSEX wclSelection;
wclSelection.hInstance = hThisInstance;
wclSelection.lpszClassName = "Selection";
wclSelection.lpfnWndProc = SelectionWinProc;
wclSelection.style = CS_DBLCLKS;
wclSelection.cbSize = sizeof (WNDCLASSEX);
wclSelection.hIcon = NULL;
wclSelection.hIconSm = NULL;
wclSelection.hCursor = LoadCursor (NULL, IDC_SIZEALL);
wclSelection.lpszMenuName = NULL;
wclSelection.cbClsExtra = 0;
wclSelection.cbWndExtra = 0;
wclSelection.hbrBackground = NULL;//GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wclSelection);
LoadString(hThisInstance, IDS_DEFAULTFILENAME, (LPTSTR)&filename, 256);
char progtitle[1000];
char resstr[100];
LoadString(hThisInstance, IDS_WINDOWTITLE, (LPTSTR)&resstr, 100);
sprintf(progtitle, resstr, &filename);
// create main window
hwnd = CreateWindowEx (0, "WindowsApp", (LPTSTR)progtitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 544, 375, HWND_DESKTOP, NULL, hThisInstance, NULL);
hMainWnd = hwnd;
// loading and setting the window menu from resource
HMENU menu;
menu = LoadMenu(hThisInstance, MAKEINTRESOURCE(ID_MENU));
SetMenu(hwnd, menu);
HANDLE haccel = LoadAccelerators(hThisInstance, MAKEINTRESOURCE(800));
// preloading the draw transparent/nontransparent icons for later use
hNontranspIcon = LoadImage(hThisInstance, MAKEINTRESOURCE(IDI_NONTRANSPARENT), IMAGE_ICON, 40, 30, LR_DEFAULTCOLOR);
hTranspIcon = LoadImage(hThisInstance, MAKEINTRESOURCE(IDI_TRANSPARENT), IMAGE_ICON, 40, 30, LR_DEFAULTCOLOR);
hCurFill = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_FILL));
hCurColor = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_COLOR));
hCurZoom = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_ZOOM));
hCurPen = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_PEN));
hCurAirbrush = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_AIRBRUSH));
HWND hLine = CreateWindowEx (0, "STATIC", "", WS_CHILD | WS_VISIBLE | SS_ETCHEDHORZ, 0, 0, 5000, 2, hwnd, NULL, hThisInstance, NULL);
// creating the 16 bitmap radio buttons and setting the bitmap
// FIXME: Unintentionally there is a line above the tool bar. To prevent cropping of the buttons height has been increased from 200 to 205
HWND hToolbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | CCS_NOPARENTALIGN | CCS_VERT | CCS_NORESIZE | TBSTYLE_TOOLTIPS, 3, 3, 50, 205, hwnd, NULL, hThisInstance, NULL);
HIMAGELIST hImageList = ImageList_Create(16, 16, ILC_COLOR24 | ILC_MASK, 16, 0);
SendMessage(hToolbar, TB_SETIMAGELIST, 0, (LPARAM)hImageList);
HBITMAP tempBm = LoadImage(hThisInstance, MAKEINTRESOURCE(IDB_TOOLBARICONS), IMAGE_BITMAP, 256, 16, 0);
ImageList_AddMasked(hImageList, tempBm, 0xff00ff);
DeleteObject(tempBm);
SendMessage(hToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
int i;
char tooltips[16][30];
for (i=0; i<16; i++)
{
int wrapnow = 0;
if (i%2==1) wrapnow = TBSTATE_WRAP;
LoadString(hThisInstance, IDS_TOOLTIP1+i, (LPTSTR)&tooltips[i], 30);
TBBUTTON tbbutton = {i, (HMENU)(ID_FREESEL+i), TBSTATE_ENABLED | wrapnow, TBSTYLE_CHECKGROUP, {0}, 0, &tooltips[i]};
SendMessage(hToolbar, TB_ADDBUTTONS, 1, (LPARAM)&tbbutton);
}
// SendMessage(hToolbar, TB_SETROWS, MAKEWPARAM(8, FALSE), (LPARAM)NULL);
SendMessage(hToolbar, TB_CHECKBUTTON, ID_PEN, MAKELONG(TRUE, 0));
SendMessage(hToolbar, TB_SETMAXTEXTROWS, 0, 0);
SendMessage(hToolbar, TB_SETBUTTONSIZE, 0, MAKELONG(25, 25));
// SendMessage(hToolbar, TB_AUTOSIZE, 0, 0);
// creating the tool settings child window
hToolSettings = CreateWindowEx(0, "ToolSettings", "", WS_CHILD | WS_VISIBLE, 7, 210, 42, 140, hwnd, NULL, hThisInstance, NULL);
// creating the palette child window
hPalWin = CreateWindowEx(0, "Palette", "", WS_CHILD | WS_VISIBLE, 56, 9, 255, 32, hwnd, NULL, hThisInstance, NULL);
// creating the scroll box
hScrollbox = CreateWindowEx (WS_EX_CLIENTEDGE, "Scrollbox", "", WS_CHILD | WS_GROUP | WS_HSCROLL | WS_VSCROLL | WS_VISIBLE, 56, 49, 472, 248, hwnd, NULL, hThisInstance, NULL);
// creating the status bar
hStatusBar = CreateWindowEx (0, STATUSCLASSNAME, "", SBARS_SIZEGRIP | WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hwnd, NULL, hThisInstance, NULL);
SendMessage(hStatusBar, SB_SETMINHEIGHT, 21, 0);
hScrlClient = CreateWindowEx(0, "Scrollbox", "", WS_CHILD | WS_VISIBLE, 0, 0, 500, 500, hScrollbox, NULL, hThisInstance, NULL);
// create selection window (initially hidden)
hSelection = CreateWindowEx(WS_EX_TRANSPARENT, "Selection", "", WS_CHILD | BS_OWNERDRAW, 350, 0, 100, 100, hScrlClient, NULL, hThisInstance, NULL);
// creating the window inside the scroll box, on which the image in hDrawingDC's bitmap is drawn
hImageArea = CreateWindowEx (0, "Scrollbox", "", WS_CHILD | WS_VISIBLE, 3, 3, imgXRes, imgYRes, hScrlClient, NULL, hThisInstance, NULL);
hDrawingDC = CreateCompatibleDC(GetDC(hImageArea));
hSelDC = CreateCompatibleDC(GetDC(hImageArea));
SelectObject(hDrawingDC, CreatePen(PS_SOLID, 0, fgColor));
SelectObject(hDrawingDC, CreateSolidBrush(bgColor));
hBms[0] = CreateDIBWithProperties(imgXRes, imgYRes);
SelectObject(hDrawingDC, hBms[0]);
Rectangle(hDrawingDC, 0-1, 0-1, imgXRes+1, imgYRes+1);
// initializing the CHOOSECOLOR structure for use with ChooseColor
int custColors[16] =
{0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff,
0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff};
choosecolor.lStructSize = sizeof(CHOOSECOLOR);
choosecolor.hwndOwner = hwnd;
choosecolor.hInstance = NULL;
choosecolor.rgbResult = 0x00ffffff;
choosecolor.lpCustColors = (COLORREF*)&custColors;
choosecolor.Flags = 0;
choosecolor.lCustData = 0;
choosecolor.lpfnHook = NULL;
choosecolor.lpTemplateName = NULL;
int c;
// initializing the OPENFILENAME structure for use with GetOpenFileName and GetSaveFileName
char ofnFilename[1000];
CopyMemory(&ofnFilename, &filename, 256);
char ofnFiletitle[256];
char ofnFilter[1000];
LoadString(hThisInstance, IDS_OPENFILTER, (LPTSTR)&ofnFilter, 1000);
for (c=0; c<1000; c++) if (ofnFilter[c]==(char)1) ofnFilter[c] = (char)0;
ZeroMemory(&ofn, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof (OPENFILENAME);
ofn.hwndOwner = hwnd;
ofn.hInstance = hThisInstance;
ofn.lpstrFilter = (LPCTSTR)&ofnFilter;
ofn.lpstrFile = (LPTSTR)&ofnFilename;
ofn.nMaxFile = 1000;
ofn.lpstrFileTitle = (LPTSTR)&ofnFiletitle;
ofn.nMaxFileTitle = 256;
ofn.Flags = OFN_HIDEREADONLY;
char sfnFilename[1000];
CopyMemory(&sfnFilename, &filename, 256);
char sfnFiletitle[256];
char sfnFilter[1000];
LoadString(hThisInstance, IDS_SAVEFILTER, (LPTSTR)&sfnFilter, 1000);
for (c=0; c<1000; c++) if (sfnFilter[c]==(char)1) sfnFilter[c] = (char)0;
ZeroMemory(&sfn, sizeof(OPENFILENAME));
sfn.lStructSize = sizeof (OPENFILENAME);
sfn.hwndOwner = hwnd;
sfn.hInstance = hThisInstance;
sfn.lpstrFilter = (LPCTSTR)&sfnFilter;
sfn.lpstrFile = (LPTSTR)&sfnFilename;
sfn.nMaxFile = 1000;
sfn.lpstrFileTitle = (LPTSTR)&sfnFiletitle;
sfn.nMaxFileTitle = 256;
sfn.Flags = OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY;
// by moving the window, the things in WM_SIZE are done
MoveWindow(hwnd, 100, 100, 600, 450, TRUE);
/* Make the window visible on the screen */
ShowWindow (hwnd, nFunsterStil);
/* Run the message loop. It will run until GetMessage() returns 0 */
while (GetMessage (&messages, NULL, 0, 0))
{
TranslateAccelerator(hwnd, haccel, &messages);
/* Translate virtual-key messages into character messages */
TranslateMessage(&messages);
/* Send message to WindowProcedure */
DispatchMessage(&messages);
}
/* The program return-value is 0 - The value that PostQuitMessage() gave */
return messages.wParam;
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: main.c
* PURPOSE: Initializing everything
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <stdio.h>
#include "definitions.h"
#include "drawing.h"
#include "dib.h"
#include "globalvar.h"
#include "history.h"
#include "mouse.h"
#include "winproc.h"
#include "palette.h"
#include "toolsettings.h"
#include "selection.h"
/* FUNCTIONS ********************************************************/
HDC hDrawingDC;
HDC hSelDC;
int *bmAddress;
BITMAPINFO bitmapinfo;
int imgXRes = 400;
int imgYRes = 300;
HBITMAP hBms[4];
int currInd = 0;
int undoSteps = 0;
int redoSteps = 0;
// global status variables
short startX;
short startY;
short lastX;
short lastY;
int lineWidth = 1;
int shapeStyle = 0;
int brushStyle = 0;
int activeTool = 7;
int airBrushWidth = 5;
int rubberRadius = 4;
int transpBg = 0;
int zoom = 1000;
int rectSel_src[4];
int rectSel_dest[4];
HWND hSelection;
HWND hImageArea;
HBITMAP hSelBm;
// global declarations and WinMain
// initial palette colors; may be changed by the user during execution
int palColors[28] =
{0x000000, 0x464646, 0x787878, 0x300099, 0x241ced, 0x0078ff, 0x0ec2ff,
0x00f2ff, 0x1de6a8, 0x4cb122, 0xefb700, 0xf36d4d, 0x99362f, 0x98316f,
0xffffff, 0xdcdcdc, 0xb4b4b4, 0x3c5a9c, 0xb1a3ff, 0x7aaae5, 0x9ce4f5,
0xbdf9ff, 0xbcf9d3, 0x61bb9d, 0xead999, 0xd19a70, 0x8e6d54, 0xd5a5b5};
// foreground and background colors with initial value
int fgColor = 0x00000000;
int bgColor = 0x00ffffff;
// the current zoom in percent*10
HWND hStatusBar;
HWND hScrollbox;
HWND hMainWnd;
HWND hPalWin;
HWND hToolSettings;
CHOOSECOLOR choosecolor;
OPENFILENAME ofn;
OPENFILENAME sfn;
HICON hNontranspIcon;
HICON hTranspIcon;
HCURSOR hCurFill;
HCURSOR hCurColor;
HCURSOR hCurZoom;
HCURSOR hCurPen;
HCURSOR hCurAirbrush;
HWND hScrlClient;
HWND hToolBtn[16];
HINSTANCE hProgInstance;
char filename[256];
char filepathname[1000];
BOOL isAFile = FALSE;
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)
{
hProgInstance = hThisInstance;
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
// Necessary
InitCommonControls();
//initializing and registering the window class used for the main window
WNDCLASSEX wincl;
wincl.hInstance = hThisInstance;
wincl.lpszClassName = "WindowsApp";
wincl.lpfnWndProc = WindowProcedure;
wincl.style = CS_DBLCLKS;
wincl.cbSize = sizeof (WNDCLASSEX);
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (hThisInstance, MAKEINTRESOURCE(500));
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL;
wincl.cbClsExtra = 0;
wincl.cbWndExtra = 0;
wincl.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wincl);
// initializing and registering the window class used for the scroll box
WNDCLASSEX wclScroll;
wclScroll.hInstance = hThisInstance;
wclScroll.lpszClassName = "Scrollbox";
wclScroll.lpfnWndProc = WindowProcedure;
wclScroll.style = 0;
wclScroll.cbSize = sizeof (WNDCLASSEX);
wclScroll.hIcon = NULL;
wclScroll.hIconSm = NULL;
wclScroll.hCursor = LoadCursor (NULL, IDC_ARROW);
wclScroll.lpszMenuName = NULL;
wclScroll.cbClsExtra = 0;
wclScroll.cbWndExtra = 0;
wclScroll.hbrBackground = GetSysColorBrush(COLOR_APPWORKSPACE);
RegisterClassEx (&wclScroll);
// initializing and registering the window class used for the palette window
WNDCLASSEX wclPal;
wclPal.hInstance = hThisInstance;
wclPal.lpszClassName = "Palette";
wclPal.lpfnWndProc = PalWinProc;
wclPal.style = CS_DBLCLKS;
wclPal.cbSize = sizeof (WNDCLASSEX);
wclPal.hIcon = NULL;
wclPal.hIconSm = NULL;
wclPal.hCursor = LoadCursor (NULL, IDC_ARROW);
wclPal.lpszMenuName = NULL;
wclPal.cbClsExtra = 0;
wclPal.cbWndExtra = 0;
wclPal.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wclPal);
// initializing and registering the window class for the settings window
WNDCLASSEX wclSettings;
wclSettings.hInstance = hThisInstance;
wclSettings.lpszClassName = "ToolSettings";
wclSettings.lpfnWndProc = SettingsWinProc;
wclSettings.style = CS_DBLCLKS;
wclSettings.cbSize = sizeof (WNDCLASSEX);
wclSettings.hIcon = NULL;
wclSettings.hIconSm = NULL;
wclSettings.hCursor = LoadCursor (NULL, IDC_ARROW);
wclSettings.lpszMenuName = NULL;
wclSettings.cbClsExtra = 0;
wclSettings.cbWndExtra = 0;
wclSettings.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wclSettings);
// initializing and registering the window class for the selection frame
WNDCLASSEX wclSelection;
wclSelection.hInstance = hThisInstance;
wclSelection.lpszClassName = "Selection";
wclSelection.lpfnWndProc = SelectionWinProc;
wclSelection.style = CS_DBLCLKS;
wclSelection.cbSize = sizeof (WNDCLASSEX);
wclSelection.hIcon = NULL;
wclSelection.hIconSm = NULL;
wclSelection.hCursor = LoadCursor (NULL, IDC_SIZEALL);
wclSelection.lpszMenuName = NULL;
wclSelection.cbClsExtra = 0;
wclSelection.cbWndExtra = 0;
wclSelection.hbrBackground = NULL;//GetSysColorBrush(COLOR_BTNFACE);
RegisterClassEx (&wclSelection);
LoadString(hThisInstance, IDS_DEFAULTFILENAME, (LPTSTR)&filename, 256);
char progtitle[1000];
char resstr[100];
LoadString(hThisInstance, IDS_WINDOWTITLE, (LPTSTR)&resstr, 100);
sprintf(progtitle, resstr, &filename);
// create main window
hwnd = CreateWindowEx (0, "WindowsApp", (LPTSTR)progtitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 544, 375, HWND_DESKTOP, NULL, hThisInstance, NULL);
hMainWnd = hwnd;
// loading and setting the window menu from resource
HMENU menu;
menu = LoadMenu(hThisInstance, MAKEINTRESOURCE(ID_MENU));
SetMenu(hwnd, menu);
HANDLE haccel = LoadAccelerators(hThisInstance, MAKEINTRESOURCE(800));
// preloading the draw transparent/nontransparent icons for later use
hNontranspIcon = LoadImage(hThisInstance, MAKEINTRESOURCE(IDI_NONTRANSPARENT), IMAGE_ICON, 40, 30, LR_DEFAULTCOLOR);
hTranspIcon = LoadImage(hThisInstance, MAKEINTRESOURCE(IDI_TRANSPARENT), IMAGE_ICON, 40, 30, LR_DEFAULTCOLOR);
hCurFill = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_FILL));
hCurColor = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_COLOR));
hCurZoom = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_ZOOM));
hCurPen = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_PEN));
hCurAirbrush = LoadIcon(hThisInstance, MAKEINTRESOURCE(IDC_AIRBRUSH));
HWND hLine = CreateWindowEx (0, "STATIC", "", WS_CHILD | WS_VISIBLE | SS_ETCHEDHORZ, 0, 0, 5000, 2, hwnd, NULL, hThisInstance, NULL);
// creating the 16 bitmap radio buttons and setting the bitmap
// FIXME: Unintentionally there is a line above the tool bar. To prevent cropping of the buttons height has been increased from 200 to 205
HWND hToolbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | CCS_NOPARENTALIGN | CCS_VERT | CCS_NORESIZE | TBSTYLE_TOOLTIPS, 3, 3, 50, 205, hwnd, NULL, hThisInstance, NULL);
HIMAGELIST hImageList = ImageList_Create(16, 16, ILC_COLOR24 | ILC_MASK, 16, 0);
SendMessage(hToolbar, TB_SETIMAGELIST, 0, (LPARAM)hImageList);
HBITMAP tempBm = LoadImage(hThisInstance, MAKEINTRESOURCE(IDB_TOOLBARICONS), IMAGE_BITMAP, 256, 16, 0);
ImageList_AddMasked(hImageList, tempBm, 0xff00ff);
DeleteObject(tempBm);
SendMessage(hToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
int i;
char tooltips[16][30];
for (i=0; i<16; i++)
{
int wrapnow = 0;
if (i%2==1) wrapnow = TBSTATE_WRAP;
LoadString(hThisInstance, IDS_TOOLTIP1+i, (LPTSTR)&tooltips[i], 30);
TBBUTTON tbbutton = {i, (HMENU)(ID_FREESEL+i), TBSTATE_ENABLED | wrapnow, TBSTYLE_CHECKGROUP, {0}, 0, &tooltips[i]};
SendMessage(hToolbar, TB_ADDBUTTONS, 1, (LPARAM)&tbbutton);
}
// SendMessage(hToolbar, TB_SETROWS, MAKEWPARAM(8, FALSE), (LPARAM)NULL);
SendMessage(hToolbar, TB_CHECKBUTTON, ID_PEN, MAKELONG(TRUE, 0));
SendMessage(hToolbar, TB_SETMAXTEXTROWS, 0, 0);
SendMessage(hToolbar, TB_SETBUTTONSIZE, 0, MAKELONG(25, 25));
// SendMessage(hToolbar, TB_AUTOSIZE, 0, 0);
// creating the tool settings child window
hToolSettings = CreateWindowEx(0, "ToolSettings", "", WS_CHILD | WS_VISIBLE, 7, 210, 42, 140, hwnd, NULL, hThisInstance, NULL);
// creating the palette child window
hPalWin = CreateWindowEx(0, "Palette", "", WS_CHILD | WS_VISIBLE, 56, 9, 255, 32, hwnd, NULL, hThisInstance, NULL);
// creating the scroll box
hScrollbox = CreateWindowEx (WS_EX_CLIENTEDGE, "Scrollbox", "", WS_CHILD | WS_GROUP | WS_HSCROLL | WS_VSCROLL | WS_VISIBLE, 56, 49, 472, 248, hwnd, NULL, hThisInstance, NULL);
// creating the status bar
hStatusBar = CreateWindowEx (0, STATUSCLASSNAME, "", SBARS_SIZEGRIP | WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hwnd, NULL, hThisInstance, NULL);
SendMessage(hStatusBar, SB_SETMINHEIGHT, 21, 0);
hScrlClient = CreateWindowEx(0, "Scrollbox", "", WS_CHILD | WS_VISIBLE, 0, 0, 500, 500, hScrollbox, NULL, hThisInstance, NULL);
// create selection window (initially hidden)
hSelection = CreateWindowEx(WS_EX_TRANSPARENT, "Selection", "", WS_CHILD | BS_OWNERDRAW, 350, 0, 100, 100, hScrlClient, NULL, hThisInstance, NULL);
// creating the window inside the scroll box, on which the image in hDrawingDC's bitmap is drawn
hImageArea = CreateWindowEx (0, "Scrollbox", "", WS_CHILD | WS_VISIBLE, 3, 3, imgXRes, imgYRes, hScrlClient, NULL, hThisInstance, NULL);
hDrawingDC = CreateCompatibleDC(GetDC(hImageArea));
hSelDC = CreateCompatibleDC(GetDC(hImageArea));
SelectObject(hDrawingDC, CreatePen(PS_SOLID, 0, fgColor));
SelectObject(hDrawingDC, CreateSolidBrush(bgColor));
hBms[0] = CreateDIBWithProperties(imgXRes, imgYRes);
SelectObject(hDrawingDC, hBms[0]);
Rectangle(hDrawingDC, 0-1, 0-1, imgXRes+1, imgYRes+1);
// initializing the CHOOSECOLOR structure for use with ChooseColor
int custColors[16] =
{0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff,
0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff};
choosecolor.lStructSize = sizeof(CHOOSECOLOR);
choosecolor.hwndOwner = hwnd;
choosecolor.hInstance = NULL;
choosecolor.rgbResult = 0x00ffffff;
choosecolor.lpCustColors = (COLORREF*)&custColors;
choosecolor.Flags = 0;
choosecolor.lCustData = 0;
choosecolor.lpfnHook = NULL;
choosecolor.lpTemplateName = NULL;
int c;
// initializing the OPENFILENAME structure for use with GetOpenFileName and GetSaveFileName
char ofnFilename[1000];
CopyMemory(&ofnFilename, &filename, 256);
char ofnFiletitle[256];
char ofnFilter[1000];
LoadString(hThisInstance, IDS_OPENFILTER, (LPTSTR)&ofnFilter, 1000);
for (c=0; c<1000; c++) if (ofnFilter[c]==(char)1) ofnFilter[c] = (char)0;
ZeroMemory(&ofn, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof (OPENFILENAME);
ofn.hwndOwner = hwnd;
ofn.hInstance = hThisInstance;
ofn.lpstrFilter = (LPCTSTR)&ofnFilter;
ofn.lpstrFile = (LPTSTR)&ofnFilename;
ofn.nMaxFile = 1000;
ofn.lpstrFileTitle = (LPTSTR)&ofnFiletitle;
ofn.nMaxFileTitle = 256;
ofn.Flags = OFN_HIDEREADONLY;
char sfnFilename[1000];
CopyMemory(&sfnFilename, &filename, 256);
char sfnFiletitle[256];
char sfnFilter[1000];
LoadString(hThisInstance, IDS_SAVEFILTER, (LPTSTR)&sfnFilter, 1000);
for (c=0; c<1000; c++) if (sfnFilter[c]==(char)1) sfnFilter[c] = (char)0;
ZeroMemory(&sfn, sizeof(OPENFILENAME));
sfn.lStructSize = sizeof (OPENFILENAME);
sfn.hwndOwner = hwnd;
sfn.hInstance = hThisInstance;
sfn.lpstrFilter = (LPCTSTR)&sfnFilter;
sfn.lpstrFile = (LPTSTR)&sfnFilename;
sfn.nMaxFile = 1000;
sfn.lpstrFileTitle = (LPTSTR)&sfnFiletitle;
sfn.nMaxFileTitle = 256;
sfn.Flags = OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY;
// by moving the window, the things in WM_SIZE are done
MoveWindow(hwnd, 100, 100, 600, 450, TRUE);
/* Make the window visible on the screen */
ShowWindow (hwnd, nFunsterStil);
/* Run the message loop. It will run until GetMessage() returns 0 */
while (GetMessage (&messages, NULL, 0, 0))
{
TranslateAccelerator(hwnd, haccel, &messages);
/* Translate virtual-key messages into character messages */
TranslateMessage(&messages);
/* Send message to WindowProcedure */
DispatchMessage(&messages);
}
/* The program return-value is 0 - The value that PostQuitMessage() gave */
return messages.wParam;
}

414
reactos/base/applications/paint/mouse.c Executable file → Normal file
View File

@ -1,207 +1,207 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: mouse.c
* PURPOSE: Things which should not be in the mouse event handler itself
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
void placeSelWin()
{
MoveWindow(hSelection, rectSel_dest[0]*zoom/1000, rectSel_dest[1]*zoom/1000, rectSel_dest[2]*zoom/1000+6, rectSel_dest[3]*zoom/1000+6, TRUE);
BringWindowToTop(hSelection);
SendMessage(hImageArea, WM_PAINT, 0, 0);
//SendMessage(hSelection, WM_PAINT, 0, 0);
}
void startPainting(HDC hdc, short x, short y, int fg, int bg)
{
startX = x;
startY = y;
lastX = x;
lastY = y;
if ((activeTool!=5)&&(activeTool!=6)) newReversible();
switch (activeTool)
{
case 2:
ShowWindow(hSelection, SW_HIDE);
break;
case 3:
Erase(hdc, x, y, x, y, bg, rubberRadius);
break;
case 4:
Fill(hdc, x, y, fg);
break;
case 7:
SetPixel(hdc, x, y, fg);
break;
case 8:
Brush(hdc, x, y, x, y, fg, brushStyle);
break;
case 9:
Airbrush(hdc, x, y, fg, airBrushWidth);
break;
}
}
void whilePainting(HDC hdc, short x, short y, int fg, int bg)
{
switch (activeTool)
{
case 2:
{
resetToU1();
short tempX = max(0, min(x, imgXRes));
short tempY = max(0, min(y, imgYRes));
rectSel_dest[0] = rectSel_src[0] = min(startX, tempX);
rectSel_dest[1] = rectSel_src[1] = min(startY, tempY);
rectSel_dest[2] = rectSel_src[2] = max(startX, tempX)-min(startX, tempX);
rectSel_dest[3] = rectSel_src[3] = max(startY, tempY)-min(startY, tempY);
RectSel(hdc, startX, startY, tempX, tempY);
}
break;
case 3:
Erase(hdc, lastX, lastY, x, y, bg, rubberRadius);
break;
case 7:
Line(hdc, lastX, lastY, x, y, fg, 1);
break;
case 8:
Brush(hdc, lastX, lastY, x, y, fg, brushStyle);
break;
case 9:
Airbrush(hdc, x, y, fg, airBrushWidth);
break;
case 11:
resetToU1();
Line(hdc, startX, startY, x, y, fg, lineWidth);
break;
case 13:
resetToU1();
switch (shapeStyle)
{
case 0:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Rect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 15:
resetToU1();
switch (shapeStyle)
{
case 0:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Ellp(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 16:
resetToU1();
switch (shapeStyle)
{
case 0:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
RRect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
}
lastX = x;
lastY = y;
}
void endPainting(HDC hdc, short x, short y, int fg, int bg)
{
switch (activeTool)
{
case 2:
resetToU1();
if ((rectSel_src[2]!=0)&&(rectSel_src[3]!=0))
{
DeleteObject(SelectObject(hSelDC, hSelBm = (HBITMAP)CreateDIBWithProperties(rectSel_src[2], rectSel_src[3])));
BitBlt(hSelDC, 0, 0, rectSel_src[2], rectSel_src[3], hDrawingDC, rectSel_src[0], rectSel_src[1], SRCCOPY);
placeSelWin();
ShowWindow(hSelection, SW_SHOW);
}
break;
case 3:
Erase(hdc, lastX, lastY, x, y, bg, rubberRadius);
break;
case 7:
Line(hdc, lastX, lastY, x, y, fg, 1);
SetPixel(hdc, x, y, fg);
break;
case 11:
resetToU1();
Line(hdc, startX, startY, x, y, fg, lineWidth);
break;
case 13:
resetToU1();
switch (shapeStyle)
{
case 0:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Rect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 15:
resetToU1();
switch (shapeStyle)
{
case 0:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Ellp(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 16:
resetToU1();
switch (shapeStyle)
{
case 0:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
RRect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
}
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: mouse.c
* PURPOSE: Things which should not be in the mouse event handler itself
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
void placeSelWin()
{
MoveWindow(hSelection, rectSel_dest[0]*zoom/1000, rectSel_dest[1]*zoom/1000, rectSel_dest[2]*zoom/1000+6, rectSel_dest[3]*zoom/1000+6, TRUE);
BringWindowToTop(hSelection);
SendMessage(hImageArea, WM_PAINT, 0, 0);
//SendMessage(hSelection, WM_PAINT, 0, 0);
}
void startPainting(HDC hdc, short x, short y, int fg, int bg)
{
startX = x;
startY = y;
lastX = x;
lastY = y;
if ((activeTool!=5)&&(activeTool!=6)) newReversible();
switch (activeTool)
{
case 2:
ShowWindow(hSelection, SW_HIDE);
break;
case 3:
Erase(hdc, x, y, x, y, bg, rubberRadius);
break;
case 4:
Fill(hdc, x, y, fg);
break;
case 7:
SetPixel(hdc, x, y, fg);
break;
case 8:
Brush(hdc, x, y, x, y, fg, brushStyle);
break;
case 9:
Airbrush(hdc, x, y, fg, airBrushWidth);
break;
}
}
void whilePainting(HDC hdc, short x, short y, int fg, int bg)
{
switch (activeTool)
{
case 2:
{
resetToU1();
short tempX = max(0, min(x, imgXRes));
short tempY = max(0, min(y, imgYRes));
rectSel_dest[0] = rectSel_src[0] = min(startX, tempX);
rectSel_dest[1] = rectSel_src[1] = min(startY, tempY);
rectSel_dest[2] = rectSel_src[2] = max(startX, tempX)-min(startX, tempX);
rectSel_dest[3] = rectSel_src[3] = max(startY, tempY)-min(startY, tempY);
RectSel(hdc, startX, startY, tempX, tempY);
}
break;
case 3:
Erase(hdc, lastX, lastY, x, y, bg, rubberRadius);
break;
case 7:
Line(hdc, lastX, lastY, x, y, fg, 1);
break;
case 8:
Brush(hdc, lastX, lastY, x, y, fg, brushStyle);
break;
case 9:
Airbrush(hdc, x, y, fg, airBrushWidth);
break;
case 11:
resetToU1();
Line(hdc, startX, startY, x, y, fg, lineWidth);
break;
case 13:
resetToU1();
switch (shapeStyle)
{
case 0:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Rect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 15:
resetToU1();
switch (shapeStyle)
{
case 0:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Ellp(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 16:
resetToU1();
switch (shapeStyle)
{
case 0:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
RRect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
}
lastX = x;
lastY = y;
}
void endPainting(HDC hdc, short x, short y, int fg, int bg)
{
switch (activeTool)
{
case 2:
resetToU1();
if ((rectSel_src[2]!=0)&&(rectSel_src[3]!=0))
{
DeleteObject(SelectObject(hSelDC, hSelBm = (HBITMAP)CreateDIBWithProperties(rectSel_src[2], rectSel_src[3])));
BitBlt(hSelDC, 0, 0, rectSel_src[2], rectSel_src[3], hDrawingDC, rectSel_src[0], rectSel_src[1], SRCCOPY);
placeSelWin();
ShowWindow(hSelection, SW_SHOW);
}
break;
case 3:
Erase(hdc, lastX, lastY, x, y, bg, rubberRadius);
break;
case 7:
Line(hdc, lastX, lastY, x, y, fg, 1);
SetPixel(hdc, x, y, fg);
break;
case 11:
resetToU1();
Line(hdc, startX, startY, x, y, fg, lineWidth);
break;
case 13:
resetToU1();
switch (shapeStyle)
{
case 0:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Rect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Rect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 15:
resetToU1();
switch (shapeStyle)
{
case 0:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
Ellp(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
Ellp(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
case 16:
resetToU1();
switch (shapeStyle)
{
case 0:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, FALSE);
break;
case 1:
RRect(hdc, startX, startY, x, y, fg, bg, lineWidth, TRUE);
break;
case 2:
RRect(hdc, startX, startY, x, y, fg, fg, lineWidth, TRUE);
break;
}
break;
}
}

30
reactos/base/applications/paint/mouse.h Executable file → Normal file
View File

@ -1,15 +1,15 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: mouse.h
* PURPOSE: Things which should not be in the mouse event handler itself
* PROGRAMMERS: Benedikt Freisen
*/
void placeSelWin();
void startPainting(HDC hdc, short x, short y, int fg, int bg);
void whilePainting(HDC hdc, short x, short y, int fg, int bg);
void endPainting(HDC hdc, short x, short y, int fg, int bg);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: mouse.h
* PURPOSE: Things which should not be in the mouse event handler itself
* PROGRAMMERS: Benedikt Freisen
*/
void placeSelWin();
void startPainting(HDC hdc, short x, short y, int fg, int bg);
void whilePainting(HDC hdc, short x, short y, int fg, int bg);
void endPainting(HDC hdc, short x, short y, int fg, int bg);

46
reactos/base/applications/paint/paint.exe.manifest Executable file → Normal file
View File

@ -1,23 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
name="DevCpp.Apps.Paint"
processorArchitecture="x86"
version="1.0.0.0"
type="win32"/>
<description>Paint</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="x86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
name="DevCpp.Apps.Paint"
processorArchitecture="x86"
version="1.0.0.0"
type="win32"/>
<description>Paint</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="x86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

46
reactos/base/applications/paint/paint.rbuild Executable file → Normal file
View File

@ -1,23 +1,23 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="paint" type="win32gui" installbase="system32" installname="paint.exe" allowwarnings="true">
<include base="paint">.</include>
<library>comdlg32</library>
<library>shell32</library>
<library>user32</library>
<library>gdi32</library>
<library>advapi32</library>
<library>kernel32</library>
<library>comctl32</library>
<file>dialogs.c</file>
<file>dib.c</file>
<file>drawing.c</file>
<file>history.c</file>
<file>main.c</file>
<file>mouse.c</file>
<file>palette.c</file>
<file>selection.c</file>
<file>toolsettings.c</file>
<file>winproc.c</file>
<file>rsrc.rc</file>
</module>
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="paint" type="win32gui" installbase="system32" installname="paint.exe" allowwarnings="true">
<include base="paint">.</include>
<library>comdlg32</library>
<library>shell32</library>
<library>user32</library>
<library>gdi32</library>
<library>advapi32</library>
<library>kernel32</library>
<library>comctl32</library>
<file>dialogs.c</file>
<file>dib.c</file>
<file>drawing.c</file>
<file>history.c</file>
<file>main.c</file>
<file>mouse.c</file>
<file>palette.c</file>
<file>selection.c</file>
<file>toolsettings.c</file>
<file>winproc.c</file>
<file>rsrc.rc</file>
</module>

214
reactos/base/applications/paint/palette.c Executable file → Normal file
View File

@ -1,107 +1,107 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: palette.c
* PURPOSE: Window procedure of the palette window
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
LRESULT CALLBACK PalWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_PAINT:
{
DefWindowProc (hwnd, message, wParam, lParam);
HDC hdc = GetDC(hwnd);
HPEN oldPen;
HBRUSH oldBrush;
int i;
long rectang[4] = {0, 0, 31, 32};
int a;
int b;
for (b=2; b<30; b++) for (a=2; a<29; a++) if ((a+b)%2==1) SetPixel(hdc, a, b, GetSysColor(COLOR_BTNHILIGHT));
DrawEdge(hdc, (LPRECT)&rectang, EDGE_RAISED, BF_TOPLEFT);
DrawEdge(hdc, (LPRECT)&rectang, BDR_SUNKENOUTER, BF_TOPLEFT|BF_BOTTOMRIGHT);
rectang[0] = 11;
rectang[1] = 12;
rectang[2] = 26;
rectang[3] = 27;
DrawEdge(hdc, (LPRECT)&rectang, BDR_RAISEDINNER, BF_RECT|BF_MIDDLE);
oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
oldBrush = SelectObject(hdc, CreateSolidBrush(bgColor));
Rectangle( hdc, rectang[0]+2,rectang[1]+2,rectang[2]-1,rectang[3]-1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
rectang[0] = 4;
rectang[1] = 5;
rectang[2] = 19;
rectang[3] = 20;
DrawEdge(hdc, (LPRECT)&rectang, BDR_RAISEDINNER, BF_RECT|BF_MIDDLE);
oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
oldBrush = SelectObject(hdc, CreateSolidBrush(fgColor));
Rectangle( hdc, rectang[0]+2,rectang[1]+2,rectang[2]-1,rectang[3]-1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
for (i=0; i<28; i++)
{
rectang[0] = 31+(i%14)*16;
rectang[1] = 0+(i/14)*16;
rectang[2] = 16+rectang[0];
rectang[3] = 16+rectang[1];
DrawEdge(hdc, (LPRECT)&rectang, EDGE_RAISED, BF_TOPLEFT);
DrawEdge(hdc, (LPRECT)&rectang, BDR_SUNKENOUTER, BF_RECT);
oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
oldBrush = SelectObject(hdc, CreateSolidBrush(palColors[i]));
Rectangle( hdc, rectang[0]+2,rectang[1]+2,rectang[2]-1,rectang[3]-1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
ReleaseDC(hwnd, hdc);
}
break;
case WM_LBUTTONDOWN:
if (LOWORD(lParam)>=31)
{
fgColor = palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14];
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_RBUTTONDOWN:
if (LOWORD(lParam)>=31)
{
bgColor = palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14];
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_LBUTTONDBLCLK:
if (LOWORD(lParam)>=31) if (ChooseColor(&choosecolor))
{
palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14] = choosecolor.rgbResult;
fgColor = choosecolor.rgbResult;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_RBUTTONDBLCLK:
if (LOWORD(lParam)>=31) if (ChooseColor(&choosecolor))
{
palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14] = choosecolor.rgbResult;
bgColor = choosecolor.rgbResult;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: palette.c
* PURPOSE: Window procedure of the palette window
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
LRESULT CALLBACK PalWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_PAINT:
{
DefWindowProc (hwnd, message, wParam, lParam);
HDC hdc = GetDC(hwnd);
HPEN oldPen;
HBRUSH oldBrush;
int i;
long rectang[4] = {0, 0, 31, 32};
int a;
int b;
for (b=2; b<30; b++) for (a=2; a<29; a++) if ((a+b)%2==1) SetPixel(hdc, a, b, GetSysColor(COLOR_BTNHILIGHT));
DrawEdge(hdc, (LPRECT)&rectang, EDGE_RAISED, BF_TOPLEFT);
DrawEdge(hdc, (LPRECT)&rectang, BDR_SUNKENOUTER, BF_TOPLEFT|BF_BOTTOMRIGHT);
rectang[0] = 11;
rectang[1] = 12;
rectang[2] = 26;
rectang[3] = 27;
DrawEdge(hdc, (LPRECT)&rectang, BDR_RAISEDINNER, BF_RECT|BF_MIDDLE);
oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
oldBrush = SelectObject(hdc, CreateSolidBrush(bgColor));
Rectangle( hdc, rectang[0]+2,rectang[1]+2,rectang[2]-1,rectang[3]-1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
rectang[0] = 4;
rectang[1] = 5;
rectang[2] = 19;
rectang[3] = 20;
DrawEdge(hdc, (LPRECT)&rectang, BDR_RAISEDINNER, BF_RECT|BF_MIDDLE);
oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
oldBrush = SelectObject(hdc, CreateSolidBrush(fgColor));
Rectangle( hdc, rectang[0]+2,rectang[1]+2,rectang[2]-1,rectang[3]-1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
for (i=0; i<28; i++)
{
rectang[0] = 31+(i%14)*16;
rectang[1] = 0+(i/14)*16;
rectang[2] = 16+rectang[0];
rectang[3] = 16+rectang[1];
DrawEdge(hdc, (LPRECT)&rectang, EDGE_RAISED, BF_TOPLEFT);
DrawEdge(hdc, (LPRECT)&rectang, BDR_SUNKENOUTER, BF_RECT);
oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
oldBrush = SelectObject(hdc, CreateSolidBrush(palColors[i]));
Rectangle( hdc, rectang[0]+2,rectang[1]+2,rectang[2]-1,rectang[3]-1);
DeleteObject(SelectObject(hdc, oldBrush));
DeleteObject(SelectObject(hdc, oldPen));
}
ReleaseDC(hwnd, hdc);
}
break;
case WM_LBUTTONDOWN:
if (LOWORD(lParam)>=31)
{
fgColor = palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14];
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_RBUTTONDOWN:
if (LOWORD(lParam)>=31)
{
bgColor = palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14];
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_LBUTTONDBLCLK:
if (LOWORD(lParam)>=31) if (ChooseColor(&choosecolor))
{
palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14] = choosecolor.rgbResult;
fgColor = choosecolor.rgbResult;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_RBUTTONDBLCLK:
if (LOWORD(lParam)>=31) if (ChooseColor(&choosecolor))
{
palColors[(LOWORD(lParam)-31)/16+(HIWORD(lParam)/16)*14] = choosecolor.rgbResult;
bgColor = choosecolor.rgbResult;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}

18
reactos/base/applications/paint/palette.h Executable file → Normal file
View File

@ -1,9 +1,9 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: palette.h
* PURPOSE: Window procedure of the palette window
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK PalWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: palette.h
* PURPOSE: Window procedure of the palette window
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK PalWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

74
reactos/base/applications/paint/rsrc.rc Executable file → Normal file
View File

@ -1,37 +1,37 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: main.c
* PURPOSE: Managing the resources
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "definitions.h"
#include "icons.rc"
// cp 1252 languages
#include "lang/de-DE.rc"
#include "lang/en-GB.rc"
#include "lang/en-US.rc"
#include "lang/fr-FR.rc"
#include "lang/it-IT.rc"
#include "lang/es-ES.rc"
#include "lang/pt-BR.rc"
#include "lang/pt-PT.rc"
// cp 1250 languages
#include "lang/sk-SK.rc"
#include "lang/cs-CZ.rc"
// cp 1251 languages
#include "lang/uk-UA.rc"
//
// SUPPORT FOR WINDOWS XP THEMES:
// THIS WILL MAKE THE PROGRAM USE THE COMMON CONTROLS
// LIBRARY VERSION 6.0 (IF IT IS AVAILABLE)
//
1 24 "paint.exe.manifest"
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: main.c
* PURPOSE: Managing the resources
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "definitions.h"
#include "icons.rc"
// cp 1252 languages
#include "lang/de-DE.rc"
#include "lang/en-GB.rc"
#include "lang/en-US.rc"
#include "lang/fr-FR.rc"
#include "lang/it-IT.rc"
#include "lang/es-ES.rc"
#include "lang/pt-BR.rc"
#include "lang/pt-PT.rc"
// cp 1250 languages
#include "lang/sk-SK.rc"
#include "lang/cs-CZ.rc"
// cp 1251 languages
#include "lang/uk-UA.rc"
//
// SUPPORT FOR WINDOWS XP THEMES:
// THIS WILL MAKE THE PROGRAM USE THE COMMON CONTROLS
// LIBRARY VERSION 6.0 (IF IT IS AVAILABLE)
//
1 24 "paint.exe.manifest"

150
reactos/base/applications/paint/selection.c Executable file → Normal file
View File

@ -1,75 +1,75 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: selection.c
* PURPOSE: Window procedure of the selection window
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
BOOL moving = FALSE;
short xPos;
short yPos;
LRESULT CALLBACK SelectionWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_PAINT:
{
if (!moving)
{
DefWindowProc (hwnd, message, wParam, lParam);
HDC hdc=GetDC(hwnd);
SelectionFrame(hdc, 1, 1, rectSel_dest[2]*zoom/1000+5, rectSel_dest[3]*zoom/1000+5);
ReleaseDC(hwnd, hdc);
}
}
break;
case WM_LBUTTONDOWN:
xPos = LOWORD(lParam);
yPos = HIWORD(lParam);
SetCapture(hwnd);
moving = TRUE;
break;
case WM_MOUSEMOVE:
if (moving)
{
resetToU1();
rectSel_dest[0]+=(short)LOWORD(lParam)-xPos;
rectSel_dest[1]+=(short)HIWORD(lParam)-yPos;
Rect(hDrawingDC, rectSel_src[0], rectSel_src[1], rectSel_src[0]+rectSel_src[2], rectSel_src[1]+rectSel_src[3], bgColor, bgColor, 0, TRUE);
if (transpBg==0)
BitBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, SRCCOPY);
else
BitBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, SRCAND);
//TransparentBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, rectSel_dest[2], rectSel_dest[3], bgColor);
SendMessage(hImageArea, WM_PAINT, 0, 0);
xPos = LOWORD(lParam);
yPos = HIWORD(lParam);
//SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_LBUTTONUP:
if (moving)
{
moving = FALSE;
ReleaseCapture();
placeSelWin();
ShowWindow(hSelection, SW_HIDE);
ShowWindow(hSelection, SW_SHOW);
}
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: selection.c
* PURPOSE: Window procedure of the selection window
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
BOOL moving = FALSE;
short xPos;
short yPos;
LRESULT CALLBACK SelectionWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_PAINT:
{
if (!moving)
{
DefWindowProc (hwnd, message, wParam, lParam);
HDC hdc=GetDC(hwnd);
SelectionFrame(hdc, 1, 1, rectSel_dest[2]*zoom/1000+5, rectSel_dest[3]*zoom/1000+5);
ReleaseDC(hwnd, hdc);
}
}
break;
case WM_LBUTTONDOWN:
xPos = LOWORD(lParam);
yPos = HIWORD(lParam);
SetCapture(hwnd);
moving = TRUE;
break;
case WM_MOUSEMOVE:
if (moving)
{
resetToU1();
rectSel_dest[0]+=(short)LOWORD(lParam)-xPos;
rectSel_dest[1]+=(short)HIWORD(lParam)-yPos;
Rect(hDrawingDC, rectSel_src[0], rectSel_src[1], rectSel_src[0]+rectSel_src[2], rectSel_src[1]+rectSel_src[3], bgColor, bgColor, 0, TRUE);
if (transpBg==0)
BitBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, SRCCOPY);
else
BitBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, SRCAND);
//TransparentBlt(hDrawingDC, rectSel_dest[0], rectSel_dest[1], rectSel_dest[2], rectSel_dest[3], hSelDC, 0, 0, rectSel_dest[2], rectSel_dest[3], bgColor);
SendMessage(hImageArea, WM_PAINT, 0, 0);
xPos = LOWORD(lParam);
yPos = HIWORD(lParam);
//SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case WM_LBUTTONUP:
if (moving)
{
moving = FALSE;
ReleaseCapture();
placeSelWin();
ShowWindow(hSelection, SW_HIDE);
ShowWindow(hSelection, SW_SHOW);
}
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}

18
reactos/base/applications/paint/selection.h Executable file → Normal file
View File

@ -1,9 +1,9 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: selection.h
* PURPOSE: Window procedure of the selection window
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK SelectionWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: selection.h
* PURPOSE: Window procedure of the selection window
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK SelectionWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

496
reactos/base/applications/paint/toolsettings.c Executable file → Normal file
View File

@ -1,248 +1,248 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: toolsettings.c
* PURPOSE: Window procedure of the tool settings window
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
LRESULT CALLBACK SettingsWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_PAINT:
{
DefWindowProc (hwnd, message, wParam, lParam);
HDC hdc = GetDC(hwnd);
int rectang[4] = {0, 0, 42, 66};
DrawEdge(hdc, (LPRECT)&rectang, BDR_SUNKENOUTER, BF_RECT | BF_MIDDLE);
int rectang2[4] = {0, 70, 42, 136};
if (activeTool>=13)
DrawEdge(hdc, (LPRECT)&rectang2, BDR_SUNKENOUTER, BF_RECT | BF_MIDDLE);
else
DrawEdge(hdc, (LPRECT)&rectang2, 0, BF_RECT | BF_MIDDLE);
switch (activeTool)
{
case 1:
case 2:
case 10:
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, transpBg*31+2, 41, transpBg*31+33);
DeleteObject(SelectObject(hdc, oldPen));
DrawIconEx(hdc, 1, 2, hNontranspIcon, 40, 30, 0, NULL, DI_NORMAL);
DrawIconEx(hdc, 1, 33, hTranspIcon, 40, 30, 0, NULL, DI_NORMAL);
}
break;
case 3:
{
int i;
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
for (i=0; i<4; i++)
{
if (rubberRadius==i+2)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 14, i*15+2, 29, i*15+17);
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHTTEXT));
} else SelectObject(hdc, GetSysColorBrush(COLOR_WINDOWTEXT));
Rectangle(hdc, 19-i, i*14+7, 24+i, i*16+12);
}
DeleteObject(SelectObject(hdc, oldPen));
}
break;
case 8:
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, brushStyle%3*13+2, brushStyle/3*15+2, brushStyle%3*13+15, brushStyle/3*15+17);
DeleteObject(SelectObject(hdc, oldPen));
int i;
for (i=0; i<12; i++)
if (i==brushStyle)
Brush(hdc, i%3*13+7, i/3*15+8, i%3*13+7, i/3*15+8, GetSysColor(COLOR_HIGHLIGHTTEXT), i);
else
Brush(hdc, i%3*13+7, i/3*15+8, i%3*13+7, i/3*15+8, GetSysColor(COLOR_WINDOWTEXT), i);
}
break;
case 9:
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
switch (airBrushWidth)
{
case 5:
Rectangle(hdc, 2, 2, 21, 31);
break;
case 8:
Rectangle(hdc, 20, 2, 41, 31);
break;
case 3:
Rectangle(hdc, 2, 30, 16, 61);
break;
case 12:
Rectangle(hdc, 15, 30, 41, 61);
break;
}
if (airBrushWidth==5)
Airbrush(hdc, 10, 15, GetSysColor(COLOR_HIGHLIGHTTEXT), 5);
else
Airbrush(hdc, 10, 15, GetSysColor(COLOR_WINDOWTEXT), 5);
if (airBrushWidth==8)
Airbrush(hdc, 30, 15, GetSysColor(COLOR_HIGHLIGHTTEXT), 8);
else
Airbrush(hdc, 30, 15, GetSysColor(COLOR_WINDOWTEXT), 8);
if (airBrushWidth==3)
Airbrush(hdc, 8, 45, GetSysColor(COLOR_HIGHLIGHTTEXT), 3);
else
Airbrush(hdc, 8, 45, GetSysColor(COLOR_WINDOWTEXT), 3);
if (airBrushWidth==12)
Airbrush(hdc, 27, 45, GetSysColor(COLOR_HIGHLIGHTTEXT), 12);
else
Airbrush(hdc, 27, 45, GetSysColor(COLOR_WINDOWTEXT), 12);
DeleteObject(SelectObject(hdc, oldPen));
}
break;
case 11:
case 12:
{
int i;
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
for (i=0; i<5; i++)
{
if (lineWidth==i+1)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, i*12+2, 41, i*12+14);
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHTTEXT));
} else SelectObject(hdc, GetSysColorBrush(COLOR_WINDOWTEXT));
Rectangle(hdc, 5, i*12+6, 38, i*12+8+i);
}
DeleteObject(SelectObject(hdc, oldPen));
}
break;
case 13:
case 14:
case 15:
case 16:
{
int i;
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
for (i=0; i<3; i++)
{
if (shapeStyle==i)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, i*20+2, 41, i*20+22);
}
}
if (shapeStyle==0)
Rect(hdc, 5, 6, 37, 16, GetSysColor(COLOR_HIGHLIGHTTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, FALSE);
else
Rect(hdc, 5, 6, 37, 16, GetSysColor(COLOR_WINDOWTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, FALSE);
if (shapeStyle==1)
Rect(hdc, 5, 26, 37, 36, GetSysColor(COLOR_HIGHLIGHTTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, TRUE);
else
Rect(hdc, 5, 26, 37, 36, GetSysColor(COLOR_WINDOWTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, TRUE);
Rect(hdc, 5, 46, 37, 56, GetSysColor(COLOR_APPWORKSPACE), GetSysColor(COLOR_APPWORKSPACE), 1, TRUE);
for (i=0; i<5; i++)
{
if (lineWidth==i+1)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, i*12+72, 41, i*12+84);
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHTTEXT));
} else SelectObject(hdc, GetSysColorBrush(COLOR_WINDOWTEXT));
Rectangle(hdc, 5, i*12+76, 38, i*12+78+i);
}
DeleteObject(SelectObject(hdc, oldPen));
}
break;
}
ReleaseDC(hwnd, hdc);
}
break;
case WM_LBUTTONDOWN:
{
switch (activeTool)
{
case 1:
case 2:
case 10:
if ((HIWORD(lParam)>1)&&(HIWORD(lParam)<64))
{
transpBg = (HIWORD(lParam)-2)/31;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 3:
if ((HIWORD(lParam)>1)&&(HIWORD(lParam)<62))
{
rubberRadius = (HIWORD(lParam)-2)/15+2;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 8:
if ((LOWORD(lParam)>1)&&(LOWORD(lParam)<40)&&(HIWORD(lParam)>1)&&(HIWORD(lParam)<62))
{
brushStyle = (HIWORD(lParam)-2)/15*3+(LOWORD(lParam)-2)/13;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 9:
if (HIWORD(lParam)<62)
{
if (HIWORD(lParam)<30)
{
if (LOWORD(lParam)<20) airBrushWidth=5; else airBrushWidth=8;
}else
{
if (LOWORD(lParam)<15) airBrushWidth=3; else airBrushWidth=12;
}
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 11:
case 12:
if (HIWORD(lParam)<=62)
{
lineWidth = (HIWORD(lParam)-2)/12+1;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 13:
case 14:
case 15:
case 16:
if (HIWORD(lParam)<=60)
{
shapeStyle = (HIWORD(lParam)-2)/20;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
if ((HIWORD(lParam)>=70)&&(HIWORD(lParam)<=132))
{
lineWidth = (HIWORD(lParam)-72)/12+1;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
}
}
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: toolsettings.c
* PURPOSE: Window procedure of the tool settings window
* PROGRAMMERS: Benedikt Freisen
*/
/* INCLUDES *********************************************************/
#include <windows.h>
#include "globalvar.h"
/* FUNCTIONS ********************************************************/
LRESULT CALLBACK SettingsWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_PAINT:
{
DefWindowProc (hwnd, message, wParam, lParam);
HDC hdc = GetDC(hwnd);
int rectang[4] = {0, 0, 42, 66};
DrawEdge(hdc, (LPRECT)&rectang, BDR_SUNKENOUTER, BF_RECT | BF_MIDDLE);
int rectang2[4] = {0, 70, 42, 136};
if (activeTool>=13)
DrawEdge(hdc, (LPRECT)&rectang2, BDR_SUNKENOUTER, BF_RECT | BF_MIDDLE);
else
DrawEdge(hdc, (LPRECT)&rectang2, 0, BF_RECT | BF_MIDDLE);
switch (activeTool)
{
case 1:
case 2:
case 10:
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, transpBg*31+2, 41, transpBg*31+33);
DeleteObject(SelectObject(hdc, oldPen));
DrawIconEx(hdc, 1, 2, hNontranspIcon, 40, 30, 0, NULL, DI_NORMAL);
DrawIconEx(hdc, 1, 33, hTranspIcon, 40, 30, 0, NULL, DI_NORMAL);
}
break;
case 3:
{
int i;
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
for (i=0; i<4; i++)
{
if (rubberRadius==i+2)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 14, i*15+2, 29, i*15+17);
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHTTEXT));
} else SelectObject(hdc, GetSysColorBrush(COLOR_WINDOWTEXT));
Rectangle(hdc, 19-i, i*14+7, 24+i, i*16+12);
}
DeleteObject(SelectObject(hdc, oldPen));
}
break;
case 8:
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, brushStyle%3*13+2, brushStyle/3*15+2, brushStyle%3*13+15, brushStyle/3*15+17);
DeleteObject(SelectObject(hdc, oldPen));
int i;
for (i=0; i<12; i++)
if (i==brushStyle)
Brush(hdc, i%3*13+7, i/3*15+8, i%3*13+7, i/3*15+8, GetSysColor(COLOR_HIGHLIGHTTEXT), i);
else
Brush(hdc, i%3*13+7, i/3*15+8, i%3*13+7, i/3*15+8, GetSysColor(COLOR_WINDOWTEXT), i);
}
break;
case 9:
{
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
switch (airBrushWidth)
{
case 5:
Rectangle(hdc, 2, 2, 21, 31);
break;
case 8:
Rectangle(hdc, 20, 2, 41, 31);
break;
case 3:
Rectangle(hdc, 2, 30, 16, 61);
break;
case 12:
Rectangle(hdc, 15, 30, 41, 61);
break;
}
if (airBrushWidth==5)
Airbrush(hdc, 10, 15, GetSysColor(COLOR_HIGHLIGHTTEXT), 5);
else
Airbrush(hdc, 10, 15, GetSysColor(COLOR_WINDOWTEXT), 5);
if (airBrushWidth==8)
Airbrush(hdc, 30, 15, GetSysColor(COLOR_HIGHLIGHTTEXT), 8);
else
Airbrush(hdc, 30, 15, GetSysColor(COLOR_WINDOWTEXT), 8);
if (airBrushWidth==3)
Airbrush(hdc, 8, 45, GetSysColor(COLOR_HIGHLIGHTTEXT), 3);
else
Airbrush(hdc, 8, 45, GetSysColor(COLOR_WINDOWTEXT), 3);
if (airBrushWidth==12)
Airbrush(hdc, 27, 45, GetSysColor(COLOR_HIGHLIGHTTEXT), 12);
else
Airbrush(hdc, 27, 45, GetSysColor(COLOR_WINDOWTEXT), 12);
DeleteObject(SelectObject(hdc, oldPen));
}
break;
case 11:
case 12:
{
int i;
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
for (i=0; i<5; i++)
{
if (lineWidth==i+1)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, i*12+2, 41, i*12+14);
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHTTEXT));
} else SelectObject(hdc, GetSysColorBrush(COLOR_WINDOWTEXT));
Rectangle(hdc, 5, i*12+6, 38, i*12+8+i);
}
DeleteObject(SelectObject(hdc, oldPen));
}
break;
case 13:
case 14:
case 15:
case 16:
{
int i;
HPEN oldPen = SelectObject(hdc, CreatePen(PS_NULL, 0, 0));
for (i=0; i<3; i++)
{
if (shapeStyle==i)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, i*20+2, 41, i*20+22);
}
}
if (shapeStyle==0)
Rect(hdc, 5, 6, 37, 16, GetSysColor(COLOR_HIGHLIGHTTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, FALSE);
else
Rect(hdc, 5, 6, 37, 16, GetSysColor(COLOR_WINDOWTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, FALSE);
if (shapeStyle==1)
Rect(hdc, 5, 26, 37, 36, GetSysColor(COLOR_HIGHLIGHTTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, TRUE);
else
Rect(hdc, 5, 26, 37, 36, GetSysColor(COLOR_WINDOWTEXT), GetSysColor(COLOR_APPWORKSPACE), 1, TRUE);
Rect(hdc, 5, 46, 37, 56, GetSysColor(COLOR_APPWORKSPACE), GetSysColor(COLOR_APPWORKSPACE), 1, TRUE);
for (i=0; i<5; i++)
{
if (lineWidth==i+1)
{
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHT));
Rectangle(hdc, 2, i*12+72, 41, i*12+84);
SelectObject(hdc, GetSysColorBrush(COLOR_HIGHLIGHTTEXT));
} else SelectObject(hdc, GetSysColorBrush(COLOR_WINDOWTEXT));
Rectangle(hdc, 5, i*12+76, 38, i*12+78+i);
}
DeleteObject(SelectObject(hdc, oldPen));
}
break;
}
ReleaseDC(hwnd, hdc);
}
break;
case WM_LBUTTONDOWN:
{
switch (activeTool)
{
case 1:
case 2:
case 10:
if ((HIWORD(lParam)>1)&&(HIWORD(lParam)<64))
{
transpBg = (HIWORD(lParam)-2)/31;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 3:
if ((HIWORD(lParam)>1)&&(HIWORD(lParam)<62))
{
rubberRadius = (HIWORD(lParam)-2)/15+2;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 8:
if ((LOWORD(lParam)>1)&&(LOWORD(lParam)<40)&&(HIWORD(lParam)>1)&&(HIWORD(lParam)<62))
{
brushStyle = (HIWORD(lParam)-2)/15*3+(LOWORD(lParam)-2)/13;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 9:
if (HIWORD(lParam)<62)
{
if (HIWORD(lParam)<30)
{
if (LOWORD(lParam)<20) airBrushWidth=5; else airBrushWidth=8;
}else
{
if (LOWORD(lParam)<15) airBrushWidth=3; else airBrushWidth=12;
}
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 11:
case 12:
if (HIWORD(lParam)<=62)
{
lineWidth = (HIWORD(lParam)-2)/12+1;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
case 13:
case 14:
case 15:
case 16:
if (HIWORD(lParam)<=60)
{
shapeStyle = (HIWORD(lParam)-2)/20;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
if ((HIWORD(lParam)>=70)&&(HIWORD(lParam)<=132))
{
lineWidth = (HIWORD(lParam)-72)/12+1;
SendMessage(hwnd, WM_PAINT, 0, 0);
}
break;
}
}
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}

18
reactos/base/applications/paint/toolsettings.h Executable file → Normal file
View File

@ -1,9 +1,9 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: toolsettings.h
* PURPOSE: Window procedure of the tool settings window
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK SettingsWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: toolsettings.h
* PURPOSE: Window procedure of the tool settings window
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK SettingsWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

1216
reactos/base/applications/paint/winproc.c Executable file → Normal file

File diff suppressed because it is too large Load Diff

20
reactos/base/applications/paint/winproc.h Executable file → Normal file
View File

@ -1,10 +1,10 @@
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: winproc.h
* PURPOSE: Window procedure of the main window and all children apart from
* hPalWin, hToolSettings and hSelection
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
/*
* PROJECT: PAINT for ReactOS
* LICENSE: LGPL
* FILE: winproc.h
* PURPOSE: Window procedure of the main window and all children apart from
* hPalWin, hToolSettings and hSelection
* PROGRAMMERS: Benedikt Freisen
*/
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);