win32: Remove the ms-windows engine

This is not used for the windows theme anymore, and is in fact completely
useless. The code is still in git if anyone wants to look at it.
This commit is contained in:
Alexander Larsson 2012-04-03 19:34:02 +02:00
parent a4cde82365
commit 5d9ab2621d
16 changed files with 2 additions and 6385 deletions

View File

@ -1,13 +1,9 @@
include $(top_srcdir)/Makefile.decl
if USE_WIN32
wimp = ms-windows
endif
# the pixbuf engine needs to be ported to GtkThemingEngine
SUBDIRS = $(wimp) # pixbuf
SUBDIRS = # pixbuf
DIST_SUBDIRS = ms-windows pixbuf
DIST_SUBDIRS = pixbuf
-include $(top_srcdir)/git.mk

View File

@ -1,426 +0,0 @@
2004-08-23 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.6.2 ===
* src/msw_style.c: Applied patch from Matthew Mastracci that draws
scrollbars as disabled (and pretends to ignore mouse clicks by
forcing GTK_SHADOW_OUT) when the page length is greater than the
maximum range of the scrollbar.
2004-08-23 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Bump version number
2004-08-13 Dom Lachowicz <cinamod@hotmail.com>
* src/msw_style.c: Proper gripper drawing for handle boxes/toolbars
* src/Theme/gtk-2.0/gtkrc: HandleBoxes and Toolbars are etched-in now
2004-07-02 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.6.1 ===
* configure.in: Really bumped version number (0.6.1)
* src/msw_style.c,src/Theme/gtk-2.0/gtkrc: Removed hard-coded icon
button blocking. It is now configurable from within the gtkrc
file, but still disabled by default.
2004-06-02 Dom Lachowicz <cinamod@hotmail.com>
* src/msw_style.c: Disable icons in buttons
2004-06-02 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Bump version number (0.6.1)
* src/msw_theme_main.c: Lower GTK+ requirements. We'll work fine on 2.0.x or better
* src/xp_theme_defs.h: Remove HAVE_LINES junk
* src/xp_theme.c: Disable application theming if XP asks us to
* src/msw_style.c: Return true for 'is_toolbar()' check if our parent
is a GtkHandleBox. This fixes Inkscape's toolbar icons.
2004-05-21 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.6.0 ===
* configure.in: Bump version number (0.6.0)
* src/msw_style.c: Applied patch by John Ehresman that fixes a
memory leak.
2004-05-21 Dom Lachowicz <cinamod@hotmail.com>
* src/Theme/gtk-2.0/gtkrc: Better icon sizes
* src/msw_theme_main.c: Enable XP theme switching
* src/Makefile.am:
* src/Makefile.msc:
* src/Theme/gtk-2.0/gtkrc: Rename DLL back to "wimp"
* src/wimp_style.c: Fix hilite around toolbar buttons in the Luna theme
2004-03-20 Raymond Penners <raymond@dotsphinx.com>
* all: Renamed GTK-Wimp to MS-Windows Engine
2004-03-11 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.5.4 ===
2004-03-10 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Bump version number (0.5.4)
2004-02-25 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix
http://bugzilla.gnome.org/show_bug.cgi?id=135098
http://sourceforge.net/tracker/index.php?func=detail&aid=895762&group_id=76416&atid=547655
2004-01-25 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.5.3 ===
2004-01-20 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix disappearing text in Gimp option menus.
Fix background color on XP menus.
2004-01-20 Dom Lachowicz <cinamod@hotmail.com>
* src/xp_theme.h
* src/xp_theme.c
* src/wimp_style.c: Remove UXTHEME_HAS_LINES stuff. I played around
with line drawing, and the results were absolutely dreadful.
2003-12-30 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c
* src/xp_theme.c
* src/xp_theme.h
* src/xp_theme_defs.h: Toward 853775, get toolbar button borders correct
2003-12-30 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix bug 852354 to my liking
2003-12-01 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix coloration for the expander's +/- part. Was
the wrong color when selected or selected+insensitive
2003-11-26 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix coloration for several GIMP widgets,
specifically their own OptionMenu-like widget.
2003-11-24 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Get the coloration correct for menu bars (XP theme
was showing white foreground instead of gray)
* configure.in: Post-release version number bump
2003-11-19 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.5.2 ===
2003-11-14 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Protect against buffer overflows when grabbing
fonts and generating RC strings. Get the Progress and Status
widget backgrounds to behave properly on themes like "Brick".
2003-11-05 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Toolbar steppers get drawn ETCHED_IN when
pressed now. More consistent with Win32 behavior.
* src/Theme/gtk-2.0/gtkrc: Make menubars have shadow=NONE. More
consistent with Win32 behavior, though Win32 apps tend to differ
in this area. Setup menu and toolbar icon sizes to be compatible
with win32
2003-11-04 Dom Lachowicz <cinamod@hotmail.com>
* src/xp_theme.c: Move Raymond's scrollbar work into wimp_style.c
* src/wimp_style.c: Get the colorations better for other windows
schemes, such as brick. Based on some work by Jernej Simonèiè
<jernej.simoncic@guest.arnes.si>
2003-11-01 Raymond Penners <raymond@dotsphinx.com>
* src/xp_theme.c: Do not display XP scrollbar grippers on tiny
scrollbars.
2003-10-23 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.5.1 ===
2003-10-23 Dom Lachowicz <cinamod@hotmail.com>
* src/xp_theme_defs.h: Update to include definitions for my latest
work.
2003-10-22 Raymond Penners <raymond@dotsphinx.com>
* src/*.[ch]: Code formatting & XP constants renaming.
2003-10-21 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Use theme colors, use theme metrics
(disabled), use theme fonts, theme menu items, menu separators,
draw status bar resize grips.
* src/xp_theme.c: Ditto.
2003-10-20 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: Added grippers to XP scrollbars.
2003-10-20 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Bump version to the next release number (0.5.1)
2003-10-18 Raymond Penners <raymond@dotsphinx.com>
* src/Theme/gtk-2.0/gtkrc: "GtkToolBar" should read "GtkToolbar"
* src/*: Attempted to fix the grippers for the GNAT Programming
System. Things behave a tiny bit better now. See #ifdef GNATS_HACK
2003-10-17 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: Horizontal/vertical scrollbars were mixed up,
fixed.
2003-04-15 Arnaud Charlet <charlet@ACT-Europe.FR>
* src/*.c: The handling of selected radio button was broken.
* src/xp_theme_defs.h: When building with gcc, the tree expanders
were inverted.
2003-10-08 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.5.0 ===
2003-10-07 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: Tabs not located on top of the notebook are
now (again) no longer rendered using XP theming.
* src/xp_theme.c: Added a more lightweight method to cope with
theme changes. Added a crude theme switch detection scheme in the
case that GTK+ does not implement gdk_window_add_filter properly
(GTK+ 2.2.0?).
2003-10-07 Dom Lachowicz <cinamod@hotmail.com>
* Added new mingw based build system, tidied up other missing bits
* src/xp_theme.c: Tidied up some return cases
2003-10-07 Raymond Penners <raymond@dotsphinx.com>
* src/xp_theme.c: We now properly use IsThemeActive().
* src/xp_theme_defs.h: Renamed from xp_theme_dfns.h
2003-10-06 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style_main.c: Catch system settings changes, disable
theme and color changes as they're too experimental
* src/wimp_style.[ch]: Export some things, make them accept 0 args
* src/xp_theme_dfns.h: New file. WinXP's UXTHEME constants, for
building on platforms without them
* src/xp_theme.c: Should be able to build on Win32 != [WinXP,2k3]
now
2003-10-03 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c wimp_style_main.c: Refactor how we're doing
styles. Much faster, lower memory consumption
2003-10-03 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style_main.c: Catch theme and color changes. Needs more
testing and fine-tuning
2003-10-02 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Deallocate used HDCs
2003-10-01 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Only set the delays if the param is
installed. Silly gtk - installing those 3 params only in the
menus...
2003-09-25 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Set a delay on popdown menus
2003-09-22 Dom Lachowicz <cinamod@hotmail.com>
* src/xp_theme.c: Make a string array const
2003-09-20 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.4.3 ===
* src/wimp_style.c: The Gaim buddy icons were missing due to
recent tree expander changes, not the clipping area. Fixed.
* src/xp_theme.c: Re-enabled clipping area, I am confident it
should not cause any problems now.
2003-09-18 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.4.2 ===
2003-09-16 Dom Lachowicz <cinamod@hotmail.com>
* src/xp_theme.c: Ignore cliprect for now
2003-09-15 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.4.1 ===
* src/wimp_style.c: Fixed typ-o (gtk-double-cliNk-time), adjusted
cursor blink time to cope with Windows semantics (GTK+ uses cycle
time), fixed clipping area computation. Fixed XP tree expanders to
cope with clipping area, and made non-XP tree expanders look
pixel-perfect.
2003-09-15 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Fix a few more console messages, implement
caret blinking
* src/xp_theme.*: Stub out line drawing. Apparently, documented
bits are missing from MS's implementation. Go figure...
2003-09-14 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: Fixed console message complaining about
"default_border".
* src/wimp_style.c: Due to a bug lots of console message
complaining about "unexpected keyword `fg'" occured, fixed.
2003-09-11 Dom Lachowicz <cinamod@hotmail.com>
* src/Theme/gtk-2.0/gtkrc: Remove unused cruft wrt GtkScrollbars
2003-09-11 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.4.0 ===
* src/wimp_style.c: Notebook tabs were no longer properly drawn,
fixed.
2003-09-08 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Honor scrollbar sizes, radio/check button
sizes, paned sizes
2003-09-03 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Honor tooltip color, font
2003-09-02 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: We now honor font preferences being bold or
italic
2003-08-29 Dom Lachowicz <cinamod@hotmail.com>
* src/*.c: Theme GTK toolbar arrows to XP chevrons, once my GTK
patch is committed.
* src/wimp_style.c: Enable proper fonts/sizes for menus, status
bars. Tooltips are waiting for my GTK patches, though.
2003-08-28 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c: Change how we draw handle boxes in the non-XP
case. This does not yet apply to GtkHandleBoxes
2003-08-26 Dom Lachowicz <cinamod@hotmail.com>
* src/*.c: Tooltips should do XP-style theming. Handle Boxes/Panes
do XP style REBAR theming (TODO: non-XP version of the above for
handleboxes). Toolbars should draw the REBAR part
properly. Preparation for using the Toolbar class. Menubars and
Toolbars now are etched-in to mimic Windows'
behavior. HandleBoxes' shadow types should also be correct now,
compared to OfficeXP applications.
2003-08-26 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.3.0 ===
2003-08-23 Raymond Penners <raymond@dotsphinx.com>
* src/*.c: Merged Dom Lachowicz's patches, now tooltips and
progress bars nicely adhere to the system colors as well.
* src/xp_theme.c: There was a mixup in drawing the proper checkbox
state, fixed (Gaim bug #790305).
2003-08-20 Raymond Penners <raymond@dotsphinx.com>
* src/Theme/gtk-2.0/gtkrc: Disabled the colored, alternating
rules for GtkTreeViews to match the Windows behaviour.
* */Makefile.msc: Provided MS-VC++ make files.
* src/xp_theme.c: The open/close tree expander symbols were
accidentally switched, fixed (Gaim bug #790300).
2003-08-11 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: The menu background color now follows XP's
color scheme.
2003-08-07 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.2.0 ===
2003-08-06 Raymond Penners <raymond@dotsphinx.com>
* src/*.c: Added XP theming support for progress bars.
2003-08-05 Raymond Penners <raymond@dotsphinx.com>
* src/xp_theme.c: Internal redesign: extracted XP specific theming
from wimp_style.c, improved code.
* src/wimp_style.c: Added XP theming support for list headers, and
entry widgets.
2003-08-03 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: Improved system color handling, added XP
theming support for option menus.
2003-04-15 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: Tabs not located on top of the notebook are
not rendered properly using XP theming. Added fallback to non-XP
theming behaviour if the tabs are not located on top (to be
removed when full notebook support is in).
2003-04-15 Arnaud Charlet <charlet@ACT-Europe.FR>
* src/wimp_style.c: Add handling of expander. Fix colors for combo
box items. Add native rendering of radio buttons. Fix handling of
default buttons. Add native rendering of tree expanders.
2003-03-18 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.1.0 ===

View File

@ -1,39 +0,0 @@
include $(top_srcdir)/Makefile.decl
SUBDIRS=Theme
EXTRA_DIST += Makefile.msc
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
-I$(top_builddir)/gdk \
-DGDK_DISABLE_DEPRECATED \
$(GTK_DEP_CFLAGS)
LDADDS = \
$(top_builddir)/gdk/libgdk-3.la \
$(top_builddir)/gtk/libgtk-3.la \
$(GTK_DEP_LIBS)
enginedir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/engines
engine_LTLIBRARIES = libwimp.la
libwimp_la_SOURCES = \
msw_rc_style.c \
msw_rc_style.h \
msw_style.c \
msw_style.h \
msw_theme_main.c \
xp_theme.c \
xp_theme_defs.h \
xp_theme.h
libwimp_la_LDFLAGS = \
-avoid-version -module -no-undefined -export-dynamic
libwimp_la_LIBADD = $(LDADDS) -lgdi32
-include $(top_srcdir)/git.mk

View File

@ -1,69 +0,0 @@
# Makefile.msc -- Makefile for MS-VC++ (-*- makefile -*-)
#
# Copyright (C) 2003, 2004 Raymond Penners <raymond@dotsphinx.com>
#
# $Id: Makefile.msc,v 1.3 2004/05/21 19:02:59 cinamod Exp $
!INCLUDE Makefile.msc.config
##
# Target
TARGET=libwimp.dll
OBJS = \
msw_style.obj \
msw_theme_main.obj \
msw_rc_style.obj \
xp_theme.obj
##
# GTK
#
GTK_CFLAGS=\
-I$(GTK_DIR)/include/gtk-2.0 \
-I$(GTK_DIR)/lib/gtk-2.0/include \
-I$(GTK_DIR)/include/atk-1.0 \
-I$(GTK_DIR)/include/pango-1.0 \
-I$(GTK_DIR)/include/glib-2.0 \
-I$(GTK_DIR)/lib/glib-2.0/include
GTK_LDFLAGS=/libpath:$(GTK_DIR)/lib
GTK_LIBS= \
gtk-win32-2.0.lib \
gdk-win32-2.0.lib \
atk-1.0.lib \
gdk_pixbuf-2.0.lib \
pangowin32-1.0.lib \
pango-1.0.lib \
gobject-2.0.lib \
gmodule-2.0.lib \
glib-2.0.lib
##
# WIN32
#
WIN32_LIBS = \
gdi32.lib \
user32.lib
WIN32_CFLAGS=-I"$(SDK_DIR)\gtk-2.0" -I"$(SDK_DIR)\cairo" -I"$(SDK_DIR)\glib-2.0" -DBUILDING_STANDALONE
WIN32_LDFLAGS=/DLL /SUBSYSTEM:WINDOWS
##
# Target
#
LIBS=$(GTK_LIBS) $(WIN32_LIBS)
CFLAGS=$(WIN32_CFLAGS) $(GTK_CFLAGS)
LDFLAGS= $(WIN32_LDFLAGS) $(GTK_LDFLAGS)
all: $(TARGET)
$(TARGET): $(OBJS)
link $(LDFLAGS) $(LIBS) /OUT:$@ $(OBJS)
install: $(TARGET)
copy $(TARGET) "$(INSTALL_DIR)"
clean:
del *.obj *.dll *.exp *.lib

View File

@ -1,11 +0,0 @@
# Makefile.msc.config -- Configuration file (-*- makefile -*-)
#
# Copyright (C) 2003 Raymond Penners <raymond@dotsphinx.com>
#
# $Id: Makefile.msc.config,v 1.6 2005/06/26 15:22:03 cinamod Exp $
##
# Please configure this to match your setup.
GTK_DIR=C:\Progra~1\Common~1\gtk\2.0
INSTALL_DIR=$(GTK_DIR)\lib\gtk-2.0\2.10.0\engines
SDK_DIR=$(GTK_DIR)\include

View File

@ -1,5 +0,0 @@
include $(top_srcdir)/Makefile.decl
SUBDIRS=gtk-3.0
-include $(top_srcdir)/git.mk

View File

@ -1,8 +0,0 @@
include $(top_srcdir)/Makefile.decl
themedir = $(datadir)/themes/MS-Windows/gtk-3.0
theme_DATA=gtkrc
EXTRA_DIST += $(theme_DATA)
-include $(top_srcdir)/git.mk

View File

@ -1,66 +0,0 @@
gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32"
gtk-toolbar-icon-size = small-toolbar
# disable images in buttons. i've only seen ugly delphi apps use this feature.
gtk-button-images = 0
# enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
# the office apps use them heavily, though.
gtk-menu-images = 1
# use the win32 button ordering instead of the GNOME HIG one, where applicable
gtk-alternative-button-order = 1
# use the win32 sort indicators direction, as in Explorer
gtk-alternative-sort-arrows = 1
# Windows users don't expect the PC Speaker beeping at them when they backspace in an empty textview and stuff like that
gtk-error-bell = 0
style "msw-default"
{
GtkWidget::interior-focus = 1
GtkOptionMenu::indicator-size = { 9, 5 }
GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
GtkSpinButton::shadow-type = in
# Owen and I disagree that these should be themable
#GtkUIManager::add-tearoffs = 0
#GtkComboBox::add-tearoffs = 0
GtkComboBox::appears-as-list = 1
GtkComboBox::focus-on-click = 0
GOComboBox::add_tearoffs = 0
GtkTreeView::allow-rules = 0
GtkTreeView::expander-size = 12
GtkExpander::expander-size = 12
GtkScrolledWindow::scrollbar_spacing = 1
GtkSeparatorMenuItem::horizontal-padding = 2
engine "wimp"
{
}
}
class "*" style "msw-default"
binding "ms-windows-tree-view"
{
bind "Right" { "expand-collapse-cursor-row" (1,1,0) }
bind "Left" { "expand-collapse-cursor-row" (1,0,0) }
}
class "GtkTreeView" binding "ms-windows-tree-view"
style "msw-combobox-thickness" = "msw-default"
{
xthickness = 0
ythickness = 0
}
widget_class "*TreeView*ComboBox*" style "msw-combobox-thickness"
widget_class "*ComboBox*GtkFrame*" style "msw-combobox-thickness"

View File

@ -1,74 +0,0 @@
/* MS-Windows Engine (aka GTK-Wimp)
*
* Copyright (C) 2003, 2004 Raymond Penners <raymond@dotsphinx.com>
* Includes code adapted from redmond95 by Owen Taylor, and
* gtk-nativewin by Evan Martin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "msw_style.h"
#include "msw_rc_style.h"
static void msw_rc_style_init (MswRcStyle * style);
static void msw_rc_style_class_init (MswRcStyleClass * klass);
static GtkStyle *msw_rc_style_create_style (GtkRcStyle * rc_style);
static GtkRcStyleClass *parent_class;
GType msw_type_rc_style = 0;
void
msw_rc_style_register_type (GTypeModule *module)
{
const GTypeInfo object_info = {
sizeof (MswRcStyleClass),
(GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL,
(GClassInitFunc) msw_rc_style_class_init,
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (MswRcStyle),
0, /* n_preallocs */
(GInstanceInitFunc) msw_rc_style_init,
};
msw_type_rc_style = g_type_module_register_type (module,
GTK_TYPE_RC_STYLE,
"MswRcStyle",
&object_info, 0);
}
static void
msw_rc_style_init (MswRcStyle *style)
{
}
static void
msw_rc_style_class_init (MswRcStyleClass *klass)
{
GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
rc_style_class->create_style = msw_rc_style_create_style;
}
/* Create an empty style suitable to this RC style
*/
static GtkStyle *
msw_rc_style_create_style (GtkRcStyle *rc_style)
{
return g_object_new (MSW_TYPE_STYLE, NULL);
}

View File

@ -1,52 +0,0 @@
/* MS-Windows Engine (aka GTK-Wimp)
*
* Copyright (C) 2003, 2004 Raymond Penners <raymond@dotsphinx.com>
* Includes code adapted from redmond95 by Owen Taylor, and
* gtk-nativewin by Evan Martin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MSW_RC_STYLE_H
#define MSW_RC_STYLE_H
#include "gtk/gtk.h"
typedef struct _MswRcStyle MswRcStyle;
typedef struct _MswRcStyleClass MswRcStyleClass;
extern GType msw_type_rc_style;
#define MSW_TYPE_RC_STYLE msw_type_rc_style
#define MSW_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MSW_TYPE_RC_STYLE, MswRcStyle))
#define MSW_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MSW_TYPE_RC_STYLE, MswRcStyleClass))
#define MSW_IS_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MSW_TYPE_RC_STYLE))
#define MSW_IS_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MSW_TYPE_RC_STYLE))
#define MSW_RC_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MSW_TYPE_RC_STYLE, MswRcStyleClass))
struct _MswRcStyle
{
GtkRcStyle parent_instance;
GList *img_list;
};
struct _MswRcStyleClass
{
GtkRcStyleClass parent_class;
};
void msw_rc_style_register_type (GTypeModule *module);
#endif /* MSW_TYPE_RC_STYLE */

File diff suppressed because it is too large Load Diff

View File

@ -1,53 +0,0 @@
/* MS-Windows Engine (aka GTK-Wimp)
*
* Copyright (C) 2003, 2004 Raymond Penners <raymond@dotsphinx.com>
* Includes code adapted from redmond95 by Owen Taylor, and
* gtk-nativewin by Evan Martin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MSW_STYLE_H
#define MSW_STYLE_H
#include "gtk/gtk.h"
typedef struct _MswStyle MswStyle;
typedef struct _MswStyleClass MswStyleClass;
extern GType msw_type_style;
#define MSW_TYPE_STYLE msw_type_style
#define MSW_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MSW_TYPE_STYLE, MswStyle))
#define MSW_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MSW_TYPE_STYLE, MswStyleClass))
#define MSW_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MSW_TYPE_STYLE))
#define MSW_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MSW_TYPE_STYLE))
#define MSW_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MSW_TYPE_STYLE, MswStyleClass))
struct _MswStyle
{
GtkStyle parent_instance;
};
struct _MswStyleClass
{
GtkStyleClass parent_class;
};
void msw_style_register_type (GTypeModule *module);
void msw_style_init (void);
void msw_style_finalize (void);
void msw_style_setup_system_settings (void);
#endif /* MSW_TYPE_STYLE */

View File

@ -1,144 +0,0 @@
/* MS-Windows Engine (aka GTK-Wimp)
*
* Copyright (C) 2003, 2004 Raymond Penners <raymond@dotsphinx.com>
* Includes code adapted from redmond95 by Owen Taylor, and
* gtk-nativewin by Evan Martin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include <windows.h>
#include <gmodule.h>
#include "gtk/gtk.h"
#include "msw_style.h"
#include "msw_rc_style.h"
#include "xp_theme.h"
#ifndef WM_THEMECHANGED
#define WM_THEMECHANGED 0x031A /* winxp only */
#endif
static GModule *this_module = NULL;
static void (*msw_rc_reset_styles) (GtkSettings *settings) = NULL;
static GdkWindow *hidden_msg_window = NULL;
static GdkWindow *
create_hidden_msg_window (void)
{
GdkWindowAttr attributes;
gint attributes_mask;
attributes.x = -100;
attributes.y = -100;
attributes.width = 10;
attributes.height = 10;
attributes.window_type = GDK_WINDOW_TEMP;
attributes.wclass = GDK_INPUT_ONLY;
attributes.override_redirect = TRUE;
attributes.event_mask = 0;
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
return gdk_window_new (gdk_get_default_root_window (),
&attributes, attributes_mask);
}
static GdkFilterReturn
global_filter_func (void *xevent, GdkEvent *event, gpointer data)
{
MSG *msg = (MSG *) xevent;
switch (msg->message)
{
/* catch theme changes */
case WM_THEMECHANGED:
case WM_SYSCOLORCHANGE:
if (msw_rc_reset_styles != NULL)
{
xp_theme_reset ();
msw_style_init ();
/* force all gtkwidgets to redraw */
(*msw_rc_reset_styles) (gtk_settings_get_default ());
}
return GDK_FILTER_REMOVE;
case WM_SETTINGCHANGE:
/* catch cursor blink, etc... changes */
msw_style_setup_system_settings ();
return GDK_FILTER_REMOVE;
default:
return GDK_FILTER_CONTINUE;
}
}
G_MODULE_EXPORT void
theme_init (GTypeModule * module)
{
msw_rc_style_register_type (module);
msw_style_register_type (module);
/* this craziness is required because only gtk 2.4.x and later have
gtk_rc_reset_styles(). But we want to be able to run acceptly well on
any GTK 2.x.x platform. */
if (gtk_check_version (2, 4, 0) == NULL)
{
this_module = g_module_open (NULL, 0);
if (this_module)
g_module_symbol (this_module, "gtk_rc_reset_styles",
(gpointer *) (&msw_rc_reset_styles));
}
msw_style_init ();
hidden_msg_window = create_hidden_msg_window ();
gdk_window_add_filter (hidden_msg_window, global_filter_func, NULL);
}
G_MODULE_EXPORT void
theme_exit (void)
{
gdk_window_remove_filter (hidden_msg_window, global_filter_func, NULL);
gdk_window_destroy (hidden_msg_window);
hidden_msg_window = NULL;
msw_style_finalize ();
if (this_module)
{
g_module_close (this_module);
this_module = NULL;
}
}
G_MODULE_EXPORT GtkRcStyle *
theme_create_rc_style (void)
{
return g_object_new (MSW_TYPE_RC_STYLE, NULL);
}
/* The following function will be called by GTK+ when the module
* is loaded and checks to see if we are compatible with the
* version of GTK+ that loads us.
*/
G_MODULE_EXPORT const gchar *
g_module_check_init (GModule *module)
{
return gtk_check_version (2, 0, 0);
}

File diff suppressed because it is too large Load Diff

View File

@ -1,149 +0,0 @@
/* MS-Windows Engine (aka GTK-Wimp)
*
* Copyright (C) 2003, 2004 Raymond Penners <raymond@dotsphinx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef XP_THEME_H
#define XP_THEME_H
#include <windows.h>
#include "gtk/gtk.h"
typedef enum
{
XP_THEME_CLASS_SCROLLBAR = 0,
XP_THEME_CLASS_BUTTON,
XP_THEME_CLASS_HEADER,
XP_THEME_CLASS_COMBOBOX,
XP_THEME_CLASS_TAB,
XP_THEME_CLASS_EDIT,
XP_THEME_CLASS_TREEVIEW,
XP_THEME_CLASS_SPIN,
XP_THEME_CLASS_PROGRESS,
XP_THEME_CLASS_TOOLTIP,
XP_THEME_CLASS_REBAR,
XP_THEME_CLASS_TOOLBAR,
XP_THEME_CLASS_GLOBALS,
XP_THEME_CLASS_MENU,
XP_THEME_CLASS_WINDOW,
XP_THEME_CLASS_STATUS,
XP_THEME_CLASS_TRACKBAR,
XP_THEME_CLASS__SIZEOF
} XpThemeClass;
typedef enum
{
XP_THEME_ELEMENT_PRESSED_CHECKBOX = 0,
XP_THEME_ELEMENT_CHECKBOX,
XP_THEME_ELEMENT_INCONSISTENT_CHECKBOX,
XP_THEME_ELEMENT_BUTTON,
XP_THEME_ELEMENT_LIST_HEADER,
XP_THEME_ELEMENT_COMBOBUTTON,
XP_THEME_ELEMENT_BODY,
XP_THEME_ELEMENT_TAB_ITEM,
XP_THEME_ELEMENT_TAB_ITEM_LEFT_EDGE,
XP_THEME_ELEMENT_TAB_ITEM_RIGHT_EDGE,
XP_THEME_ELEMENT_TAB_PANE,
XP_THEME_ELEMENT_SCROLLBAR_H,
XP_THEME_ELEMENT_SCROLLBAR_V,
XP_THEME_ELEMENT_ARROW_UP,
XP_THEME_ELEMENT_ARROW_DOWN,
XP_THEME_ELEMENT_ARROW_LEFT,
XP_THEME_ELEMENT_ARROW_RIGHT,
XP_THEME_ELEMENT_SCROLLBAR_GRIPPER_H,
XP_THEME_ELEMENT_SCROLLBAR_GRIPPER_V,
XP_THEME_ELEMENT_TROUGH_H,
XP_THEME_ELEMENT_TROUGH_V,
XP_THEME_ELEMENT_EDIT_TEXT,
XP_THEME_ELEMENT_DEFAULT_BUTTON,
XP_THEME_ELEMENT_SPIN_BUTTON_UP,
XP_THEME_ELEMENT_SPIN_BUTTON_DOWN,
XP_THEME_ELEMENT_PRESSED_RADIO_BUTTON,
XP_THEME_ELEMENT_RADIO_BUTTON,
XP_THEME_ELEMENT_TREEVIEW_EXPANDER_OPENED,
XP_THEME_ELEMENT_TREEVIEW_EXPANDER_CLOSED,
XP_THEME_ELEMENT_PROGRESS_BAR_H,
XP_THEME_ELEMENT_PROGRESS_BAR_V,
XP_THEME_ELEMENT_PROGRESS_TROUGH_H,
XP_THEME_ELEMENT_PROGRESS_TROUGH_V,
XP_THEME_ELEMENT_TOOLTIP,
XP_THEME_ELEMENT_REBAR,
XP_THEME_ELEMENT_REBAR_GRIPPER_H,
XP_THEME_ELEMENT_REBAR_GRIPPER_V,
XP_THEME_ELEMENT_REBAR_CHEVRON,
XP_THEME_ELEMENT_TOOLBAR_BUTTON,
XP_THEME_ELEMENT_MENU_ITEM,
XP_THEME_ELEMENT_MENU_SEPARATOR,
XP_THEME_ELEMENT_STATUS_GRIPPER,
XP_THEME_ELEMENT_STATUS_PANE,
XP_THEME_ELEMENT_LINE_H,
XP_THEME_ELEMENT_LINE_V,
XP_THEME_ELEMENT_TOOLBAR_SEPARATOR_H,
XP_THEME_ELEMENT_TOOLBAR_SEPARATOR_V,
XP_THEME_ELEMENT_SCALE_TROUGH_H,
XP_THEME_ELEMENT_SCALE_TROUGH_V,
XP_THEME_ELEMENT_SCALE_SLIDER_H,
XP_THEME_ELEMENT_SCALE_SLIDER_V,
XP_THEME_ELEMENT_SCALE_TICS_H,
XP_THEME_ELEMENT_SCALE_TICS_V,
XP_THEME_ELEMENT__SIZEOF
} XpThemeElement;
typedef enum
{
XP_THEME_FONT_CAPTION,
XP_THEME_FONT_MENU,
XP_THEME_FONT_STATUS,
XP_THEME_FONT_MESSAGE
} XpThemeFont;
typedef struct
{
HDC hdc;
HBITMAP hBitmap, hOldBitmap;
cairo_t *cr;
gint x;
gint y;
gint width;
gint height;
} XpDCInfo;
HDC get_window_dc (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
XpDCInfo *dc_info_out,
gint x, gint y, gint width, gint height,
RECT *rect_out);
void release_window_dc (XpDCInfo *dc_info);
void xp_theme_init (void);
void xp_theme_reset (void);
void xp_theme_exit (void);
gboolean xp_theme_draw (cairo_t *cr, XpThemeElement element,
GtkStyle *style, int x, int y, int width,
int height, GtkStateType state_type);
gboolean xp_theme_is_drawable (XpThemeElement element);
gboolean xp_theme_get_element_dimensions (XpThemeElement element,
GtkStateType state_type,
gint *cx, gint *cy);
gboolean xp_theme_get_system_font (XpThemeClass klazz, XpThemeFont fontId, OUT LOGFONTW *lf);
gboolean xp_theme_get_system_color (XpThemeClass klazz, int colorId, OUT DWORD *pColor);
gboolean xp_theme_get_system_metric (XpThemeClass klazz, int metricId, OUT int *pVal);
gboolean xp_theme_is_active (void);
#endif /* XP_THEME_H */

View File

@ -1,763 +0,0 @@
/* MS-Windows Engine (aka GTK-Wimp)
*
* Copyright (C) 2003, 2004 Dom Lachowicz <cinamod@hotmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* These are the real values of these UXTHEME constants, provided so that we can
* compile/link on Win32 platforms that aren't WinXP, and also build against
* MinGW 1.0/1.1, which also doesn't have these things defined in its header files
*/
#ifndef XP_THEME_DFNS_H
#define XP_THEME_DFNS_H
typedef HANDLE HTHEME;
#define ETDT_ENABLE 0x00000002
#define ETDT_USETABTEXTURE 0x00000004
#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE)
enum {
BP_PUSHBUTTON = 1,
BP_RADIOBUTTON = 2,
BP_CHECKBOX = 3,
BP_GROUPBOX = 4,
BP_USERBUTTON = 5
};
enum {
CBS_UNCHECKEDNORMAL = 1,
CBS_UNCHECKEDHOT = 2,
CBS_UNCHECKEDPRESSED = 3,
CBS_UNCHECKEDDISABLED = 4,
CBS_CHECKEDNORMAL = 5,
CBS_CHECKEDHOT = 6,
CBS_CHECKEDPRESSED = 7,
CBS_CHECKEDDISABLED = 8,
CBS_MIXEDNORMAL = 9,
CBS_MIXEDHOT = 10,
CBS_MIXEDPRESSED = 11,
CBS_MIXEDDISABLED = 12
};
enum {
GBS_NORMAL = 1,
GBS_DISABLED = 2
};
enum {
PBS_NORMAL = 1,
PBS_HOT = 2,
PBS_PRESSED = 3,
PBS_DISABLED = 4,
PBS_DEFAULTED = 5
};
enum {
RBS_UNCHECKEDNORMAL = 1,
RBS_UNCHECKEDHOT = 2,
RBS_UNCHECKEDPRESSED = 3,
RBS_UNCHECKEDDISABLED = 4,
RBS_CHECKEDNORMAL = 5,
RBS_CHECKEDHOT = 6,
RBS_CHECKEDPRESSED = 7,
RBS_CHECKEDDISABLED = 8
};
enum {
CLP_TIME = 1
};
enum {
CLS_NORMAL = 1
};
enum {
CP_DROPDOWNBUTTON = 1
};
enum {
CBXS_NORMAL = 1,
CBXS_HOT = 2,
CBXS_PRESSED = 3,
CBXS_DISABLED = 4
};
enum {
EP_EDITTEXT = 1,
EP_CARET = 2
};
enum {
ETS_NORMAL = 1,
ETS_HOT = 2,
ETS_SELECTED = 3,
ETS_DISABLED = 4,
ETS_FOCUSED = 5,
ETS_READONLY = 6,
ETS_ASSIST = 7
};
enum {
EBP_HEADERBACKGROUND = 1,
EBP_HEADERCLOSE = 2,
EBP_HEADERPIN = 3,
EBP_IEBARMENU = 4,
EBP_NORMALGROUPBACKGROUND = 5,
EBP_NORMALGROUPCOLLAPSE = 6,
EBP_NORMALGROUPEXPAND = 7,
EBP_NORMALGROUPHEAD = 8,
EBP_SPECIALGROUPBACKGROUND = 9,
EBP_SPECIALGROUPCOLLAPSE = 10,
EBP_SPECIALGROUPEXPAND = 11,
EBP_SPECIALGROUPHEAD = 12
};
enum {
EBHC_NORMAL = 1,
EBHC_HOT = 2,
EBHC_PRESSED = 3
};
enum {
EBHP_NORMAL = 1,
EBHP_HOT = 2,
EBHP_PRESSED = 3,
EBHP_SELECTEDNORMAL = 4,
EBHP_SELECTEDHOT = 5,
EBHP_SELECTEDPRESSED = 6
};
enum {
EBM_NORMAL = 1,
EBM_HOT = 2,
EBM_PRESSED = 3
};
enum {
EBNGC_NORMAL = 1,
EBNGC_HOT = 2,
EBNGC_PRESSED = 3
};
enum {
EBNGE_NORMAL = 1,
EBNGE_HOT = 2,
EBNGE_PRESSED = 3
};
enum {
EBSGC_NORMAL = 1,
EBSGC_HOT = 2,
EBSGC_PRESSED = 3
};
enum {
EBSGE_NORMAL = 1,
EBSGE_HOT = 2,
EBSGE_PRESSED = 3
};
enum {
HP_HEADERITEM = 1,
HP_HEADERITEMLEFT = 2,
HP_HEADERITEMRIGHT = 3,
HP_HEADERSORTARROW = 4
};
enum {
HIS_NORMAL = 1,
HIS_HOT = 2,
HIS_PRESSED = 3
};
enum {
HILS_NORMAL = 1,
HILS_HOT = 2,
HILS_PRESSED = 3
};
enum {
HIRS_NORMAL = 1,
HIRS_HOT = 2,
HIRS_PRESSED = 3
};
enum {
HSAS_SORTEDUP = 1,
HSAS_SORTEDDOWN = 2
};
enum {
LVP_LISTITEM = 1,
LVP_LISTGROUP = 2,
LVP_LISTDETAIL = 3,
LVP_LISTSORTEDDETAIL = 4,
LVP_EMPTYTEXT = 5
};
enum {
LIS_NORMAL = 1,
LIS_HOT = 2,
LIS_SELECTED = 3,
LIS_DISABLED = 4,
LIS_SELECTEDNOTFOCUS = 5
};
enum {
MP_MENUITEM = 1,
MP_MENUDROPDOWN = 2,
MP_MENUBARITEM = 3,
MP_MENUBARDROPDOWN = 4,
MP_CHEVRON = 5,
MP_SEPARATOR = 6
};
enum {
MS_NORMAL = 1,
MS_SELECTED = 2,
MS_DEMOTED = 3
};
enum {
MDP_NEWAPPBUTTON = 1,
MDP_SEPERATOR = 2
};
enum {
MDS_NORMAL = 1,
MDS_HOT = 2,
MDS_PRESSED = 3,
MDS_DISABLED = 4,
MDS_CHECKED = 5,
MDS_HOTCHECKED = 6
};
enum {
PGRP_UP = 1,
PGRP_DOWN = 2,
PGRP_UPHORZ = 3,
PGRP_DOWNHORZ = 4
};
enum {
DNS_NORMAL = 1,
DNS_HOT = 2,
DNS_PRESSED = 3,
DNS_DISABLED = 4
};
enum {
DNHZS_NORMAL = 1,
DNHZS_HOT = 2,
DNHZS_PRESSED = 3,
DNHZS_DISABLED = 4
};
enum {
UPS_NORMAL = 1,
UPS_HOT = 2,
UPS_PRESSED = 3,
UPS_DISABLED = 4
};
enum {
UPHZS_NORMAL = 1,
UPHZS_HOT = 2,
UPHZS_PRESSED = 3,
UPHZS_DISABLED = 4
};
enum {
PP_BAR = 1,
PP_BARVERT = 2,
PP_CHUNK = 3,
PP_CHUNKVERT = 4
};
enum {
RP_GRIPPER = 1,
RP_GRIPPERVERT = 2,
RP_BAND = 3,
RP_CHEVRON = 4,
RP_CHEVRONVERT = 5
};
enum {
CHEVS_NORMAL = 1,
CHEVS_HOT = 2,
CHEVS_PRESSED = 3
};
enum {
SBP_ARROWBTN = 1,
SBP_THUMBBTNHORZ = 2,
SBP_THUMBBTNVERT = 3,
SBP_LOWERTRACKHORZ = 4,
SBP_UPPERTRACKHORZ = 5,
SBP_LOWERTRACKVERT = 6,
SBP_UPPERTRACKVERT = 7,
SBP_GRIPPERHORZ = 8,
SBP_GRIPPERVERT = 9,
SBP_SIZEBOX = 10
};
enum {
ABS_UPNORMAL = 1,
ABS_UPHOT = 2,
ABS_UPPRESSED = 3,
ABS_UPDISABLED = 4,
ABS_DOWNNORMAL = 5,
ABS_DOWNHOT = 6,
ABS_DOWNPRESSED = 7,
ABS_DOWNDISABLED = 8,
ABS_LEFTNORMAL = 9,
ABS_LEFTHOT = 10,
ABS_LEFTPRESSED = 11,
ABS_LEFTDISABLED = 12,
ABS_RIGHTNORMAL = 13,
ABS_RIGHTHOT = 14,
ABS_RIGHTPRESSED = 15,
ABS_RIGHTDISABLED = 16
};
enum {
SCRBS_NORMAL = 1,
SCRBS_HOT = 2,
SCRBS_PRESSED = 3,
SCRBS_DISABLED = 4
};
enum {
SZB_RIGHTALIGN = 1,
SZB_LEFTALIGN = 2
};
enum {
SPNP_UP = 1,
SPNP_DOWN = 2,
SPNP_UPHORZ = 3,
SPNP_DOWNHORZ = 4
};
enum {
SPP_USERPANE = 1,
SPP_MOREPROGRAMS = 2,
SPP_MOREPROGRAMSARROW = 3,
SPP_PROGLIST = 4,
SPP_PROGLISTSEPARATOR = 5,
SPP_PLACESLIST = 6,
SPP_PLACESLISTSEPARATOR = 7,
SPP_LOGOFF = 8,
SPP_LOGOFFBUTTONS = 9,
SPP_USERPICTURE = 10,
SPP_PREVIEW = 11
};
enum {
SPLS_NORMAL = 1,
SPLS_HOT = 2,
SPLS_PRESSED = 3
};
enum {
SPS_NORMAL = 1,
SPS_HOT = 2,
SPS_PRESSED = 3
};
enum {
SP_PANE = 1,
SP_GRIPPERPANE = 2,
SP_GRIPPER = 3
};
enum {
TABP_TABITEM = 1,
TABP_TABITEMLEFTEDGE = 2,
TABP_TABITEMRIGHTEDGE = 3,
TABP_TABITEMBOTHEDGE = 4,
TABP_TOPTABITEM = 5,
TABP_TOPTABITEMLEFTEDGE = 6,
TABP_TOPTABITEMRIGHTEDGE = 7,
TABP_TOPTABITEMBOTHEDGE = 8,
TABP_PANE = 9,
TABP_BODY = 10
};
enum {
TIS_NORMAL = 1,
TIS_HOT = 2,
TIS_SELECTED = 3,
TIS_DISABLED = 4,
TIS_FOCUSED = 5
};
enum {
TIBES_NORMAL = 1,
TIBES_HOT = 2,
TIBES_SELECTED = 3,
TIBES_DISABLED = 4,
TIBES_FOCUSED = 5
};
enum {
TILES_NORMAL = 1,
TILES_HOT = 2,
TILES_SELECTED = 3,
TILES_DISABLED = 4,
TILES_FOCUSED = 5
};
enum {
TIRES_NORMAL = 1,
TIRES_HOT = 2,
TIRES_SELECTED = 3,
TIRES_DISABLED = 4,
TIRES_FOCUSED = 5
};
enum {
TTIS_NORMAL = 1,
TTIS_HOT = 2,
TTIS_SELECTED = 3,
TTIS_DISABLED = 4,
TTIS_FOCUSED = 5
};
enum {
TTIBES_NORMAL = 1,
TTIBES_HOT = 2,
TTIBES_SELECTED = 3,
TTIBES_DISABLED = 4,
TTIBES_FOCUSED = 5
};
enum {
TTILES_NORMAL = 1,
TTILES_HOT = 2,
TTILES_SELECTED = 3,
TTILES_DISABLED = 4,
TTILES_FOCUSED = 5
};
enum {
TTIRES_NORMAL = 1,
TTIRES_HOT = 2,
TTIRES_SELECTED = 3,
TTIRES_DISABLED = 4,
TTIRES_FOCUSED = 5
};
enum {
TDP_GROUPCOUNT = 1,
TDP_FLASHBUTTON = 2,
TDP_FLASHBUTTONGROUPMENU = 3
};
enum {
TBP_BACKGROUNDBOTTOM = 1,
TBP_BACKGROUNDRIGHT = 2,
TBP_BACKGROUNDTOP = 3,
TBP_BACKGROUNDLEFT = 4,
TBP_SIZINGBARBOTTOM = 5,
TBP_SIZINGBARRIGHT = 6,
TBP_SIZINGBARTOP = 7,
TBP_SIZINGBARLEFT = 8
};
enum {
TP_BUTTON = 1,
TP_DROPDOWNBUTTON = 2,
TP_SPLITBUTTON = 3,
TP_SPLITBUTTONDROPDOWN = 4,
TP_SEPARATOR = 5,
TP_SEPARATORVERT = 6
};
enum {
TS_NORMAL = 1,
TS_HOT = 2,
TS_PRESSED = 3,
TS_DISABLED = 4,
TS_CHECKED = 5,
TS_HOTCHECKED = 6
};
enum {
TTP_STANDARD = 1,
TTP_STANDARDTITLE = 2,
TTP_BALLOON = 3,
TTP_BALLOONTITLE = 4,
TTP_CLOSE = 5
};
enum {
TTBS_NORMAL = 1,
TTBS_LINK = 2
};
enum {
TTCS_NORMAL = 1,
TTCS_HOT = 2,
TTCS_PRESSED = 3
};
enum {
TTSS_NORMAL = 1,
TTSS_LINK = 2
};
enum {
TKP_TRACK = 1,
TKP_TRACKVERT = 2,
TKP_THUMB = 3,
TKP_THUMBBOTTOM = 4,
TKP_THUMBTOP = 5,
TKP_THUMBVERT = 6,
TKP_THUMBLEFT = 7,
TKP_THUMBRIGHT = 8,
TKP_TICS = 9, TKP_TICSVERT = 10
};
enum {
TUS_NORMAL = 1,
TUS_HOT = 2,
TUS_PRESSED = 3,
TUS_FOCUSED = 4,
TUS_DISABLED = 5
};
enum {
TUBS_NORMAL = 1,
TUBS_HOT = 2,
TUBS_PRESSED = 3,
TUBS_FOCUSED = 4,
TUBS_DISABLED = 5
};
enum {
TUVLS_NORMAL = 1,
TUVLS_HOT = 2,
TUVLS_PRESSED = 3,
TUVLS_FOCUSED = 4,
TUVLS_DISABLED = 5
};
enum {
TUVRS_NORMAL = 1,
TUVRS_HOT = 2,
TUVRS_PRESSED = 3,
TUVRS_FOCUSED = 4,
TUVRS_DISABLED = 5
};
enum {
TUTS_NORMAL = 1,
TUTS_HOT = 2,
TUTS_PRESSED = 3,
TUTS_FOCUSED = 4,
TUTS_DISABLED = 5
};
enum {
TUVS_NORMAL = 1,
TUVS_HOT = 2,
TUVS_PRESSED = 3,
TUVS_FOCUSED = 4,
TUVS_DISABLED = 5
};
enum {
TSS_NORMAL = 1
};
enum {
TSVS_NORMAL = 1
};
enum {
TRS_NORMAL = 1
};
enum {
TRVS_NORMAL = 1
};
enum {
TNP_BACKGROUND = 1,
TNP_ANIMBACKGROUND = 2
};
enum {
TVP_TREEITEM = 1,
TVP_GLYPH = 2,
TVP_BRANCH = 3
};
enum {
GLPS_CLOSED = 1,
GLPS_OPENED = 2
};
enum {
TREIS_NORMAL = 1,
TREIS_HOT = 2,
TREIS_SELECTED = 3,
TREIS_DISABLED = 4,
TREIS_SELECTEDNOTFOCUS = 5
};
enum {
WP_CAPTION = 1,
WP_SMALLCAPTION = 2,
WP_MINCAPTION = 3,
WP_SMALLMINCAPTION = 4,
WP_MAXCAPTION = 5,
WP_SMALLMAXCAPTION = 6,
WP_FRAMELEFT = 7,
WP_FRAMERIGHT = 8,
WP_FRAMEBOTTOM = 9,
WP_SMALLFRAMELEFT = 10,
WP_SMALLFRAMERIGHT = 11,
WP_SMALLFRAMEBOTTOM = 12,
WP_SYSBUTTON = 13,
WP_MDISYSBUTTON = 14,
WP_MINBUTTON = 15,
WP_MDIMINBUTTON = 16,
WP_MAXBUTTON = 17,
WP_CLOSEBUTTON = 18,
WP_SMALLCLOSEBUTTON = 19,
WP_MDICLOSEBUTTON = 20,
WP_RESTOREBUTTON = 21,
WP_MDIRESTOREBUTTON = 22,
WP_HELPBUTTON = 23,
WP_MDIHELPBUTTON = 24,
WP_HORZSCROLL = 25,
WP_HORZTHUMB = 26,
WP_VERTSCROLL = 27,
WP_VERTTHUMB = 28,
WP_DIALOG = 29,
WP_CAPTIONSIZINGTEMPLATE = 30,
WP_SMALLCAPTIONSIZINGTEMPLATE = 31,
WP_FRAMELEFTSIZINGTEMPLATE = 32,
WP_SMALLFRAMELEFTSIZINGTEMPLATE = 33,
WP_FRAMERIGHTSIZINGTEMPLATE = 34,
WP_SMALLFRAMERIGHTSIZINGTEMPLATE = 35,
WP_FRAMEBOTTOMSIZINGTEMPLATE = 36,
WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37
};
enum {
CS_ACTIVE = 1,
CS_INACTIVE = 2,
CS_DISABLED = 3
};
enum {
CBS_NORMAL = 1,
CBS_HOT = 2,
CBS_PUSHED = 3,
CBS_DISABLED = 4
};
enum {
FS_ACTIVE = 1,
FS_INACTIVE = 2
};
enum {
HBS_NORMAL = 1,
HBS_HOT = 2,
HBS_PUSHED = 3,
HBS_DISABLED = 4
};
enum {
HSS_NORMAL = 1,
HSS_HOT = 2,
HSS_PUSHED = 3,
HSS_DISABLED = 4
};
enum {
HTS_NORMAL = 1,
HTS_HOT = 2,
HTS_PUSHED = 3,
HTS_DISABLED = 4
};
enum {
MAXBS_NORMAL = 1,
MAXBS_HOT = 2,
MAXBS_PUSHED = 3,
MAXBS_DISABLED = 4
};
enum {
MXCS_ACTIVE = 1,
MXCS_INACTIVE = 2,
MXCS_DISABLED = 3
};
enum {
MINBS_NORMAL = 1,
MINBS_HOT = 2,
MINBS_PUSHED = 3,
MINBS_DISABLED = 4
};
enum {
RBS_NORMAL = 1,
RBS_HOT = 2,
RBS_PUSHED = 3,
RBS_DISABLED = 4
};
enum {
SBS_NORMAL = 1,
SBS_HOT = 2,
SBS_PUSHED = 3,
SBS_DISABLED = 4
};
enum {
MNCS_ACTIVE = 1,
MNCS_INACTIVE = 2,
MNCS_DISABLED = 3
};
enum {
VSS_NORMAL = 1,
VSS_HOT = 2,
VSS_PUSHED = 3,
VSS_DISABLED = 4
};
enum {
VTS_NORMAL = 1,
VTS_HOT = 2,
VTS_PUSHED = 3,
VTS_DISABLED = 4
};
enum {
TS_MIN,
TS_TRUE,
TS_DRAW
};
#endif /* XP_THEME_DFNS_H */