1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: univ/themes/gtk.cpp
3 // Purpose: wxUniversal theme implementing GTK-like LNF
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 // for compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
30 #include "wx/dcmemory.h"
31 #include "wx/window.h"
33 #include "wx/bmpbuttn.h"
34 #include "wx/button.h"
35 #include "wx/checkbox.h"
36 #include "wx/listbox.h"
37 #include "wx/checklst.h"
38 #include "wx/combobox.h"
39 #include "wx/scrolbar.h"
40 #include "wx/slider.h"
41 #include "wx/textctrl.h"
44 #include "wx/notebook.h"
45 #include "wx/spinbutt.h"
47 #include "wx/univ/renderer.h"
48 #include "wx/univ/inphand.h"
49 #include "wx/univ/colschem.h"
50 #include "wx/univ/theme.h"
51 #include "wx/toplevel.h"
53 // ----------------------------------------------------------------------------
54 // constants (to be removed, for testing only)
55 // ----------------------------------------------------------------------------
57 static const size_t BORDER_THICKNESS
= 1;
59 // ----------------------------------------------------------------------------
60 // wxGTKRenderer: draw the GUI elements in GTK style
61 // ----------------------------------------------------------------------------
63 class wxGTKRenderer
: public wxRenderer
66 wxGTKRenderer(const wxColourScheme
*scheme
);
68 // implement the base class pure virtuals
69 virtual void DrawBackground(wxDC
& dc
,
73 virtual void DrawLabel(wxDC
& dc
,
74 const wxString
& label
,
77 int alignment
= wxALIGN_LEFT
| wxALIGN_TOP
,
79 wxRect
*rectBounds
= NULL
);
80 virtual void DrawButtonLabel(wxDC
& dc
,
81 const wxString
& label
,
82 const wxBitmap
& image
,
85 int alignment
= wxALIGN_LEFT
| wxALIGN_TOP
,
87 wxRect
*rectBounds
= NULL
);
88 virtual void DrawBorder(wxDC
& dc
,
92 wxRect
*rectIn
= (wxRect
*)NULL
);
93 virtual void DrawHorizontalLine(wxDC
& dc
,
94 wxCoord y
, wxCoord x1
, wxCoord x2
);
95 virtual void DrawVerticalLine(wxDC
& dc
,
96 wxCoord x
, wxCoord y1
, wxCoord y2
);
97 virtual void DrawFrame(wxDC
& dc
,
98 const wxString
& label
,
101 int alignment
= wxALIGN_LEFT
,
102 int indexAccel
= -1);
103 virtual void DrawTextBorder(wxDC
& dc
,
107 wxRect
*rectIn
= (wxRect
*)NULL
);
108 virtual void DrawButtonBorder(wxDC
& dc
,
111 wxRect
*rectIn
= (wxRect
*)NULL
);
112 virtual void DrawArrow(wxDC
& dc
,
116 virtual void DrawScrollbarArrow(wxDC
& dc
,
120 virtual void DrawScrollbarThumb(wxDC
& dc
,
121 wxOrientation orient
,
124 virtual void DrawScrollbarShaft(wxDC
& dc
,
125 wxOrientation orient
,
128 virtual void DrawScrollCorner(wxDC
& dc
,
130 virtual void DrawItem(wxDC
& dc
,
131 const wxString
& label
,
134 virtual void DrawCheckItem(wxDC
& dc
,
135 const wxString
& label
,
136 const wxBitmap
& bitmap
,
139 virtual void DrawCheckButton(wxDC
& dc
,
140 const wxString
& label
,
141 const wxBitmap
& bitmap
,
144 wxAlignment align
= wxALIGN_LEFT
,
145 int indexAccel
= -1);
147 virtual void DrawRadioButton(wxDC
& dc
,
148 const wxString
& label
,
149 const wxBitmap
& bitmap
,
152 wxAlignment align
= wxALIGN_LEFT
,
153 int indexAccel
= -1);
155 virtual void DrawTextLine(wxDC
& dc
,
156 const wxString
& text
,
161 virtual void DrawLineWrapMark(wxDC
& dc
, const wxRect
& rect
);
162 virtual void DrawTab(wxDC
& dc
,
165 const wxString
& label
,
166 const wxBitmap
& bitmap
= wxNullBitmap
,
168 int indexAccel
= -1);
170 virtual void DrawSliderShaft(wxDC
& dc
,
172 wxOrientation orient
,
174 wxRect
*rectShaft
= NULL
);
175 virtual void DrawSliderThumb(wxDC
& dc
,
177 wxOrientation orient
,
179 virtual void DrawSliderTicks(wxDC
& dc
,
181 const wxSize
& sizeThumb
,
182 wxOrientation orient
,
188 // we don't have the ticks in GTK version
191 virtual void DrawMenuBarItem(wxDC
& dc
,
193 const wxString
& label
,
195 int indexAccel
= -1);
196 virtual void DrawMenuItem(wxDC
& dc
,
198 const wxMenuGeometryInfo
& geometryInfo
,
199 const wxString
& label
,
200 const wxString
& accel
,
201 const wxBitmap
& bitmap
= wxNullBitmap
,
203 int indexAccel
= -1);
204 virtual void DrawMenuSeparator(wxDC
& dc
,
206 const wxMenuGeometryInfo
& geomInfo
);
208 virtual void DrawStatusField(wxDC
& dc
,
210 const wxString
& label
,
213 virtual void DrawFrameTitleBar(wxDC
& dc
,
215 const wxString
& title
,
218 int specialButton
= 0,
219 int specialButtonFlag
= 0);
220 virtual void DrawFrameBorder(wxDC
& dc
,
223 virtual void DrawFrameBackground(wxDC
& dc
,
226 virtual void DrawFrameTitle(wxDC
& dc
,
228 const wxString
& title
,
230 virtual void DrawFrameIcon(wxDC
& dc
,
234 virtual void DrawFrameButton(wxDC
& dc
,
235 wxCoord x
, wxCoord y
,
240 virtual wxRect
GetFrameClientArea(const wxRect
& rect
, int flags
) const;
241 virtual wxSize
GetFrameTotalSize(const wxSize
& clientSize
, int flags
) const;
242 virtual wxSize
GetFrameIconSize() const;
243 virtual int HitTestFrame(const wxRect
& rect
, const wxPoint
& pt
, int flags
) const;
245 virtual wxIcon
GetStdIcon(int which
) const;
247 virtual void GetComboBitmaps(wxBitmap
*bmpNormal
,
249 wxBitmap
*bmpPressed
,
250 wxBitmap
*bmpDisabled
);
252 virtual void AdjustSize(wxSize
*size
, const wxWindow
*window
);
253 virtual wxRect
GetBorderDimensions(wxBorder border
) const;
254 virtual bool AreScrollbarsInsideBorder() const;
256 // geometry and hit testing
257 virtual wxSize
GetScrollbarArrowSize() const
258 { return m_sizeScrollbarArrow
; }
259 virtual wxRect
GetScrollbarRect(const wxScrollBar
*scrollbar
,
260 wxScrollBar::Element elem
,
261 int thumbPos
= -1) const;
262 virtual wxCoord
GetScrollbarSize(const wxScrollBar
*scrollbar
);
263 virtual wxHitTest
HitTestScrollbar(const wxScrollBar
*scrollbar
,
264 const wxPoint
& pt
) const;
265 virtual wxCoord
ScrollbarToPixel(const wxScrollBar
*scrollbar
,
267 virtual int PixelToScrollbar(const wxScrollBar
*scrollbar
, wxCoord coord
);
268 virtual wxCoord
GetListboxItemHeight(wxCoord fontHeight
)
269 { return fontHeight
+ 2; }
270 virtual wxSize
GetCheckBitmapSize() const
271 { return wxSize(10, 10); }
272 virtual wxSize
GetRadioBitmapSize() const
273 { return wxSize(11, 11); }
274 virtual wxCoord
GetCheckItemMargin() const
277 virtual wxRect
GetTextTotalArea(const wxTextCtrl
*text
,
279 virtual wxRect
GetTextClientArea(const wxTextCtrl
*text
,
281 wxCoord
*extraSpaceBeyond
);
283 virtual wxSize
GetTabIndent() const { return wxSize(2, 2); }
284 virtual wxSize
GetTabPadding() const { return wxSize(6, 6); }
286 virtual wxCoord
GetSliderDim() const { return 15; }
287 virtual wxCoord
GetSliderTickLen() const { return 0; }
288 virtual wxRect
GetSliderShaftRect(const wxRect
& rect
,
289 wxOrientation orient
) const;
290 virtual wxSize
GetSliderThumbSize(const wxRect
& rect
,
291 wxOrientation orient
) const;
292 virtual wxSize
GetProgressBarStep() const { return wxSize(16, 32); }
294 virtual wxSize
GetMenuBarItemSize(const wxSize
& sizeText
) const;
295 virtual wxMenuGeometryInfo
*GetMenuGeometry(wxWindow
*win
,
296 const wxMenu
& menu
) const;
298 virtual wxSize
GetStatusBarBorders(wxCoord
*borderBetweenFields
) const;
300 // helpers for "wxBitmap wxColourScheme::Get()"
301 void DrawCheckBitmap(wxDC
& dc
, const wxRect
& rect
);
302 void DrawUncheckBitmap(wxDC
& dc
, const wxRect
& rect
, bool isPressed
);
305 // DrawBackground() helpers
307 // get the colour to use for background
308 wxColour
GetBackgroundColour(int flags
) const
310 if ( flags
& wxCONTROL_PRESSED
)
311 return wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
);
312 else if ( flags
& wxCONTROL_CURRENT
)
313 return wxSCHEME_COLOUR(m_scheme
, CONTROL_CURRENT
);
315 return wxSCHEME_COLOUR(m_scheme
, CONTROL
);
318 // draw the background with any colour, not only the default one(s)
319 void DoDrawBackground(wxDC
& dc
,
323 // DrawBorder() helpers: all of them shift and clip the DC after drawing
326 // just draw a rectangle with the given pen
327 void DrawRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
);
329 // draw the lower left part of rectangle
330 void DrawHalfRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
);
332 // draw the rectange using the first brush for the left and top sides and
333 // the second one for the bottom and right ones
334 void DrawShadedRect(wxDC
& dc
, wxRect
*rect
,
335 const wxPen
& pen1
, const wxPen
& pen2
);
337 // as DrawShadedRect() but the pixels in the bottom left and upper right
338 // border are drawn with the pen1, not pen2
339 void DrawAntiShadedRect(wxDC
& dc
, wxRect
*rect
,
340 const wxPen
& pen1
, const wxPen
& pen2
);
342 // used for drawing opened rectangles - draws only one side of it at once
343 // (and doesn't adjust the rect)
344 void DrawAntiShadedRectSide(wxDC
& dc
,
350 // draw an opened rect for the arrow in given direction
351 void DrawArrowBorder(wxDC
& dc
,
355 // draw two sides of the rectangle
356 void DrawThumbBorder(wxDC
& dc
,
358 wxOrientation orient
);
360 // draw the normal 3D border
361 void DrawRaisedBorder(wxDC
& dc
, wxRect
*rect
);
363 // just as DrawRaisedBorder() except that the bottom left and up right
364 // pixels of the interior rect are drawn in another colour (i.e. the inner
365 // rect is drawn with DrawAntiShadedRect() and not DrawShadedRect())
366 void DrawAntiRaisedBorder(wxDC
& dc
, wxRect
*rect
);
368 // returns the size of the arrow for the scrollbar (depends on
370 wxSize
GetScrollbarArrowSize(const wxScrollBar
*scrollbar
) const
373 if ( scrollbar
->IsVertical() )
375 size
= m_sizeScrollbarArrow
;
379 size
.x
= m_sizeScrollbarArrow
.y
;
380 size
.y
= m_sizeScrollbarArrow
.x
;
386 // get the line wrap indicator bitmap
387 wxBitmap
GetLineWrapBitmap();
389 // DrawCheckBitmap and DrawRadioBitmap helpers
391 // draw the check bitmaps once and cache them for later use
392 wxBitmap
GetCheckBitmap(int flags
);
394 // draw a /\ or \/ line from (x1, y1) to (x2, y1) passing by the point
396 void DrawUpZag(wxDC
& dc
,
397 wxCoord x1
, wxCoord x2
,
398 wxCoord y1
, wxCoord y2
);
399 void DrawDownZag(wxDC
& dc
,
400 wxCoord x1
, wxCoord x2
,
401 wxCoord y1
, wxCoord y2
);
403 // draw the radio button bitmap for the given state
404 void DrawRadioBitmap(wxDC
& dc
, const wxRect
& rect
, int flags
);
406 // draw check/radio - the bitmap must be a valid one by now
407 void DoDrawCheckOrRadioBitmap(wxDC
& dc
,
408 const wxString
& label
,
409 const wxBitmap
& bitmap
,
410 const wxRect
& rectTotal
,
415 // initialize the combo bitmaps
416 void InitComboBitmaps();
419 const wxColourScheme
*m_scheme
;
422 wxSize m_sizeScrollbarArrow
;
431 // the checkbox bitmaps: first row is for the normal, second for the
432 // pressed state and the columns are for checked and unchecked status
434 wxBitmap m_bitmapsCheckbox
[2][2];
436 // the line wrap bitmap (drawn at the end of wrapped lines)
437 wxBitmap m_bmpLineWrap
;
439 // the combobox bitmaps
449 wxBitmap m_bitmapsCombo
[ComboState_Max
];
452 // ----------------------------------------------------------------------------
453 // wxGTKInputHandler and derived classes: process the keyboard and mouse
454 // messages according to GTK standards
455 // ----------------------------------------------------------------------------
457 class wxGTKInputHandler
: public wxInputHandler
460 wxGTKInputHandler(wxGTKRenderer
*renderer
);
462 virtual bool HandleKey(wxInputConsumer
*control
,
463 const wxKeyEvent
& event
,
465 virtual bool HandleMouse(wxInputConsumer
*control
,
466 const wxMouseEvent
& event
);
467 virtual bool HandleMouseMove(wxInputConsumer
*control
, const wxMouseEvent
& event
);
470 wxGTKRenderer
*m_renderer
;
473 class wxGTKScrollBarInputHandler
: public wxStdScrollBarInputHandler
476 wxGTKScrollBarInputHandler(wxRenderer
*renderer
, wxInputHandler
*handler
)
477 : wxStdScrollBarInputHandler(renderer
, handler
) { }
480 virtual void Highlight(wxScrollBar
*scrollbar
, bool doIt
)
482 // only arrows and the thumb can be highlighted
483 if ( !IsArrow() && m_htLast
!= wxHT_SCROLLBAR_THUMB
)
486 wxStdScrollBarInputHandler::Highlight(scrollbar
, doIt
);
489 virtual void Press(wxScrollBar
*scrollbar
, bool doIt
)
491 // only arrows can be pressed
495 wxStdScrollBarInputHandler::Press(scrollbar
, doIt
);
498 virtual bool IsAllowedButton(int WXUNUSED(button
)) { return TRUE
; }
502 return m_htLast
== wxHT_SCROLLBAR_ARROW_LINE_1
||
503 m_htLast
== wxHT_SCROLLBAR_ARROW_LINE_2
;
507 class wxGTKCheckboxInputHandler
: public wxStdCheckboxInputHandler
510 wxGTKCheckboxInputHandler(wxInputHandler
*handler
)
511 : wxStdCheckboxInputHandler(handler
) { }
513 virtual bool HandleKey(wxInputConsumer
*control
,
514 const wxKeyEvent
& event
,
518 class wxGTKTextCtrlInputHandler
: public wxStdTextCtrlInputHandler
521 wxGTKTextCtrlInputHandler(wxInputHandler
*handler
)
522 : wxStdTextCtrlInputHandler(handler
) { }
524 virtual bool HandleKey(wxInputConsumer
*control
,
525 const wxKeyEvent
& event
,
529 // ----------------------------------------------------------------------------
530 // wxGTKColourScheme: uses the standard GTK colours
531 // ----------------------------------------------------------------------------
533 class wxGTKColourScheme
: public wxColourScheme
536 virtual wxColour
Get(StdColour col
) const;
537 virtual wxColour
GetBackground(wxWindow
*win
) const;
540 // ----------------------------------------------------------------------------
542 // ----------------------------------------------------------------------------
544 WX_DEFINE_ARRAY(wxInputHandler
*, wxArrayHandlers
);
546 class wxGTKTheme
: public wxTheme
550 virtual ~wxGTKTheme();
552 virtual wxRenderer
*GetRenderer();
553 virtual wxInputHandler
*GetInputHandler(const wxString
& control
);
554 virtual wxColourScheme
*GetColourScheme();
557 // get the default input handler
558 wxInputHandler
*GetDefaultInputHandler();
560 wxGTKRenderer
*m_renderer
;
562 // the names of the already created handlers and the handlers themselves
563 // (these arrays are synchronized)
564 wxSortedArrayString m_handlerNames
;
565 wxArrayHandlers m_handlers
;
567 wxGTKInputHandler
*m_handlerDefault
;
569 wxGTKColourScheme
*m_scheme
;
571 WX_DECLARE_THEME(gtk
)
574 // ============================================================================
576 // ============================================================================
578 WX_IMPLEMENT_THEME(wxGTKTheme
, gtk
, wxTRANSLATE("GTK+ theme"));
580 // ----------------------------------------------------------------------------
582 // ----------------------------------------------------------------------------
584 wxGTKTheme::wxGTKTheme()
588 m_handlerDefault
= NULL
;
591 wxGTKTheme::~wxGTKTheme()
593 size_t count
= m_handlers
.GetCount();
594 for ( size_t n
= 0; n
< count
; n
++ )
596 if ( m_handlers
[n
] != m_handlerDefault
)
597 delete m_handlers
[n
];
600 delete m_handlerDefault
;
605 wxRenderer
*wxGTKTheme::GetRenderer()
609 m_renderer
= new wxGTKRenderer(GetColourScheme());
615 wxColourScheme
*wxGTKTheme::GetColourScheme()
619 m_scheme
= new wxGTKColourScheme
;
624 wxInputHandler
*wxGTKTheme::GetDefaultInputHandler()
626 if ( !m_handlerDefault
)
628 m_handlerDefault
= new wxGTKInputHandler(m_renderer
);
631 return m_handlerDefault
;
634 wxInputHandler
*wxGTKTheme::GetInputHandler(const wxString
& control
)
636 wxInputHandler
*handler
;
637 int n
= m_handlerNames
.Index(control
);
638 if ( n
== wxNOT_FOUND
)
640 // create a new handler
641 if ( control
== wxINP_HANDLER_SCROLLBAR
)
642 handler
= new wxGTKScrollBarInputHandler(m_renderer
,
643 GetDefaultInputHandler());
645 else if ( control
== wxINP_HANDLER_BUTTON
)
646 handler
= new wxStdButtonInputHandler(GetDefaultInputHandler());
647 #endif // wxUSE_CHECKBOX
649 else if ( control
== wxINP_HANDLER_CHECKBOX
)
650 handler
= new wxGTKCheckboxInputHandler(GetDefaultInputHandler());
651 #endif // wxUSE_CHECKBOX
653 else if ( control
== wxINP_HANDLER_COMBOBOX
)
654 handler
= new wxStdComboBoxInputHandler(GetDefaultInputHandler());
655 #endif // wxUSE_COMBOBOX
657 else if ( control
== wxINP_HANDLER_LISTBOX
)
658 handler
= new wxStdListboxInputHandler(GetDefaultInputHandler());
659 #endif // wxUSE_LISTBOX
660 #if wxUSE_CHECKLISTBOX
661 else if ( control
== wxINP_HANDLER_CHECKLISTBOX
)
662 handler
= new wxStdCheckListboxInputHandler(GetDefaultInputHandler());
663 #endif // wxUSE_CHECKLISTBOX
665 else if ( control
== wxINP_HANDLER_TEXTCTRL
)
666 handler
= new wxGTKTextCtrlInputHandler(GetDefaultInputHandler());
667 #endif // wxUSE_TEXTCTRL
669 else if ( control
== wxINP_HANDLER_SLIDER
)
670 handler
= new wxStdSliderButtonInputHandler(GetDefaultInputHandler());
671 #endif // wxUSE_SLIDER
673 else if ( control
== wxINP_HANDLER_SPINBTN
)
674 handler
= new wxStdSpinButtonInputHandler(GetDefaultInputHandler());
675 #endif // wxUSE_SPINBTN
677 else if ( control
== wxINP_HANDLER_NOTEBOOK
)
678 handler
= new wxStdNotebookInputHandler(GetDefaultInputHandler());
679 #endif // wxUSE_NOTEBOOK
680 else if ( control
== wxINP_HANDLER_TOPLEVEL
)
681 handler
= new wxStdFrameInputHandler(GetDefaultInputHandler());
683 handler
= GetDefaultInputHandler();
685 n
= m_handlerNames
.Add(control
);
686 m_handlers
.Insert(handler
, n
);
688 else // we already have it
690 handler
= m_handlers
[n
];
696 // ============================================================================
698 // ============================================================================
700 wxColour
wxGTKColourScheme::GetBackground(wxWindow
*win
) const
703 if ( win
->UseBgCol() )
705 // use the user specified colour
706 col
= win
->GetBackgroundColour();
709 if ( win
->IsContainerWindow() )
711 // doesn't depend on the state
719 int flags
= win
->GetStateFlags();
721 // the colour set by the user should be used for the normal state
722 // and for the states for which we don't have any specific colours
723 if ( !col
.Ok() || (flags
!= 0) )
725 if ( wxDynamicCast(win
, wxScrollBar
) )
726 col
= Get(SCROLLBAR
);
727 else if ( (flags
& wxCONTROL_CURRENT
) && win
->CanBeHighlighted() )
728 col
= Get(CONTROL_CURRENT
);
729 else if ( flags
& wxCONTROL_PRESSED
)
730 col
= Get(CONTROL_PRESSED
);
739 wxColour
wxGTKColourScheme::Get(wxGTKColourScheme::StdColour col
) const
743 case WINDOW
: return *wxWHITE
;
745 case SHADOW_DARK
: return *wxBLACK
;
746 case SHADOW_HIGHLIGHT
: return *wxWHITE
;
747 case SHADOW_IN
: return wxColour(0xd6d6d6);
748 case SHADOW_OUT
: return wxColour(0x969696);
750 case CONTROL
: return wxColour(0xd6d6d6);
751 case CONTROL_PRESSED
: return wxColour(0xc3c3c3);
752 case CONTROL_CURRENT
: return wxColour(0xeaeaea);
754 case CONTROL_TEXT
: return *wxBLACK
;
755 case CONTROL_TEXT_DISABLED
:
756 return wxColour(0x757575);
757 case CONTROL_TEXT_DISABLED_SHADOW
:
761 case SCROLLBAR_PRESSED
: return wxColour(0xc3c3c3);
763 case HIGHLIGHT
: return wxColour(0x9c0000);
764 case HIGHLIGHT_TEXT
: return wxColour(0xffffff);
768 wxFAIL_MSG(_T("invalid standard colour"));
773 // ============================================================================
775 // ============================================================================
777 // ----------------------------------------------------------------------------
779 // ----------------------------------------------------------------------------
781 wxGTKRenderer::wxGTKRenderer(const wxColourScheme
*scheme
)
785 m_sizeScrollbarArrow
= wxSize(15, 14);
788 m_penBlack
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_DARK
), 0, wxSOLID
);
789 m_penDarkGrey
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_OUT
), 0, wxSOLID
);
790 m_penGrey
= wxPen(wxSCHEME_COLOUR(scheme
, SCROLLBAR
), 0, wxSOLID
);
791 m_penLightGrey
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_IN
), 0, wxSOLID
);
792 m_penHighlight
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_HIGHLIGHT
), 0, wxSOLID
);
795 // ----------------------------------------------------------------------------
797 // ----------------------------------------------------------------------------
799 void wxGTKRenderer::DrawRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
)
803 dc
.SetBrush(*wxTRANSPARENT_BRUSH
);
804 dc
.DrawRectangle(*rect
);
810 void wxGTKRenderer::DrawHalfRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
)
812 // draw the bottom and right sides
814 dc
.DrawLine(rect
->GetLeft(), rect
->GetBottom(),
815 rect
->GetRight() + 1, rect
->GetBottom());
816 dc
.DrawLine(rect
->GetRight(), rect
->GetTop(),
817 rect
->GetRight(), rect
->GetBottom());
824 void wxGTKRenderer::DrawShadedRect(wxDC
& dc
, wxRect
*rect
,
825 const wxPen
& pen1
, const wxPen
& pen2
)
827 // draw the rectangle
829 dc
.DrawLine(rect
->GetLeft(), rect
->GetTop(),
830 rect
->GetLeft(), rect
->GetBottom());
831 dc
.DrawLine(rect
->GetLeft() + 1, rect
->GetTop(),
832 rect
->GetRight(), rect
->GetTop());
834 dc
.DrawLine(rect
->GetRight(), rect
->GetTop(),
835 rect
->GetRight(), rect
->GetBottom());
836 dc
.DrawLine(rect
->GetLeft(), rect
->GetBottom(),
837 rect
->GetRight() + 1, rect
->GetBottom());
843 void wxGTKRenderer::DrawAntiShadedRectSide(wxDC
& dc
,
849 dc
.SetPen(dir
== wxLEFT
|| dir
== wxUP
? pen1
: pen2
);
854 dc
.DrawLine(rect
.GetLeft(), rect
.GetTop(),
855 rect
.GetLeft(), rect
.GetBottom() + 1);
859 dc
.DrawLine(rect
.GetLeft(), rect
.GetTop(),
860 rect
.GetRight() + 1, rect
.GetTop());
864 dc
.DrawLine(rect
.GetRight(), rect
.GetTop(),
865 rect
.GetRight(), rect
.GetBottom() + 1);
869 dc
.DrawLine(rect
.GetLeft(), rect
.GetBottom(),
870 rect
.GetRight() + 1, rect
.GetBottom());
874 wxFAIL_MSG(_T("unknown rectangle side"));
878 void wxGTKRenderer::DrawAntiShadedRect(wxDC
& dc
, wxRect
*rect
,
879 const wxPen
& pen1
, const wxPen
& pen2
)
881 // draw the rectangle
883 dc
.DrawLine(rect
->GetLeft(), rect
->GetTop(),
884 rect
->GetLeft(), rect
->GetBottom() + 1);
885 dc
.DrawLine(rect
->GetLeft() + 1, rect
->GetTop(),
886 rect
->GetRight() + 1, rect
->GetTop());
888 dc
.DrawLine(rect
->GetRight(), rect
->GetTop() + 1,
889 rect
->GetRight(), rect
->GetBottom());
890 dc
.DrawLine(rect
->GetLeft() + 1, rect
->GetBottom(),
891 rect
->GetRight() + 1, rect
->GetBottom());
897 void wxGTKRenderer::DrawRaisedBorder(wxDC
& dc
, wxRect
*rect
)
899 DrawShadedRect(dc
, rect
, m_penHighlight
, m_penBlack
);
900 DrawShadedRect(dc
, rect
, m_penLightGrey
, m_penDarkGrey
);
903 void wxGTKRenderer::DrawAntiRaisedBorder(wxDC
& dc
, wxRect
*rect
)
905 DrawShadedRect(dc
, rect
, m_penHighlight
, m_penBlack
);
906 DrawAntiShadedRect(dc
, rect
, m_penLightGrey
, m_penDarkGrey
);
909 void wxGTKRenderer::DrawBorder(wxDC
& dc
,
911 const wxRect
& rectTotal
,
917 wxRect rect
= rectTotal
;
921 case wxBORDER_SUNKEN
:
922 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
924 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
925 DrawShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
929 case wxBORDER_STATIC
:
930 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
932 DrawShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
936 case wxBORDER_RAISED
:
937 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
939 DrawRaisedBorder(dc
, &rect
);
943 case wxBORDER_DOUBLE
:
944 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
946 DrawShadedRect(dc
, &rect
, m_penLightGrey
, m_penBlack
);
947 DrawShadedRect(dc
, &rect
, m_penHighlight
, m_penDarkGrey
);
948 DrawRect(dc
, &rect
, m_penLightGrey
);
952 case wxBORDER_SIMPLE
:
953 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
955 DrawRect(dc
, &rect
, m_penBlack
);
960 wxFAIL_MSG(_T("unknown border type"));
963 case wxBORDER_DEFAULT
:
972 wxRect
wxGTKRenderer::GetBorderDimensions(wxBorder border
) const
977 case wxBORDER_RAISED
:
978 case wxBORDER_SUNKEN
:
979 width
= 2*BORDER_THICKNESS
;
982 case wxBORDER_SIMPLE
:
983 case wxBORDER_STATIC
:
984 width
= BORDER_THICKNESS
;
987 case wxBORDER_DOUBLE
:
988 width
= 3*BORDER_THICKNESS
;
992 wxFAIL_MSG(_T("unknown border type"));
995 case wxBORDER_DEFAULT
:
1005 rect
.height
= width
;
1010 bool wxGTKRenderer::AreScrollbarsInsideBorder() const
1012 // no, the scrollbars are outside the border in GTK+
1016 // ----------------------------------------------------------------------------
1018 // ----------------------------------------------------------------------------
1020 void wxGTKRenderer::DrawTextBorder(wxDC
& dc
,
1022 const wxRect
& rectOrig
,
1026 wxRect rect
= rectOrig
;
1028 if ( border
!= wxBORDER_NONE
)
1030 if ( flags
& wxCONTROL_FOCUSED
)
1032 DrawRect(dc
, &rect
, m_penBlack
);
1033 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1037 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1038 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penHighlight
);
1046 void wxGTKRenderer::DrawButtonBorder(wxDC
& dc
,
1047 const wxRect
& rectTotal
,
1051 wxRect rect
= rectTotal
;
1053 if ( flags
& wxCONTROL_PRESSED
)
1055 // button pressed: draw a black border around it and an inward shade
1056 DrawRect(dc
, &rect
, m_penBlack
);
1058 for ( size_t width
= 0; width
< BORDER_THICKNESS
; width
++ )
1060 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1061 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penDarkGrey
);
1066 // button not pressed
1068 if ( flags
& wxCONTROL_ISDEFAULT
)
1073 if ( flags
& wxCONTROL_FOCUSED
)
1075 // button is currently default: add an extra border around it
1076 DrawRect(dc
, &rect
, m_penBlack
);
1079 // now draw a normal button
1080 for ( size_t width
= 0; width
< BORDER_THICKNESS
; width
++ )
1082 DrawShadedRect(dc
, &rect
, m_penHighlight
, m_penBlack
);
1083 DrawAntiShadedRect(dc
, &rect
,
1084 wxPen(GetBackgroundColour(flags
), 0, wxSOLID
),
1095 // ----------------------------------------------------------------------------
1097 // ----------------------------------------------------------------------------
1099 void wxGTKRenderer::DrawHorizontalLine(wxDC
& dc
,
1100 wxCoord y
, wxCoord x1
, wxCoord x2
)
1102 dc
.SetPen(m_penDarkGrey
);
1103 dc
.DrawLine(x1
, y
, x2
+ 1, y
);
1104 dc
.SetPen(m_penHighlight
);
1106 dc
.DrawLine(x1
, y
, x2
+ 1, y
);
1109 void wxGTKRenderer::DrawVerticalLine(wxDC
& dc
,
1110 wxCoord x
, wxCoord y1
, wxCoord y2
)
1112 dc
.SetPen(m_penDarkGrey
);
1113 dc
.DrawLine(x
, y1
, x
, y2
+ 1);
1114 dc
.SetPen(m_penHighlight
);
1116 dc
.DrawLine(x
, y1
, x
, y2
+ 1);
1119 void wxGTKRenderer::DrawFrame(wxDC
& dc
,
1120 const wxString
& label
,
1126 wxCoord height
= 0; // of the label
1127 wxRect rectFrame
= rect
;
1128 if ( !label
.empty() )
1130 // the text should touch the top border of the rect, so the frame
1131 // itself should be lower
1132 dc
.GetTextExtent(label
, NULL
, &height
);
1133 rectFrame
.y
+= height
/ 2;
1134 rectFrame
.height
-= height
/ 2;
1136 // TODO: the +4 should be customizable
1139 rectText
.x
= rectFrame
.x
+ 4;
1140 rectText
.y
= rect
.y
;
1141 rectText
.width
= rectFrame
.width
- 8;
1142 rectText
.height
= height
;
1145 DrawLabel(dc
, label
, rectText
, flags
, alignment
, indexAccel
, &rectLabel
);
1147 rectLabel
.width
+= 2;
1149 StandardDrawFrame(dc
, rectFrame
, rectLabel
);
1151 // GTK+ does it like this
1152 dc
.SetPen(m_penHighlight
);
1153 dc
.DrawPoint(rectText
.x
, rectFrame
.y
);
1154 dc
.DrawPoint(rectText
.x
+ rectLabel
.width
- 3, rectFrame
.y
);
1158 // just draw the complete frame
1159 DrawShadedRect(dc
, &rectFrame
, m_penDarkGrey
, m_penHighlight
);
1160 DrawShadedRect(dc
, &rectFrame
, m_penHighlight
, m_penDarkGrey
);
1164 // ----------------------------------------------------------------------------
1166 // ----------------------------------------------------------------------------
1168 void wxGTKRenderer::DrawLabel(wxDC
& dc
,
1169 const wxString
& label
,
1176 DrawButtonLabel(dc
, label
, wxNullBitmap
, rect
, flags
,
1177 alignment
, indexAccel
, rectBounds
);
1180 void wxGTKRenderer::DrawButtonLabel(wxDC
& dc
,
1181 const wxString
& label
,
1182 const wxBitmap
& image
,
1189 if ( flags
& wxCONTROL_DISABLED
)
1191 // make the text grey and draw a shade for it
1192 dc
.SetTextForeground(*wxWHITE
); // FIXME hardcoded colour
1193 wxRect rectShadow
= rect
;
1196 dc
.DrawLabel(label
, rectShadow
, alignment
, indexAccel
);
1197 dc
.SetTextForeground(wxSCHEME_COLOUR(m_scheme
, CONTROL_TEXT_DISABLED
));
1200 dc
.DrawLabel(label
, image
, rect
, alignment
, indexAccel
, rectBounds
);
1203 void wxGTKRenderer::DrawItem(wxDC
& dc
,
1204 const wxString
& label
,
1208 wxLogTrace(_T("listbox"), _T("drawing item '%s' at (%d, %d)-(%d, %d)"),
1211 rect
.x
+ rect
.width
, rect
.y
+ rect
.height
);
1214 if ( flags
& wxCONTROL_SELECTED
)
1216 dc
.SetBrush(wxBrush(wxSCHEME_COLOUR(m_scheme
, HIGHLIGHT
), wxSOLID
));
1217 dc
.SetPen(*wxTRANSPARENT_PEN
);
1218 dc
.DrawRectangle(rect
);
1220 colFg
= dc
.GetTextForeground();
1221 dc
.SetTextForeground(wxSCHEME_COLOUR(m_scheme
, HIGHLIGHT_TEXT
));
1224 if ( flags
& wxCONTROL_FOCUSED
)
1226 dc
.SetBrush(*wxTRANSPARENT_BRUSH
);
1227 wxRect rectFocus
= rect
;
1228 DrawRect(dc
, &rectFocus
, m_penBlack
);
1231 wxRect rectText
= rect
;
1234 dc
.DrawLabel(label
, wxNullBitmap
, rectText
);
1236 if ( flags
& wxCONTROL_SELECTED
)
1238 dc
.SetBackgroundMode(wxTRANSPARENT
);
1241 // restore the text colour
1244 dc
.SetTextForeground(colFg
);
1248 void wxGTKRenderer::DrawCheckItem(wxDC
& dc
,
1249 const wxString
& label
,
1250 const wxBitmap
& bitmap
,
1254 wxRect rectBitmap
= rect
;
1256 rectBitmap
.width
= GetCheckBitmapSize().x
;
1257 // never draw the focus rect around the check indicators here
1258 DrawCheckButton(dc
, _T(""), bitmap
, rectBitmap
, flags
& ~wxCONTROL_FOCUSED
);
1260 wxRect rectLabel
= rect
;
1261 wxCoord shift
= rectBitmap
.width
+ 2*GetCheckItemMargin();
1262 rectLabel
.x
+= shift
;
1263 rectLabel
.width
-= shift
;
1264 DrawItem(dc
, label
, rectLabel
, flags
);
1267 // ----------------------------------------------------------------------------
1268 // check/radion buttons
1269 // ----------------------------------------------------------------------------
1271 void wxGTKRenderer::DrawUncheckBitmap(wxDC
& dc
,
1272 const wxRect
& rectTotal
,
1275 wxRect rect
= rectTotal
;
1276 DrawAntiRaisedBorder(dc
, &rect
);
1278 wxColour col
= wxSCHEME_COLOUR(m_scheme
, SHADOW_IN
);
1279 dc
.SetPen(wxPen(col
, 0, wxSOLID
));
1280 dc
.DrawPoint(rect
.GetRight() - 1, rect
.GetBottom() - 1);
1283 col
= wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
);
1284 //else: it is SHADOW_IN, leave as is
1286 dc
.SetPen(*wxTRANSPARENT_PEN
);
1287 dc
.SetBrush(wxBrush(col
, wxSOLID
));
1288 dc
.DrawRectangle(rect
);
1291 void wxGTKRenderer::DrawCheckBitmap(wxDC
& dc
, const wxRect
& rectTotal
)
1293 wxRect rect
= rectTotal
;
1294 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1295 DrawShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
1297 dc
.SetPen(*wxTRANSPARENT_PEN
);
1298 dc
.SetBrush(wxBrush(wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
), wxSOLID
));
1299 dc
.DrawRectangle(rect
);
1302 void wxGTKRenderer::DrawRadioBitmap(wxDC
& dc
,
1308 xRight
= rect
.GetRight(),
1309 yBottom
= rect
.GetBottom();
1311 wxCoord yMid
= (y
+ yBottom
) / 2;
1313 // this looks ugly when the background colour of the control is not the
1314 // same ours - radiobox is not transparent as it should be
1316 // first fill the middle: as FloodFill() is not implemented on all
1317 // platforms, this is the only thing to do
1318 wxColour colBg
= flags
& wxCONTROL_CURRENT
1319 ? wxSCHEME_COLOUR(m_scheme
, CONTROL_CURRENT
)
1320 : wxSCHEME_COLOUR(m_scheme
, SHADOW_IN
);
1321 dc
.SetBrush(wxBrush(colBg
, wxSOLID
));
1322 dc
.SetPen(*wxTRANSPARENT_PEN
);
1323 dc
.DrawRectangle(rect
);
1326 // then draw the upper half
1327 dc
.SetPen(flags
& wxCONTROL_CHECKED
? m_penDarkGrey
: m_penHighlight
);
1328 DrawUpZag(dc
, x
, xRight
, yMid
, y
);
1329 DrawUpZag(dc
, x
+ 1, xRight
- 1, yMid
, y
+ 1);
1332 if ( flags
& wxCONTROL_CHECKED
)
1333 dc
.SetPen(m_penBlack
);
1334 else if ( flags
& wxCONTROL_PRESSED
)
1335 dc
.SetPen(wxPen(wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
), 0, wxSOLID
));
1336 else // unchecked and unpressed
1340 DrawUpZag(dc
, x
+ 2, xRight
- 2, yMid
, y
+ 2);
1342 // and then the lower one
1343 dc
.SetPen(flags
& wxCONTROL_CHECKED
? m_penHighlight
: m_penBlack
);
1344 DrawDownZag(dc
, x
, xRight
, yMid
, yBottom
);
1345 if ( !(flags
& wxCONTROL_CHECKED
) )
1346 dc
.SetPen(m_penDarkGrey
);
1347 DrawDownZag(dc
, x
+ 1, xRight
- 1, yMid
, yBottom
- 1);
1349 if ( !(flags
& wxCONTROL_CHECKED
) )
1350 drawIt
= TRUE
; // with the same pen
1351 else if ( flags
& wxCONTROL_PRESSED
)
1353 dc
.SetPen(wxPen(wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
), 0, wxSOLID
));
1356 else // checked and unpressed
1360 DrawDownZag(dc
, x
+ 2, xRight
- 2, yMid
, yBottom
- 2);
1363 void wxGTKRenderer::DrawUpZag(wxDC
& dc
,
1369 wxCoord xMid
= (x1
+ x2
) / 2;
1370 dc
.DrawLine(x1
, y1
, xMid
, y2
);
1371 dc
.DrawLine(xMid
, y2
, x2
+ 1, y1
+ 1);
1374 void wxGTKRenderer::DrawDownZag(wxDC
& dc
,
1380 wxCoord xMid
= (x1
+ x2
) / 2;
1381 dc
.DrawLine(x1
+ 1, y1
+ 1, xMid
, y2
);
1382 dc
.DrawLine(xMid
, y2
, x2
, y1
);
1385 wxBitmap
wxGTKRenderer::GetCheckBitmap(int flags
)
1387 if ( !m_bitmapsCheckbox
[0][0].Ok() )
1389 // init the bitmaps once only
1391 wxSize size
= GetCheckBitmapSize();
1392 rect
.width
= size
.x
;
1393 rect
.height
= size
.y
;
1394 for ( int i
= 0; i
< 2; i
++ )
1396 for ( int j
= 0; j
< 2; j
++ )
1397 m_bitmapsCheckbox
[i
][j
].Create(rect
.width
, rect
.height
);
1403 dc
.SelectObject(m_bitmapsCheckbox
[0][0]);
1404 DrawCheckBitmap(dc
, rect
);
1407 dc
.SelectObject(m_bitmapsCheckbox
[0][1]);
1408 DrawUncheckBitmap(dc
, rect
, FALSE
);
1411 m_bitmapsCheckbox
[1][0] = m_bitmapsCheckbox
[0][0];
1413 // pressed unchecked
1414 dc
.SelectObject(m_bitmapsCheckbox
[1][1]);
1415 DrawUncheckBitmap(dc
, rect
, TRUE
);
1418 int row
= flags
& wxCONTROL_PRESSED
? 1 : 0;
1419 int col
= flags
& wxCONTROL_CHECKED
? 0 : 1;
1421 return m_bitmapsCheckbox
[row
][col
];
1424 wxBitmap
wxGTKRenderer::GetLineWrapBitmap()
1426 if ( !m_bmpLineWrap
.Ok() )
1428 // the line wrap bitmap as used by GTK+
1429 #define line_wrap_width 6
1430 #define line_wrap_height 9
1431 static const char line_wrap_bits
[] =
1433 0x1e, 0x3e, 0x30, 0x30, 0x39, 0x1f, 0x0f, 0x0f, 0x1f,
1436 wxBitmap
bmpLineWrap(line_wrap_bits
, line_wrap_width
, line_wrap_height
);
1437 if ( !bmpLineWrap
.Ok() )
1439 wxFAIL_MSG( _T("Failed to create line wrap XBM") );
1443 m_bmpLineWrap
= bmpLineWrap
;
1447 return m_bmpLineWrap
;
1450 void wxGTKRenderer::DrawCheckButton(wxDC
& dc
,
1451 const wxString
& label
,
1452 const wxBitmap
& bitmapOrig
,
1453 const wxRect
& rectTotal
,
1459 if ( bitmapOrig
.Ok() )
1461 bitmap
= bitmapOrig
;
1465 bitmap
= GetCheckBitmap(flags
);
1468 DoDrawCheckOrRadioBitmap(dc
, label
, bitmap
, rectTotal
,
1469 flags
, align
, indexAccel
);
1472 void wxGTKRenderer::DoDrawCheckOrRadioBitmap(wxDC
& dc
,
1473 const wxString
& label
,
1474 const wxBitmap
& bitmap
,
1475 const wxRect
& rectTotal
,
1480 wxRect rect
= rectTotal
;
1482 if ( flags
& wxCONTROL_FOCUSED
)
1484 // draw the focus border around everything
1485 DrawRect(dc
, &rect
, m_penBlack
);
1489 // the border does not offset the string under GTK
1493 // calculate the position of the bitmap and of the label
1495 yBmp
= rect
.y
+ (rect
.height
- bitmap
.GetHeight()) / 2;
1498 dc
.GetMultiLineTextExtent(label
, NULL
, &rectLabel
.height
);
1499 rectLabel
.y
= rect
.y
+ (rect
.height
- rectLabel
.height
) / 2;
1501 if ( align
== wxALIGN_RIGHT
)
1503 xBmp
= rect
.GetRight() - bitmap
.GetWidth();
1504 rectLabel
.x
= rect
.x
+ 2;
1505 rectLabel
.SetRight(xBmp
);
1507 else // normal (checkbox to the left of the text) case
1510 rectLabel
.x
= xBmp
+ bitmap
.GetWidth() + 4;
1511 rectLabel
.SetRight(rect
.GetRight());
1514 dc
.DrawBitmap(bitmap
, xBmp
, yBmp
, TRUE
/* use mask */);
1516 DrawLabel(dc
, label
, rectLabel
, flags
,
1517 wxALIGN_LEFT
| wxALIGN_CENTRE_VERTICAL
, indexAccel
);
1520 void wxGTKRenderer::DrawRadioButton(wxDC
& dc
,
1521 const wxString
& label
,
1522 const wxBitmap
& bitmapOrig
,
1523 const wxRect
& rectTotal
,
1529 if ( bitmapOrig
.Ok() )
1531 bitmap
= bitmapOrig
;
1536 wxSize size
= GetRadioBitmapSize();
1537 rect
.width
= size
.x
;
1538 rect
.height
= size
.y
;
1539 bitmap
.Create(rect
.width
, rect
.height
);
1541 dc
.SelectObject(bitmap
);
1542 dc
.SetBackground(*wxLIGHT_GREY_BRUSH
);
1544 DrawRadioBitmap(dc
, rect
, flags
);
1545 bitmap
.SetMask(new wxMask(bitmap
, *wxLIGHT_GREY
));
1548 DoDrawCheckOrRadioBitmap(dc
, label
, bitmap
, rectTotal
,
1549 flags
, align
, indexAccel
);
1552 // ----------------------------------------------------------------------------
1554 // ----------------------------------------------------------------------------
1556 wxRect
wxGTKRenderer::GetTextTotalArea(const wxTextCtrl
*text
,
1559 wxRect rectTotal
= rect
;
1560 rectTotal
.Inflate(2*BORDER_THICKNESS
);
1564 wxRect
wxGTKRenderer::GetTextClientArea(const wxTextCtrl
*text
,
1566 wxCoord
*extraSpaceBeyond
)
1568 wxRect rectText
= rect
;
1569 rectText
.Deflate(2*BORDER_THICKNESS
);
1571 if ( text
->WrapLines() )
1573 // leave enough for the line wrap bitmap indicator
1574 wxCoord widthMark
= GetLineWrapBitmap().GetWidth() + 2;
1576 rectText
.width
-= widthMark
;
1578 if ( extraSpaceBeyond
)
1579 *extraSpaceBeyond
= widthMark
;
1585 void wxGTKRenderer::DrawTextLine(wxDC
& dc
,
1586 const wxString
& text
,
1592 // TODO: GTK+ draws selection even for unfocused controls, just with
1593 // different colours
1594 StandardDrawTextLine(dc
, text
, rect
, selStart
, selEnd
, flags
);
1597 void wxGTKRenderer::DrawLineWrapMark(wxDC
& dc
, const wxRect
& rect
)
1599 wxBitmap bmpLineWrap
= GetLineWrapBitmap();
1601 // for a mono bitmap he colours it appears in depends on the current text
1602 // colours, so set them correctly
1604 if ( bmpLineWrap
.GetDepth() == 1 )
1606 colFgOld
= dc
.GetTextForeground();
1608 // FIXME: I wonder what should we do if the background is black too?
1609 dc
.SetTextForeground(*wxBLACK
);
1612 dc
.DrawBitmap(bmpLineWrap
,
1613 rect
.x
, rect
.y
+ (rect
.height
- bmpLineWrap
.GetHeight())/2);
1615 if ( colFgOld
.Ok() )
1617 // restore old colour
1618 dc
.SetTextForeground(colFgOld
);
1622 // ----------------------------------------------------------------------------
1624 // ----------------------------------------------------------------------------
1626 void wxGTKRenderer::DrawTab(wxDC
& dc
,
1627 const wxRect
& rectOrig
,
1629 const wxString
& label
,
1630 const wxBitmap
& bitmap
,
1634 wxRect rect
= rectOrig
;
1636 // the current tab is drawn indented (to the top for default case) and
1637 // bigger than the other ones
1638 const wxSize indent
= GetTabIndent();
1639 if ( flags
& wxCONTROL_SELECTED
)
1644 wxFAIL_MSG(_T("invaild notebook tab orientation"));
1648 rect
.Inflate(indent
.x
, 0);
1650 rect
.height
+= indent
.y
;
1654 rect
.Inflate(indent
.x
, 0);
1655 rect
.height
+= indent
.y
;
1660 wxFAIL_MSG(_T("TODO"));
1665 // selected tab has different colour
1666 wxColour col
= flags
& wxCONTROL_SELECTED
1667 ? wxSCHEME_COLOUR(m_scheme
, SHADOW_IN
)
1668 : wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
);
1669 DoDrawBackground(dc
, col
, rect
);
1671 if ( flags
& wxCONTROL_FOCUSED
)
1673 // draw the focus rect
1674 wxRect rectBorder
= rect
;
1675 rectBorder
.Deflate(4, 3);
1676 if ( dir
== wxBOTTOM
)
1677 rectBorder
.Offset(0, -1);
1679 DrawRect(dc
, &rectBorder
, m_penBlack
);
1682 // draw the text, image and the focus around them (if necessary)
1683 wxRect rectLabel
= rect
;
1684 rectLabel
.Deflate(1, 1);
1685 dc
.DrawLabel(label
, bitmap
, rectLabel
, wxALIGN_CENTRE
, indexAccel
);
1687 // now draw the tab itself
1690 x2
= rect
.GetRight(),
1691 y2
= rect
.GetBottom();
1696 dc
.SetPen(m_penHighlight
);
1697 dc
.DrawLine(x
, y2
, x
, y
);
1698 dc
.DrawLine(x
+ 1, y
, x2
, y
);
1700 dc
.SetPen(m_penBlack
);
1701 dc
.DrawLine(x2
, y2
, x2
, y
);
1703 dc
.SetPen(m_penDarkGrey
);
1704 dc
.DrawLine(x2
- 1, y2
, x2
- 1, y
+ 1);
1706 if ( flags
& wxCONTROL_SELECTED
)
1708 dc
.SetPen(m_penLightGrey
);
1710 // overwrite the part of the border below this tab
1711 dc
.DrawLine(x
+ 1, y2
+ 1, x2
- 1, y2
+ 1);
1713 // and the shadow of the tab to the left of us
1714 dc
.DrawLine(x
+ 1, y
+ 2, x
+ 1, y2
+ 1);
1719 dc
.SetPen(m_penHighlight
);
1721 // we need to continue one pixel further to overwrite the corner of
1722 // the border for the selected tab
1723 dc
.DrawLine(x
, y
- (flags
& wxCONTROL_SELECTED
? 1 : 0),
1726 // it doesn't work like this (TODO: implement it properly)
1728 // erase the corner of the tab to the right
1729 dc
.SetPen(m_penLightGrey
);
1730 dc
.DrawPoint(x2
- 1, y
- 2);
1731 dc
.DrawPoint(x2
- 2, y
- 2);
1732 dc
.DrawPoint(x2
- 2, y
- 1);
1735 dc
.SetPen(m_penBlack
);
1736 dc
.DrawLine(x
+ 1, y2
, x2
, y2
);
1737 dc
.DrawLine(x2
, y
, x2
, y2
);
1739 dc
.SetPen(m_penDarkGrey
);
1740 dc
.DrawLine(x
+ 2, y2
- 1, x2
- 1, y2
- 1);
1741 dc
.DrawLine(x2
- 1, y
, x2
- 1, y2
);
1743 if ( flags
& wxCONTROL_SELECTED
)
1745 dc
.SetPen(m_penLightGrey
);
1747 // overwrite the part of the (double!) border above this tab
1748 dc
.DrawLine(x
+ 1, y
- 1, x2
- 1, y
- 1);
1749 dc
.DrawLine(x
+ 1, y
- 2, x2
- 1, y
- 2);
1751 // and the shadow of the tab to the left of us
1752 dc
.DrawLine(x
+ 1, y2
- 1, x
+ 1, y
- 1);
1758 wxFAIL_MSG(_T("TODO"));
1762 // ----------------------------------------------------------------------------
1764 // ----------------------------------------------------------------------------
1766 wxSize
wxGTKRenderer::GetSliderThumbSize(const wxRect
& rect
,
1767 wxOrientation orient
) const
1769 static const wxCoord SLIDER_THUMB_LENGTH
= 30;
1773 wxRect rectShaft
= GetSliderShaftRect(rect
, orient
);
1774 if ( orient
== wxHORIZONTAL
)
1776 size
.x
= wxMin(SLIDER_THUMB_LENGTH
, rectShaft
.width
);
1777 size
.y
= rectShaft
.height
;
1781 size
.y
= wxMin(SLIDER_THUMB_LENGTH
, rectShaft
.height
);
1782 size
.x
= rectShaft
.width
;
1788 wxRect
wxGTKRenderer::GetSliderShaftRect(const wxRect
& rect
,
1789 wxOrientation
WXUNUSED(orient
)) const
1791 return rect
.Deflate(2*BORDER_THICKNESS
, 2*BORDER_THICKNESS
);
1794 void wxGTKRenderer::DrawSliderShaft(wxDC
& dc
,
1795 const wxRect
& rectOrig
,
1796 wxOrientation orient
,
1800 wxRect rect
= rectOrig
;
1802 // draw the border first
1803 if ( flags
& wxCONTROL_FOCUSED
)
1805 DrawRect(dc
, &rect
, m_penBlack
);
1806 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
1808 else // not focused, normal
1810 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1811 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
1814 // and the background
1815 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
), rect
);
1821 void wxGTKRenderer::DrawSliderThumb(wxDC
& dc
,
1822 const wxRect
& rectOrig
,
1823 wxOrientation orient
,
1826 // draw the thumb border
1827 wxRect rect
= rectOrig
;
1828 DrawAntiRaisedBorder(dc
, &rect
);
1830 // draw the handle in the middle
1831 if ( orient
== wxVERTICAL
)
1833 rect
.height
= 2*BORDER_THICKNESS
;
1834 rect
.y
= rectOrig
.y
+ (rectOrig
.height
- rect
.height
) / 2;
1838 rect
.width
= 2*BORDER_THICKNESS
;
1839 rect
.x
= rectOrig
.x
+ (rectOrig
.width
- rect
.width
) / 2;
1842 DrawShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1845 // ----------------------------------------------------------------------------
1847 // ----------------------------------------------------------------------------
1849 void wxGTKRenderer::DrawMenuBarItem(wxDC
& dc
,
1851 const wxString
& label
,
1855 DrawLabel(dc
, label
, rect
, flags
, wxALIGN_CENTRE
, indexAccel
);
1858 void wxGTKRenderer::DrawMenuItem(wxDC
& dc
,
1860 const wxMenuGeometryInfo
& geometryInfo
,
1861 const wxString
& label
,
1862 const wxString
& accel
,
1863 const wxBitmap
& bitmap
,
1867 wxFAIL_MSG(_T("TODO"));
1870 void wxGTKRenderer::DrawMenuSeparator(wxDC
& dc
,
1872 const wxMenuGeometryInfo
& geomInfo
)
1874 wxFAIL_MSG(_T("TODO"));
1877 wxSize
wxGTKRenderer::GetMenuBarItemSize(const wxSize
& sizeText
) const
1882 wxMenuGeometryInfo
*wxGTKRenderer::GetMenuGeometry(wxWindow
*win
,
1883 const wxMenu
& menu
) const
1885 wxFAIL_MSG(_T("TODO"));
1890 // ----------------------------------------------------------------------------
1892 // ----------------------------------------------------------------------------
1894 wxSize
wxGTKRenderer::GetStatusBarBorders(wxCoord
*borderBetweenFields
) const
1896 return wxSize(0, 0);
1899 void wxGTKRenderer::DrawStatusField(wxDC
& dc
,
1901 const wxString
& label
,
1906 // ----------------------------------------------------------------------------
1908 // ----------------------------------------------------------------------------
1910 void wxGTKRenderer::InitComboBitmaps()
1912 wxSize sizeArrow
= m_sizeScrollbarArrow
;
1918 for ( n
= ComboState_Normal
; n
< ComboState_Max
; n
++ )
1920 m_bitmapsCombo
[n
].Create(sizeArrow
.x
, sizeArrow
.y
);
1923 static const int comboButtonFlags
[ComboState_Max
] =
1931 wxRect
rect(wxPoint(0, 0), sizeArrow
);
1934 for ( n
= ComboState_Normal
; n
< ComboState_Max
; n
++ )
1936 int flags
= comboButtonFlags
[n
];
1938 dc
.SelectObject(m_bitmapsCombo
[n
]);
1939 DoDrawBackground(dc
, GetBackgroundColour(flags
), rect
);
1940 DrawArrow(dc
, wxDOWN
, rect
, flags
);
1944 void wxGTKRenderer::GetComboBitmaps(wxBitmap
*bmpNormal
,
1946 wxBitmap
*bmpPressed
,
1947 wxBitmap
*bmpDisabled
)
1949 if ( !m_bitmapsCombo
[ComboState_Normal
].Ok() )
1955 *bmpNormal
= m_bitmapsCombo
[ComboState_Normal
];
1957 *bmpFocus
= m_bitmapsCombo
[ComboState_Focus
];
1959 *bmpPressed
= m_bitmapsCombo
[ComboState_Pressed
];
1961 *bmpDisabled
= m_bitmapsCombo
[ComboState_Disabled
];
1964 // ----------------------------------------------------------------------------
1966 // ----------------------------------------------------------------------------
1968 void wxGTKRenderer::DoDrawBackground(wxDC
& dc
,
1969 const wxColour
& col
,
1972 wxBrush
brush(col
, wxSOLID
);
1974 dc
.SetPen(*wxTRANSPARENT_PEN
);
1975 dc
.DrawRectangle(rect
);
1978 void wxGTKRenderer::DrawBackground(wxDC
& dc
,
1979 const wxColour
& col
,
1983 wxColour colBg
= col
.Ok() ? col
: GetBackgroundColour(flags
);
1984 DoDrawBackground(dc
, colBg
, rect
);
1987 // ----------------------------------------------------------------------------
1989 // ----------------------------------------------------------------------------
1991 void wxGTKRenderer::DrawArrowBorder(wxDC
& dc
,
1995 static const wxDirection sides
[] =
1997 wxUP
, wxLEFT
, wxRIGHT
, wxDOWN
2000 wxRect rect1
, rect2
, rectInner
;
2006 rectInner
.Inflate(-2);
2008 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
), *rect
);
2010 // find the side not to draw and also adjust the rectangles to compensate
2012 wxDirection sideToOmit
;
2016 sideToOmit
= wxDOWN
;
2018 rectInner
.height
+= 1;
2026 rectInner
.height
+= 1;
2030 sideToOmit
= wxRIGHT
;
2032 rectInner
.width
+= 1;
2036 sideToOmit
= wxLEFT
;
2040 rectInner
.width
+= 1;
2044 wxFAIL_MSG(_T("unknown arrow direction"));
2048 // the outer rect first
2050 for ( n
= 0; n
< WXSIZEOF(sides
); n
++ )
2052 wxDirection side
= sides
[n
];
2053 if ( side
== sideToOmit
)
2056 DrawAntiShadedRectSide(dc
, rect1
, m_penDarkGrey
, m_penHighlight
, side
);
2059 // and then the inner one
2060 for ( n
= 0; n
< WXSIZEOF(sides
); n
++ )
2062 wxDirection side
= sides
[n
];
2063 if ( side
== sideToOmit
)
2066 DrawAntiShadedRectSide(dc
, rect2
, m_penBlack
, m_penGrey
, side
);
2072 void wxGTKRenderer::DrawScrollbarArrow(wxDC
& dc
,
2074 const wxRect
& rectArrow
,
2077 // first of all, draw the border around it - but we don't want the border
2078 // on the side opposite to the arrow point
2079 wxRect rect
= rectArrow
;
2080 DrawArrowBorder(dc
, &rect
, dir
);
2082 // then the arrow itself
2083 DrawArrow(dc
, dir
, rect
, flags
);
2086 // gtk_default_draw_arrow() takes ~350 lines and we can't do much better here
2087 // these people are just crazy :-(
2088 void wxGTKRenderer::DrawArrow(wxDC
& dc
,
2101 wxPoint ptArrow
[Point_Max
];
2103 wxColour colInside
= GetBackgroundColour(flags
);
2105 if ( flags
& wxCONTROL_DISABLED
)
2107 penShadow
[0] = m_penDarkGrey
;
2108 penShadow
[1] = m_penDarkGrey
;
2109 penShadow
[2] = wxNullPen
;
2110 penShadow
[3] = wxNullPen
;
2112 else if ( flags
& wxCONTROL_PRESSED
)
2114 penShadow
[0] = m_penDarkGrey
;
2115 penShadow
[1] = m_penHighlight
;
2116 penShadow
[2] = wxNullPen
;
2117 penShadow
[3] = m_penBlack
;
2119 else // normal arrow
2121 penShadow
[0] = m_penHighlight
;
2122 penShadow
[1] = m_penBlack
;
2123 penShadow
[2] = m_penDarkGrey
;
2124 penShadow
[3] = wxNullPen
;
2128 if ( dir
== wxUP
|| dir
== wxDOWN
)
2131 middle
= (rect
.GetRight() + rect
.GetLeft() + 1) / 2;
2135 middle
= (rect
.GetTop() + rect
.GetBottom() + 1) / 2;
2138 // draw the arrow interior
2139 dc
.SetPen(*wxTRANSPARENT_PEN
);
2140 dc
.SetBrush(wxBrush(colInside
, wxSOLID
));
2145 ptArrow
[Point_First
].x
= rect
.GetLeft();
2146 ptArrow
[Point_First
].y
= rect
.GetBottom();
2147 ptArrow
[Point_Second
].x
= middle
;
2148 ptArrow
[Point_Second
].y
= rect
.GetTop();
2149 ptArrow
[Point_Third
].x
= rect
.GetRight();
2150 ptArrow
[Point_Third
].y
= rect
.GetBottom();
2154 ptArrow
[Point_First
] = rect
.GetPosition();
2155 ptArrow
[Point_Second
].x
= middle
;
2156 ptArrow
[Point_Second
].y
= rect
.GetBottom();
2157 ptArrow
[Point_Third
].x
= rect
.GetRight();
2158 ptArrow
[Point_Third
].y
= rect
.GetTop();
2162 ptArrow
[Point_First
].x
= rect
.GetRight();
2163 ptArrow
[Point_First
].y
= rect
.GetTop();
2164 ptArrow
[Point_Second
].x
= rect
.GetLeft();
2165 ptArrow
[Point_Second
].y
= middle
;
2166 ptArrow
[Point_Third
].x
= rect
.GetRight();
2167 ptArrow
[Point_Third
].y
= rect
.GetBottom();
2171 ptArrow
[Point_First
] = rect
.GetPosition();
2172 ptArrow
[Point_Second
].x
= rect
.GetRight();
2173 ptArrow
[Point_Second
].y
= middle
;
2174 ptArrow
[Point_Third
].x
= rect
.GetLeft();
2175 ptArrow
[Point_Third
].y
= rect
.GetBottom();
2179 wxFAIL_MSG(_T("unknown arrow direction"));
2182 dc
.DrawPolygon(WXSIZEOF(ptArrow
), ptArrow
);
2184 // draw the arrow border
2185 dc
.SetPen(penShadow
[0]);
2189 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_First
]);
2190 dc
.DrawPoint(ptArrow
[Point_First
]);
2191 if ( penShadow
[3].Ok() )
2193 dc
.SetPen(penShadow
[3]);
2194 dc
.DrawLine(ptArrow
[Point_First
].x
+ 1, ptArrow
[Point_First
].y
,
2195 ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
);
2197 dc
.SetPen(penShadow
[1]);
2198 dc
.DrawLine(ptArrow
[Point_Second
].x
+ 1, ptArrow
[Point_Second
].y
+ 1,
2199 ptArrow
[Point_Third
].x
, ptArrow
[Point_Third
].y
);
2200 dc
.DrawPoint(ptArrow
[Point_Third
]);
2201 dc
.DrawLine(ptArrow
[Point_Third
].x
- 2, ptArrow
[Point_Third
].y
,
2202 ptArrow
[Point_First
].x
+ 1, ptArrow
[Point_First
].y
);
2203 if ( penShadow
[2].Ok() )
2205 dc
.SetPen(penShadow
[2]);
2206 dc
.DrawLine(ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
,
2207 ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
+ 1);
2208 dc
.DrawLine(ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
- 1,
2209 ptArrow
[Point_First
].x
+ 2, ptArrow
[Point_First
].y
- 1);
2214 dc
.DrawLine(ptArrow
[Point_First
], ptArrow
[Point_Second
]);
2215 dc
.DrawLine(ptArrow
[Point_First
].x
+ 2, ptArrow
[Point_First
].y
,
2216 ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
);
2217 if ( penShadow
[2].Ok() )
2219 dc
.SetPen(penShadow
[2]);
2220 dc
.DrawLine(ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
- 1,
2221 ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
- 1);
2223 dc
.SetPen(penShadow
[1]);
2224 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_Third
]);
2225 dc
.DrawPoint(ptArrow
[Point_Third
]);
2229 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_First
]);
2230 dc
.DrawPoint(ptArrow
[Point_First
]);
2231 if ( penShadow
[2].Ok() )
2233 dc
.SetPen(penShadow
[2]);
2234 dc
.DrawLine(ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
,
2235 ptArrow
[Point_First
].x
- 1, ptArrow
[Point_First
].y
+ 2);
2236 dc
.DrawLine(ptArrow
[Point_Third
].x
, ptArrow
[Point_Third
].y
,
2237 ptArrow
[Point_Second
].x
+ 2, ptArrow
[Point_Second
].y
+ 1);
2239 dc
.SetPen(penShadow
[1]);
2240 dc
.DrawLine(ptArrow
[Point_Third
].x
, ptArrow
[Point_Third
].y
,
2241 ptArrow
[Point_First
].x
, ptArrow
[Point_First
].y
+ 1);
2242 dc
.DrawLine(ptArrow
[Point_Second
].x
+ 1, ptArrow
[Point_Second
].y
+ 1,
2243 ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
);
2247 dc
.DrawLine(ptArrow
[Point_First
], ptArrow
[Point_Third
]);
2248 dc
.DrawLine(ptArrow
[Point_First
].x
+ 2, ptArrow
[Point_First
].y
+ 1,
2249 ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
);
2250 dc
.SetPen(penShadow
[1]);
2251 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_Third
]);
2252 dc
.DrawPoint(ptArrow
[Point_Third
]);
2256 wxFAIL_MSG(_T("unknown arrow direction"));
2261 void wxGTKRenderer::DrawThumbBorder(wxDC
& dc
,
2263 wxOrientation orient
)
2265 if ( orient
== wxVERTICAL
)
2267 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2269 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2271 rect
->Inflate(-1, 0);
2273 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2275 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2277 rect
->Inflate(-1, 0);
2281 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2283 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2285 rect
->Inflate(0, -1);
2287 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2289 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2291 rect
->Inflate(0, -1);
2295 void wxGTKRenderer::DrawScrollbarThumb(wxDC
& dc
,
2296 wxOrientation orient
,
2300 // the thumb is never pressed never has focus border under GTK and the
2301 // scrollbar background never changes at all
2302 int flagsThumb
= flags
& ~(wxCONTROL_PRESSED
| wxCONTROL_FOCUSED
);
2304 // we don't want the border in the direction of the scrollbar movement
2305 wxRect rectThumb
= rect
;
2306 DrawThumbBorder(dc
, &rectThumb
, orient
);
2308 DrawButtonBorder(dc
, rectThumb
, flagsThumb
, &rectThumb
);
2309 DrawBackground(dc
, wxNullColour
, rectThumb
, flagsThumb
);
2312 void wxGTKRenderer::DrawScrollbarShaft(wxDC
& dc
,
2313 wxOrientation orient
,
2317 wxRect rectBar
= rect
;
2318 DrawThumbBorder(dc
, &rectBar
, orient
);
2319 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
), rectBar
);
2322 void wxGTKRenderer::DrawScrollCorner(wxDC
& dc
, const wxRect
& rect
)
2324 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, CONTROL
), rect
);
2327 wxRect
wxGTKRenderer::GetScrollbarRect(const wxScrollBar
*scrollbar
,
2328 wxScrollBar::Element elem
,
2331 // as GTK scrollbars can't be disabled, it makes no sense to remove the
2332 // thumb for a scrollbar with range 0 - instead, make it fill the entire
2334 if ( (elem
== wxScrollBar::Element_Thumb
) && !scrollbar
->GetRange() )
2336 elem
= wxScrollBar::Element_Bar_2
;
2339 return StandardGetScrollbarRect(scrollbar
, elem
,
2341 GetScrollbarArrowSize(scrollbar
));
2344 wxCoord
wxGTKRenderer::GetScrollbarSize(const wxScrollBar
*scrollbar
)
2346 return StandardScrollBarSize(scrollbar
, GetScrollbarArrowSize(scrollbar
));
2349 wxHitTest
wxGTKRenderer::HitTestScrollbar(const wxScrollBar
*scrollbar
,
2350 const wxPoint
& pt
) const
2352 return StandardHitTestScrollbar(scrollbar
, pt
,
2353 GetScrollbarArrowSize(scrollbar
));
2356 wxCoord
wxGTKRenderer::ScrollbarToPixel(const wxScrollBar
*scrollbar
,
2359 return StandardScrollbarToPixel(scrollbar
, thumbPos
,
2360 GetScrollbarArrowSize(scrollbar
));
2363 int wxGTKRenderer::PixelToScrollbar(const wxScrollBar
*scrollbar
,
2366 return StandardPixelToScrollbar(scrollbar
, coord
,
2367 GetScrollbarArrowSize(scrollbar
));
2370 // ----------------------------------------------------------------------------
2372 // ----------------------------------------------------------------------------
2374 void wxGTKRenderer::AdjustSize(wxSize
*size
, const wxWindow
*window
)
2377 if ( wxDynamicCast(window
, wxBitmapButton
) )
2382 #endif // wxUSE_BMPBUTTON
2384 if ( wxDynamicCast(window
, wxButton
) )
2386 if ( !(window
->GetWindowStyle() & wxBU_EXACTFIT
) )
2388 // TODO: this is ad hoc...
2389 size
->x
+= 3*window
->GetCharWidth();
2390 wxCoord minBtnHeight
= 18;
2391 if ( size
->y
< minBtnHeight
)
2392 size
->y
= minBtnHeight
;
2394 // button border width
2398 #endif //wxUSE_BUTTON
2399 if ( wxDynamicCast(window
, wxScrollBar
) )
2401 // we only set the width of vert scrollbars and height of the
2403 if ( window
->GetWindowStyle() & wxSB_HORIZONTAL
)
2404 size
->y
= m_sizeScrollbarArrow
.x
;
2406 size
->x
= m_sizeScrollbarArrow
.x
;
2410 // take into account the border width
2411 wxRect rectBorder
= GetBorderDimensions(window
->GetBorder());
2412 size
->x
+= rectBorder
.x
+ rectBorder
.width
;
2413 size
->y
+= rectBorder
.y
+ rectBorder
.height
;
2417 // ----------------------------------------------------------------------------
2418 // top level windows
2419 // ----------------------------------------------------------------------------
2421 void wxGTKRenderer::DrawFrameTitleBar(wxDC
& dc
,
2423 const wxString
& title
,
2427 int specialButtonFlag
)
2431 void wxGTKRenderer::DrawFrameBorder(wxDC
& dc
,
2437 void wxGTKRenderer::DrawFrameBackground(wxDC
& dc
,
2443 void wxGTKRenderer::DrawFrameTitle(wxDC
& dc
,
2445 const wxString
& title
,
2450 void wxGTKRenderer::DrawFrameIcon(wxDC
& dc
,
2457 void wxGTKRenderer::DrawFrameButton(wxDC
& dc
,
2458 wxCoord x
, wxCoord y
,
2464 wxRect
wxGTKRenderer::GetFrameClientArea(const wxRect
& rect
, int flags
) const
2469 wxSize
wxGTKRenderer::GetFrameTotalSize(const wxSize
& clientSize
, int flags
) const
2474 wxSize
wxGTKRenderer::GetFrameIconSize() const
2476 return wxSize(-1, -1);
2479 int wxGTKRenderer::HitTestFrame(const wxRect
& rect
, const wxPoint
& pt
, int flags
) const
2481 return wxHT_TOPLEVEL_CLIENT_AREA
;
2485 // ----------------------------------------------------------------------------
2487 // ----------------------------------------------------------------------------
2489 static char *error_xpm
[] = {
2490 /* columns rows colors chars-per-pixel */
2493 ". c #000001010101",
2494 "X c #010101010101",
2495 "o c #010102020202",
2496 "O c #020202020202",
2497 "+ c #020203030303",
2498 "@ c #030302020202",
2500 "$ c #020204040404",
2501 "% c #030304040404",
2502 "& c #070703030202",
2503 "* c #040404040404",
2504 "= c #040405050505",
2506 "; c #050507070707",
2507 ": c #060606060606",
2508 "> c #060607070707",
2509 ", c #070707070707",
2510 "< c #070709090909",
2511 "1 c #0c0c04040303",
2512 "2 c #0d0d04040404",
2513 "3 c #0d0d05050404",
2515 "5 c #080809090909",
2516 "6 c #090909090909",
2517 "7 c #0b0b0b0b0b0b",
2518 "8 c #0a0a0d0d0d0d",
2519 "9 c #0b0b0d0d0d0d",
2520 "0 c #0c0c0c0c0c0c",
2522 "w c #0d0d0f0f1010",
2523 "e c #101006060505",
2524 "r c #141404040303",
2525 "t c #141407070606",
2526 "y c #171707070606",
2527 "u c #1d1d09090707",
2528 "i c #181809090808",
2529 "p c #1d1d09090808",
2530 "a c #1e1e0a0a0808",
2531 "s c #1e1e0b0b0909",
2532 "d c #101010101010",
2533 "f c #101011111212",
2535 "h c #131313131313",
2537 "k c #181818181818",
2538 "l c #191919191919",
2540 "x c #1d1d1d1d1d1d",
2542 "v c #24240b0b0a0a",
2543 "b c #27270d0d0b0b",
2544 "n c #2b2b0e0e0c0c",
2545 "m c #2d2d0e0e0b0b",
2546 "M c #30300e0e0b0b",
2547 "N c #33330d0d0909",
2548 "B c #3a3a0f0f0b0b",
2549 "V c #333310100e0e",
2550 "C c #373710100d0d",
2551 "Z c #373711110e0e",
2552 "A c #363612120f0f",
2553 "S c #3d3d13130f0f",
2554 "D c #363612121010",
2556 "G c #252525252525",
2557 "H c #2a2a2a2a2a2a",
2559 "K c #323232323232",
2562 "I c #3f3f3f3f3f3f",
2563 "U c #414113130e0e",
2564 "Y c #414113130f0f",
2565 "T c #404013131010",
2566 "R c #404014141111",
2567 "E c #404015151212",
2568 "W c #4d4d17171212",
2569 "Q c #4e4e18181313",
2570 "! c #4e4e18181414",
2571 "~ c #4e4e19191515",
2572 "^ c #4e4e1a1a1616",
2573 "/ c #57571b1b1515",
2574 "( c #595917171010",
2575 ") c #5b5b1a1a1313",
2576 "_ c #58581b1b1616",
2577 "` c #58581c1c1717",
2578 "' c #5c5c1e1e1a1a",
2579 "] c #5c5c1f1f1b1b",
2580 "[ c #6e6e19190f0f",
2581 "{ c #67671c1c1616",
2582 "} c #6b6b1b1b1212",
2583 "| c #68681e1e1717",
2584 " . c #6e6e1e1e1616",
2585 ".. c #79791e1e1515",
2586 "X. c #666622221d1d",
2587 "o. c #6b6b24241e1e",
2588 "O. c #6c6c22221d1d",
2589 "+. c #6d6d24241f1f",
2590 "@. c #7d7d23231c1c",
2591 "#. c #727226262020",
2592 "$. c #757526262020",
2593 "%. c #777728282222",
2594 "&. c #7f7f28282121",
2595 "*. c #484848484848",
2597 "-. c #555555555555",
2598 ";. c #656565656565",
2600 ">. c #94941f1f1212",
2601 ",. c #96961f1f1111",
2602 "<. c #98981f1f1111",
2603 "1. c #818126261e1e",
2604 "2. c #858523231919",
2605 "3. c #858525251c1c",
2606 "4. c #878728281e1e",
2607 "5. c #898921211717",
2608 "6. c #8a8a22221616",
2609 "7. c #8b8b25251c1c",
2610 "8. c #8c8c27271d1d",
2611 "9. c #888828281f1f",
2612 "0. c #8a8a29291f1f",
2613 "q. c #959520201111",
2614 "w. c #969620201111",
2615 "e. c #949424241717",
2616 "r. c #969624241717",
2617 "t. c #909024241919",
2618 "y. c #929225251919",
2619 "u. c #929225251b1b",
2620 "i. c #959526261b1b",
2621 "p. c #969624241818",
2622 "a. c #90902a2a1f1f",
2623 "s. c #969629291f1f",
2624 "d. c #9b9b20201313",
2625 "f. c #999924241616",
2626 "g. c #9c9c21211212",
2627 "h. c #9f9f21211212",
2628 "j. c #9d9d22221414",
2629 "k. c #9d9d23231414",
2630 "l. c #9c9c23231616",
2631 "z. c #989827271b1b",
2632 "x. c #999927271b1b",
2633 "c. c #9a9a26261b1b",
2634 "v. c #989827271c1c",
2635 "b. c #9c9c25251818",
2636 "n. c #9c9c27271b1b",
2637 "m. c #9d9d27271b1b",
2638 "M. c #999928281c1c",
2639 "N. c #999929291e1e",
2640 "B. c #9b9b28281c1c",
2641 "V. c #9b9b28281d1d",
2642 "C. c #9a9a29291e1e",
2643 "Z. c #9a9a2a2a1e1e",
2644 "A. c #9a9a2b2b1f1f",
2645 "S. c #9b9b2a2a1f1f",
2646 "D. c #9c9c28281c1c",
2647 "F. c #9e9e29291f1f",
2648 "G. c #9f9f29291e1e",
2649 "H. c #9e9e2a2a1e1e",
2650 "J. c #83832b2b2424",
2651 "K. c #83832c2c2525",
2652 "L. c #84842a2a2424",
2653 "P. c #8b8b29292121",
2654 "I. c #89892b2b2424",
2655 "U. c #8b8b2c2c2626",
2656 "Y. c #8f8f2a2a2222",
2657 "T. c #8f8f2b2b2323",
2658 "R. c #8d8d2e2e2828",
2659 "E. c #8f8f2f2f2828",
2660 "W. c #8f8f38383232",
2661 "Q. c #919129292020",
2662 "!. c #90902b2b2222",
2663 "~. c #91912d2d2525",
2664 "^. c #90902d2d2626",
2665 "/. c #969629292020",
2666 "(. c #95952c2c2323",
2667 "). c #97972c2c2222",
2668 "_. c #94942d2d2525",
2669 "`. c #94942e2e2626",
2670 "'. c #97972d2d2525",
2671 "]. c #96962e2e2424",
2672 "[. c #97972e2e2626",
2673 "{. c #97972f2f2727",
2674 "}. c #99992b2b2020",
2675 "|. c #99992c2c2121",
2676 " X c #98982d2d2323",
2677 ".X c #99992c2c2222",
2678 "XX c #9b9b2c2c2121",
2679 "oX c #9a9a2c2c2323",
2680 "OX c #98982d2d2424",
2681 "+X c #98982e2e2525",
2682 "@X c #98982e2e2626",
2683 "#X c #9d9d2b2b2121",
2684 "$X c #9e9e2a2a2020",
2685 "%X c #9c9c2c2c2121",
2686 "&X c #9c9c2d2d2323",
2687 "*X c #9d9d2e2e2323",
2688 "=X c #9f9f2d2d2323",
2689 "-X c #9e9e2e2e2020",
2690 ";X c #9f9f2e2e2323",
2691 ":X c #9c9c2d2d2424",
2692 ">X c #9d9d2f2f2525",
2693 ",X c #9c9c2f2f2626",
2694 "<X c #9d9d2f2f2626",
2695 "1X c #9f9f2e2e2424",
2696 "2X c #9f9f2f2f2525",
2697 "3X c #9f9f2f2f2626",
2698 "4X c #939330302828",
2699 "5X c #909036362f2f",
2700 "6X c #949430302929",
2701 "7X c #959530302828",
2702 "8X c #949430302a2a",
2703 "9X c #969630302828",
2704 "0X c #969630302929",
2705 "qX c #9d9d30302727",
2706 "wX c #9e9e30302626",
2707 "eX c #9e9e30302727",
2708 "rX c #9e9e31312727",
2709 "tX c #9f9f30302626",
2710 "yX c #989831312929",
2711 "uX c #9a9a30302929",
2712 "iX c #9a9a31312a2a",
2713 "pX c #9a9a32322a2a",
2714 "aX c #9d9d31312929",
2715 "sX c #9d9d32322929",
2716 "dX c #9c9c32322a2a",
2717 "fX c #9d9d32322a2a",
2718 "gX c #9d9d33332a2a",
2719 "hX c #9d9d33332b2b",
2720 "jX c #9e9e31312828",
2721 "kX c #9e9e31312929",
2722 "lX c #9f9f31312828",
2723 "zX c #9e9e32322929",
2724 "xX c #9f9f32322a2a",
2725 "cX c #9f9f33332a2a",
2726 "vX c #9f9f33332b2b",
2727 "bX c #9d9d3a3a3232",
2728 "nX c #9f9f39393030",
2729 "mX c #9f9f3e3e3636",
2730 "MX c #a3a323231313",
2731 "NX c #a0a022221414",
2732 "BX c #a2a223231414",
2733 "VX c #a0a024241616",
2734 "CX c #a4a422221212",
2735 "ZX c #a4a423231313",
2736 "AX c #a5a522221212",
2737 "SX c #a6a622221212",
2738 "DX c #a6a622221313",
2739 "FX c #a7a722221212",
2740 "GX c #a4a424241515",
2741 "HX c #a5a525251616",
2742 "JX c #a7a724241414",
2743 "KX c #a7a724241515",
2744 "LX c #a6a625251717",
2745 "PX c #a7a725251616",
2746 "IX c #a7a725251717",
2747 "UX c #a6a626261717",
2748 "YX c #a0a025251818",
2749 "TX c #a3a325251818",
2750 "RX c #a2a226261818",
2751 "EX c #a3a326261818",
2752 "WX c #a2a227271a1a",
2753 "QX c #a2a227271b1b",
2754 "!X c #a3a327271a1a",
2755 "~X c #a5a527271919",
2756 "^X c #a5a527271a1a",
2757 "/X c #a6a626261818",
2758 "(X c #a6a627271818",
2759 ")X c #a6a627271919",
2760 "_X c #a3a328281b1b",
2761 "`X c #a1a128281c1c",
2762 "'X c #a1a129291d1d",
2763 "]X c #a1a129291e1e",
2764 "[X c #a0a02a2a1f1f",
2765 "{X c #a1a12a2a1f1f",
2766 "}X c #a2a228281c1c",
2767 "|X c #a2a229291c1c",
2768 " o c #a3a32b2b1f1f",
2769 ".o c #a5a528281a1a",
2770 "Xo c #a5a528281b1b",
2771 "oo c #a5a529291b1b",
2772 "Oo c #a4a429291c1c",
2773 "+o c #a4a429291d1d",
2774 "@o c #a5a529291c1c",
2775 "#o c #a5a529291d1d",
2776 "$o c #a4a42a2a1d1d",
2777 "%o c #a4a42a2a1e1e",
2778 "&o c #a4a42b2b1e1e",
2779 "*o c #a4a42b2b1f1f",
2780 "=o c #a9a921211010",
2781 "-o c #a9a921211111",
2782 ";o c #a8a822221111",
2783 ":o c #a9a922221111",
2784 ">o c #a8a822221212",
2785 ",o c #a8a823231212",
2786 "<o c #a8a823231313",
2787 "1o c #abab23231313",
2788 "2o c #a8a823231414",
2789 "3o c #a9a924241313",
2790 "4o c #a8a824241414",
2791 "5o c #acac22221111",
2792 "6o c #aeae22221212",
2793 "7o c #aeae23231212",
2794 "8o c #afaf24241313",
2795 "9o c #a9a927271818",
2796 "0o c #abab27271919",
2797 "qo c #a8a829291b1b",
2798 "wo c #abab28281a1a",
2799 "eo c #a8a829291c1c",
2800 "ro c #a8a82a2a1d1d",
2801 "to c #abab29291c1c",
2802 "yo c #adad29291b1b",
2803 "uo c #adad2a2a1b1b",
2804 "io c #aeae28281a1a",
2805 "po c #adad2b2b1d1d",
2806 "ao c #b1b123231111",
2807 "so c #b3b323231010",
2808 "do c #b3b323231111",
2809 "fo c #b1b126261515",
2810 "go c #b1b126261717",
2811 "ho c #b2b225251414",
2812 "jo c #b6b624241212",
2813 "ko c #b5b525251414",
2814 "lo c #b5b526261515",
2815 "zo c #b4b427271717",
2816 "xo c #b1b127271818",
2817 "co c #b3b32a2a1a1a",
2818 "vo c #b6b628281919",
2819 "bo c #b7b728281919",
2820 "no c #b5b52a2a1c1c",
2821 "mo c #b4b42c2c1d1d",
2822 "Mo c #b9b923231111",
2823 "No c #bbbb25251313",
2824 "Bo c #baba26261414",
2825 "Vo c #bebe25251212",
2826 "Co c #bdbd27271616",
2827 "Zo c #baba2b2b1a1a",
2828 "Ao c #bcbc2a2a1818",
2829 "So c #bebe2b2b1b1b",
2830 "Do c #bdbd2c2c1d1d",
2831 "Fo c #a0a02a2a2020",
2832 "Go c #a0a02b2b2020",
2833 "Ho c #a2a22b2b2020",
2834 "Jo c #a0a02c2c2020",
2835 "Ko c #a0a02c2c2121",
2836 "Lo c #a0a02d2d2222",
2837 "Po c #a0a02d2d2323",
2838 "Io c #a1a12d2d2222",
2839 "Uo c #a0a02e2e2323",
2840 "Yo c #a1a12f2f2222",
2841 "To c #a2a22d2d2121",
2842 "Ro c #a3a32c2c2020",
2843 "Eo c #a3a32c2c2121",
2844 "Wo c #a3a32d2d2121",
2845 "Qo c #a2a22d2d2222",
2846 "!o c #a2a22e2e2323",
2847 "~o c #a0a02e2e2424",
2848 "^o c #a0a02f2f2525",
2849 "/o c #a1a12f2f2424",
2850 "(o c #a1a12f2f2525",
2851 ")o c #a2a22e2e2424",
2852 "_o c #a2a22f2f2424",
2853 "`o c #a9a92f2f2020",
2854 "'o c #aaaa2f2f2020",
2855 "]o c #a0a031312727",
2856 "[o c #a1a130302626",
2857 "{o c #a1a130302727",
2858 "}o c #a0a031312828",
2859 "|o c #a0a032322929",
2860 " O c #a0a032322a2a",
2861 ".O c #a1a137372d2d",
2862 "XO c #a2a236362c2c",
2863 "oO c #a6a636362b2b",
2864 "OO c #a3a338382e2e",
2865 "+O c #a7a739392f2f",
2866 "@O c #a7a73a3a2f2f",
2867 "#O c #abab32322424",
2868 "$O c #abab32322525",
2869 "%O c #aaaa33332626",
2870 "&O c #aaaa33332727",
2871 "*O c #abab33332626",
2872 "=O c #aaaa34342727",
2873 "-O c #acac30302121",
2874 ";O c #acac30302222",
2875 ":O c #acac31312323",
2876 ">O c #a9a935352929",
2877 ",O c #a9a936362a2a",
2878 "<O c #a9a936362b2b",
2879 "1O c #a9a937372b2b",
2880 "2O c #aaaa34342828",
2881 "3O c #aaaa35352929",
2882 "4O c #a8a837372c2c",
2883 "5O c #a9a937372c2c",
2884 "6O c #a8a838382d2d",
2885 "7O c #a8a838382e2e",
2886 "8O c #a8a839392e2e",
2887 "9O c #a9a93f3f2f2f",
2888 "0O c #a2a23b3b3232",
2889 "qO c #a2a23d3d3535",
2890 "wO c #a2a23e3e3636",
2891 "eO c #a6a63b3b3131",
2892 "rO c #a5a53d3d3434",
2893 "tO c #a5a53e3e3535",
2894 "yO c #afaf3f3f3333",
2895 "uO c #c3c325251212",
2896 "iO c #c3c326261313",
2897 "pO c #c3c327271414",
2898 "aO c #c7c728281616",
2899 "sO c #c6c62c2c1a1a",
2900 "dO c #c7c72e2e1d1d",
2901 "fO c #cdcd2e2e1c1c",
2902 "gO c #cfcf2f2f1c1c",
2903 "hO c #d0d028281313",
2904 "jO c #d3d329291414",
2905 "kO c #d5d529291313",
2906 "lO c #d0d02e2e1b1b",
2907 "zO c #d8d829291414",
2908 "xO c #dddd2a2a1414",
2909 "cO c #dddd2d2d1717",
2910 "vO c #dfdf30301c1c",
2911 "bO c #e2e22b2b1515",
2912 "nO c #ebeb2d2d1414",
2913 "mO c #eded2e2e1717",
2914 "MO c #e4e431311b1b",
2915 "NO c #e9e930301a1a",
2916 "BO c #ebeb31311b1b",
2917 "VO c #e8e833331d1d",
2918 "CO c #e9e932321c1c",
2919 "ZO c #ebeb33331e1e",
2920 "AO c #eeee30301a1a",
2921 "SO c #eeee32321b1b",
2922 "DO c #eaea3a3a1b1b",
2923 "FO c #f1f132321b1b",
2924 "GO c #f3f331311919",
2925 "HO c #f7f732321b1b",
2926 "JO c #f6f636361b1b",
2927 "KO c #f6f638381c1c",
2928 "LO c #fcfc30301717",
2929 "PO c #fefe33331717",
2930 "IO c #ffff32321616",
2931 "UO c #fdfd35351717",
2932 "YO c #ffff34341717",
2933 "TO c #fafa30301919",
2934 "RO c #fafa31311818",
2935 "EO c #fafa36361919",
2936 "WO c #fdfd33331919",
2937 "QO c #ffff33331818",
2938 "!O c #fdfd35351818",
2939 "~O c #fafa3c3c1a1a",
2940 "^O c #fafa3d3d1a1a",
2941 "/O c #fbfb3d3d1d1d",
2942 "(O c #fdfd38381919",
2943 ")O c #fcfc39391a1a",
2944 "_O c #ffff3a3a1a1a",
2945 "`O c #ffff3f3f1b1b",
2946 "'O c #ffff3c3c1d1d",
2947 "]O c #ffff3e3e1d1d",
2948 "[O c #c1c178782e2e",
2949 "{O c #ffff40401e1e",
2950 "}O c #d4d48d8d1d1d",
2951 "|O c #cdcd86862222",
2952 " + c #c1c181813838",
2953 ".+ c #c7c79d9d3737",
2954 "X+ c #c5c59c9c3939",
2955 "o+ c #c4c49c9c3a3a",
2956 "O+ c #c8c89b9b3030",
2957 "++ c #cbcb9d9d3131",
2958 "@+ c #caca9e9e3434",
2959 "#+ c #cccc9d9d3030",
2960 "$+ c #cccc9f9f3232",
2961 "%+ c #cbcba0a03737",
2962 "&+ c #cfcfa3a33737",
2963 "*+ c #cfcfa3a33838",
2964 "=+ c #cfcfa5a53e3e",
2965 "-+ c #d5d5a8a82e2e",
2966 ";+ c #dadaa8a82f2f",
2967 ":+ c #dadaacac2f2f",
2968 ">+ c #dbdbacac2e2e",
2969 ",+ c #dddda8a82a2a",
2970 "<+ c #ddddacac2a2a",
2971 "1+ c #dedeadad2929",
2972 "2+ c #dfdfaeae2828",
2973 "3+ c #dcdcadad2d2d",
2974 "4+ c #d0d0a1a13131",
2975 "5+ c #d1d1a2a23030",
2976 "6+ c #d1d1a3a33333",
2977 "7+ c #d2d2a3a33232",
2978 "8+ c #d3d3a3a33232",
2979 "9+ c #d3d3a4a43333",
2980 "0+ c #d1d1a4a43636",
2981 "q+ c #d1d1a4a43737",
2982 "w+ c #d2d2a4a43535",
2983 "e+ c #d2d2a4a43636",
2984 "r+ c #d5d5a5a53333",
2985 "t+ c #d5d5a6a63434",
2986 "y+ c #d4d4a6a63737",
2987 "u+ c #d6d6a7a73535",
2988 "i+ c #d7d7a7a73434",
2989 "p+ c #d2d2a5a53939",
2990 "a+ c #d3d3a6a63838",
2991 "s+ c #d3d3a6a63a3a",
2992 "d+ c #d0d0a5a53d3d",
2993 "f+ c #d1d1a5a53c3c",
2994 "g+ c #d0d0a5a53f3f",
2995 "h+ c #d8d8a7a73333",
2996 "j+ c #d9d9a8a83232",
2997 "k+ c #d9d9acac3232",
2998 "l+ c #dfdfadad3636",
2999 "z+ c #d9d9abab3e3e",
3000 "x+ c #dadaaeae3939",
3001 "c+ c #dbdbafaf3a3a",
3002 "v+ c #dadaacac3f3f",
3003 "b+ c #dbdbadad3e3e",
3004 "n+ c #dfdfb1b13535",
3005 "m+ c #dfdfb0b03636",
3006 "M+ c #dcdcb0b03b3b",
3007 "N+ c #ddddb0b03a3a",
3008 "B+ c #dedeb1b13939",
3009 "V+ c #e3e3afaf2222",
3010 "C+ c #e0e0adad2525",
3011 "Z+ c #e1e1aeae2424",
3012 "A+ c #e4e4afaf2121",
3013 "S+ c #e2e2b2b23232",
3014 "D+ c #e0e0b2b23434",
3015 "F+ c #cfcfa5a54040",
3016 "G+ c #d3d3aaaa4747",
3017 "H+ c #d5d5abab4343",
3018 "J+ c #d6d6abab4242",
3019 "K+ c #d4d4aaaa4444",
3020 "L+ c #d2d2aaaa4848",
3021 "P+ c #d8d8acac4040",
3022 "I+ c #dfdfb4b44545",
3023 "U+ c #fbfbfbfbfbfb",
3025 "T+ c #fdfdfdfdfdfd",
3026 "R+ c #fefefefefefe",
3030 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3031 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3032 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3033 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W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+f+f+d+g+]oeX~.! . + l W+W+W+W+W+",
3055 "W+W+W+W+W+W+ vOxoPXC+2+2+1+<+<+B+N+>+:+j+k+#+i+i+u+0+@+&+s+K+G+d+d+=+F+}ojXI.S . + l W+W+W+W+W+",
3056 "W+W+W+W+W+W+ lOvoUX|O1+1+<+<+3+>+N+M+j+k+h+++++u+y+y+q+%+*+f+L+L+=+F+ +|ouX&.v . + l E+W+W+W+W+",
3057 "W+W+W+W+W+W+ boZo/XEX)X.oXooon.c.$o<O5O oRoEoA.}.!o|..X~o&X2X{o]orO|o|oaX7XO.2 o > z E+W+W+W+W+",
3058 "W+W+W+W+W+W+ [ dOwo~X.oXoooOo$oz.i.G.oORoEoWoQoa.a._o X(o^o<XtX}o|otOcXfXU.~ X + 5 F E+W+W+W+W+",
3059 "W+W+W+W+W+W+ 4 ioyo.oQX@oOo$o%o&oM.F.C.XOKoQo!o)o4.0.OXOX{otX,XlX|ocXwOyX$.p O * q K W+W+W+W+W+",
3060 "W+W+W+W+W+W+ q } moeo@oOo$o%o&o oRoZ.HoOO.O%X=X/ooX>X[o'.}o}oqXkXcXvXmXW.^ X + - j =.W+W+W+W+W+",
3061 "W+W+W+W+W+W+W+ - 6.po+o'X%o&o oRoRoA.}.Qo@OPo*X~o[o[o]o[.[.|oxXzXvXhXE.X.e O + 6 J Y+W+W+W+W+W+",
3062 "W+W+W+W+W+W+W+ X r n.$o]X{X oRoEoWoQo|.|.)oeO(o[o{o]o}o|o{.xXvXvXdX8X#.b X + o d I Y+W+W+W+W+W+",
3063 "W+W+W+W+W+W+W+W+ - B D.[X[XGoEoWoQo!o!o_o(oeOnXY.+X}o|o|o9X0XvXhX8X%.D X O # 6 H :.W+W+W+W+W+W+",
3064 "W+W+W+W+W+W+W+W+ * N 7.S.GoKoKo!o)o/o(o[oOX0O5X@X|o OcXvXgXpXR.+.V X O + + j =.E+W+W+W+W+W+W+",
3065 "W+W+W+W+W+W+W+W+W+L # u .s.#XLoPo;X(o[o[o]o[.bXtOxXcXfXpX6XK.] a X O + - j *.T+W+W+W+W+W+W+W+",
3066 "W+W+W+W+W+W+W+W+W+W+ - U 3.Q.).:X2X2XwXeXrXjXqOsXiX4XJ.o.E & O O + O 0 K T+E+W+W+W+W+W+W+W+",
3067 "W+W+W+W+W+W+W+W+W+W+ - 1 C | 1.P.T._.`.`.^.U.L.$.' A 3 X O O # - q J :.Y+W+W+W+W+W+W+W+W+",
3068 "W+W+W+W+W+W+W+W+W+W+W+ # - # O y m T Q _ ` ~ R n t @ O O O + O # g P :.E+W+W+W+W+W+W+W+W+W+",
3069 "W+W+W+W+W+W+W+W+W+W+W+W+W+ - # # # O O O O O O O O O O O + # + 7 x ;.T+Y+W+W+W+W+W+W+W+W+W+W+",
3070 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+ G k : # - # # X X + . # # # O , g j -.:.R+E+W+W+W+W+W+W+W+W+W+W+W+",
3071 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+ h 6 : 6 6 # # # 6 6 0 g F *.:.T+E+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3072 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+ L F c z z z c F K =.T+E+U+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3073 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+E+E+E+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3074 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3075 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3076 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+",
3077 "W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+"
3080 static char *info_xpm
[] = {
3081 /* columns rows colors chars-per-pixel */
3084 ". c #010101010101",
3085 "X c #020202020202",
3086 "o c #050505050404",
3088 "+ c #080808080707",
3089 "@ c #090909090808",
3090 "# c #0b0b0b0b0909",
3091 "$ c #0b0b0b0b0b0b",
3092 "% c #0c0c0c0c0b0b",
3093 "& c #0d0d0d0d0a0a",
3094 "* c #0c0c0c0c0c0c",
3095 "= c #0f0f0e0e0c0c",
3096 "- c #0f0f0f0f0e0e",
3098 ": c #101010100e0e",
3099 "> c #121212120f0f",
3100 ", c #101010101010",
3101 "< c #121212121111",
3102 "1 c #131313131111",
3103 "2 c #131313131313",
3104 "3 c #141414141111",
3105 "4 c #141414141212",
3106 "5 c #161616161313",
3107 "6 c #161616161414",
3108 "7 c #1a1a1a1a1717",
3109 "8 c #1d1d1d1d1616",
3110 "9 c #191919191919",
3111 "0 c #1e1e1e1e1e1e",
3112 "q c #20201d1d1313",
3113 "w c #202020201c1c",
3114 "e c #212121211d1d",
3115 "r c #212120201e1e",
3116 "t c #232323231f1f",
3117 "y c #242421211919",
3119 "i c #272727272727",
3120 "p c #2a2a2a2a2727",
3121 "a c #282828282828",
3122 "s c #2a2a2a2a2a2a",
3123 "d c #2c2c2c2c2a2a",
3124 "f c #2f2f2f2f2929",
3125 "g c #2d2d2d2d2d2d",
3127 "j c #313131312b2b",
3128 "k c #303030302f2f",
3129 "l c #333333332f2f",
3130 "z c #353535352e2e",
3131 "x c #383835352626",
3132 "c c #3b3b37372424",
3133 "v c #333333333131",
3135 "n c #343434343434",
3136 "m c #353535353535",
3137 "M c #393937373232",
3138 "N c #383838383737",
3139 "B c #3d3d3d3d3535",
3141 "C c #3e3e3e3e3e3e",
3142 "Z c #42423f3f3636",
3143 "A c #434340403232",
3144 "S c #424242423a3a",
3145 "D c #434343433d3d",
3146 "F c #444444443b3b",
3147 "G c #474744443939",
3148 "H c #4f4f49493838",
3149 "J c #4d4d49493c3c",
3150 "K c #434343434242",
3151 "L c #434343434343",
3152 "P c #474747474242",
3153 "I c #464646464444",
3154 "U c #464646464646",
3156 "T c #4b4b4b4b4444",
3157 "R c #4d4d4c4c4747",
3158 "E c #4e4e4e4e4545",
3159 "W c #494949494949",
3160 "Q c #4b4b4b4b4b4b",
3161 "! c #4e4e4e4e4e4e",
3162 "~ c #4f4f4f4f4e4e",
3163 "^ c #525252524848",
3164 "/ c #525252524949",
3165 "( c #555555554e4e",
3166 ") c #565656564f4f",
3167 "_ c #5a5a59594c4c",
3168 "` c #5f5f5c5c4f4f",
3171 "[ c #585858585151",
3172 "{ c #585858585858",
3173 "} c #595959595858",
3174 "| c #5c5c5c5c5b5b",
3175 " . c #5f5f5e5e5959",
3176 ".. c #6d6d66664d4d",
3177 "X. c #646461615959",
3178 "o. c #71716d6d5b5b",
3179 "O. c #797971715757",
3180 "+. c #626262626262",
3182 "#. c #646464646464",
3183 "$. c #696969696464",
3184 "%. c #6d6d6d6d6464",
3185 "&. c #696969696868",
3186 "*. c #6b6b6b6b6a6a",
3187 "=. c #6d6d6d6d6d6d",
3188 "-. c #6f6f6f6f6f6f",
3189 ";. c #73736f6f6161",
3190 ":. c #707070706b6b",
3191 ">. c #717171716f6f",
3192 ",. c #757575756c6c",
3193 "<. c #797976766c6c",
3194 "1. c #7f7f7a7a6464",
3196 "3. c #757575757171",
3197 "4. c #7b7b7b7b7a7a",
3198 "5. c #7b7b7b7b7b7b",
3199 "6. c #7f7f7f7f7b7b",
3201 "8. c #818179795959",
3202 "9. c #808079795f5f",
3203 "0. c #8f8f82825555",
3204 "q. c #959588885757",
3205 "w. c #9b9b8c8c5a5a",
3206 "e. c #929289896363",
3207 "r. c #9d9d91916464",
3208 "t. c #a9a999995959",
3209 "y. c #abab9b9b5b5b",
3210 "u. c #b3b3a0a05e5e",
3211 "i. c #a9a9a0a07777",
3212 "p. c #aeaea4a47575",
3213 "a. c #b9b9a9a96464",
3214 "s. c #babaa8a86464",
3215 "d. c #b7b7aaaa7c7c",
3216 "f. c #c1c1aeae6767",
3217 "g. c #c4c4b2b26969",
3218 "h. c #c4c4b3b36b6b",
3219 "j. c #c6c6b3b36a6a",
3220 "k. c #c9c9b7b76d6d",
3221 "l. c #ccccb9b96e6e",
3222 "z. c #c1c1b3b37272",
3223 "x. c #c2c2b0b07171",
3224 "c. c #c6c6b6b67777",
3225 "v. c #cacab8b87171",
3226 "b. c #cdcdbcbc7070",
3227 "n. c #d1d1bcbc7070",
3228 "m. c #d1d1bfbf7373",
3229 "M. c #d1d1c0c07676",
3230 "N. c #d9d9c5c57777",
3231 "B. c #d9d9c6c67777",
3232 "V. c #dadac7c77777",
3233 "C. c #d9d9c6c67979",
3234 "Z. c #dbdbc7c77c7c",
3235 "A. c #dbdbc8c87878",
3236 "S. c #dbdbc9c97c7c",
3237 "D. c #dadac8c87e7e",
3238 "F. c #dbdbc9c97e7e",
3239 "G. c #e2e2cdcd7f7f",
3240 "H. c #e4e4d0d07e7e",
3241 "J. c #e4e4d0d07f7f",
3242 "K. c #e4e4d1d17e7e",
3243 "L. c #e6e6d2d27e7e",
3244 "P. c #818181818181",
3245 "I. c #838383838383",
3246 "U. c #848484848484",
3248 "T. c #898987878282",
3249 "R. c #8d8d8d8d8585",
3250 "E. c #8d8d8d8d8787",
3251 "W. c #929292928d8d",
3252 "Q. c #969696968e8e",
3253 "!. c #989895958585",
3254 "~. c #9b9b95958484",
3255 "^. c #929292929292",
3256 "/. c #939393939393",
3259 "_. c #9d9d9d9d9999",
3260 "`. c #9e9e9e9e9a9a",
3261 "'. c #a2a29c9c8484",
3263 "[. c #b8b8b0b09595",
3264 "{. c #a0a0a0a0a0a0",
3266 "|. c #a5a5a5a5a5a5",
3267 " X c #a7a7a7a7a7a7",
3268 ".X c #a9a9a9a9a4a4",
3269 "XX c #aeaeaeaea9a9",
3270 "oX c #babab6b6a9a9",
3271 "OX c #b3b3b3b3b0b0",
3272 "+X c #b3b3b3b3b1b1",
3273 "@X c #b4b4b4b4b2b2",
3274 "#X c #b4b4b4b4b4b4",
3275 "$X c #b6b6b6b6b6b6",
3276 "%X c #b9b9b9b9b1b1",
3278 "*X c #bbbbbbbbbbbb",
3279 "=X c #bcbcbcbcb9b9",
3281 ";X c #c1c1b9b99999",
3282 ":X c #c2c2bebeafaf",
3283 ">X c #d7d7c4c48080",
3284 ",X c #d8d8c7c78e8e",
3285 "<X c #dfdfcbcb8080",
3286 "1X c #dcdccbcb8484",
3287 "2X c #d7d7c8c89696",
3288 "3X c #c4c4c4c4b5b5",
3289 "4X c #c8c8c8c8b9b9",
3290 "5X c #cbcbcbcbbcbc",
3291 "6X c #dfdfd2d2a9a9",
3292 "7X c #e0e0cece8a8a",
3293 "8X c #e3e3d1d18686",
3294 "9X c #e7e7d1d18080",
3295 "0X c #e5e5d1d18787",
3296 "qX c #e7e7d4d48080",
3297 "wX c #e5e5d4d48d8d",
3298 "eX c #e6e6d6d68c8c",
3299 "rX c #eeeed6d68181",
3300 "tX c #efefd7d78282",
3301 "yX c #e8e8d6d68b8b",
3302 "uX c #e8e8d4d48d8d",
3303 "iX c #ececd7d78c8c",
3304 "pX c #efefd8d88181",
3305 "aX c #efefd8d88282",
3306 "sX c #efefd9d98686",
3307 "dX c #eeeedbdb8b8b",
3308 "fX c #eeeedada8d8d",
3309 "gX c #efefdada8e8e",
3310 "hX c #efefdcdc8b8b",
3311 "jX c #efefdddd8f8f",
3312 "kX c #eaeadada9191",
3313 "lX c #e9e9dada9696",
3314 "zX c #ededd9d99090",
3315 "xX c #efefdddd9292",
3316 "cX c #efefdddd9393",
3317 "vX c #ebebdbdb9999",
3318 "bX c #f1f1dcdc8686",
3319 "nX c #f3f3dede8787",
3320 "mX c #f4f4dede8787",
3321 "MX c #f2f2dcdc8a8a",
3322 "NX c #f3f3dfdf8d8d",
3323 "BX c #f0f0dcdc9191",
3324 "VX c #f1f1dcdc9292",
3325 "CX c #f0f0dfdf9292",
3326 "ZX c #f0f0dddd9c9c",
3327 "AX c #f1f1dfdfa1a1",
3328 "SX c #f1f1e0e08e8e",
3329 "DX c #f6f6e3e38f8f",
3330 "FX c #f7f7e5e58f8f",
3331 "GX c #f2f2e0e09090",
3332 "HX c #f2f2e0e09393",
3333 "JX c #f3f3e0e09393",
3334 "KX c #f3f3e2e29090",
3335 "LX c #f1f1e1e19595",
3336 "PX c #f2f2e0e09797",
3337 "IX c #f3f3e2e29595",
3338 "UX c #f3f3e2e29696",
3339 "YX c #f4f4e1e19191",
3340 "TX c #f5f5e1e19090",
3341 "RX c #f5f5e3e39191",
3342 "EX c #f5f5e2e29393",
3343 "WX c #f5f5e3e39393",
3344 "QX c #f4f4e3e39595",
3345 "!X c #f6f6e5e59191",
3346 "~X c #f6f6e4e49393",
3347 "^X c #f6f6e5e59393",
3348 "/X c #f7f7e4e49393",
3349 "(X c #f7f7e6e69191",
3350 ")X c #f6f6e4e49696",
3351 "_X c #f7f7e6e69595",
3352 "`X c #f6f6e6e69797",
3353 "'X c #f1f1e1e19b9b",
3354 "]X c #f2f2e2e29a9a",
3355 "[X c #f4f4e2e29898",
3356 "{X c #f6f6e4e49898",
3357 "}X c #f6f6e4e49999",
3358 "|X c #f6f6e5e59b9b",
3359 " o c #f4f4e4e49d9d",
3360 ".o c #f5f5e4e49c9c",
3361 "Xo c #f6f6e5e59d9d",
3362 "oo c #f7f7e6e69f9f",
3363 "Oo c #f8f8e6e69191",
3364 "+o c #f8f8e7e79191",
3365 "@o c #f8f8e7e79393",
3366 "#o c #f8f8e7e79595",
3367 "$o c #f8f8e7e79696",
3368 "%o c #f9f9e8e89b9b",
3369 "&o c #f9f9e9e99b9b",
3370 "*o c #f9f9e8e89e9e",
3371 "=o c #edede7e7baba",
3372 "-o c #f1f1e3e3a4a4",
3373 ";o c #f3f3e3e3a7a7",
3374 ":o c #f2f2e4e4a1a1",
3375 ">o c #f3f3e4e4a1a1",
3376 ",o c #f3f3e6e6a3a3",
3377 "<o c #f4f4e5e5a0a0",
3378 "1o c #f5f5e4e4a3a3",
3379 "2o c #f5f5e7e7a2a2",
3380 "3o c #f6f6e6e6a0a0",
3381 "4o c #f7f7e7e7a0a0",
3382 "5o c #f7f7e7e7a5a5",
3383 "6o c #f6f6e7e7a7a7",
3384 "7o c #f1f1e6e6adad",
3385 "8o c #f3f3e6e6adad",
3386 "9o c #f3f3e7e7adad",
3387 "0o c #f7f7e8e8a6a6",
3388 "qo c #f7f7e8e8a7a7",
3389 "wo c #f7f7eaeaafaf",
3390 "eo c #f9f9e9e9a7a7",
3391 "ro c #fafaeaeaa6a6",
3392 "to c #f8f8e8e8a9a9",
3393 "yo c #f8f8eaeaaeae",
3394 "uo c #f8f8eaeaafaf",
3395 "io c #fafaececafaf",
3396 "po c #f4f4e7e7b2b2",
3397 "ao c #f5f5e7e7b2b2",
3398 "so c #f4f4e7e7bbbb",
3399 "do c #f7f7ebebb1b1",
3400 "fo c #f4f4e9e9bbbb",
3401 "go c #f6f6ebebbebe",
3402 "ho c #f8f8ebebb1b1",
3403 "jo c #f9f9ebebb1b1",
3404 "ko c #fafaededb7b7",
3405 "lo c #f8f8ececb8b8",
3406 "zo c #f8f8ececb9b9",
3407 "xo c #f8f8ededbaba",
3408 "co c #fafaeeeebbbb",
3409 "vo c #c2c2c2c2c1c1",
3410 "bo c #c3c3c3c3c1c1",
3412 "mo c #c3c3c3c3c2c2",
3413 "Mo c #c7c7c7c7c5c5",
3414 "No c #cacacacac4c4",
3416 "Vo c #cacacacacaca",
3417 "Co c #cbcbcbcbcbcb",
3418 "Zo c #cfcfcfcfc8c8",
3420 "So c #cfcfcfcfcece",
3421 "Do c #d8d8d8d8cdcd",
3422 "Fo c #ddddd9d9caca",
3423 "Go c #d4d4d4d4d1d1",
3424 "Ho c #d7d7d7d7d3d3",
3425 "Jo c #d5d5d5d5d5d5",
3427 "Lo c #dadadadad8d8",
3428 "Po c #dadadadadada",
3430 "Uo c #dddddddddddd",
3431 "Yo c #dededededddd",
3432 "To c #dfdfdfdfdede",
3433 "Ro c #e0e0e0e0d7d7",
3434 "Eo c #e5e5e5e5dddd",
3435 "Wo c #f3f3eaeac1c1",
3436 "Qo c #f4f4e9e9c1c1",
3437 "!o c #f5f5e9e9c2c2",
3438 "~o c #f4f4e9e9c4c4",
3439 "^o c #f7f7eeeec3c3",
3440 "/o c #f4f4eaeac9c9",
3441 "(o c #f4f4eaeacaca",
3442 ")o c #f9f9efefcbcb",
3443 "_o c #f8f8efefcfcf",
3444 "`o c #f7f7efefd0d0",
3445 "'o c #f7f7eeeed9d9",
3446 "]o c #f7f7efefd8d8",
3447 "[o c #f9f9f0f0c7c7",
3448 "{o c #fafaf3f3d0d0",
3449 "}o c #fafaf2f2d2d2",
3450 "|o c #fafaf2f2d3d3",
3451 " O c #f8f8f1f1dbdb",
3452 ".O c #f9f9f1f1dbdb",
3453 "XO c #f8f8f2f2dbdb",
3454 "oO c #f9f9f2f2dbdb",
3455 "OO c #fafaf3f3dada",
3456 "+O c #fafaf3f3dbdb",
3457 "@O c #f8f8f1f1dcdc",
3458 "#O c #f8f8f2f2dede",
3459 "$O c #fafaf4f4d9d9",
3460 "%O c #fafaf5f5dede",
3461 "&O c #e7e7e7e7e1e1",
3462 "*O c #e4e4e4e4e4e4",
3463 "=O c #e9e9e9e9e2e2",
3464 "-O c #ebebebebe6e6",
3466 ":O c #edededede8e8",
3467 ">O c #ecececececec",
3469 "<O c #efefefefeeee",
3470 "1O c #efefefefefef",
3471 "2O c #f1f1f1f1ecec",
3472 "3O c #f2f2f2f2eeee",
3473 "4O c #fafaf3f3e5e5",
3474 "5O c #f9f9f4f4e0e0",
3475 "6O c #f9f9f4f4e2e2",
3476 "7O c #f9f9f4f4e3e3",
3477 "8O c #f9f9f5f5e3e3",
3478 "9O c #fafaf4f4e1e1",
3479 "0O c #f9f9f4f4e5e5",
3480 "qO c #f9f9f5f5e4e4",
3481 "wO c #f9f9f5f5e5e5",
3482 "eO c #f9f9f4f4e6e6",
3483 "rO c #f9f9f4f4e7e7",
3484 "tO c #f9f9f5f5e6e6",
3485 "yO c #f9f9f6f6e5e5",
3486 "uO c #f9f9f6f6e7e7",
3487 "iO c #fafaf5f5e4e4",
3488 "pO c #fafaf5f5e5e5",
3489 "aO c #fafaf5f5e6e6",
3490 "sO c #fafaf5f5e7e7",
3491 "dO c #fbfbf5f5e6e6",
3492 "fO c #fafaf6f6e6e6",
3493 "gO c #fafaf6f6e7e7",
3494 "hO c #fbfbf6f6e7e7",
3495 "jO c #f9f9f6f6eaea",
3496 "kO c #fafaf5f5e8e8",
3497 "lO c #fafaf6f6e8e8",
3498 "zO c #fafaf6f6e9e9",
3499 "xO c #fafaf7f7eaea",
3500 "cO c #fafaf7f7ebeb",
3501 "vO c #fbfbf7f7eaea",
3502 "bO c #fbfbf7f7ecec",
3503 "nO c #fbfbf7f7eded",
3504 "mO c #fafaf8f8ecec",
3505 "MO c #fbfbf8f8eded",
3506 "NO c #fbfbf8f8eeee",
3507 "BO c #fbfbf9f9efef",
3509 "CO c #f1f1f1f1f1f1",
3510 "ZO c #f4f4f4f4f0f0",
3511 "AO c #f4f4f4f4f1f1",
3512 "SO c #f5f5f5f5f2f2",
3513 "DO c #f6f6f6f6f3f3",
3514 "FO c #f4f4f4f4f4f4",
3516 "HO c #f6f6f6f6f4f4",
3517 "JO c #f7f7f7f7f5f5",
3518 "KO c #f6f6f6f6f6f6",
3520 "PO c #f8f8f8f8f5f5",
3521 "IO c #f8f8f8f8f6f6",
3522 "UO c #f8f8f8f8f7f7",
3523 "YO c #f9f9f9f9f7f7",
3524 "TO c #fafaf9f9f4f4",
3525 "RO c #fafafafaf6f6",
3526 "EO c #fbfbfbfbf7f7",
3527 "WO c #fefefcfcf0f0",
3528 "QO c #fefefcfcf1f1",
3529 "!O c #fefefcfcf3f3",
3530 "~O c #fefefcfcf4f4",
3531 "^O c #fefefcfcf5f5",
3532 "/O c #fefefdfdf5f5",
3533 "(O c #fefefdfdf6f6",
3534 ")O c #fefefdfdf7f7",
3535 "_O c #f9f9f9f9f8f8",
3536 "`O c #f9f9f9f9f9f9",
3537 "'O c #fafafafaf8f8",
3538 "]O c #fafafafaf9f9",
3539 "[O c #fbfbfbfbf8f8",
3540 "{O c #fbfbfbfbf9f9",
3542 "|O c #fbfbfbfbfafa",
3543 " + c #fbfbfbfbfbfb",
3544 ".+ c #fcfcfcfcf9f9",
3545 "X+ c #fcfcfcfcfafa",
3546 "o+ c #fcfcfcfcfbfb",
3547 "O+ c #fefefdfdf8f8",
3548 "++ c #fefefdfdf9f9",
3549 "@+ c #fefefdfdfafa",
3550 "#+ c #fefefdfdfbfb",
3551 "$+ c #fefefefefafa",
3552 "%+ c #fefefefefbfb",
3554 "*+ c #fdfdfdfdfcfc",
3555 "=+ c #fdfdfdfdfdfd",
3556 "-+ c #fefefefefcfc",
3557 ";+ c #fefefefefdfd",
3558 ":+ c #fefefefefefe",
3562 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+,+,+,+,+,+,+,+,+",
3563 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+(O>+>+>+>+>+>+>+>+,+,+,+,+,+,+",
3564 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+QOO+>+>+>+>+>+>+>+++!OO+>+>+>+>+>+>+>+>+,+,+,+,+,+",
3565 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+++/O$+>+>+>+>+>+>+>+(O(O/O>+>+>+>+>+>+>+>+>+,+,+,+,+",
3566 ",+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+$+)OO+>+>+>+>+>+>+%+$+++O+>+>+>+>+>+>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o+o+o+'O++@+O+%+>+>+>+>+>+>+>+>+,+",
3598 ",+,+,+,+,+,+,+,+,+,+,+,+,+>+Eo:O3OAO F v OX1OSo&.K ) i + +|O|O|O]O>+%+(O@+>+>+>+>+>+>+>+,+,+",
3599 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+5XEo-O2O* 5 > f d `.-.*. n ]O]O]O'O'O_O>+>+++O+>+>+>+>+>+>+,+,+,+",
3600 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].5XRo-OAo : e w N &.2. UOYOYOYOUOIOPO>+>+>+>+>+>+>+>+>+,+,+,+,+",
3601 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].Do&O3 @ 5 1 # j l k , JOJOJOHOHODOSO>+>+>+>+>+>+>+,+,+,+,+,+,+",
3602 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].5XE . 3 7 % : PoUoAOAOAOAOZO3O3O>+>+>+>+>+>+,+,+,+,+,+,+,+",
3603 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].X X . X * -O:O2O2O2O2O2O:O-O-O>+>+>+>+,+,+,+,+,+,+,+,+,+",
3604 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].3X4XDoRoRo=O=O=O=O=ORoRoDo>+>+,+,+,+,+,+,+,+,+,+,+,+",
3605 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].].].].].].5X5X5X5X5X].].].,+,+,+,+,+,+,+,+,+,+,+,+,+",
3606 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].].].].].].].].].].].].].].,+,+,+,+,+,+,+,+,+,+,+,+,+",
3607 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].].].].].].].].].].].].].].,+,+,+,+,+,+,+,+,+,+,+,+,+",
3608 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+",
3609 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+"
3613 static char *warning_xpm
[] = {
3614 /* columns rows colors chars-per-pixel */
3617 ". c #010100000000",
3618 "X c #010101010000",
3619 "o c #010101010101",
3620 "O c #020201010000",
3621 "+ c #030301010000",
3622 "@ c #020202020000",
3623 "# c #020202020202",
3625 "% c #040403030000",
3626 "& c #050504040000",
3627 "* c #070704040000",
3628 "= c #040404040404",
3630 "; c #060606060606",
3631 ": c #090907070000",
3632 "> c #090907070101",
3633 ", c #0e0e03030202",
3634 "< c #0d0d04040303",
3635 "1 c #0a0a08080000",
3636 "2 c #0b0b09090000",
3637 "3 c #0e0e0b0b0000",
3639 "5 c #090909090909",
3641 "7 c #0b0b0b0b0b0b",
3643 "9 c #171704040202",
3644 "0 c #10100d0d0101",
3645 "q c #13130f0f0000",
3646 "w c #13130f0f0101",
3647 "e c #1c1c07070505",
3648 "r c #151510100101",
3649 "t c #191913130000",
3650 "y c #1d1d16160202",
3651 "u c #1e1e17170202",
3652 "i c #111111111111",
3653 "p c #161616161616",
3654 "a c #212107070505",
3655 "s c #222207070505",
3656 "d c #232307070404",
3657 "f c #232307070505",
3658 "g c #262608080606",
3659 "h c #2b2b0a0a0707",
3660 "j c #2c2c08080505",
3661 "k c #2e2e08080505",
3662 "l c #2e2e09090606",
3663 "z c #2e2e0a0a0808",
3664 "x c #24241c1c0303",
3665 "c c #25251d1d0202",
3666 "v c #25251d1d0303",
3667 "b c #27271e1e0202",
3668 "n c #3b3b0b0b0707",
3669 "m c #3b3b0c0c0909",
3670 "M c #3c3c0c0c0909",
3671 "N c #3d3d0c0c0909",
3672 "B c #3e3e0c0c0808",
3673 "V c #292920200303",
3674 "C c #2c2c23230303",
3675 "Z c #313126260404",
3676 "A c #313126260505",
3677 "S c #333327270404",
3678 "D c #38382c2c0505",
3679 "F c #3c3c2e2e0505",
3681 "H c #41410c0c0707",
3682 "J c #42420c0c0606",
3683 "K c #42420c0c0707",
3684 "L c #42420d0d0808",
3685 "P c #44440e0e0909",
3686 "I c #44440e0e0a0a",
3687 "U c #47470e0e0909",
3688 "Y c #46460e0e0a0a",
3689 "T c #49490d0d0707",
3690 "R c #4d4d0d0d0707",
3691 "E c #49490e0e0909",
3692 "W c #49490e0e0a0a",
3693 "Q c #4d4d10100c0c",
3694 "! c #52520e0e0707",
3695 "~ c #575711110909",
3696 "^ c #5a5a12120d0d",
3697 "/ c #5d5d11110b0b",
3698 "( c #5e5e11110a0a",
3699 ") c #5c5c12120d0d",
3700 "_ c #5e5e12120c0c",
3701 "` c #404031310404",
3702 "' c #404031310505",
3703 "] c #414132320606",
3704 "[ c #424233330505",
3705 "{ c #454535350606",
3706 "} c #4b4b3a3a0707",
3707 "| c #4e4e3d3d0606",
3708 " . c #51513f3f0707",
3709 ".. c #606012120b0b",
3710 "X. c #636311110909",
3711 "o. c #616113130e0e",
3712 "O. c #646412120909",
3713 "+. c #6a6a13130b0b",
3714 "@. c #6e6e13130a0a",
3715 "#. c #6e6e14140a0a",
3716 "$. c #6f6f14140b0b",
3717 "%. c #6d6d16160e0e",
3718 "&. c #6e6e15150c0c",
3719 "*. c #717115150d0d",
3720 "=. c #727215150d0d",
3721 "-. c #737315150c0c",
3722 ";. c #737316160e0e",
3723 ":. c #777715150c0c",
3724 ">. c #787815150b0b",
3725 ",. c #787815150c0c",
3726 "<. c #737317171111",
3727 "1. c #7a7a17171010",
3728 "2. c #787818181212",
3729 "3. c #7b7b19191212",
3730 "4. c #525240400707",
3731 "5. c #676750500909",
3732 "6. c #696952520a0a",
3733 "7. c #717157570a0a",
3734 "8. c #74745a5a0c0c",
3735 "9. c #7a7a61610909",
3736 "0. c #7c7c61610c0c",
3737 "q. c #858517170c0c",
3738 "w. c #868618180d0d",
3739 "e. c #8a8a18180c0c",
3740 "r. c #8a8a19190f0f",
3741 "t. c #808018181010",
3742 "y. c #80801a1a1313",
3743 "u. c #868619191010",
3744 "i. c #86861b1b1313",
3745 "p. c #87871b1b1212",
3746 "a. c #85851b1b1414",
3747 "s. c #88881a1a1111",
3748 "d. c #89891a1a1111",
3749 "f. c #8b8b1c1c1515",
3750 "g. c #8d8d1b1b1212",
3751 "h. c #8f8f1b1b1010",
3752 "j. c #8c8c1c1c1414",
3753 "k. c #90901a1a0f0f",
3754 "l. c #91911a1a0f0f",
3755 "z. c #92921a1a0e0e",
3756 "x. c #9b9b1b1b0e0e",
3757 "c. c #9a9a1c1c0f0f",
3758 "v. c #93931b1b1010",
3759 "b. c #90901e1e1212",
3760 "n. c #97971e1e1515",
3761 "m. c #99991d1d1313",
3762 "M. c #98981d1d1414",
3763 "N. c #98981f1f1717",
3764 "B. c #99991f1f1616",
3765 "V. c #9a9a1f1f1515",
3766 "C. c #9b9b1e1e1414",
3767 "Z. c #9b9b1f1f1717",
3768 "A. c #9c9c1e1e1313",
3769 "S. c #9d9d1e1e1212",
3770 "D. c #9e9e1d1d1111",
3771 "F. c #9f9f1d1d1010",
3772 "G. c #9f9f1e1e1313",
3773 "H. c #9d9d1f1f1515",
3774 "J. c #9c9c1f1f1616",
3775 "K. c #9e9e1e1e1414",
3776 "L. c #a0a01d1d0f0f",
3777 "P. c #a1a11c1c0e0e",
3778 "I. c #a2a21d1d0f0f",
3779 "U. c #a3a31c1c0e0e",
3780 "Y. c #a3a31d1d0f0f",
3781 "T. c #a4a41c1c0e0e",
3782 "R. c #a6a61d1d0f0f",
3783 "E. c #a7a71d1d0e0e",
3784 "W. c #a9a91d1d0f0f",
3785 "Q. c #a1a11d1d1010",
3786 "!. c #a1a11d1d1111",
3787 "~. c #a0a01e1e1212",
3788 "^. c #a2a21d1d1010",
3789 "/. c #b3b31f1f0f0f",
3790 "(. c #b2b21f1f1010",
3791 "). c #b9b920200f0f",
3792 "_. c #b6b621211111",
3793 "`. c #b7b720201010",
3794 "'. c #baba20201010",
3795 "]. c #bdbd21211111",
3796 "[. c #bfbf22221212",
3797 "{. c #abab42421616",
3798 "}. c #b1b140401010",
3799 "|. c #b9b95b5b1313",
3800 " X c #bbbb5b5b1111",
3801 ".X c #bfbf6f6f1616",
3802 "XX c #92924f4f4848",
3803 "oX c #c6c622221010",
3804 "OX c #c8c823231212",
3805 "+X c #caca23231010",
3806 "@X c #cdcd25251313",
3807 "#X c #d1d124241212",
3808 "$X c #d2d224241111",
3809 "%X c #d2d226261414",
3810 "&X c #d5d525251111",
3811 "*X c #d4d425251313",
3812 "=X c #d9d926261313",
3813 "-X c #dbdb26261212",
3814 ";X c #d8d827271515",
3815 ":X c #dcdc26261313",
3816 ">X c #dede26261212",
3817 ",X c #e0e027271212",
3818 "<X c #e3e327271313",
3819 "1X c #e6e627271212",
3820 "2X c #e4e42e2e1a1a",
3821 "3X c #ebeb27271313",
3822 "4X c #ebeb28281212",
3823 "5X c #e8e828281414",
3824 "6X c #eaea29291515",
3825 "7X c #eaea2a2a1616",
3826 "8X c #ecec29291313",
3827 "9X c #eeee29291313",
3828 "0X c #eded29291414",
3829 "qX c #ecec2a2a1616",
3830 "wX c #efef29291414",
3831 "eX c #f1f129291212",
3832 "rX c #f3f329291212",
3833 "tX c #f4f429291313",
3834 "yX c #f5f529291313",
3835 "uX c #f5f52a2a1313",
3836 "iX c #f6f629291313",
3837 "pX c #f7f729291313",
3838 "aX c #f4f429291414",
3839 "sX c #f4f42a2a1414",
3840 "dX c #f6f62b2b1414",
3841 "fX c #c1c169691616",
3842 "gX c #c2c26f6f1212",
3843 "hX c #c1c16f6f1414",
3844 "jX c #c5c56b6b1212",
3845 "kX c #c5c57e7e1616",
3846 "lX c #c7c77e7e1414",
3847 "zX c #c8c87e7e1414",
3848 "xX c #b9b993930e0e",
3849 "cX c #bdbd93931212",
3850 "vX c #c9c985851717",
3851 "bX c #cbcb86861717",
3852 "nX c #cdcd87871313",
3853 "mX c #cccc86861414",
3854 "MX c #cccc86861515",
3855 "NX c #cbcb89891414",
3856 "BX c #cfcf88881212",
3857 "VX c #cfcf8c8c1212",
3858 "CX c #c3c39b9b0f0f",
3859 "ZX c #c4c498981313",
3860 "AX c #c7c79a9a1414",
3861 "SX c #cbcb9e9e1313",
3862 "DX c #d1d189891212",
3863 "FX c #d2d288881414",
3864 "GX c #d0d08c8c1313",
3865 "HX c #d7d7a8a81616",
3866 "JX c #d7d7a8a81a1a",
3867 "KX c #d8d8a5a51c1c",
3868 "LX c #dadaaaaa1616",
3869 "PX c #dadaaaaa1717",
3870 "IX c #dbdbaaaa1616",
3871 "UX c #dbdbabab1717",
3872 "YX c #dcdcabab1515",
3873 "TX c #dcdcaeae1111",
3874 "RX c #dedeacac1313",
3875 "EX c #dfdfadad1313",
3876 "WX c #d8d8a9a91919",
3877 "QX c #d8d8a9a91a1a",
3878 "!X c #d9d9aaaa1919",
3879 "~X c #dfdfb1b11212",
3880 "^X c #e0e0adad1111",
3881 "/X c #e1e1aeae1212",
3882 "(X c #e0e0aeae1414",
3883 ")X c #e0e0b2b21313",
3884 "_X c #808080808080",
3887 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3888 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3889 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3890 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3891 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X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.G.G.G.K.K.K.H.H.H.H.J.J.J.J.Z.Z.N.^ o `X`X`X`X",
3924 "`X`X`X`X`X`X`X`X - # # , d l H K ~ / ..&.;.;.;.t.s.s.s.s.p.p.p.i.i.i.i.a.a.y.<.Q # ; `X`X`X`X",
3925 "`X`X`X`X`X`X`X`X # # # # # # # # # < s a a f L B B B B B B N N N M M M m z e # `X`X`X`X",
3926 "`X`X`X`X`X`X`X`X $ $ # # # # # # # # # # # # # # # # # # # # # # # # # o `X`X`X`X",
3927 "`X`X`X`X`X`X`X`X`X 8 6 o o = = $ $ # # # # # # # # # # # # # # $ $ `X`X`X`X",
3928 "`X`X`X`X`X`X`X`X`X`X`X`X`X 5 5 4 `X`X`X`X",
3929 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X `X`X`X`X`X`X",
3930 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3931 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3932 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3933 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X",
3934 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X"
3938 static char *question_xpm
[] = {
3939 /* columns rows colors chars-per-pixel */
3943 "X c #010101010101",
3944 "o c #000000000202",
3945 "O c #000001010202",
3946 "+ c #010101010202",
3947 "@ c #010102020303",
3948 "# c #020202020202",
3949 "$ c #020202020303",
3951 "& c #030305050707",
3952 "* c #040404040404",
3953 "= c #040404040606",
3954 "- c #070707070707",
3955 "; c #060607070808",
3956 ": c #060608080a0a",
3957 "> c #060608080b0b",
3959 "< c #0d0d0d0d0c0c",
3961 "2 c #191915150d0d",
3964 "5 c #22221c1c1212",
3965 "6 c #393939393939",
3966 "7 c #2b2b3d3d6161",
3967 "8 c #353545456464",
3968 "9 c #65654f4f2424",
3969 "0 c #6b6b55552727",
3970 "q c #6e6e55552626",
3971 "w c #707056562727",
3972 "e c #717159592929",
3973 "r c #73735f5f3b3b",
3974 "t c #7c7c62622d2d",
3975 "y c #7f7f69694141",
3977 "i c #727272727272",
3978 "p c #737375757979",
3980 "s c #808063632d2d",
3981 "d c #828266662f2f",
3982 "f c #87876a6a3131",
3983 "g c #8c8c6d6d3131",
3984 "h c #929273733535",
3985 "j c #939374743535",
3986 "k c #949475753636",
3987 "l c #979777773737",
3988 "z c #99997a7a3b3b",
3989 "x c #9d9d7d7d3a3a",
3990 "c c #a2a27f7f3b3b",
3991 "v c #92927c7c5252",
3992 "b c #a6a682823c3c",
3993 "n c #a8a884843d3d",
3994 "m c #aaaa86863e3e",
3995 "M c #a6a687874848",
3996 "N c #a3a38e8e5555",
3997 "B c #a4a48b8b5a5a",
3998 "V c #b3b38d8d4040",
3999 "C c #b8b892924343",
4000 "Z c #b9b993934444",
4001 "A c #bebe95954444",
4002 "S c #bebe9b9b5353",
4003 "D c #bebea3a36363",
4004 "F c #bfbfa1a16a6a",
4005 "G c #bebea2a27272",
4006 "H c #c0c097974545",
4007 "J c #c3c39f9f5555",
4008 "K c #c3c39f9f5757",
4009 "L c #c9c9a4a45b5b",
4010 "P c #d2d2a6a64c4c",
4011 "I c #d2d2a6a64d4d",
4012 "U c #d8d8abab4e4e",
4013 "Y c #d8d8acac5858",
4014 "T c #d8d8acac5b5b",
4015 "R c #d8d8b1b15f5f",
4016 "E c #c3c3a4a46666",
4017 "W c #c6c6a7a76a6a",
4018 "Q c #c9c9acac7373",
4019 "! c #d2d2b0b06c6c",
4020 "~ c #d8d8b1b16363",
4021 "^ c #d8d8b1b16565",
4022 "/ c #dcdcb4b46363",
4023 "( c #d8d8b5b56e6e",
4024 ") c #d8d8b6b66e6e",
4025 "_ c #dadab8b87272",
4026 "` c #ddddbcbc7474",
4027 "' c #d8d8baba7b7b",
4028 "] c #f7f7c3c35a5a",
4029 "[ c #f7f7c9c96d6d",
4030 "{ c #f7f7cfcf7e7e",
4031 "} c #aaaaaaaaaaaa",
4032 "| c #d8d8bebe8686",
4033 " . c #dcdcc4c49494",
4034 ".. c #f7f7d4d48c8c",
4035 "X. c #f7f7d8d89999",
4036 "o. c #f7f7dcdca5a5",
4037 "O. c #f7f7dfdfafaf",
4038 "+. c #f7f7e2e2b8b8",
4039 "@. c #f7f7e5e5c0c0",
4043 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4044 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4045 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4046 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4047 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4048 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.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.$.$.$.$.$.$.$.$. ] { ] b a #.#.$. B ] ) ) U 9 % } #.$.$.$.$.$.$.$.$.$.$.$.$.",
4061 "$.$.$.$.$.$.$.$.$.$.$.$.$. / R A d a #.$. E [ ' U b a } #.$.$.$.$.$.$.$.$.$.$.$.$.",
4062 "$.$.$.$.$.$.$.$.$.$.$.$.$. a #.$. g ! | R U e + a } #.$.$.$.$.$.$.$.$.$.$.$.$.",
4063 "$.$.$.$.$.$.$.$.$.$.$.$.$. : a #. Z ..| U A 3 a #.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4064 "$.$.$.$.$.$.$.$.$.$.$.$.$.$. a a a a a a - V [ | U U $ a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4065 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. a a a a #. ] ..( Y z . 3 a #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4066 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. 0 J ._ Q F 2 3 a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4067 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. f ! ( L W y & a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4068 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. l ' ^ T G . p } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4069 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. H ' ~ T v = a #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4070 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. U | R U r a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4071 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. S ' U A X a #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4072 "$.$.$.$.$.$.$.$.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.$.$. + a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4084 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. , , , a a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4085 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. a a a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4086 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4087 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4088 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4089 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4090 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$."
4094 wxIcon
wxGTKRenderer::GetStdIcon(int which
) const
4098 case wxICON_INFORMATION
:
4099 return wxIcon(info_xpm
);
4101 case wxICON_QUESTION
:
4102 return wxIcon(question_xpm
);
4104 case wxICON_EXCLAMATION
:
4105 return wxIcon(warning_xpm
);
4108 wxFAIL_MSG(wxT("requested non existent standard icon"));
4109 // still fall through
4112 return wxIcon(error_xpm
);
4117 // ============================================================================
4119 // ============================================================================
4121 // ----------------------------------------------------------------------------
4122 // wxGTKInputHandler
4123 // ----------------------------------------------------------------------------
4125 wxGTKInputHandler::wxGTKInputHandler(wxGTKRenderer
*renderer
)
4127 m_renderer
= renderer
;
4130 bool wxGTKInputHandler::HandleKey(wxInputConsumer
*control
,
4131 const wxKeyEvent
& event
,
4137 bool wxGTKInputHandler::HandleMouse(wxInputConsumer
*control
,
4138 const wxMouseEvent
& event
)
4140 // clicking on the control gives it focus
4141 if ( event
.ButtonDown() && wxWindow::FindFocus() != control
->GetInputWindow() )
4143 control
->GetInputWindow()->SetFocus();
4151 bool wxGTKInputHandler::HandleMouseMove(wxInputConsumer
*control
,
4152 const wxMouseEvent
& event
)
4154 if ( event
.Entering() )
4156 control
->GetInputWindow()->SetCurrent(TRUE
);
4158 else if ( event
.Leaving() )
4160 control
->GetInputWindow()->SetCurrent(FALSE
);
4170 // ----------------------------------------------------------------------------
4171 // wxGTKCheckboxInputHandler
4172 // ----------------------------------------------------------------------------
4174 bool wxGTKCheckboxInputHandler::HandleKey(wxInputConsumer
*control
,
4175 const wxKeyEvent
& event
,
4180 int keycode
= event
.GetKeyCode();
4181 if ( keycode
== WXK_SPACE
|| keycode
== WXK_RETURN
)
4183 control
->PerformAction(wxACTION_CHECKBOX_TOGGLE
);
4192 // ----------------------------------------------------------------------------
4193 // wxGTKTextCtrlInputHandler
4194 // ----------------------------------------------------------------------------
4196 bool wxGTKTextCtrlInputHandler::HandleKey(wxInputConsumer
*control
,
4197 const wxKeyEvent
& event
,
4200 // handle only GTK-specific text bindings here, the others are handled in
4204 wxControlAction action
;
4205 int keycode
= event
.GetKeyCode();
4206 if ( event
.ControlDown() )
4211 action
= wxACTION_TEXT_HOME
;
4215 action
= wxACTION_TEXT_LEFT
;
4219 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_RIGHT
;
4223 action
= wxACTION_TEXT_END
;
4227 action
= wxACTION_TEXT_RIGHT
;
4231 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_LEFT
;
4235 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_END
;
4239 action
= wxACTION_TEXT_DOWN
;
4243 action
= wxACTION_TEXT_UP
;
4247 //delete the entire line
4248 control
->PerformAction(wxACTION_TEXT_HOME
);
4249 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_END
;
4253 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_WORD_LEFT
;
4257 else if ( event
.AltDown() )
4262 action
= wxACTION_TEXT_WORD_LEFT
;
4266 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_WORD_RIGHT
;
4270 action
= wxACTION_TEXT_WORD_RIGHT
;
4275 if ( action
!= wxACTION_NONE
)
4277 control
->PerformAction(action
);
4283 return wxStdTextCtrlInputHandler::HandleKey(control
, event
, pressed
);