Implement ID_VIEW_SPLIT command.
This commit is contained in:
parent
27792f6f16
commit
371c620d2d
|
@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "J&en strom" , 411
|
MENUITEM "J&en strom" , 411
|
||||||
MENUITEM "Jen a&dresáø&" , 412
|
MENUITEM "Jen a&dresáø&" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "S&louèit" , 414
|
MENUITEM "S&louèit" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Název" , ID_VIEW_NAME
|
MENUITEM "&Název" , ID_VIEW_NAME
|
||||||
MENUITEM "&V¹echny detaily" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&V¹echny detaily" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "Nur St&ruktur" , 411
|
MENUITEM "Nur St&ruktur" , 411
|
||||||
MENUITEM "Nur &Verzeichnis" , 412
|
MENUITEM "Nur &Verzeichnis" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Teilen" , 414
|
MENUITEM "&Teilen" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Name" , ID_VIEW_NAME
|
MENUITEM "&Name" , ID_VIEW_NAME
|
||||||
MENUITEM "A&lle Dateiangaben" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "A&lle Dateiangaben" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -86,7 +86,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "Tr&ee Only" , 411
|
MENUITEM "Tr&ee Only" , 411
|
||||||
MENUITEM "Directory &Only" , 412
|
MENUITEM "Directory &Only" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Sp&lit" , 414
|
MENUITEM "Sp&lit" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Name" , ID_VIEW_NAME
|
MENUITEM "&Name" , ID_VIEW_NAME
|
||||||
MENUITEM "&All File Details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&All File Details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "Árbol &sólo" , 411
|
MENUITEM "Árbol &sólo" , 411
|
||||||
MENUITEM "&Directorio sólo" , 412
|
MENUITEM "&Directorio sólo" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Di&vidir" , 414
|
MENUITEM "Di&vidir" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "No&mbre" , ID_VIEW_NAME
|
MENUITEM "No&mbre" , ID_VIEW_NAME
|
||||||
MENUITEM "T&odos los detalles" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "T&odos los detalles" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "&Arbre seulement" , 411
|
MENUITEM "&Arbre seulement" , 411
|
||||||
MENUITEM "&Répertoire seulement" , 412
|
MENUITEM "&Répertoire seulement" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Séparer" , 414
|
MENUITEM "&Séparer" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Nom" , ID_VIEW_NAME
|
MENUITEM "&Nom" , ID_VIEW_NAME
|
||||||
MENUITEM "Tous &les Détails" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "Tous &les Détails" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "&Könyvtárfa" , 411
|
MENUITEM "&Könyvtárfa" , 411
|
||||||
MENUITEM "&Csak mappák" , 412
|
MENUITEM "&Csak mappák" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Felosztás" , 414
|
MENUITEM "&Felosztás" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Név" , ID_VIEW_NAME
|
MENUITEM "&Név" , ID_VIEW_NAME
|
||||||
MENUITEM "&Minden részlet" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&Minden részlet" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "So&lo Albero" , 411
|
MENUITEM "So&lo Albero" , 411
|
||||||
MENUITEM "&Solo Directory" , 412
|
MENUITEM "&Solo Directory" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Di&vidi" , 414
|
MENUITEM "Di&vidi" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Nome" , ID_VIEW_NAME
|
MENUITEM "&Nome" , ID_VIEW_NAME
|
||||||
MENUITEM "&Mostra tutti i dettagli sui file" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
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 hierarchie" , 411
|
||||||
MENUITEM "Alleen &mapinhoud" , 412
|
MENUITEM "Alleen &mapinhoud" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Sp&litsen" , 414
|
MENUITEM "Sp&litsen" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Naam" , ID_VIEW_NAME
|
MENUITEM "&Naam" , ID_VIEW_NAME
|
||||||
MENUITEM "&Alle details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&Alle details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -87,7 +87,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "D&rzewo" , 411
|
MENUITEM "D&rzewo" , 411
|
||||||
MENUITEM "&Katalogi" , 412
|
MENUITEM "&Katalogi" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Po³¹cz" , 414
|
MENUITEM "&Po³¹cz" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Nazwa" , ID_VIEW_NAME
|
MENUITEM "&Nazwa" , ID_VIEW_NAME
|
||||||
MENUITEM "&Wszystkie atrybuty pliku" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&Wszystkie atrybuty pliku" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -86,7 +86,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "S&omente árvore" , 411
|
MENUITEM "S&omente árvore" , 411
|
||||||
MENUITEM "So&mente pasta" , 412
|
MENUITEM "So&mente pasta" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Dividir" , 414
|
MENUITEM "&Dividir" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Nome" , ID_VIEW_NAME
|
MENUITEM "&Nome" , ID_VIEW_NAME
|
||||||
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
@ -213,7 +213,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "S&omente árvore" , 411
|
MENUITEM "S&omente árvore" , 411
|
||||||
MENUITEM "So&mente pasta" , 412
|
MENUITEM "So&mente pasta" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Dividir" , 414
|
MENUITEM "&Dividir" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Nome" , ID_VIEW_NAME
|
MENUITEM "&Nome" , ID_VIEW_NAME
|
||||||
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&Todos os delalhes" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -83,7 +83,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "Òîëüêî &äåðåâî" , 411
|
MENUITEM "Òîëüêî &äåðåâî" , 411
|
||||||
MENUITEM "Òîëüêî &ïàïêà" , 412
|
MENUITEM "Òîëüêî &ïàïêà" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Ðàç&áèòü" , 414
|
MENUITEM "Ðàç&áèòü" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "È&ìÿ" , ID_VIEW_NAME
|
MENUITEM "È&ìÿ" , ID_VIEW_NAME
|
||||||
MENUITEM "Â&ñå ïîäðîáíîñòè î ôàéëå" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "Â&ñå ïîäðîáíîñòè î ôàéëå" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "Tr&ee Only" , 411
|
MENUITEM "Tr&ee Only" , 411
|
||||||
MENUITEM "Directory &Only" , 412
|
MENUITEM "Directory &Only" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Sp&lit" , 414
|
MENUITEM "Sp&lit" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Name" , ID_VIEW_NAME
|
MENUITEM "&Name" , ID_VIEW_NAME
|
||||||
MENUITEM "&All File Details" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
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 tr&äd", 411
|
||||||
MENUITEM "Bara &mapp", 412
|
MENUITEM "Bara &mapp", 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "De&la", 414
|
MENUITEM "De&la", ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "&Namn", ID_VIEW_NAME
|
MENUITEM "&Namn", ID_VIEW_NAME
|
||||||
MENUITEM "&Alla Fildetaljer" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "&Alla Fildetaljer" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -84,7 +84,7 @@ IDM_WINEFILE MENU FIXED IMPURE
|
||||||
MENUITEM "仅显示目录树(&E)" , 411
|
MENUITEM "仅显示目录树(&E)" , 411
|
||||||
MENUITEM "仅显示目录内容(&O)" , 412
|
MENUITEM "仅显示目录内容(&O)" , 412
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "分割(&L)" , 414
|
MENUITEM "分割(&L)" , ID_VIEW_SPLIT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "文件名名(&N)" , ID_VIEW_NAME
|
MENUITEM "文件名名(&N)" , ID_VIEW_NAME
|
||||||
MENUITEM "文件详悉列表(&A)" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
MENUITEM "文件详悉列表(&A)" , ID_VIEW_ALL_ATTRIBUTES, CHECKED
|
||||||
|
|
|
@ -51,6 +51,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_SPLIT 414
|
||||||
#define ID_SELECT_FONT 510
|
#define ID_SELECT_FONT 510
|
||||||
#define ID_VIEW_TOOL_BAR 508
|
#define ID_VIEW_TOOL_BAR 508
|
||||||
#define ID_VIEW_DRIVE_BAR 507
|
#define ID_VIEW_DRIVE_BAR 507
|
||||||
|
|
|
@ -181,6 +181,8 @@ LRESULT CALLBACK TreeWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||||
/* globals */
|
/* globals */
|
||||||
WINEFILE_GLOBALS Globals;
|
WINEFILE_GLOBALS Globals;
|
||||||
|
|
||||||
|
static int last_split;
|
||||||
|
|
||||||
/* some common string constants */
|
/* some common string constants */
|
||||||
const static TCHAR sEmpty[] = {'\0'};
|
const static TCHAR sEmpty[] = {'\0'};
|
||||||
const static TCHAR sSpace[] = {' ', '\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)
|
LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||||
{
|
{
|
||||||
static int last_split;
|
|
||||||
|
|
||||||
ChildWnd* child = (ChildWnd*) GetWindowLong(hwnd, GWL_USERDATA);
|
ChildWnd* child = (ChildWnd*) GetWindowLong(hwnd, GWL_USERDATA);
|
||||||
ASSERT(child);
|
ASSERT(child);
|
||||||
|
|
||||||
|
@ -3919,6 +3919,14 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
|
||||||
set_sort_order(child, SORT_DATE);
|
set_sort_order(child, SORT_DATE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ID_VIEW_SPLIT: {
|
||||||
|
last_split = child->split_pos;
|
||||||
|
#ifdef _NO_EXTENSIONS
|
||||||
|
draw_splitbar(hwnd, last_split);
|
||||||
|
#endif
|
||||||
|
SetCapture(hwnd);
|
||||||
|
break;}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return pane_command(pane, LOWORD(wparam));
|
return pane_command(pane, LOWORD(wparam));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue