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
3fc87ef6
Commit
3fc87ef6
authored
Apr 19, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localui: Implement ConfigurePortUI.
parent
55a18d7a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
3 deletions
+98
-3
Makefile.in
dlls/localui/Makefile.in
+1
-1
localui.c
dlls/localui/localui.c
+32
-1
localui.h
dlls/localui/localui.h
+34
-0
localui.rc
dlls/localui/localui.rc
+4
-1
ui_En.rc
dlls/localui/ui_En.rc
+27
-0
No files found.
dlls/localui/Makefile.in
View file @
3fc87ef6
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
localui.dll
IMPORTS
=
winspool kernel32
IMPORTS
=
winspool
user32
kernel32
C_SRCS
=
\
localui.c
...
...
dlls/localui/localui.c
View file @
3fc87ef6
...
...
@@ -26,11 +26,13 @@
#include "winbase.h"
#include "wingdi.h"
#include "winreg.h"
#include "winuser.h"
#include "winspool.h"
#include "ddk/winsplp.h"
#include "wine/debug.h"
#include "localui.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
localui
);
...
...
@@ -57,6 +59,24 @@ static LPWSTR strdupWW(LPCWSTR pPrefix, LPCWSTR pSuffix)
return
ptr
;
}
/******************************************************************
* display the Dialog "Nothing to configure"
*
*/
static
void
dlg_nothingtoconfig
(
HWND
hWnd
)
{
WCHAR
res_PortW
[
IDS_LOCALPORT_MAXLEN
];
WCHAR
res_nothingW
[
IDS_NOTHINGTOCONFIG_MAXLEN
];
res_PortW
[
0
]
=
'\0'
;
res_nothingW
[
0
]
=
'\0'
;
LoadStringW
(
LOCALUI_hInstance
,
IDS_LOCALPORT
,
res_PortW
,
IDS_LOCALPORT_MAXLEN
);
LoadStringW
(
LOCALUI_hInstance
,
IDS_NOTHINGTOCONFIG
,
res_nothingW
,
IDS_NOTHINGTOCONFIG_MAXLEN
);
MessageBoxW
(
hWnd
,
res_nothingW
,
res_PortW
,
MB_OK
|
MB_ICONINFORMATION
);
}
/*****************************************************
* open_monitor_by_name [internal]
*
...
...
@@ -120,8 +140,19 @@ static BOOL WINAPI localui_AddPortUI(PCWSTR pName, HWND hWnd, PCWSTR pMonitorNam
*/
static
BOOL
WINAPI
localui_ConfigurePortUI
(
PCWSTR
pName
,
HWND
hWnd
,
PCWSTR
pPortName
)
{
FIXME
(
"(%s, %p, %s) stub
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pPortName
));
HANDLE
hXcv
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pPortName
));
if
(
open_monitor_by_name
(
XcvPortW
,
pPortName
,
&
hXcv
))
{
dlg_nothingtoconfig
(
hWnd
);
ClosePrinter
(
hXcv
);
return
TRUE
;
}
SetLastError
(
ERROR_UNKNOWN_PORT
);
return
FALSE
;
}
/*****************************************************
...
...
dlls/localui/localui.h
0 → 100644
View file @
3fc87ef6
/*
* internal include file of the Local Printmonitor User Interface
*
* Copyright 2007 Detlef Riekenberg
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_LOCALUI__
#define __WINE_LOCALUI__
/* ## Resource-ID ## */
#define IDS_LOCALPORT 300
#define IDS_NOTHINGTOCONFIG 303
/* ## Reserved memorysize for the strings (in WCHAR) ## */
#define IDS_LOCALPORT_MAXLEN 32
#define IDS_NOTHINGTOCONFIG_MAXLEN 80
#endif
/* __WINE_LOCALUI__ */
dlls/localui/localui.rc
View file @
3fc87ef6
...
...
@@ -22,7 +22,7 @@
#include "windef.h"
#include "winbase.h"
#include "winver.h"
#include "localui.h"
#define WINE_FILENAME_STR "localui.dll"
#define WINE_FILEDESCRIPTION_STR "User Interface for the Local Monitor"
...
...
@@ -35,3 +35,6 @@
#define WINE_PRODUCTVERSION_STR "5.1.2600.2180"
#include "wine/wine_common_ver.rc"
#include "ui_En.rc"
dlls/localui/ui_En.rc
0 → 100644
View file @
3fc87ef6
/*
* English resources for localui
*
* Copyright 2007 Detlef Riekenberg
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
IDS_LOCALPORT "Local Port"
IDS_NOTHINGTOCONFIG "This port has no options to configure"
}
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