Commit 4e3fd5f3 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Implement file filtering (matching of file name patterns and file

types).
parent 98b2e381
...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Tdit dle Velikost&i" , 406 MENUITEM "Tdit dle Velikost&i" , 406
MENUITEM "Tdit dle &data" , 407 MENUITEM "Tdit dle &data" , 407
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Tdit dle &..." , 409 MENUITEM "Tdit dle &..." , ID_VIEW_FILTER
} }
POPUP "&Nastaven" { POPUP "&Nastaven" {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Winefile * Winefile
* German Language Support * German Language Support
* *
* Copyright 2000 Martin Fuchs * Copyright 2000, 2005 Martin Fuchs
* Copyright 2002 Steven Edwards * Copyright 2002 Steven Edwards
* Copyright 2002 Alexandre Julliard * Copyright 2002 Alexandre Julliard
* *
...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Nach &Gre" , ID_VIEW_SORT_SIZE MENUITEM "Nach &Gre" , ID_VIEW_SORT_SIZE
MENUITEM "Nach &Datum" , ID_VIEW_SORT_DATE MENUITEM "Nach &Datum" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Angaben ausw&hlen..." , 409 MENUITEM "Angaben ausw&hlen..." , ID_VIEW_FILTER
} }
POPUP "&Optionen" { POPUP "&Optionen" {
...@@ -178,6 +178,29 @@ FONT 8, "MS Shell Dlg" ...@@ -178,6 +178,29 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON "&Durchsuchen" , 254, 158, 43, 47, 14 PUSHBUTTON "&Durchsuchen" , 254, 158, 43, 47, 14
} }
IDD_DIALOG_VIEW_TYPE DIALOG DISCARDABLE 15, 13, 161, 97
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Angaben auswhlen"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "&Name:",-1,7,8,22,10
EDITTEXT IDC_VIEW_PATTERN,31,7,63,12,ES_AUTOHSCROLL
GROUPBOX "Dateityp",-1,7,23,87,56
CONTROL "&Verzeichnisse",IDC_VIEW_TYPE_DIRECTORIES,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,32,70,10
CONTROL "&Programme",IDC_VIEW_TYPE_PROGRAMS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,43,70,10
CONTROL "&Dokumente",IDC_VIEW_TYPE_DOCUMENTS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,54,70,10
CONTROL "&Andere Dateien",IDC_VIEW_TYPE_OTHERS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,65,70,10
CONTROL "Vers&teckte/Systemdateien anzeigen",IDC_VIEW_TYPE_HIDDEN,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,81,106,9
DEFPUSHBUTTON "OK",IDOK,104,7,50,14
PUSHBUTTON "Cancel",IDCANCEL,104,24,50,14
END
STRINGTABLE STRINGTABLE
{ {
IDS_FONT_SEL_DLG_NAME "Anwenden der Schriftarteinstellung" IDS_FONT_SEL_DLG_NAME "Anwenden der Schriftarteinstellung"
......
...@@ -97,7 +97,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -97,7 +97,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Sort by Si&ze" , ID_VIEW_SORT_SIZE MENUITEM "Sort by Si&ze" , ID_VIEW_SORT_SIZE
MENUITEM "Sort by &Date" , ID_VIEW_SORT_DATE MENUITEM "Sort by &Date" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Filter by &..." , 409 MENUITEM "Filter by &..." , ID_VIEW_FILTER
} }
POPUP "&Options" { POPUP "&Options" {
...@@ -178,6 +178,29 @@ FONT 8, "MS Shell Dlg" ...@@ -178,6 +178,29 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON "&Browse" , 254, 158, 43, 47, 14 PUSHBUTTON "&Browse" , 254, 158, 43, 47, 14
} }
IDD_DIALOG_VIEW_TYPE DIALOG DISCARDABLE 15, 13, 161, 97
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "By File Type"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "&Name:",-1,7,8,22,10
EDITTEXT IDC_VIEW_PATTERN,31,7,63,12,ES_AUTOHSCROLL
GROUPBOX "File Type",-1,7,23,87,56
CONTROL "&Directories",IDC_VIEW_TYPE_DIRECTORIES,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,32,70,10
CONTROL "&Programs",IDC_VIEW_TYPE_PROGRAMS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,43,70,10
CONTROL "Docu&ments",IDC_VIEW_TYPE_DOCUMENTS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,54,70,10
CONTROL "&Other files",IDC_VIEW_TYPE_OTHERS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,65,70,10
CONTROL "Show Hidden/&System Files",IDC_VIEW_TYPE_HIDDEN,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,81,106,9
DEFPUSHBUTTON "OK",IDOK,104,7,50,14
PUSHBUTTON "Cancel",IDCANCEL,104,24,50,14
END
STRINGTABLE STRINGTABLE
{ {
IDS_FONT_SEL_DLG_NAME "Applying font settings" IDS_FONT_SEL_DLG_NAME "Applying font settings"
......
...@@ -95,7 +95,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -95,7 +95,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Ordenar por t&amao" , ID_VIEW_SORT_SIZE MENUITEM "Ordenar por t&amao" , ID_VIEW_SORT_SIZE
MENUITEM "Ordenar por &fecha" , ID_VIEW_SORT_DATE MENUITEM "Ordenar por &fecha" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Ordenar por &..." , 409 MENUITEM "Ordenar por &..." , ID_VIEW_FILTER
} }
POPUP "&Opciones" { POPUP "&Opciones" {
......
...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Trier par Ta&ille" , ID_VIEW_SORT_SIZE MENUITEM "Trier par Ta&ille" , ID_VIEW_SORT_SIZE
MENUITEM "Trier par Dat&e" , ID_VIEW_SORT_DATE MENUITEM "Trier par Dat&e" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Trier par &..." , 409 MENUITEM "Trier par &..." , ID_VIEW_FILTER
} }
POPUP "&Options" { POPUP "&Options" {
......
...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Rendezs &mret szerint" , ID_VIEW_SORT_SIZE MENUITEM "Rendezs &mret szerint" , ID_VIEW_SORT_SIZE
MENUITEM "Rendezs &dtum szerint" , ID_VIEW_SORT_DATE MENUITEM "Rendezs &dtum szerint" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Egyedi rendezs &..." , 409 MENUITEM "Egyedi rendezs &..." , ID_VIEW_FILTER
} }
POPUP "&Belltsok" { POPUP "&Belltsok" {
......
...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Ordina per Dimensione" , ID_VIEW_SORT_SIZE MENUITEM "&Ordina per Dimensione" , ID_VIEW_SORT_SIZE
MENUITEM "&Ordina per Data" , ID_VIEW_SORT_DATE MENUITEM "&Ordina per Data" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Ordina per &..." , 409 MENUITEM "Ordina per &..." , ID_VIEW_FILTER
} }
POPUP "&Opzioni" { POPUP "&Opzioni" {
......
...@@ -5,7 +5,7 @@ SRCDIR = @srcdir@ ...@@ -5,7 +5,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winefile.exe MODULE = winefile.exe
APPMODE = -mwindows APPMODE = -mwindows
IMPORTS = shell32 comdlg32 comctl32 ole32 user32 gdi32 kernel32 mpr IMPORTS = shell32 comdlg32 comctl32 ole32 mpr user32 gdi32 advapi32 kernel32
EXTRALIBS = -luuid EXTRALIBS = -luuid
C_SRCS = \ C_SRCS = \
......
...@@ -94,7 +94,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -94,7 +94,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Sorteer op &grootte" , ID_VIEW_SORT_SIZE MENUITEM "Sorteer op &grootte" , ID_VIEW_SORT_SIZE
MENUITEM "Sorteer op &datum" , ID_VIEW_SORT_DATE MENUITEM "Sorteer op &datum" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Sorteer op &..." , 409 MENUITEM "Sorteer op &..." , ID_VIEW_FILTER
} }
POPUP "&Opties" { POPUP "&Opties" {
......
...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Rozmie &po wielkoci" , 406 MENUITEM "Rozmie &po wielkoci" , 406
MENUITEM "&Sortuj po dacie" , 407 MENUITEM "&Sortuj po dacie" , 407
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Sortuj po &..." , 409 MENUITEM "Sortuj po &..." , ID_VIEW_FILTER
} }
POPUP "&Opcje" { POPUP "&Opcje" {
......
...@@ -97,7 +97,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -97,7 +97,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Cl&assificar por tamanho" , ID_VIEW_SORT_SIZE MENUITEM "Cl&assificar por tamanho" , ID_VIEW_SORT_SIZE
MENUITEM "Cla&ssificar por &data" , ID_VIEW_SORT_DATE MENUITEM "Cla&ssificar por &data" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Classificar &por..." , 409 MENUITEM "Classificar &por..." , ID_VIEW_FILTER
} }
POPUP "&Opes" { POPUP "&Opes" {
...@@ -224,7 +224,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -224,7 +224,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Cl&assificar por tamanho" , ID_VIEW_SORT_SIZE MENUITEM "Cl&assificar por tamanho" , ID_VIEW_SORT_SIZE
MENUITEM "Cla&ssificar por &data" , ID_VIEW_SORT_DATE MENUITEM "Cla&ssificar por &data" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Classificar &por..." , 409 MENUITEM "Classificar &por..." , ID_VIEW_FILTER
} }
POPUP "&Opes" { POPUP "&Opes" {
......
...@@ -94,7 +94,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -94,7 +94,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM " &" , ID_VIEW_SORT_SIZE MENUITEM " &" , ID_VIEW_SORT_SIZE
MENUITEM " &" , ID_VIEW_SORT_DATE MENUITEM " &" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM " &..." , 409 MENUITEM " &..." , ID_VIEW_FILTER
} }
POPUP "&" { POPUP "&" {
......
...@@ -95,7 +95,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -95,7 +95,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Sort by Si&ze" , ID_VIEW_SORT_SIZE MENUITEM "Sort by Si&ze" , ID_VIEW_SORT_SIZE
MENUITEM "Sort by &Date" , ID_VIEW_SORT_DATE MENUITEM "Sort by &Date" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Filter by &..." , 409 MENUITEM "Filter by &..." , ID_VIEW_FILTER
} }
POPUP "&Options" { POPUP "&Options" {
......
...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -98,7 +98,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Sortera efter st&orlek", ID_VIEW_SORT_SIZE MENUITEM "Sortera efter st&orlek", ID_VIEW_SORT_SIZE
MENUITEM "Sortera efter &datum", ID_VIEW_SORT_DATE MENUITEM "Sortera efter &datum", ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Sortera efter &...", 409 MENUITEM "Sortera efter &...", ID_VIEW_FILTER
} }
POPUP "&Instllningar" { POPUP "&Instllningar" {
......
...@@ -95,7 +95,7 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -95,7 +95,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "按大小排序(&Z)" , ID_VIEW_SORT_SIZE MENUITEM "按大小排序(&Z)" , ID_VIEW_SORT_SIZE
MENUITEM "按日期排序(&D)" , ID_VIEW_SORT_DATE MENUITEM "按日期排序(&D)" , ID_VIEW_SORT_DATE
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "定制排序..." , 409 MENUITEM "定制排序..." , ID_VIEW_FILTER
} }
POPUP "选项(&O)" { POPUP "选项(&O)" {
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#define IDD_EXECUTE 103 #define IDD_EXECUTE 103
#define IDD_SELECT_DESTINATION 104 #define IDD_SELECT_DESTINATION 104
#define IDD_DIALOG_VIEW_TYPE 105
/* control ids */ /* control ids */
...@@ -51,6 +52,7 @@ ...@@ -51,6 +52,7 @@
#define ID_VIEW_SORT_TYPE 405 #define ID_VIEW_SORT_TYPE 405
#define ID_VIEW_SORT_SIZE 406 #define ID_VIEW_SORT_SIZE 406
#define ID_VIEW_SORT_DATE 407 #define ID_VIEW_SORT_DATE 407
#define ID_VIEW_FILTER 409
#define ID_VIEW_SPLIT 414 #define ID_VIEW_SPLIT 414
#define ID_SELECT_FONT 510 #define ID_SELECT_FONT 510
#define ID_VIEW_TOOL_BAR 508 #define ID_VIEW_TOOL_BAR 508
...@@ -69,6 +71,13 @@ ...@@ -69,6 +71,13 @@
#define ID_HELP_USING 0xE144 #define ID_HELP_USING 0xE144
#define ID_HELP 0xE146 #define ID_HELP 0xE146
#define IDC_VIEW_PATTERN 1000
#define IDC_VIEW_TYPE_DIRECTORIES 1001
#define IDC_VIEW_TYPE_PROGRAMS 1002
#define IDC_VIEW_TYPE_DOCUMENTS 1003
#define IDC_VIEW_TYPE_OTHERS 1004
#define IDC_VIEW_TYPE_HIDDEN 1005
/* winefile extensions */ /* winefile extensions */
#define ID_ABOUT_WINE 0x8000 #define ID_ABOUT_WINE 0x8000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment