Commit 371c620d authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Implement ID_VIEW_SPLIT command.

parent 27792f6f
......@@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "J&en strom" , 411
MENUITEM "Jen a&dres&" , 412
MENUITEM SEPARATOR
MENUITEM "S&louit" , 414
MENUITEM "S&louit" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nzev" , ID_VIEW_NAME
MENUITEM "&Vechny detaily" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Nur St&ruktur" , 411
MENUITEM "Nur &Verzeichnis" , 412
MENUITEM SEPARATOR
MENUITEM "&Teilen" , 414
MENUITEM "&Teilen" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Name" , ID_VIEW_NAME
MENUITEM "A&lle Dateiangaben" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -86,7 +86,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Tr&ee Only" , 411
MENUITEM "Directory &Only" , 412
MENUITEM SEPARATOR
MENUITEM "Sp&lit" , 414
MENUITEM "Sp&lit" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Name" , ID_VIEW_NAME
MENUITEM "&All File Details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "rbol &slo" , 411
MENUITEM "&Directorio slo" , 412
MENUITEM SEPARATOR
MENUITEM "Di&vidir" , 414
MENUITEM "Di&vidir" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "No&mbre" , ID_VIEW_NAME
MENUITEM "T&odos los detalles" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Arbre seulement" , 411
MENUITEM "&Rpertoire seulement" , 412
MENUITEM SEPARATOR
MENUITEM "&Sparer" , 414
MENUITEM "&Sparer" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nom" , ID_VIEW_NAME
MENUITEM "Tous &les Dtails" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Knyvtrfa" , 411
MENUITEM "&Csak mappk" , 412
MENUITEM SEPARATOR
MENUITEM "&Feloszts" , 414
MENUITEM "&Feloszts" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nv" , ID_VIEW_NAME
MENUITEM "&Minden rszlet" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "So&lo Albero" , 411
MENUITEM "&Solo Directory" , 412
MENUITEM SEPARATOR
MENUITEM "Di&vidi" , 414
MENUITEM "Di&vidi" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nome" , ID_VIEW_NAME
MENUITEM "&Mostra tutti i dettagli sui file" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -83,7 +83,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "&Alleen hierarchie" , 411
MENUITEM "Alleen &mapinhoud" , 412
MENUITEM SEPARATOR
MENUITEM "Sp&litsen" , 414
MENUITEM "Sp&litsen" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Naam" , ID_VIEW_NAME
MENUITEM "&Alle details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "D&rzewo" , 411
MENUITEM "&Katalogi" , 412
MENUITEM SEPARATOR
MENUITEM "&Pocz" , 414
MENUITEM "&Pocz" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nazwa" , ID_VIEW_NAME
MENUITEM "&Wszystkie atrybuty pliku" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -86,7 +86,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "S&omente rvore" , 411
MENUITEM "So&mente pasta" , 412
MENUITEM SEPARATOR
MENUITEM "&Dividir" , 414
MENUITEM "&Dividir" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nome" , ID_VIEW_NAME
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......@@ -213,7 +213,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "S&omente rvore" , 411
MENUITEM "So&mente pasta" , 412
MENUITEM SEPARATOR
MENUITEM "&Dividir" , 414
MENUITEM "&Dividir" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Nome" , ID_VIEW_NAME
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -83,7 +83,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM " &" , 411
MENUITEM " &" , 412
MENUITEM SEPARATOR
MENUITEM "&" , 414
MENUITEM "&" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&" , ID_VIEW_NAME
MENUITEM "& " , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Tr&ee Only" , 411
MENUITEM "Directory &Only" , 412
MENUITEM SEPARATOR
MENUITEM "Sp&lit" , 414
MENUITEM "Sp&lit" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Name" , ID_VIEW_NAME
MENUITEM "&All File Details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "Bara tr&d", 411
MENUITEM "Bara &mapp", 412
MENUITEM SEPARATOR
MENUITEM "De&la", 414
MENUITEM "De&la", ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "&Namn", ID_VIEW_NAME
MENUITEM "&Alla Fildetaljer" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
MENUITEM "仅显示目录树(&E)" , 411
MENUITEM "仅显示目录内容(&O)" , 412
MENUITEM SEPARATOR
MENUITEM "分割(&L)" , 414
MENUITEM "分割(&L)" , ID_VIEW_SPLIT
MENUITEM SEPARATOR
MENUITEM "文件名名(&N)" , ID_VIEW_NAME
MENUITEM "文件详悉列表(&A)" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
......
......@@ -51,6 +51,7 @@
#define ID_VIEW_SORT_TYPE 405
#define ID_VIEW_SORT_SIZE 406
#define ID_VIEW_SORT_DATE 407
#define ID_VIEW_SPLIT 414
#define ID_SELECT_FONT 510
#define ID_VIEW_TOOL_BAR 508
#define ID_VIEW_DRIVE_BAR 507
......
......@@ -181,6 +181,8 @@ LRESULT CALLBACK TreeWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
/* globals */
WINEFILE_GLOBALS Globals;
static int last_split;
/* some common string constants */
const static TCHAR sEmpty[] = {'\0'};
const static TCHAR sSpace[] = {' ', '\0'};
......@@ -3679,8 +3681,6 @@ static HRESULT ShellFolderContextMenu(IShellFolder* shell_folder, HWND hwndParen
LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
{
static int last_split;
ChildWnd* child = (ChildWnd*) GetWindowLong(hwnd, GWL_USERDATA);
ASSERT(child);
......@@ -3919,6 +3919,14 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
set_sort_order(child, SORT_DATE);
break;
case ID_VIEW_SPLIT: {
last_split = child->split_pos;
#ifdef _NO_EXTENSIONS
draw_splitbar(hwnd, last_split);
#endif
SetCapture(hwnd);
break;}
default:
return pane_command(pane, LOWORD(wparam));
}
......
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