Commit 5a00584b authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

explorer: Add non-functional start button.

parent 4d13f849
......@@ -10105,6 +10105,12 @@ msgstr "الاستخدام: dxdiag [/whql:off | /whql:on] [/t filename | /x file
msgid "Wine Explorer"
msgstr "مستعرض واين"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "بدء التشغيل"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "الاستخدام: hostname\n"
......
......@@ -9930,6 +9930,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "&Разгледай"
#: explorer.rc:33
#, fuzzy
#| msgid "Restart"
msgid "Start"
msgstr "Рестартиране"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10284,6 +10284,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
#, fuzzy
#| msgid "Start Menu"
msgid "Start"
msgstr "Menú d'Inici"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Ús: hostname\n"
......
......@@ -9988,6 +9988,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Průzkumník z Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Po spuštění"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Použití: název počítače\n"
......
......@@ -10198,6 +10198,12 @@ msgstr "Brug: dxdiag [/whql:off | /whql:on] [/t filnavn | /x filnavn]"
msgid "Wine Explorer"
msgstr "Wine Stifinder"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Start op"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Brug: værtsnavn\n"
......
......@@ -10218,6 +10218,12 @@ msgstr "Aufruf: dxdiag [/whql:off | /whql:on] [/t Dateiname | /x Dateiname]"
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Autostart"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Aufruf: hostname\n"
......
......@@ -9778,6 +9778,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10143,6 +10143,10 @@ msgstr "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
msgid "Start"
msgstr "Start"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Usage: hostname\n"
......
......@@ -10143,6 +10143,10 @@ msgstr "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
msgid "Start"
msgstr "Start"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Usage: hostname\n"
......
......@@ -9650,6 +9650,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Esplorilo de Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Starto"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10276,6 +10276,12 @@ msgstr "Uso: dxdiag [/whql:off | /whql:on] [/t fichero | /x fichero]"
msgid "Wine Explorer"
msgstr "Explorador de Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Arranque"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Uso: hostname\n"
......
......@@ -9786,6 +9786,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10123,6 +10123,12 @@ msgstr "Käyttö: dxdiag [/whql:off | /whql:on] [/t tiedosto | /x tiedosto]"
msgid "Wine Explorer"
msgstr "Winen Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Käynnistys"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Käyttö: hostname\n"
......
......@@ -10259,6 +10259,12 @@ msgstr "Usage : dxdiag [/whql:off | /whql:on] [/t fichier | /x fichier]"
msgid "Wine Explorer"
msgstr "Explorateur de Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Démarrage"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Usage : hostname\n"
......
......@@ -10308,6 +10308,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "הסייר של Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "Start Menu"
msgid "Start"
msgstr "תפריט ההתחלה"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Usage: hostname\n"
......
......@@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -9809,6 +9809,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "Start Menu"
msgid "Start"
msgstr "'Start' izbornik"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Uporaba: hostname\n"
......
......@@ -10198,6 +10198,12 @@ msgstr "Használat: dxdiag [/whql:off | /whql:on] [/t fájlnév | /x fájlnév]"
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Indítópult"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Használat: kiszolgálónév\n"
......
......@@ -10277,6 +10277,12 @@ msgstr "Uso: dxdiag [/whql:off | /whql:on] [/t nome_file | /x nome_file]"
msgid "Wine Explorer"
msgstr "Explorer di Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Esecuzione automatica"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Uso: hostname\n"
......
......@@ -10137,6 +10137,12 @@ msgstr "使い方: dxdiag [/whql:off | /whql:on] [/t ファイル名 | /x ファ
msgid "Wine Explorer"
msgstr "Wine エクスプローラ"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "StartUp"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "使い方: hostname\n"
......
......@@ -10129,6 +10129,12 @@ msgstr "사용법: dxdiag [/whql:off | /whql:on] [/t 파일이름 | /x 파일이
msgid "Wine Explorer"
msgstr "Wine 탐색기"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "시작 프로그램"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "사용법: hostname\n"
......
......@@ -10151,6 +10151,12 @@ msgstr "Naudojimas: dxdiag [/whql:off | /whql:on] [/t failas | /x failas]"
msgid "Wine Explorer"
msgstr "„Wine“ naršyklė"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Paleidimas"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Naudojimas: hostname\n"
......
......@@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10145,6 +10145,12 @@ msgstr "Bruk: dxdiag [/whql:off | /whql:on] [/t filnavn | /x filnavn]"
msgid "Wine Explorer"
msgstr "Wine Utforsker"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Start"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Bruk: hostname\n"
......
......@@ -10280,6 +10280,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Verkenner"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Opstarten"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Gebruik: hostname\n"
......
......@@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10200,6 +10200,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Autostart"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Użycie: hostname\n"
......
......@@ -10201,6 +10201,12 @@ msgstr "Uso: dxdiag [/whql:off | /whql:on] [/t arquivo | /x arquivo]"
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Inicialização"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Modo de usar: hostname\n"
......
......@@ -10206,6 +10206,12 @@ msgstr "Uso: dxdiag [/whql:off | /whql:on] [/t ficheiro | /x ficheiro]"
msgid "Wine Explorer"
msgstr "Explorador do Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Inicialização"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Uso: hostname\n"
......
......@@ -9701,6 +9701,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine ag�d"
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10318,6 +10318,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "Start Menu"
msgid "Start"
msgstr "Meniu Start"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10152,6 +10152,12 @@ msgstr "Использование: dxdiag [/whql:off | /whql:on] [/t файл |
msgid "Wine Explorer"
msgstr "Проводник Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Автозагрузка"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Использование: hostname\n"
......
......@@ -9791,6 +9791,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10226,6 +10226,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Raziskovalnik Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Zagon"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Uporaba: hostname\n"
......
......@@ -10125,6 +10125,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "Start Menu"
msgid "Start"
msgstr "„Старт“ мени"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10225,6 +10225,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Internet Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "Start Menu"
msgid "Start"
msgstr "„Start“ meni"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10036,6 +10036,12 @@ msgstr "Användning: dxdiag [/whql:off | /whql:on] [/t filnamn | /x filnamn]"
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "Start Menu"
msgid "Start"
msgstr "Start-meny"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Användning: hostname\n"
......
......@@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -9803,6 +9803,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10116,6 +10116,12 @@ msgstr "Kullanım: dxdiag [/whql:off | /whql:on] [/t dosyaadı | /x dosyaadı]"
msgid "Wine Explorer"
msgstr "Wine Gezgin"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Başlangıç"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Kullanım: hostname\n"
......
......@@ -10174,6 +10174,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Оглядач Wine"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "Автозавантаження"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "Використання: hostname\n"
......
......@@ -9743,6 +9743,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -9581,6 +9581,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -9650,6 +9650,12 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine Explorer"
#: explorer.rc:33
#, fuzzy
#| msgid "Restart"
msgid "Start"
msgstr "重启"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""
......
......@@ -10015,6 +10015,12 @@ msgstr "用法:dxdiag [/whql:off | /whql:on] [/t 檔名 | /x 檔名]"
msgid "Wine Explorer"
msgstr "Wine 檔案總管"
#: explorer.rc:33
#, fuzzy
#| msgid "StartUp"
msgid "Start"
msgstr "啟動"
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr "用法:主機名稱\n"
......
......@@ -29,6 +29,7 @@ STRINGTABLE
{
IDS_EXPLORER_TITLE "Wine Explorer"
IDS_PATHBOX_LABEL "Location:"
IDS_START_LABEL "Start"
}
#define WINE_FILEDESCRIPTION_STR "Wine Explorer"
......
......@@ -23,5 +23,6 @@
#define IDS_EXPLORER_TITLE 1
#define IDS_PATHBOX_LABEL 2
#define IDS_START_LABEL 3
#endif
......@@ -30,6 +30,7 @@
#include <wine/list.h>
#include "explorer_private.h"
#include "resource.h"
WINE_DEFAULT_DEBUG_CHANNEL(systray);
......@@ -91,6 +92,8 @@ static int icon_cx, icon_cy, tray_width;
static struct icon *balloon_icon;
static HWND balloon_window;
static HWND start_button;
#define MIN_DISPLAYED 8
#define ICON_BORDER 2
......@@ -135,7 +138,7 @@ static void init_common_controls(void)
INITCOMMONCONTROLSEX init_tooltip;
init_tooltip.dwSize = sizeof(INITCOMMONCONTROLSEX);
init_tooltip.dwICC = ICC_TAB_CLASSES;
init_tooltip.dwICC = ICC_TAB_CLASSES|ICC_STANDARD_CLASSES;
InitCommonControlsEx(&init_tooltip);
initialized = TRUE;
......@@ -628,11 +631,24 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
return 0;
}
static void get_system_text_size( const WCHAR *text, SIZE *size )
{
/* FIXME: Implement BCM_GETIDEALSIZE and use that instead. */
HDC hdc = GetDC( 0 );
GetTextExtentPointW(hdc, text, lstrlenW(text), size);
ReleaseDC( 0, hdc );
}
/* this function creates the listener window */
void initialize_systray( HMODULE graphics_driver, BOOL using_root )
{
WNDCLASSEXW class;
static const WCHAR classname[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d',0};
static const WCHAR button_class[] = {'B','u','t','t','o','n',0};
WCHAR start_label[50];
SIZE start_text_size;
wine_notify_icon = (void *)GetProcAddress( graphics_driver, "wine_notify_icon" );
......@@ -667,5 +683,12 @@ void initialize_systray( HMODULE graphics_driver, BOOL using_root )
return;
}
LoadStringW( NULL, IDS_START_LABEL, start_label, sizeof(start_label)/sizeof(WCHAR) );
get_system_text_size( start_label, &start_text_size );
start_button = CreateWindowW( button_class, start_label, WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,
0, 0, start_text_size.cx + 8, icon_cy, tray_window, 0, 0, 0 );
if (hide_systray) do_hide_systray();
}
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