Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cfa89e7e
Commit
cfa89e7e
authored
Jul 03, 2011
by
Jay Yang
Committed by
Alexandre Julliard
Jul 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Add a path combobox to explorer.
parent
9544bcd1
Hide whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
368 additions
and
13 deletions
+368
-13
ar.po
po/ar.po
+5
-0
bg.po
po/bg.po
+5
-0
ca.po
po/ca.po
+4
-0
cs.po
po/cs.po
+5
-0
da.po
po/da.po
+5
-0
de.po
po/de.po
+5
-0
el.po
po/el.po
+5
-0
en.po
po/en.po
+5
-0
en_US.po
po/en_US.po
+5
-0
eo.po
po/eo.po
+5
-0
es.po
po/es.po
+5
-0
fa.po
po/fa.po
+5
-0
fi.po
po/fi.po
+5
-0
fr.po
po/fr.po
+5
-0
he.po
po/he.po
+5
-0
hi.po
po/hi.po
+4
-0
hu.po
po/hu.po
+5
-0
it.po
po/it.po
+5
-0
ja.po
po/ja.po
+5
-0
ko.po
po/ko.po
+5
-0
lt.po
po/lt.po
+5
-0
ml.po
po/ml.po
+4
-0
nb_NO.po
po/nb_NO.po
+5
-0
nl.po
po/nl.po
+5
-0
or.po
po/or.po
+4
-0
pa.po
po/pa.po
+4
-0
pl.po
po/pl.po
+5
-0
pt_BR.po
po/pt_BR.po
+5
-0
pt_PT.po
po/pt_PT.po
+5
-0
rm.po
po/rm.po
+5
-0
ro.po
po/ro.po
+5
-0
ru.po
po/ru.po
+5
-0
sk.po
po/sk.po
+5
-0
sl.po
po/sl.po
+10
-10
sr_RS@cyrillic.po
po/sr_RS@cyrillic.po
+5
-0
sr_RS@latin.po
po/sr_RS@latin.po
+5
-0
sv.po
po/sv.po
+5
-0
te.po
po/te.po
+4
-0
th.po
po/th.po
+5
-0
tr.po
po/tr.po
+5
-0
uk.po
po/uk.po
+5
-0
wa.po
po/wa.po
+5
-0
wine.pot
po/wine.pot
+4
-0
zh_CN.po
po/zh_CN.po
+5
-0
zh_TW.po
po/zh_TW.po
+5
-0
explorer.c
programs/explorer/explorer.c
+142
-2
explorer.rc
programs/explorer/explorer.rc
+2
-1
resource.h
programs/explorer/resource.h
+1
-0
No files found.
po/ar.po
View file @
cfa89e7e
...
...
@@ -8089,6 +8089,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "معلومات"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/bg.po
View file @
cfa89e7e
...
...
@@ -8266,6 +8266,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "&Разгледай"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "LAN връзка"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/ca.po
View file @
cfa89e7e
...
...
@@ -8012,6 +8012,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
msgid "Location:"
msgstr ""
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/cs.po
View file @
cfa89e7e
...
...
@@ -8645,6 +8645,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "P&rozkoumat"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Volby"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/da.po
View file @
cfa89e7e
...
...
@@ -8669,6 +8669,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Placering"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/de.po
View file @
cfa89e7e
...
...
@@ -8658,6 +8658,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Ort"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/el.po
View file @
cfa89e7e
...
...
@@ -8136,6 +8136,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Επιλογές"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/en.po
View file @
cfa89e7e
...
...
@@ -8313,6 +8313,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Location"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/en_US.po
View file @
cfa89e7e
...
...
@@ -8405,6 +8405,11 @@ msgstr "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Location"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Usage: hostname\n"
...
...
po/eo.po
View file @
cfa89e7e
...
...
@@ -8257,6 +8257,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "E&sploru"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "LAN Interkonekto"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/es.po
View file @
cfa89e7e
...
...
@@ -8847,6 +8847,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Internet Explorer de Wine"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Ubicación"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/fa.po
View file @
cfa89e7e
...
...
@@ -8091,6 +8091,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "اطلاعات"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/fi.po
View file @
cfa89e7e
...
...
@@ -8338,6 +8338,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "&Selaa"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Sijainti"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/fr.po
View file @
cfa89e7e
...
...
@@ -8486,6 +8486,11 @@ msgstr "Usage : dxdiag [/whql:off | /whql:on] [/t fichier | /x fichier]"
msgid "Wine Explorer"
msgstr "Explorateur de Wine"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Emplacement"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Usage : hostname\n"
...
...
po/he.po
View file @
cfa89e7e
...
...
@@ -8507,6 +8507,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "מיקום"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/hi.po
View file @
cfa89e7e
...
...
@@ -8009,6 +8009,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
msgid "Location:"
msgstr ""
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/hu.po
View file @
cfa89e7e
...
...
@@ -8532,6 +8532,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Hely"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/it.po
View file @
cfa89e7e
...
...
@@ -8752,6 +8752,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Internet Explorer di Wine"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Locazione"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/ja.po
View file @
cfa89e7e
...
...
@@ -8402,6 +8402,11 @@ msgstr "使い方: dxdiag [/whql:off | /whql:on] [/t ファイル名 | /x ファ
msgid "Wine Explorer"
msgstr "Wine エクスプローラ"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "場所"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "使い方: hostname\n"
...
...
po/ko.po
View file @
cfa89e7e
...
...
@@ -8374,6 +8374,11 @@ msgstr "사용법: dxdiag [/whql:off | /whql:on] [/t 파일이름 | /x 파일이
msgid "Wine Explorer"
msgstr "Wine 탐색기"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "랜 연결"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "사용법:hostname\n"
...
...
po/lt.po
View file @
cfa89e7e
...
...
@@ -8420,6 +8420,11 @@ msgstr "Naudojimas: dxdiag [/whql:off | /whql:on] [/t failas | /x failas]"
msgid "Wine Explorer"
msgstr "Wine naršyklė"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Vieta"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Naudojimas: hostname\n"
...
...
po/ml.po
View file @
cfa89e7e
...
...
@@ -8009,6 +8009,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
msgid "Location:"
msgstr ""
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/nb_NO.po
View file @
cfa89e7e
...
...
@@ -8674,6 +8674,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Plassering"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/nl.po
View file @
cfa89e7e
...
...
@@ -8560,6 +8560,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Verkenner"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Locatie"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/or.po
View file @
cfa89e7e
...
...
@@ -8009,6 +8009,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
msgid "Location:"
msgstr ""
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/pa.po
View file @
cfa89e7e
...
...
@@ -8009,6 +8009,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
msgid "Location:"
msgstr ""
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/pl.po
View file @
cfa89e7e
...
...
@@ -8424,6 +8424,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Położenie"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/pt_BR.po
View file @
cfa89e7e
...
...
@@ -8699,6 +8699,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Localização"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/pt_PT.po
View file @
cfa89e7e
...
...
@@ -8752,6 +8752,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Explorador de Internet Wine"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Localização"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/rm.po
View file @
cfa89e7e
...
...
@@ -8060,6 +8060,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine ag�d"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "&Options"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/ro.po
View file @
cfa89e7e
...
...
@@ -8985,6 +8985,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Locație"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/ru.po
View file @
cfa89e7e
...
...
@@ -8415,6 +8415,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Размещение"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Использование: hostname\n"
...
...
po/sk.po
View file @
cfa89e7e
...
...
@@ -8293,6 +8293,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "E&xplore"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Informácie"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/sl.po
View file @
cfa89e7e
...
...
@@ -2984,8 +2984,7 @@ msgstr "Preveč modulov\n"
#: winerror.mc:851
msgid "Nesting LoadModule calls not allowed\n"
msgstr ""
"Klici gnezdenega modula nalaganja niso dovoljeni\n"
msgstr "Klici gnezdenega modula nalaganja niso dovoljeni\n"
#: winerror.mc:856
msgid "Machine type mismatch\n"
...
...
@@ -3061,8 +3060,7 @@ msgstr "Klicatelj ne sme biti lastnik mutexa\n"
#: winerror.mc:946
msgid "Too many posts to semaphore\n"
msgstr ""
"Preveč objav na semaforju\n"
msgstr "Preveč objav na semaforju\n"
#: winerror.mc:951
msgid "Read/WriteProcessMemory partially completed\n"
...
...
@@ -5058,18 +5056,15 @@ msgstr "Ni več vezav\n"
#: winerror.mc:3446
msgid "Can't logon with interdomain trust account\n"
msgstr ""
"Ni se mogoče prijaviti z računom meddomenskega zaupanja\n"
msgstr "Ni se mogoče prijaviti z računom meddomenskega zaupanja\n"
#: winerror.mc:3451
msgid "Can't logon with workstation trust account\n"
msgstr ""
"Ni se mogoče prijaviti z računom zaupanja delovne postaja\n"
msgstr "Ni se mogoče prijaviti z računom zaupanja delovne postaja\n"
#: winerror.mc:3456
msgid "Can't logon with server trust account\n"
msgstr ""
"Ni se mogoče prijaviti z računom zaupanja strežnika\n"
msgstr "Ni se mogoče prijaviti z računom zaupanja strežnika\n"
#: winerror.mc:3461
msgid "Domain trust information inconsistent\n"
...
...
@@ -8449,6 +8444,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Mesto"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/sr_RS@cyrillic.po
View file @
cfa89e7e
...
...
@@ -8399,6 +8399,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Локација"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/sr_RS@latin.po
View file @
cfa89e7e
...
...
@@ -8453,6 +8453,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Lokacija"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/sv.po
View file @
cfa89e7e
...
...
@@ -8422,6 +8422,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Plats"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/te.po
View file @
cfa89e7e
...
...
@@ -8009,6 +8009,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
msgid "Location:"
msgstr ""
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/th.po
View file @
cfa89e7e
...
...
@@ -8145,6 +8145,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "รายละเอียด"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/tr.po
View file @
cfa89e7e
...
...
@@ -8793,6 +8793,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "A&raştır"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "LAN Bağlantısı"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/uk.po
View file @
cfa89e7e
...
...
@@ -8401,6 +8401,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Оглядач Інтернету Wine"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Розміщення"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr "Використання: ім'я_хосту\n"
...
...
po/wa.po
View file @
cfa89e7e
...
...
@@ -8109,6 +8109,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "E&xplore"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "Informåcion"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/wine.pot
View file @
cfa89e7e
...
...
@@ -7985,6 +7985,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:29
msgid "Location:"
msgstr ""
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/zh_CN.po
View file @
cfa89e7e
...
...
@@ -8386,6 +8386,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "位置"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
po/zh_TW.po
View file @
cfa89e7e
...
...
@@ -8441,6 +8441,11 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:29
#, fuzzy
msgid "Location:"
msgstr "區域網路連線"
#: hostname.rc:27
msgid "Usage: hostname\n"
msgstr ""
...
...
programs/explorer/explorer.c
View file @
cfa89e7e
...
...
@@ -39,12 +39,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(explorer);
#define EXPLORER_INFO_INDEX 0
#define NAV_TOOLBAR_HEIGHT 30
#define PATHBOX_HEIGHT 24
#define DEFAULT_WIDTH 640
#define DEFAULT_HEIGHT 480
static
const
WCHAR
EXPLORER_CLASS
[]
=
{
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'E'
,
'X'
,
'P'
,
'L'
,
'O'
,
'R'
,
'E'
,
'R'
,
'\0'
};
static
const
WCHAR
PATH_BOX_NAME
[]
=
{
'\0'
};
HINSTANCE
explorer_hInstance
;
...
...
@@ -57,8 +59,9 @@ typedef struct parametersTAG {
typedef
struct
{
IExplorerBrowser
*
browser
;
HWND
main_window
;
HWND
main_window
,
path_box
;
INT
rebar_height
;
LPCITEMIDLIST
pidl
;
}
explorer_info
;
enum
...
...
@@ -66,14 +69,100 @@ enum
BACK_BUTTON
,
FORWARD_BUTTON
,
UP_BUTTON
};
typedef
struct
{
IExplorerBrowserEvents
IExplorerBrowserEvents_iface
;
explorer_info
*
info
;
LONG
ref
;
}
IExplorerBrowserEventsImpl
;
static
IExplorerBrowserEventsImpl
*
impl_from_IExplorerBrowserEvents
(
IExplorerBrowserEvents
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IExplorerBrowserEventsImpl
,
IExplorerBrowserEvents_iface
);
}
static
HRESULT
WINAPI
IExplorerBrowserEventsImpl_fnQueryInterface
(
IExplorerBrowserEvents
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IExplorerBrowserEventsImpl_fnAddRef
(
IExplorerBrowserEvents
*
iface
)
{
IExplorerBrowserEventsImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
IExplorerBrowserEventsImpl_fnRelease
(
IExplorerBrowserEvents
*
iface
)
{
IExplorerBrowserEventsImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
void
update_path_box
(
explorer_info
*
info
)
{
WCHAR
path
[
MAX_PATH
];
SHGetPathFromIDListW
(
info
->
pidl
,
path
);
SetWindowTextW
(
info
->
path_box
,
path
);
}
static
HRESULT
WINAPI
IExplorerBrowserEventsImpl_fnOnNavigationComplete
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidl
)
{
IExplorerBrowserEventsImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
This
->
info
->
pidl
=
pidl
;
update_path_box
(
This
->
info
);
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowserEventsImpl_fnOnNavigationFailed
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidl
)
{
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowserEventsImpl_fnOnNavigationPending
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidl
)
{
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowserEventsImpl_fnOnViewCreated
(
IExplorerBrowserEvents
*
iface
,
IShellView
*
psv
)
{
return
S_OK
;
}
static
IExplorerBrowserEventsVtbl
vt_IExplorerBrowserEvents
=
{
IExplorerBrowserEventsImpl_fnQueryInterface
,
IExplorerBrowserEventsImpl_fnAddRef
,
IExplorerBrowserEventsImpl_fnRelease
,
IExplorerBrowserEventsImpl_fnOnNavigationPending
,
IExplorerBrowserEventsImpl_fnOnViewCreated
,
IExplorerBrowserEventsImpl_fnOnNavigationComplete
,
IExplorerBrowserEventsImpl_fnOnNavigationFailed
};
static
IExplorerBrowserEvents
*
make_explorer_events
(
explorer_info
*
info
)
{
IExplorerBrowserEventsImpl
*
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IExplorerBrowserEventsImpl
));
ret
->
IExplorerBrowserEvents_iface
.
lpVtbl
=
&
vt_IExplorerBrowserEvents
;
ret
->
info
=
info
;
IExplorerBrowserEvents_AddRef
(
&
ret
->
IExplorerBrowserEvents_iface
);
return
&
ret
->
IExplorerBrowserEvents_iface
;
}
static
void
make_explorer_window
(
IShellFolder
*
startFolder
)
{
RECT
explorerRect
;
HWND
rebar
,
nav_toolbar
;
FOLDERSETTINGS
fs
;
IExplorerBrowserEvents
*
events
;
explorer_info
*
info
;
HRESULT
hres
;
DWORD
cookie
;
WCHAR
explorer_title
[
100
];
WCHAR
pathbox_label
[
50
];
TBADDBITMAP
bitmap_info
;
TBBUTTON
nav_buttons
[
3
];
int
hist_offset
,
view_offset
;
...
...
@@ -81,6 +170,8 @@ static void make_explorer_window(IShellFolder* startFolder)
memset
(
nav_buttons
,
0
,
sizeof
(
nav_buttons
));
LoadStringW
(
explorer_hInstance
,
IDS_EXPLORER_TITLE
,
explorer_title
,
sizeof
(
explorer_title
)
/
sizeof
(
WCHAR
));
LoadStringW
(
explorer_hInstance
,
IDS_PATHBOX_LABEL
,
pathbox_label
,
sizeof
(
pathbox_label
)
/
sizeof
(
WCHAR
));
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
explorer_info
));
if
(
!
info
)
{
...
...
@@ -151,10 +242,26 @@ static void make_explorer_window(IShellFolder* startFolder)
band_info
.
cyMinChild
=
NAV_TOOLBAR_HEIGHT
;
band_info
.
cxMinChild
=
0
;
SendMessageW
(
rebar
,
RB_INSERTBANDW
,
-
1
,(
LPARAM
)
&
band_info
);
info
->
path_box
=
CreateWindowW
(
WC_COMBOBOXEXW
,
PATH_BOX_NAME
,
WS_CHILD
|
WS_VISIBLE
|
CBS_DROPDOWN
,
0
,
0
,
DEFAULT_WIDTH
,
PATHBOX_HEIGHT
,
rebar
,
NULL
,
explorer_hInstance
,
NULL
);
band_info
.
cyChild
=
PATHBOX_HEIGHT
;
band_info
.
cx
=
0
;
band_info
.
cyMinChild
=
PATHBOX_HEIGHT
;
band_info
.
cxMinChild
=
0
;
band_info
.
fMask
|=
RBBIM_TEXT
;
band_info
.
lpText
=
pathbox_label
;
band_info
.
fStyle
|=
RBBS_BREAK
;
band_info
.
hwndChild
=
info
->
path_box
;
SendMessageW
(
rebar
,
RB_INSERTBANDW
,
-
1
,(
LPARAM
)
&
band_info
);
events
=
make_explorer_events
(
info
);
IExplorerBrowser_Advise
(
info
->
browser
,
events
,
&
cookie
);
IExplorerBrowser_BrowseToObject
(
info
->
browser
,(
IUnknown
*
)
startFolder
,
SBSP_ABSOLUTE
);
ShowWindow
(
info
->
main_window
,
SW_SHOWDEFAULT
);
UpdateWindow
(
info
->
main_window
);
IExplorerBrowserEvents_Release
(
events
);
}
static
void
update_window_size
(
explorer_info
*
info
,
int
height
,
int
width
)
...
...
@@ -173,6 +280,37 @@ static void do_exit(int code)
ExitProcess
(
code
);
}
static
LRESULT
explorer_on_end_edit
(
explorer_info
*
info
,
NMCBEENDEDITW
*
edit_info
)
{
LPITEMIDLIST
pidl
=
NULL
;
WINE_TRACE
(
"iWhy=%x
\n
"
,
edit_info
->
iWhy
);
switch
(
edit_info
->
iWhy
)
{
case
CBENF_RETURN
:
{
WCHAR
path
[
MAX_PATH
];
HWND
edit_ctrl
=
(
HWND
)
SendMessageW
(
edit_info
->
hdr
.
hwndFrom
,
CBEM_GETEDITCONTROL
,
0
,
0
);
*
((
WORD
*
)
path
)
=
MAX_PATH
;
SendMessageW
(
edit_ctrl
,
EM_GETLINE
,
0
,(
LPARAM
)
path
);
pidl
=
ILCreateFromPathW
(
path
);
break
;
}
case
CBENF_ESCAPE
:
/*make sure the that the path box resets*/
update_path_box
(
info
);
return
0
;
default:
return
0
;
}
if
(
pidl
)
IExplorerBrowser_BrowseToIDList
(
info
->
browser
,
pidl
,
SBSP_ABSOLUTE
);
if
(
edit_info
->
iWhy
==
CBENF_RETURN
)
ILFree
(
pidl
);
return
0
;
}
static
LRESULT
update_rebar_size
(
explorer_info
*
info
,
NMRBAUTOSIZE
*
size_info
)
{
RECT
new_rect
;
...
...
@@ -192,6 +330,8 @@ static LRESULT explorer_on_notify(explorer_info* info,NMHDR* notification)
WINE_TRACE
(
"code=%i
\n
"
,
notification
->
code
);
switch
(
notification
->
code
)
{
case
CBEN_ENDEDITW
:
return
explorer_on_end_edit
(
info
,(
NMCBEENDEDITW
*
)
notification
);
case
RBN_AUTOSIZE
:
return
update_rebar_size
(
info
,(
NMRBAUTOSIZE
*
)
notification
);
default:
...
...
@@ -425,7 +565,7 @@ int WINAPI wWinMain(HINSTANCE hinstance,
ExitProcess
(
EXIT_FAILURE
);
}
init_info
.
dwSize
=
sizeof
(
INITCOMMONCONTROLSEX
);
init_info
.
dwICC
=
ICC_BAR_CLASSES
|
ICC_COOL_CLASSES
;
init_info
.
dwICC
=
ICC_
USEREX_CLASSES
|
ICC_
BAR_CLASSES
|
ICC_COOL_CLASSES
;
if
(
!
InitCommonControlsEx
(
&
init_info
))
{
WINE_ERR
(
"Could not initialize Comctl
\n
"
);
...
...
programs/explorer/explorer.rc
View file @
cfa89e7e
...
...
@@ -25,5 +25,6 @@ LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
{
IDS_EXPLORER_TITLE "Wine Explorer"
IDS_EXPLORER_TITLE "Wine Explorer"
IDS_PATHBOX_LABEL "Location:"
}
programs/explorer/resource.h
View file @
cfa89e7e
...
...
@@ -22,5 +22,6 @@
#define __WINE_EXPLORER_RESOURCE_H
#define IDS_EXPLORER_TITLE 1
#define IDS_PATHBOX_LABEL 2
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment