explorer: Add non-functional start button.

This commit is contained in:
Vincent Povirk 2013-12-05 16:29:31 -06:00 committed by Alexandre Julliard
parent 4d13f84903
commit 5a00584bab
49 changed files with 274 additions and 1 deletions

View File

@ -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"

View File

@ -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 ""

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -9778,6 +9778,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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"

View File

@ -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"

View File

@ -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 ""

View File

@ -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"

View File

@ -9786,6 +9786,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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"

View File

@ -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"

View File

@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -9701,6 +9701,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr "Wine ag<61>d"
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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 ""

View File

@ -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"

View File

@ -9791,6 +9791,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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"

View File

@ -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 ""

View File

@ -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 ""

View File

@ -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"

View File

@ -9636,6 +9636,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -9803,6 +9803,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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"

View File

@ -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"

View File

@ -9743,6 +9743,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -9581,6 +9581,10 @@ msgstr ""
msgid "Wine Explorer"
msgstr ""
#: explorer.rc:33
msgid "Start"
msgstr ""
#: hostname.rc:30
msgid "Usage: hostname\n"
msgstr ""

View File

@ -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 ""

View File

@ -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"

View File

@ -29,6 +29,7 @@ STRINGTABLE
{
IDS_EXPLORER_TITLE "Wine Explorer"
IDS_PATHBOX_LABEL "Location:"
IDS_START_LABEL "Start"
}
#define WINE_FILEDESCRIPTION_STR "Wine Explorer"

View File

@ -23,5 +23,6 @@
#define IDS_EXPLORER_TITLE 1
#define IDS_PATHBOX_LABEL 2
#define IDS_START_LABEL 3
#endif

View File

@ -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();
}