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"
35 #include "wx/bmpbuttn.h"
36 #include "wx/button.h"
37 #include "wx/checkbox.h"
38 #include "wx/listbox.h"
39 #include "wx/checklst.h"
40 #include "wx/combobox.h"
41 #include "wx/scrolbar.h"
42 #include "wx/slider.h"
43 #include "wx/textctrl.h"
44 #include "wx/toolbar.h"
46 #include "wx/settings.h"
49 #include "wx/notebook.h"
50 #include "wx/spinbutt.h"
52 #include "wx/univ/renderer.h"
53 #include "wx/univ/inphand.h"
54 #include "wx/univ/colschem.h"
55 #include "wx/univ/theme.h"
56 #include "wx/toplevel.h"
58 class WXDLLEXPORT wxGTKMenuGeometryInfo
;
60 // ----------------------------------------------------------------------------
61 // constants (to be removed, for testing only)
62 // ----------------------------------------------------------------------------
64 static const size_t BORDER_THICKNESS
= 1;
66 // ----------------------------------------------------------------------------
67 // wxGTKRenderer: draw the GUI elements in GTK style
68 // ----------------------------------------------------------------------------
70 class wxGTKRenderer
: public wxRenderer
73 wxGTKRenderer(const wxColourScheme
*scheme
);
75 // implement the base class pure virtuals
76 virtual void DrawBackground(wxDC
& dc
,
80 virtual void DrawLabel(wxDC
& dc
,
81 const wxString
& label
,
84 int alignment
= wxALIGN_LEFT
| wxALIGN_TOP
,
86 wxRect
*rectBounds
= NULL
);
87 virtual void DrawButtonLabel(wxDC
& dc
,
88 const wxString
& label
,
89 const wxBitmap
& image
,
92 int alignment
= wxALIGN_LEFT
| wxALIGN_TOP
,
94 wxRect
*rectBounds
= NULL
);
95 virtual void DrawBorder(wxDC
& dc
,
99 wxRect
*rectIn
= (wxRect
*)NULL
);
100 virtual void DrawHorizontalLine(wxDC
& dc
,
101 wxCoord y
, wxCoord x1
, wxCoord x2
);
102 virtual void DrawVerticalLine(wxDC
& dc
,
103 wxCoord x
, wxCoord y1
, wxCoord y2
);
104 virtual void DrawFrame(wxDC
& dc
,
105 const wxString
& label
,
108 int alignment
= wxALIGN_LEFT
,
109 int indexAccel
= -1);
110 virtual void DrawTextBorder(wxDC
& dc
,
114 wxRect
*rectIn
= (wxRect
*)NULL
);
115 virtual void DrawButtonBorder(wxDC
& dc
,
118 wxRect
*rectIn
= (wxRect
*)NULL
);
119 virtual void DrawArrow(wxDC
& dc
,
123 virtual void DrawScrollbarArrow(wxDC
& dc
,
127 virtual void DrawScrollbarThumb(wxDC
& dc
,
128 wxOrientation orient
,
131 virtual void DrawScrollbarShaft(wxDC
& dc
,
132 wxOrientation orient
,
135 virtual void DrawScrollCorner(wxDC
& dc
,
137 virtual void DrawItem(wxDC
& dc
,
138 const wxString
& label
,
141 virtual void DrawCheckItem(wxDC
& dc
,
142 const wxString
& label
,
143 const wxBitmap
& bitmap
,
146 virtual void DrawCheckButton(wxDC
& dc
,
147 const wxString
& label
,
148 const wxBitmap
& bitmap
,
151 wxAlignment align
= wxALIGN_LEFT
,
152 int indexAccel
= -1);
154 virtual void DrawRadioButton(wxDC
& dc
,
155 const wxString
& label
,
156 const wxBitmap
& bitmap
,
159 wxAlignment align
= wxALIGN_LEFT
,
160 int indexAccel
= -1);
162 virtual void DrawToolBarButton(wxDC
& dc
,
163 const wxString
& label
,
164 const wxBitmap
& bitmap
,
168 virtual void DrawTextLine(wxDC
& dc
,
169 const wxString
& text
,
174 virtual void DrawLineWrapMark(wxDC
& dc
, const wxRect
& rect
);
175 virtual void DrawTab(wxDC
& dc
,
178 const wxString
& label
,
179 const wxBitmap
& bitmap
= wxNullBitmap
,
181 int indexAccel
= -1);
183 virtual void DrawSliderShaft(wxDC
& dc
,
185 wxOrientation orient
,
187 wxRect
*rectShaft
= NULL
);
188 virtual void DrawSliderThumb(wxDC
& dc
,
190 wxOrientation orient
,
192 virtual void DrawSliderTicks(wxDC
& dc
,
194 const wxSize
& sizeThumb
,
195 wxOrientation orient
,
201 // we don't have the ticks in GTK version
204 virtual void DrawMenuBarItem(wxDC
& dc
,
206 const wxString
& label
,
208 int indexAccel
= -1);
209 virtual void DrawMenuItem(wxDC
& dc
,
211 const wxMenuGeometryInfo
& geometryInfo
,
212 const wxString
& label
,
213 const wxString
& accel
,
214 const wxBitmap
& bitmap
= wxNullBitmap
,
216 int indexAccel
= -1);
217 virtual void DrawMenuSeparator(wxDC
& dc
,
219 const wxMenuGeometryInfo
& geomInfo
);
221 virtual void DrawStatusField(wxDC
& dc
,
223 const wxString
& label
,
226 virtual void DrawFrameTitleBar(wxDC
& dc
,
228 const wxString
& title
,
231 int specialButton
= 0,
232 int specialButtonFlag
= 0);
233 virtual void DrawFrameBorder(wxDC
& dc
,
236 virtual void DrawFrameBackground(wxDC
& dc
,
239 virtual void DrawFrameTitle(wxDC
& dc
,
241 const wxString
& title
,
243 virtual void DrawFrameIcon(wxDC
& dc
,
247 virtual void DrawFrameButton(wxDC
& dc
,
248 wxCoord x
, wxCoord y
,
253 virtual wxRect
GetFrameClientArea(const wxRect
& rect
, int flags
) const;
254 virtual wxSize
GetFrameTotalSize(const wxSize
& clientSize
, int flags
) const;
255 virtual wxSize
GetFrameMinSize(int flags
) const;
256 virtual wxSize
GetFrameIconSize() const;
257 virtual int HitTestFrame(const wxRect
& rect
, const wxPoint
& pt
, int flags
) const;
259 virtual wxIcon
GetStdIcon(int which
) const;
261 virtual void GetComboBitmaps(wxBitmap
*bmpNormal
,
263 wxBitmap
*bmpPressed
,
264 wxBitmap
*bmpDisabled
);
266 virtual void AdjustSize(wxSize
*size
, const wxWindow
*window
);
267 virtual wxRect
GetBorderDimensions(wxBorder border
) const;
268 virtual bool AreScrollbarsInsideBorder() const;
270 // geometry and hit testing
271 virtual wxSize
GetScrollbarArrowSize() const
272 { return m_sizeScrollbarArrow
; }
273 virtual wxRect
GetScrollbarRect(const wxScrollBar
*scrollbar
,
274 wxScrollBar::Element elem
,
275 int thumbPos
= -1) const;
276 virtual wxCoord
GetScrollbarSize(const wxScrollBar
*scrollbar
);
277 virtual wxHitTest
HitTestScrollbar(const wxScrollBar
*scrollbar
,
278 const wxPoint
& pt
) const;
279 virtual wxCoord
ScrollbarToPixel(const wxScrollBar
*scrollbar
,
281 virtual int PixelToScrollbar(const wxScrollBar
*scrollbar
, wxCoord coord
);
282 virtual wxCoord
GetListboxItemHeight(wxCoord fontHeight
)
283 { return fontHeight
+ 2; }
284 virtual wxSize
GetCheckBitmapSize() const
285 { return wxSize(10, 10); }
286 virtual wxSize
GetRadioBitmapSize() const
287 { return wxSize(11, 11); }
288 virtual wxCoord
GetCheckItemMargin() const
291 virtual wxSize
GetToolBarButtonSize(wxCoord
*separator
) const
292 { if ( separator
) *separator
= 5; return wxSize(16, 15); }
293 virtual wxSize
GetToolBarMargin() const
294 { return wxSize(6, 6); }
296 virtual wxRect
GetTextTotalArea(const wxTextCtrl
*text
,
297 const wxRect
& rect
) const;
298 virtual wxRect
GetTextClientArea(const wxTextCtrl
*text
,
300 wxCoord
*extraSpaceBeyond
) const;
302 virtual wxSize
GetTabIndent() const { return wxSize(2, 2); }
303 virtual wxSize
GetTabPadding() const { return wxSize(6, 6); }
305 virtual wxCoord
GetSliderDim() const { return 15; }
306 virtual wxCoord
GetSliderTickLen() const { return 0; }
307 virtual wxRect
GetSliderShaftRect(const wxRect
& rect
,
308 wxOrientation orient
) const;
309 virtual wxSize
GetSliderThumbSize(const wxRect
& rect
,
310 wxOrientation orient
) const;
311 virtual wxSize
GetProgressBarStep() const { return wxSize(16, 32); }
313 virtual wxSize
GetMenuBarItemSize(const wxSize
& sizeText
) const;
314 virtual wxMenuGeometryInfo
*GetMenuGeometry(wxWindow
*win
,
315 const wxMenu
& menu
) const;
317 virtual wxSize
GetStatusBarBorders(wxCoord
*borderBetweenFields
) const;
319 // helpers for "wxBitmap wxColourScheme::Get()"
320 void DrawCheckBitmap(wxDC
& dc
, const wxRect
& rect
);
321 void DrawUncheckBitmap(wxDC
& dc
, const wxRect
& rect
, bool isPressed
);
324 // DrawBackground() helpers
326 // get the colour to use for background
327 wxColour
GetBackgroundColour(int flags
) const
329 if ( flags
& wxCONTROL_PRESSED
)
330 return wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
);
331 else if ( flags
& wxCONTROL_CURRENT
)
332 return wxSCHEME_COLOUR(m_scheme
, CONTROL_CURRENT
);
334 return wxSCHEME_COLOUR(m_scheme
, CONTROL
);
337 // draw the background with any colour, not only the default one(s)
338 void DoDrawBackground(wxDC
& dc
,
342 // DrawBorder() helpers: all of them shift and clip the DC after drawing
345 // just draw a rectangle with the given pen
346 void DrawRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
);
348 // draw the lower left part of rectangle
349 void DrawHalfRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
);
351 // draw the rectange using the first brush for the left and top sides and
352 // the second one for the bottom and right ones
353 void DrawShadedRect(wxDC
& dc
, wxRect
*rect
,
354 const wxPen
& pen1
, const wxPen
& pen2
);
356 // as DrawShadedRect() but the pixels in the bottom left and upper right
357 // border are drawn with the pen1, not pen2
358 void DrawAntiShadedRect(wxDC
& dc
, wxRect
*rect
,
359 const wxPen
& pen1
, const wxPen
& pen2
);
361 // used for drawing opened rectangles - draws only one side of it at once
362 // (and doesn't adjust the rect)
363 void DrawAntiShadedRectSide(wxDC
& dc
,
369 // draw an opened rect for the arrow in given direction
370 void DrawArrowBorder(wxDC
& dc
,
374 // draw two sides of the rectangle
375 void DrawThumbBorder(wxDC
& dc
,
377 wxOrientation orient
);
379 // draw the normal 3D border
380 void DrawRaisedBorder(wxDC
& dc
, wxRect
*rect
);
382 // just as DrawRaisedBorder() except that the bottom left and up right
383 // pixels of the interior rect are drawn in another colour (i.e. the inner
384 // rect is drawn with DrawAntiShadedRect() and not DrawShadedRect())
385 void DrawAntiRaisedBorder(wxDC
& dc
, wxRect
*rect
);
387 // returns the size of the arrow for the scrollbar (depends on
389 wxSize
GetScrollbarArrowSize(const wxScrollBar
*scrollbar
) const
392 if ( scrollbar
->IsVertical() )
394 size
= m_sizeScrollbarArrow
;
398 size
.x
= m_sizeScrollbarArrow
.y
;
399 size
.y
= m_sizeScrollbarArrow
.x
;
405 // get the line wrap indicator bitmap
406 wxBitmap
GetLineWrapBitmap() const;
408 // DrawCheckBitmap and DrawRadioBitmap helpers
410 // draw the check bitmaps once and cache them for later use
411 wxBitmap
GetCheckBitmap(int flags
);
413 // draw a /\ or \/ line from (x1, y1) to (x2, y1) passing by the point
415 void DrawUpZag(wxDC
& dc
,
416 wxCoord x1
, wxCoord x2
,
417 wxCoord y1
, wxCoord y2
);
418 void DrawDownZag(wxDC
& dc
,
419 wxCoord x1
, wxCoord x2
,
420 wxCoord y1
, wxCoord y2
);
422 // draw the radio button bitmap for the given state
423 void DrawRadioBitmap(wxDC
& dc
, const wxRect
& rect
, int flags
);
425 // draw check/radio - the bitmap must be a valid one by now
426 void DoDrawCheckOrRadioBitmap(wxDC
& dc
,
427 const wxString
& label
,
428 const wxBitmap
& bitmap
,
429 const wxRect
& rectTotal
,
434 // common part of DrawMenuItem() and DrawMenuBarItem()
435 void DoDrawMenuItem(wxDC
& dc
,
437 const wxString
& label
,
440 const wxString
& accel
= _T(""),
441 const wxBitmap
& bitmap
= wxNullBitmap
,
442 const wxGTKMenuGeometryInfo
*geometryInfo
= NULL
);
444 // initialize the combo bitmaps
445 void InitComboBitmaps();
448 const wxColourScheme
*m_scheme
;
451 wxSize m_sizeScrollbarArrow
;
460 // the checkbox bitmaps: first row is for the normal, second for the
461 // pressed state and the columns are for checked and unchecked status
463 wxBitmap m_bitmapsCheckbox
[2][2];
465 // the line wrap bitmap (drawn at the end of wrapped lines)
466 wxBitmap m_bmpLineWrap
;
468 // the combobox bitmaps
478 wxBitmap m_bitmapsCombo
[ComboState_Max
];
481 // ----------------------------------------------------------------------------
482 // wxGTKInputHandler and derived classes: process the keyboard and mouse
483 // messages according to GTK standards
484 // ----------------------------------------------------------------------------
486 class wxGTKInputHandler
: public wxInputHandler
489 wxGTKInputHandler(wxGTKRenderer
*renderer
);
491 virtual bool HandleKey(wxInputConsumer
*control
,
492 const wxKeyEvent
& event
,
494 virtual bool HandleMouse(wxInputConsumer
*control
,
495 const wxMouseEvent
& event
);
496 virtual bool HandleMouseMove(wxInputConsumer
*control
, const wxMouseEvent
& event
);
499 wxGTKRenderer
*m_renderer
;
502 class wxGTKScrollBarInputHandler
: public wxStdScrollBarInputHandler
505 wxGTKScrollBarInputHandler(wxRenderer
*renderer
, wxInputHandler
*handler
)
506 : wxStdScrollBarInputHandler(renderer
, handler
) { }
509 virtual void Highlight(wxScrollBar
*scrollbar
, bool doIt
)
511 // only arrows and the thumb can be highlighted
512 if ( !IsArrow() && m_htLast
!= wxHT_SCROLLBAR_THUMB
)
515 wxStdScrollBarInputHandler::Highlight(scrollbar
, doIt
);
518 virtual void Press(wxScrollBar
*scrollbar
, bool doIt
)
520 // only arrows can be pressed
524 wxStdScrollBarInputHandler::Press(scrollbar
, doIt
);
527 virtual bool IsAllowedButton(int WXUNUSED(button
)) { return TRUE
; }
531 return m_htLast
== wxHT_SCROLLBAR_ARROW_LINE_1
||
532 m_htLast
== wxHT_SCROLLBAR_ARROW_LINE_2
;
536 class wxGTKCheckboxInputHandler
: public wxStdCheckboxInputHandler
539 wxGTKCheckboxInputHandler(wxInputHandler
*handler
)
540 : wxStdCheckboxInputHandler(handler
) { }
542 virtual bool HandleKey(wxInputConsumer
*control
,
543 const wxKeyEvent
& event
,
547 class wxGTKTextCtrlInputHandler
: public wxStdTextCtrlInputHandler
550 wxGTKTextCtrlInputHandler(wxInputHandler
*handler
)
551 : wxStdTextCtrlInputHandler(handler
) { }
553 virtual bool HandleKey(wxInputConsumer
*control
,
554 const wxKeyEvent
& event
,
558 // ----------------------------------------------------------------------------
559 // wxGTKColourScheme: uses the standard GTK colours
560 // ----------------------------------------------------------------------------
562 class wxGTKColourScheme
: public wxColourScheme
565 virtual wxColour
Get(StdColour col
) const;
566 virtual wxColour
GetBackground(wxWindow
*win
) const;
569 // ----------------------------------------------------------------------------
571 // ----------------------------------------------------------------------------
573 WX_DEFINE_ARRAY(wxInputHandler
*, wxArrayHandlers
);
575 class wxGTKTheme
: public wxTheme
579 virtual ~wxGTKTheme();
581 virtual wxRenderer
*GetRenderer();
582 virtual wxInputHandler
*GetInputHandler(const wxString
& control
);
583 virtual wxColourScheme
*GetColourScheme();
586 // get the default input handler
587 wxInputHandler
*GetDefaultInputHandler();
589 wxGTKRenderer
*m_renderer
;
591 // the names of the already created handlers and the handlers themselves
592 // (these arrays are synchronized)
593 wxSortedArrayString m_handlerNames
;
594 wxArrayHandlers m_handlers
;
596 wxGTKInputHandler
*m_handlerDefault
;
598 wxGTKColourScheme
*m_scheme
;
600 WX_DECLARE_THEME(gtk
)
603 // ============================================================================
605 // ============================================================================
607 WX_IMPLEMENT_THEME(wxGTKTheme
, gtk
, wxTRANSLATE("GTK+ theme"));
609 // ----------------------------------------------------------------------------
611 // ----------------------------------------------------------------------------
613 wxGTKTheme::wxGTKTheme()
617 m_handlerDefault
= NULL
;
620 wxGTKTheme::~wxGTKTheme()
622 size_t count
= m_handlers
.GetCount();
623 for ( size_t n
= 0; n
< count
; n
++ )
625 if ( m_handlers
[n
] != m_handlerDefault
)
626 delete m_handlers
[n
];
629 delete m_handlerDefault
;
634 wxRenderer
*wxGTKTheme::GetRenderer()
638 m_renderer
= new wxGTKRenderer(GetColourScheme());
644 wxColourScheme
*wxGTKTheme::GetColourScheme()
648 m_scheme
= new wxGTKColourScheme
;
653 wxInputHandler
*wxGTKTheme::GetDefaultInputHandler()
655 if ( !m_handlerDefault
)
657 m_handlerDefault
= new wxGTKInputHandler(m_renderer
);
660 return m_handlerDefault
;
663 wxInputHandler
*wxGTKTheme::GetInputHandler(const wxString
& control
)
665 wxInputHandler
*handler
;
666 int n
= m_handlerNames
.Index(control
);
667 if ( n
== wxNOT_FOUND
)
669 // create a new handler
670 if ( control
== wxINP_HANDLER_SCROLLBAR
)
671 handler
= new wxGTKScrollBarInputHandler(m_renderer
,
672 GetDefaultInputHandler());
674 else if ( control
== wxINP_HANDLER_BUTTON
)
675 handler
= new wxStdButtonInputHandler(GetDefaultInputHandler());
676 #endif // wxUSE_CHECKBOX
678 else if ( control
== wxINP_HANDLER_CHECKBOX
)
679 handler
= new wxGTKCheckboxInputHandler(GetDefaultInputHandler());
680 #endif // wxUSE_CHECKBOX
682 else if ( control
== wxINP_HANDLER_COMBOBOX
)
683 handler
= new wxStdComboBoxInputHandler(GetDefaultInputHandler());
684 #endif // wxUSE_COMBOBOX
686 else if ( control
== wxINP_HANDLER_LISTBOX
)
687 handler
= new wxStdListboxInputHandler(GetDefaultInputHandler());
688 #endif // wxUSE_LISTBOX
689 #if wxUSE_CHECKLISTBOX
690 else if ( control
== wxINP_HANDLER_CHECKLISTBOX
)
691 handler
= new wxStdCheckListboxInputHandler(GetDefaultInputHandler());
692 #endif // wxUSE_CHECKLISTBOX
694 else if ( control
== wxINP_HANDLER_TEXTCTRL
)
695 handler
= new wxGTKTextCtrlInputHandler(GetDefaultInputHandler());
696 #endif // wxUSE_TEXTCTRL
698 else if ( control
== wxINP_HANDLER_SLIDER
)
699 handler
= new wxStdSliderButtonInputHandler(GetDefaultInputHandler());
700 #endif // wxUSE_SLIDER
702 else if ( control
== wxINP_HANDLER_SPINBTN
)
703 handler
= new wxStdSpinButtonInputHandler(GetDefaultInputHandler());
704 #endif // wxUSE_SPINBTN
706 else if ( control
== wxINP_HANDLER_NOTEBOOK
)
707 handler
= new wxStdNotebookInputHandler(GetDefaultInputHandler());
708 #endif // wxUSE_NOTEBOOK
710 else if ( control
== wxINP_HANDLER_TOOLBAR
)
711 handler
= new wxStdToolbarInputHandler(GetDefaultInputHandler());
712 #endif // wxUSE_TOOLBAR
713 else if ( control
== wxINP_HANDLER_TOPLEVEL
)
714 handler
= new wxStdFrameInputHandler(GetDefaultInputHandler());
716 handler
= GetDefaultInputHandler();
718 n
= m_handlerNames
.Add(control
);
719 m_handlers
.Insert(handler
, n
);
721 else // we already have it
723 handler
= m_handlers
[n
];
729 // ============================================================================
731 // ============================================================================
733 wxColour
wxGTKColourScheme::GetBackground(wxWindow
*win
) const
736 if ( win
->UseBgCol() )
738 // use the user specified colour
739 col
= win
->GetBackgroundColour();
742 if ( win
->IsContainerWindow() )
744 // doesn't depend on the state
752 int flags
= win
->GetStateFlags();
754 // the colour set by the user should be used for the normal state
755 // and for the states for which we don't have any specific colours
756 if ( !col
.Ok() || (flags
!= 0) )
758 if ( wxDynamicCast(win
, wxScrollBar
) )
759 col
= Get(SCROLLBAR
);
760 else if ( (flags
& wxCONTROL_CURRENT
) && win
->CanBeHighlighted() )
761 col
= Get(CONTROL_CURRENT
);
762 else if ( flags
& wxCONTROL_PRESSED
)
763 col
= Get(CONTROL_PRESSED
);
772 wxColour
wxGTKColourScheme::Get(wxGTKColourScheme::StdColour col
) const
776 case WINDOW
: return *wxWHITE
;
778 case SHADOW_DARK
: return *wxBLACK
;
779 case SHADOW_HIGHLIGHT
: return *wxWHITE
;
780 case SHADOW_IN
: return wxColour(0xd6d6d6);
781 case SHADOW_OUT
: return wxColour(0x969696);
783 case CONTROL
: return wxColour(0xd6d6d6);
784 case CONTROL_PRESSED
: return wxColour(0xc3c3c3);
785 case CONTROL_CURRENT
: return wxColour(0xeaeaea);
787 case CONTROL_TEXT
: return *wxBLACK
;
788 case CONTROL_TEXT_DISABLED
:
789 return wxColour(0x757575);
790 case CONTROL_TEXT_DISABLED_SHADOW
:
794 case SCROLLBAR_PRESSED
: return wxColour(0xc3c3c3);
796 case HIGHLIGHT
: return wxColour(0x9c0000);
797 case HIGHLIGHT_TEXT
: return wxColour(0xffffff);
799 case GAUGE
: return Get(CONTROL_CURRENT
);
803 wxFAIL_MSG(_T("invalid standard colour"));
808 // ============================================================================
810 // ============================================================================
812 // ----------------------------------------------------------------------------
814 // ----------------------------------------------------------------------------
816 wxGTKRenderer::wxGTKRenderer(const wxColourScheme
*scheme
)
820 m_sizeScrollbarArrow
= wxSize(15, 14);
823 m_penBlack
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_DARK
), 0, wxSOLID
);
824 m_penDarkGrey
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_OUT
), 0, wxSOLID
);
825 m_penGrey
= wxPen(wxSCHEME_COLOUR(scheme
, SCROLLBAR
), 0, wxSOLID
);
826 m_penLightGrey
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_IN
), 0, wxSOLID
);
827 m_penHighlight
= wxPen(wxSCHEME_COLOUR(scheme
, SHADOW_HIGHLIGHT
), 0, wxSOLID
);
830 // ----------------------------------------------------------------------------
832 // ----------------------------------------------------------------------------
834 void wxGTKRenderer::DrawRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
)
838 dc
.SetBrush(*wxTRANSPARENT_BRUSH
);
839 dc
.DrawRectangle(*rect
);
845 void wxGTKRenderer::DrawHalfRect(wxDC
& dc
, wxRect
*rect
, const wxPen
& pen
)
847 // draw the bottom and right sides
849 dc
.DrawLine(rect
->GetLeft(), rect
->GetBottom(),
850 rect
->GetRight() + 1, rect
->GetBottom());
851 dc
.DrawLine(rect
->GetRight(), rect
->GetTop(),
852 rect
->GetRight(), rect
->GetBottom());
859 void wxGTKRenderer::DrawShadedRect(wxDC
& dc
, wxRect
*rect
,
860 const wxPen
& pen1
, const wxPen
& pen2
)
862 // draw the rectangle
864 dc
.DrawLine(rect
->GetLeft(), rect
->GetTop(),
865 rect
->GetLeft(), rect
->GetBottom());
866 dc
.DrawLine(rect
->GetLeft() + 1, rect
->GetTop(),
867 rect
->GetRight(), rect
->GetTop());
869 dc
.DrawLine(rect
->GetRight(), rect
->GetTop(),
870 rect
->GetRight(), rect
->GetBottom());
871 dc
.DrawLine(rect
->GetLeft(), rect
->GetBottom(),
872 rect
->GetRight() + 1, rect
->GetBottom());
878 void wxGTKRenderer::DrawAntiShadedRectSide(wxDC
& dc
,
884 dc
.SetPen(dir
== wxLEFT
|| dir
== wxUP
? pen1
: pen2
);
889 dc
.DrawLine(rect
.GetLeft(), rect
.GetTop(),
890 rect
.GetLeft(), rect
.GetBottom() + 1);
894 dc
.DrawLine(rect
.GetLeft(), rect
.GetTop(),
895 rect
.GetRight() + 1, rect
.GetTop());
899 dc
.DrawLine(rect
.GetRight(), rect
.GetTop(),
900 rect
.GetRight(), rect
.GetBottom() + 1);
904 dc
.DrawLine(rect
.GetLeft(), rect
.GetBottom(),
905 rect
.GetRight() + 1, rect
.GetBottom());
909 wxFAIL_MSG(_T("unknown rectangle side"));
913 void wxGTKRenderer::DrawAntiShadedRect(wxDC
& dc
, wxRect
*rect
,
914 const wxPen
& pen1
, const wxPen
& pen2
)
916 // draw the rectangle
918 dc
.DrawLine(rect
->GetLeft(), rect
->GetTop(),
919 rect
->GetLeft(), rect
->GetBottom() + 1);
920 dc
.DrawLine(rect
->GetLeft() + 1, rect
->GetTop(),
921 rect
->GetRight() + 1, rect
->GetTop());
923 dc
.DrawLine(rect
->GetRight(), rect
->GetTop() + 1,
924 rect
->GetRight(), rect
->GetBottom());
925 dc
.DrawLine(rect
->GetLeft() + 1, rect
->GetBottom(),
926 rect
->GetRight() + 1, rect
->GetBottom());
932 void wxGTKRenderer::DrawRaisedBorder(wxDC
& dc
, wxRect
*rect
)
934 DrawShadedRect(dc
, rect
, m_penHighlight
, m_penBlack
);
935 DrawShadedRect(dc
, rect
, m_penLightGrey
, m_penDarkGrey
);
938 void wxGTKRenderer::DrawAntiRaisedBorder(wxDC
& dc
, wxRect
*rect
)
940 DrawShadedRect(dc
, rect
, m_penHighlight
, m_penBlack
);
941 DrawAntiShadedRect(dc
, rect
, m_penLightGrey
, m_penDarkGrey
);
944 void wxGTKRenderer::DrawBorder(wxDC
& dc
,
946 const wxRect
& rectTotal
,
952 wxRect rect
= rectTotal
;
956 case wxBORDER_SUNKEN
:
957 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
959 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
960 DrawShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
964 case wxBORDER_STATIC
:
965 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
967 DrawShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
971 case wxBORDER_RAISED
:
972 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
974 DrawRaisedBorder(dc
, &rect
);
978 case wxBORDER_DOUBLE
:
979 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
981 DrawShadedRect(dc
, &rect
, m_penLightGrey
, m_penBlack
);
982 DrawShadedRect(dc
, &rect
, m_penHighlight
, m_penDarkGrey
);
983 DrawRect(dc
, &rect
, m_penLightGrey
);
987 case wxBORDER_SIMPLE
:
988 for ( width
= 0; width
< BORDER_THICKNESS
; width
++ )
990 DrawRect(dc
, &rect
, m_penBlack
);
995 wxFAIL_MSG(_T("unknown border type"));
998 case wxBORDER_DEFAULT
:
1007 wxRect
wxGTKRenderer::GetBorderDimensions(wxBorder border
) const
1012 case wxBORDER_RAISED
:
1013 case wxBORDER_SUNKEN
:
1014 width
= 2*BORDER_THICKNESS
;
1017 case wxBORDER_SIMPLE
:
1018 case wxBORDER_STATIC
:
1019 width
= BORDER_THICKNESS
;
1022 case wxBORDER_DOUBLE
:
1023 width
= 3*BORDER_THICKNESS
;
1027 wxFAIL_MSG(_T("unknown border type"));
1030 case wxBORDER_DEFAULT
:
1040 rect
.height
= width
;
1045 bool wxGTKRenderer::AreScrollbarsInsideBorder() const
1047 // no, the scrollbars are outside the border in GTK+
1051 // ----------------------------------------------------------------------------
1053 // ----------------------------------------------------------------------------
1055 void wxGTKRenderer::DrawTextBorder(wxDC
& dc
,
1057 const wxRect
& rectOrig
,
1061 wxRect rect
= rectOrig
;
1063 if ( border
!= wxBORDER_NONE
)
1065 if ( flags
& wxCONTROL_FOCUSED
)
1067 DrawRect(dc
, &rect
, m_penBlack
);
1068 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1072 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1073 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penHighlight
);
1081 void wxGTKRenderer::DrawButtonBorder(wxDC
& dc
,
1082 const wxRect
& rectTotal
,
1086 wxRect rect
= rectTotal
;
1088 if ( flags
& wxCONTROL_PRESSED
)
1090 // button pressed: draw a black border around it and an inward shade
1091 DrawRect(dc
, &rect
, m_penBlack
);
1093 for ( size_t width
= 0; width
< BORDER_THICKNESS
; width
++ )
1095 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1096 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penDarkGrey
);
1101 // button not pressed
1103 if ( flags
& wxCONTROL_ISDEFAULT
)
1108 if ( flags
& wxCONTROL_FOCUSED
)
1110 // button is currently default: add an extra border around it
1111 DrawRect(dc
, &rect
, m_penBlack
);
1114 // now draw a normal button
1115 for ( size_t width
= 0; width
< BORDER_THICKNESS
; width
++ )
1117 DrawShadedRect(dc
, &rect
, m_penHighlight
, m_penBlack
);
1118 DrawAntiShadedRect(dc
, &rect
,
1119 wxPen(GetBackgroundColour(flags
), 0, wxSOLID
),
1130 // ----------------------------------------------------------------------------
1132 // ----------------------------------------------------------------------------
1134 void wxGTKRenderer::DrawHorizontalLine(wxDC
& dc
,
1135 wxCoord y
, wxCoord x1
, wxCoord x2
)
1137 dc
.SetPen(m_penDarkGrey
);
1138 dc
.DrawLine(x1
, y
, x2
+ 1, y
);
1139 dc
.SetPen(m_penHighlight
);
1141 dc
.DrawLine(x1
, y
, x2
+ 1, y
);
1144 void wxGTKRenderer::DrawVerticalLine(wxDC
& dc
,
1145 wxCoord x
, wxCoord y1
, wxCoord y2
)
1147 dc
.SetPen(m_penDarkGrey
);
1148 dc
.DrawLine(x
, y1
, x
, y2
+ 1);
1149 dc
.SetPen(m_penHighlight
);
1151 dc
.DrawLine(x
, y1
, x
, y2
+ 1);
1154 void wxGTKRenderer::DrawFrame(wxDC
& dc
,
1155 const wxString
& label
,
1161 wxCoord height
= 0; // of the label
1162 wxRect rectFrame
= rect
;
1163 if ( !label
.empty() )
1165 // the text should touch the top border of the rect, so the frame
1166 // itself should be lower
1167 dc
.GetTextExtent(label
, NULL
, &height
);
1168 rectFrame
.y
+= height
/ 2;
1169 rectFrame
.height
-= height
/ 2;
1171 // TODO: the +4 should be customizable
1174 rectText
.x
= rectFrame
.x
+ 4;
1175 rectText
.y
= rect
.y
;
1176 rectText
.width
= rectFrame
.width
- 8;
1177 rectText
.height
= height
;
1180 DrawLabel(dc
, label
, rectText
, flags
, alignment
, indexAccel
, &rectLabel
);
1182 rectLabel
.width
+= 2;
1184 StandardDrawFrame(dc
, rectFrame
, rectLabel
);
1186 // GTK+ does it like this
1187 dc
.SetPen(m_penHighlight
);
1188 dc
.DrawPoint(rectText
.x
, rectFrame
.y
);
1189 dc
.DrawPoint(rectText
.x
+ rectLabel
.width
- 3, rectFrame
.y
);
1193 // just draw the complete frame
1194 DrawShadedRect(dc
, &rectFrame
, m_penDarkGrey
, m_penHighlight
);
1195 DrawShadedRect(dc
, &rectFrame
, m_penHighlight
, m_penDarkGrey
);
1199 // ----------------------------------------------------------------------------
1201 // ----------------------------------------------------------------------------
1203 void wxGTKRenderer::DrawLabel(wxDC
& dc
,
1204 const wxString
& label
,
1211 DrawButtonLabel(dc
, label
, wxNullBitmap
, rect
, flags
,
1212 alignment
, indexAccel
, rectBounds
);
1215 void wxGTKRenderer::DrawButtonLabel(wxDC
& dc
,
1216 const wxString
& label
,
1217 const wxBitmap
& image
,
1224 if ( flags
& wxCONTROL_DISABLED
)
1226 // make the text grey and draw a shade for it
1227 dc
.SetTextForeground(*wxWHITE
); // FIXME hardcoded colour
1228 wxRect rectShadow
= rect
;
1231 dc
.DrawLabel(label
, rectShadow
, alignment
, indexAccel
);
1232 dc
.SetTextForeground(wxSCHEME_COLOUR(m_scheme
, CONTROL_TEXT_DISABLED
));
1236 dc
.SetTextForeground(wxSCHEME_COLOUR(m_scheme
, CONTROL_TEXT
));
1239 dc
.DrawLabel(label
, image
, rect
, alignment
, indexAccel
, rectBounds
);
1242 void wxGTKRenderer::DrawItem(wxDC
& dc
,
1243 const wxString
& label
,
1247 wxLogTrace(_T("listbox"), _T("drawing item '%s' at (%d, %d)-(%d, %d)"),
1250 rect
.x
+ rect
.width
, rect
.y
+ rect
.height
);
1253 if ( flags
& wxCONTROL_SELECTED
)
1255 dc
.SetBrush(wxBrush(wxSCHEME_COLOUR(m_scheme
, HIGHLIGHT
), wxSOLID
));
1256 dc
.SetPen(*wxTRANSPARENT_PEN
);
1257 dc
.DrawRectangle(rect
);
1259 colFg
= dc
.GetTextForeground();
1260 dc
.SetTextForeground(wxSCHEME_COLOUR(m_scheme
, HIGHLIGHT_TEXT
));
1263 if ( flags
& wxCONTROL_FOCUSED
)
1265 dc
.SetBrush(*wxTRANSPARENT_BRUSH
);
1266 wxRect rectFocus
= rect
;
1267 DrawRect(dc
, &rectFocus
, m_penBlack
);
1270 wxRect rectText
= rect
;
1273 dc
.DrawLabel(label
, wxNullBitmap
, rectText
);
1275 if ( flags
& wxCONTROL_SELECTED
)
1277 dc
.SetBackgroundMode(wxTRANSPARENT
);
1280 // restore the text colour
1283 dc
.SetTextForeground(colFg
);
1287 void wxGTKRenderer::DrawCheckItem(wxDC
& dc
,
1288 const wxString
& label
,
1289 const wxBitmap
& bitmap
,
1293 wxRect rectBitmap
= rect
;
1295 rectBitmap
.width
= GetCheckBitmapSize().x
;
1297 // never draw the focus rect around the check indicators here
1298 DrawCheckButton(dc
, _T(""), bitmap
, rectBitmap
, flags
& ~wxCONTROL_FOCUSED
);
1300 wxRect rectLabel
= rect
;
1301 wxCoord shift
= rectBitmap
.width
+ 2*GetCheckItemMargin();
1302 rectLabel
.x
+= shift
;
1303 rectLabel
.width
-= shift
;
1304 DrawItem(dc
, label
, rectLabel
, flags
);
1307 // ----------------------------------------------------------------------------
1308 // check/radion buttons
1309 // ----------------------------------------------------------------------------
1311 void wxGTKRenderer::DrawUncheckBitmap(wxDC
& dc
,
1312 const wxRect
& rectTotal
,
1315 wxRect rect
= rectTotal
;
1316 DrawAntiRaisedBorder(dc
, &rect
);
1318 wxColour col
= wxSCHEME_COLOUR(m_scheme
, SHADOW_IN
);
1319 dc
.SetPen(wxPen(col
, 0, wxSOLID
));
1320 dc
.DrawPoint(rect
.GetRight() - 1, rect
.GetBottom() - 1);
1323 col
= wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
);
1324 //else: it is SHADOW_IN, leave as is
1326 dc
.SetPen(*wxTRANSPARENT_PEN
);
1327 dc
.SetBrush(wxBrush(col
, wxSOLID
));
1328 dc
.DrawRectangle(rect
);
1331 void wxGTKRenderer::DrawCheckBitmap(wxDC
& dc
, const wxRect
& rectTotal
)
1333 wxRect rect
= rectTotal
;
1334 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1335 DrawShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
1337 dc
.SetPen(*wxTRANSPARENT_PEN
);
1338 dc
.SetBrush(wxBrush(wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
), wxSOLID
));
1339 dc
.DrawRectangle(rect
);
1342 void wxGTKRenderer::DrawRadioBitmap(wxDC
& dc
,
1348 xRight
= rect
.GetRight(),
1349 yBottom
= rect
.GetBottom();
1351 wxCoord yMid
= (y
+ yBottom
) / 2;
1353 // this looks ugly when the background colour of the control is not the
1354 // same ours - radiobox is not transparent as it should be
1356 // first fill the middle: as FloodFill() is not implemented on all
1357 // platforms, this is the only thing to do
1358 wxColour colBg
= flags
& wxCONTROL_CURRENT
1359 ? wxSCHEME_COLOUR(m_scheme
, CONTROL_CURRENT
)
1360 : wxSCHEME_COLOUR(m_scheme
, SHADOW_IN
);
1361 dc
.SetBrush(wxBrush(colBg
, wxSOLID
));
1362 dc
.SetPen(*wxTRANSPARENT_PEN
);
1363 dc
.DrawRectangle(rect
);
1366 // then draw the upper half
1367 dc
.SetPen(flags
& wxCONTROL_CHECKED
? m_penDarkGrey
: m_penHighlight
);
1368 DrawUpZag(dc
, x
, xRight
, yMid
, y
);
1369 DrawUpZag(dc
, x
+ 1, xRight
- 1, yMid
, y
+ 1);
1372 if ( flags
& wxCONTROL_CHECKED
)
1373 dc
.SetPen(m_penBlack
);
1374 else if ( flags
& wxCONTROL_PRESSED
)
1375 dc
.SetPen(wxPen(wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
), 0, wxSOLID
));
1376 else // unchecked and unpressed
1380 DrawUpZag(dc
, x
+ 2, xRight
- 2, yMid
, y
+ 2);
1382 // and then the lower one
1383 dc
.SetPen(flags
& wxCONTROL_CHECKED
? m_penHighlight
: m_penBlack
);
1384 DrawDownZag(dc
, x
, xRight
, yMid
, yBottom
);
1385 if ( !(flags
& wxCONTROL_CHECKED
) )
1386 dc
.SetPen(m_penDarkGrey
);
1387 DrawDownZag(dc
, x
+ 1, xRight
- 1, yMid
, yBottom
- 1);
1389 if ( !(flags
& wxCONTROL_CHECKED
) )
1390 drawIt
= TRUE
; // with the same pen
1391 else if ( flags
& wxCONTROL_PRESSED
)
1393 dc
.SetPen(wxPen(wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
), 0, wxSOLID
));
1396 else // checked and unpressed
1400 DrawDownZag(dc
, x
+ 2, xRight
- 2, yMid
, yBottom
- 2);
1403 void wxGTKRenderer::DrawUpZag(wxDC
& dc
,
1409 wxCoord xMid
= (x1
+ x2
) / 2;
1410 dc
.DrawLine(x1
, y1
, xMid
, y2
);
1411 dc
.DrawLine(xMid
, y2
, x2
+ 1, y1
+ 1);
1414 void wxGTKRenderer::DrawDownZag(wxDC
& dc
,
1420 wxCoord xMid
= (x1
+ x2
) / 2;
1421 dc
.DrawLine(x1
+ 1, y1
+ 1, xMid
, y2
);
1422 dc
.DrawLine(xMid
, y2
, x2
, y1
);
1425 wxBitmap
wxGTKRenderer::GetCheckBitmap(int flags
)
1427 if ( !m_bitmapsCheckbox
[0][0].Ok() )
1429 // init the bitmaps once only
1431 wxSize size
= GetCheckBitmapSize();
1432 rect
.width
= size
.x
;
1433 rect
.height
= size
.y
;
1434 for ( int i
= 0; i
< 2; i
++ )
1436 for ( int j
= 0; j
< 2; j
++ )
1437 m_bitmapsCheckbox
[i
][j
].Create(rect
.width
, rect
.height
);
1443 dc
.SelectObject(m_bitmapsCheckbox
[0][0]);
1444 DrawCheckBitmap(dc
, rect
);
1447 dc
.SelectObject(m_bitmapsCheckbox
[0][1]);
1448 DrawUncheckBitmap(dc
, rect
, FALSE
);
1451 m_bitmapsCheckbox
[1][0] = m_bitmapsCheckbox
[0][0];
1453 // pressed unchecked
1454 dc
.SelectObject(m_bitmapsCheckbox
[1][1]);
1455 DrawUncheckBitmap(dc
, rect
, TRUE
);
1458 int row
= flags
& wxCONTROL_PRESSED
? 1 : 0;
1459 int col
= flags
& wxCONTROL_CHECKED
? 0 : 1;
1461 return m_bitmapsCheckbox
[row
][col
];
1464 wxBitmap
wxGTKRenderer::GetLineWrapBitmap() const
1466 if ( !m_bmpLineWrap
.Ok() )
1468 // the line wrap bitmap as used by GTK+
1469 #define line_wrap_width 6
1470 #define line_wrap_height 9
1471 static const char line_wrap_bits
[] =
1473 0x1e, 0x3e, 0x30, 0x30, 0x39, 0x1f, 0x0f, 0x0f, 0x1f,
1476 wxBitmap
bmpLineWrap(line_wrap_bits
, line_wrap_width
, line_wrap_height
);
1477 if ( !bmpLineWrap
.Ok() )
1479 wxFAIL_MSG( _T("Failed to create line wrap XBM") );
1483 wxConstCast(this, wxGTKRenderer
)->m_bmpLineWrap
= bmpLineWrap
;
1487 return m_bmpLineWrap
;
1490 void wxGTKRenderer::DrawCheckButton(wxDC
& dc
,
1491 const wxString
& label
,
1492 const wxBitmap
& bitmapOrig
,
1493 const wxRect
& rectTotal
,
1499 if ( bitmapOrig
.Ok() )
1501 bitmap
= bitmapOrig
;
1505 bitmap
= GetCheckBitmap(flags
);
1508 DoDrawCheckOrRadioBitmap(dc
, label
, bitmap
, rectTotal
,
1509 flags
, align
, indexAccel
);
1512 void wxGTKRenderer::DoDrawCheckOrRadioBitmap(wxDC
& dc
,
1513 const wxString
& label
,
1514 const wxBitmap
& bitmap
,
1515 const wxRect
& rectTotal
,
1520 wxRect rect
= rectTotal
;
1522 if ( flags
& wxCONTROL_FOCUSED
)
1524 // draw the focus border around everything
1525 DrawRect(dc
, &rect
, m_penBlack
);
1529 // the border does not offset the string under GTK
1533 // calculate the position of the bitmap and of the label
1535 yBmp
= rect
.y
+ (rect
.height
- bitmap
.GetHeight()) / 2;
1538 dc
.GetMultiLineTextExtent(label
, NULL
, &rectLabel
.height
);
1539 rectLabel
.y
= rect
.y
+ (rect
.height
- rectLabel
.height
) / 2;
1541 if ( align
== wxALIGN_RIGHT
)
1543 xBmp
= rect
.GetRight() - bitmap
.GetWidth();
1544 rectLabel
.x
= rect
.x
+ 2;
1545 rectLabel
.SetRight(xBmp
);
1547 else // normal (checkbox to the left of the text) case
1550 rectLabel
.x
= xBmp
+ bitmap
.GetWidth() + 4;
1551 rectLabel
.SetRight(rect
.GetRight());
1554 dc
.DrawBitmap(bitmap
, xBmp
, yBmp
, TRUE
/* use mask */);
1556 DrawLabel(dc
, label
, rectLabel
, flags
,
1557 wxALIGN_LEFT
| wxALIGN_CENTRE_VERTICAL
, indexAccel
);
1560 void wxGTKRenderer::DrawRadioButton(wxDC
& dc
,
1561 const wxString
& label
,
1562 const wxBitmap
& bitmapOrig
,
1563 const wxRect
& rectTotal
,
1569 if ( bitmapOrig
.Ok() )
1571 bitmap
= bitmapOrig
;
1576 wxSize size
= GetRadioBitmapSize();
1577 rect
.width
= size
.x
;
1578 rect
.height
= size
.y
;
1579 bitmap
.Create(rect
.width
, rect
.height
);
1581 dc
.SelectObject(bitmap
);
1582 dc
.SetBackground(*wxLIGHT_GREY_BRUSH
);
1584 DrawRadioBitmap(dc
, rect
, flags
);
1585 bitmap
.SetMask(new wxMask(bitmap
, *wxLIGHT_GREY
));
1588 DoDrawCheckOrRadioBitmap(dc
, label
, bitmap
, rectTotal
,
1589 flags
, align
, indexAccel
);
1592 void wxGTKRenderer::DrawToolBarButton(wxDC
& dc
,
1593 const wxString
& label
,
1594 const wxBitmap
& bitmap
,
1595 const wxRect
& rectOrig
,
1598 // we don't draw the separators at all
1599 if ( !label
.empty() || bitmap
.Ok() )
1601 wxRect rect
= rectOrig
;
1602 rect
.Deflate(BORDER_THICKNESS
);
1604 if ( flags
& wxCONTROL_PRESSED
)
1606 DrawBorder(dc
, wxBORDER_SUNKEN
, rect
, flags
, &rect
);
1608 DrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, CONTROL_PRESSED
), rect
);
1610 else if ( flags
& wxCONTROL_CURRENT
)
1612 DrawBorder(dc
, wxBORDER_RAISED
, rect
, flags
, &rect
);
1614 DrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, CONTROL_CURRENT
), rect
);
1617 dc
.DrawLabel(label
, bitmap
, rect
, wxALIGN_CENTRE
);
1621 // ----------------------------------------------------------------------------
1623 // ----------------------------------------------------------------------------
1625 wxRect
wxGTKRenderer::GetTextTotalArea(const wxTextCtrl
*text
,
1626 const wxRect
& rect
) const
1628 wxRect rectTotal
= rect
;
1629 rectTotal
.Inflate(2*BORDER_THICKNESS
);
1633 wxRect
wxGTKRenderer::GetTextClientArea(const wxTextCtrl
*text
,
1635 wxCoord
*extraSpaceBeyond
) const
1637 wxRect rectText
= rect
;
1638 rectText
.Deflate(2*BORDER_THICKNESS
);
1640 if ( text
->WrapLines() )
1642 // leave enough for the line wrap bitmap indicator
1643 wxCoord widthMark
= GetLineWrapBitmap().GetWidth() + 2;
1645 rectText
.width
-= widthMark
;
1647 if ( extraSpaceBeyond
)
1648 *extraSpaceBeyond
= widthMark
;
1654 void wxGTKRenderer::DrawTextLine(wxDC
& dc
,
1655 const wxString
& text
,
1661 // TODO: GTK+ draws selection even for unfocused controls, just with
1662 // different colours
1663 StandardDrawTextLine(dc
, text
, rect
, selStart
, selEnd
, flags
);
1666 void wxGTKRenderer::DrawLineWrapMark(wxDC
& dc
, const wxRect
& rect
)
1668 wxBitmap bmpLineWrap
= GetLineWrapBitmap();
1670 // for a mono bitmap he colours it appears in depends on the current text
1671 // colours, so set them correctly
1673 if ( bmpLineWrap
.GetDepth() == 1 )
1675 colFgOld
= dc
.GetTextForeground();
1677 // FIXME: I wonder what should we do if the background is black too?
1678 dc
.SetTextForeground(*wxBLACK
);
1681 dc
.DrawBitmap(bmpLineWrap
,
1682 rect
.x
, rect
.y
+ (rect
.height
- bmpLineWrap
.GetHeight())/2);
1684 if ( colFgOld
.Ok() )
1686 // restore old colour
1687 dc
.SetTextForeground(colFgOld
);
1691 // ----------------------------------------------------------------------------
1693 // ----------------------------------------------------------------------------
1695 void wxGTKRenderer::DrawTab(wxDC
& dc
,
1696 const wxRect
& rectOrig
,
1698 const wxString
& label
,
1699 const wxBitmap
& bitmap
,
1703 wxRect rect
= rectOrig
;
1705 // the current tab is drawn indented (to the top for default case) and
1706 // bigger than the other ones
1707 const wxSize indent
= GetTabIndent();
1708 if ( flags
& wxCONTROL_SELECTED
)
1713 wxFAIL_MSG(_T("invaild notebook tab orientation"));
1717 rect
.Inflate(indent
.x
, 0);
1719 rect
.height
+= indent
.y
;
1723 rect
.Inflate(indent
.x
, 0);
1724 rect
.height
+= indent
.y
;
1729 wxFAIL_MSG(_T("TODO"));
1734 // selected tab has different colour
1735 wxColour col
= flags
& wxCONTROL_SELECTED
1736 ? wxSCHEME_COLOUR(m_scheme
, SHADOW_IN
)
1737 : wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
);
1738 DoDrawBackground(dc
, col
, rect
);
1740 if ( flags
& wxCONTROL_FOCUSED
)
1742 // draw the focus rect
1743 wxRect rectBorder
= rect
;
1744 rectBorder
.Deflate(4, 3);
1745 if ( dir
== wxBOTTOM
)
1746 rectBorder
.Offset(0, -1);
1748 DrawRect(dc
, &rectBorder
, m_penBlack
);
1751 // draw the text, image and the focus around them (if necessary)
1752 wxRect rectLabel
= rect
;
1753 rectLabel
.Deflate(1, 1);
1754 dc
.DrawLabel(label
, bitmap
, rectLabel
, wxALIGN_CENTRE
, indexAccel
);
1756 // now draw the tab itself
1759 x2
= rect
.GetRight(),
1760 y2
= rect
.GetBottom();
1765 dc
.SetPen(m_penHighlight
);
1766 dc
.DrawLine(x
, y2
, x
, y
);
1767 dc
.DrawLine(x
+ 1, y
, x2
, y
);
1769 dc
.SetPen(m_penBlack
);
1770 dc
.DrawLine(x2
, y2
, x2
, y
);
1772 dc
.SetPen(m_penDarkGrey
);
1773 dc
.DrawLine(x2
- 1, y2
, x2
- 1, y
+ 1);
1775 if ( flags
& wxCONTROL_SELECTED
)
1777 dc
.SetPen(m_penLightGrey
);
1779 // overwrite the part of the border below this tab
1780 dc
.DrawLine(x
+ 1, y2
+ 1, x2
- 1, y2
+ 1);
1782 // and the shadow of the tab to the left of us
1783 dc
.DrawLine(x
+ 1, y
+ 2, x
+ 1, y2
+ 1);
1788 dc
.SetPen(m_penHighlight
);
1790 // we need to continue one pixel further to overwrite the corner of
1791 // the border for the selected tab
1792 dc
.DrawLine(x
, y
- (flags
& wxCONTROL_SELECTED
? 1 : 0),
1795 // it doesn't work like this (TODO: implement it properly)
1797 // erase the corner of the tab to the right
1798 dc
.SetPen(m_penLightGrey
);
1799 dc
.DrawPoint(x2
- 1, y
- 2);
1800 dc
.DrawPoint(x2
- 2, y
- 2);
1801 dc
.DrawPoint(x2
- 2, y
- 1);
1804 dc
.SetPen(m_penBlack
);
1805 dc
.DrawLine(x
+ 1, y2
, x2
, y2
);
1806 dc
.DrawLine(x2
, y
, x2
, y2
);
1808 dc
.SetPen(m_penDarkGrey
);
1809 dc
.DrawLine(x
+ 2, y2
- 1, x2
- 1, y2
- 1);
1810 dc
.DrawLine(x2
- 1, y
, x2
- 1, y2
);
1812 if ( flags
& wxCONTROL_SELECTED
)
1814 dc
.SetPen(m_penLightGrey
);
1816 // overwrite the part of the (double!) border above this tab
1817 dc
.DrawLine(x
+ 1, y
- 1, x2
- 1, y
- 1);
1818 dc
.DrawLine(x
+ 1, y
- 2, x2
- 1, y
- 2);
1820 // and the shadow of the tab to the left of us
1821 dc
.DrawLine(x
+ 1, y2
- 1, x
+ 1, y
- 1);
1827 wxFAIL_MSG(_T("TODO"));
1831 // ----------------------------------------------------------------------------
1833 // ----------------------------------------------------------------------------
1835 wxSize
wxGTKRenderer::GetSliderThumbSize(const wxRect
& rect
,
1836 wxOrientation orient
) const
1838 static const wxCoord SLIDER_THUMB_LENGTH
= 30;
1842 wxRect rectShaft
= GetSliderShaftRect(rect
, orient
);
1843 if ( orient
== wxHORIZONTAL
)
1845 size
.x
= wxMin(SLIDER_THUMB_LENGTH
, rectShaft
.width
);
1846 size
.y
= rectShaft
.height
;
1850 size
.y
= wxMin(SLIDER_THUMB_LENGTH
, rectShaft
.height
);
1851 size
.x
= rectShaft
.width
;
1857 wxRect
wxGTKRenderer::GetSliderShaftRect(const wxRect
& rect
,
1858 wxOrientation
WXUNUSED(orient
)) const
1860 return rect
.Deflate(2*BORDER_THICKNESS
, 2*BORDER_THICKNESS
);
1863 void wxGTKRenderer::DrawSliderShaft(wxDC
& dc
,
1864 const wxRect
& rectOrig
,
1865 wxOrientation orient
,
1869 wxRect rect
= rectOrig
;
1871 // draw the border first
1872 if ( flags
& wxCONTROL_FOCUSED
)
1874 DrawRect(dc
, &rect
, m_penBlack
);
1875 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
1877 else // not focused, normal
1879 DrawAntiShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1880 DrawAntiShadedRect(dc
, &rect
, m_penBlack
, m_penLightGrey
);
1883 // and the background
1884 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
), rect
);
1890 void wxGTKRenderer::DrawSliderThumb(wxDC
& dc
,
1891 const wxRect
& rectOrig
,
1892 wxOrientation orient
,
1895 // draw the thumb border
1896 wxRect rect
= rectOrig
;
1897 DrawAntiRaisedBorder(dc
, &rect
);
1899 // draw the handle in the middle
1900 if ( orient
== wxVERTICAL
)
1902 rect
.height
= 2*BORDER_THICKNESS
;
1903 rect
.y
= rectOrig
.y
+ (rectOrig
.height
- rect
.height
) / 2;
1907 rect
.width
= 2*BORDER_THICKNESS
;
1908 rect
.x
= rectOrig
.x
+ (rectOrig
.width
- rect
.width
) / 2;
1911 DrawShadedRect(dc
, &rect
, m_penDarkGrey
, m_penHighlight
);
1914 // ----------------------------------------------------------------------------
1916 // ----------------------------------------------------------------------------
1918 // wxGTKMenuGeometryInfo: the wxMenuGeometryInfo used by wxGTKRenderer
1919 class WXDLLEXPORT wxGTKMenuGeometryInfo
: public wxMenuGeometryInfo
1922 virtual wxSize
GetSize() const { return m_size
; }
1924 wxCoord
GetLabelOffset() const { return m_ofsLabel
; }
1925 wxCoord
GetAccelOffset() const { return m_ofsAccel
; }
1927 wxCoord
GetItemHeight() const { return m_heightItem
; }
1930 // the total size of the menu
1933 // the offset of the start of the menu item label
1936 // the offset of the start of the accel label
1939 // the height of a normal (not separator) item
1940 wxCoord m_heightItem
;
1942 friend wxMenuGeometryInfo
*
1943 wxGTKRenderer::GetMenuGeometry(wxWindow
*, const wxMenu
&) const;
1946 // FIXME: all constants are hardcoded but shouldn't be
1947 static const wxCoord MENU_LEFT_MARGIN
= 9;
1948 static const wxCoord MENU_RIGHT_MARGIN
= 6;
1950 static const wxCoord MENU_HORZ_MARGIN
= 6;
1951 static const wxCoord MENU_VERT_MARGIN
= 3;
1953 // the margin around bitmap/check marks (on each side)
1954 static const wxCoord MENU_BMP_MARGIN
= 2;
1956 // the margin between the labels and accel strings
1957 static const wxCoord MENU_ACCEL_MARGIN
= 8;
1959 // the separator height in pixels: in fact, strangely enough, the real height
1960 // is 2 but Windows adds one extra pixel in the bottom margin, so take it into
1962 static const wxCoord MENU_SEPARATOR_HEIGHT
= 3;
1964 // the size of the standard checkmark bitmap
1965 static const wxCoord MENU_CHECK_SIZE
= 9;
1967 void wxGTKRenderer::DrawMenuBarItem(wxDC
& dc
,
1969 const wxString
& label
,
1973 DoDrawMenuItem(dc
, rect
, label
, flags
, indexAccel
);
1976 void wxGTKRenderer::DrawMenuItem(wxDC
& dc
,
1978 const wxMenuGeometryInfo
& gi
,
1979 const wxString
& label
,
1980 const wxString
& accel
,
1981 const wxBitmap
& bitmap
,
1985 const wxGTKMenuGeometryInfo
& geomInfo
= (const wxGTKMenuGeometryInfo
&)gi
;
1990 rect
.width
= geomInfo
.GetSize().x
;
1991 rect
.height
= geomInfo
.GetItemHeight();
1993 DoDrawMenuItem(dc
, rect
, label
, flags
, indexAccel
, accel
, bitmap
, &geomInfo
);
1996 void wxGTKRenderer::DoDrawMenuItem(wxDC
& dc
,
1997 const wxRect
& rectOrig
,
1998 const wxString
& label
,
2001 const wxString
& accel
,
2002 const wxBitmap
& bitmap
,
2003 const wxGTKMenuGeometryInfo
*geometryInfo
)
2005 wxRect rect
= rectOrig
;
2007 // draw the selected item specially
2008 if ( flags
& wxCONTROL_SELECTED
)
2011 DrawBorder(dc
, wxBORDER_RAISED
, rect
, flags
, &rectIn
);
2013 DrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, CONTROL_CURRENT
), rectIn
);
2016 rect
.Deflate(MENU_HORZ_MARGIN
, MENU_VERT_MARGIN
);
2018 // draw the bitmap: use the bitmap provided or the standard checkmark for
2019 // the checkable items
2022 wxBitmap bmp
= bitmap
;
2023 if ( !bmp
.Ok() && (flags
& wxCONTROL_CHECKABLE
) )
2025 bmp
= GetCheckBitmap(flags
);
2030 rect
.SetRight(geometryInfo
->GetLabelOffset());
2031 wxControlRenderer::DrawBitmap(dc
, bmp
, rect
);
2034 //else: menubar items don't have bitmaps
2039 rect
.x
= geometryInfo
->GetLabelOffset();
2040 rect
.SetRight(geometryInfo
->GetAccelOffset());
2043 DrawLabel(dc
, label
, rect
, flags
, wxALIGN_CENTRE_VERTICAL
, indexAccel
);
2045 // draw the accel string
2046 if ( !accel
.empty() )
2048 // menubar items shouldn't have them
2049 wxCHECK_RET( geometryInfo
, _T("accel strings only valid for menus") );
2051 rect
.x
= geometryInfo
->GetAccelOffset();
2052 rect
.SetRight(geometryInfo
->GetSize().x
);
2054 // NB: no accel index here
2055 DrawLabel(dc
, accel
, rect
, flags
, wxALIGN_CENTRE_VERTICAL
);
2058 // draw the submenu indicator
2059 if ( flags
& wxCONTROL_ISSUBMENU
)
2061 wxCHECK_RET( geometryInfo
, _T("wxCONTROL_ISSUBMENU only valid for menus") );
2063 rect
.x
= geometryInfo
->GetSize().x
- MENU_RIGHT_MARGIN
;
2064 rect
.width
= MENU_RIGHT_MARGIN
;
2066 DrawArrow(dc
, wxRIGHT
, rect
, flags
);
2070 void wxGTKRenderer::DrawMenuSeparator(wxDC
& dc
,
2072 const wxMenuGeometryInfo
& geomInfo
)
2074 DrawHorizontalLine(dc
, y
+ MENU_VERT_MARGIN
, 0, geomInfo
.GetSize().x
);
2077 wxSize
wxGTKRenderer::GetMenuBarItemSize(const wxSize
& sizeText
) const
2079 wxSize size
= sizeText
;
2081 // TODO: make this configurable
2082 size
.x
+= 2*MENU_HORZ_MARGIN
;
2083 size
.y
+= 2*MENU_VERT_MARGIN
;
2088 wxMenuGeometryInfo
*wxGTKRenderer::GetMenuGeometry(wxWindow
*win
,
2089 const wxMenu
& menu
) const
2091 // prepare the dc: for now we draw all the items with the system font
2093 dc
.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT
));
2095 // the height of a normal item
2096 wxCoord heightText
= dc
.GetCharHeight();
2101 // the max length of label and accel strings: the menu width is the sum of
2102 // them, even if they're for different items (as the accels should be
2105 // the max length of the bitmap is never 0 as Windows always leaves enough
2106 // space for a check mark indicator
2107 wxCoord widthLabelMax
= 0,
2109 widthBmpMax
= MENU_LEFT_MARGIN
;
2111 for ( wxMenuItemList::Node
*node
= menu
.GetMenuItems().GetFirst();
2113 node
= node
->GetNext() )
2115 // height of this item
2118 wxMenuItem
*item
= node
->GetData();
2119 if ( item
->IsSeparator() )
2121 h
= MENU_SEPARATOR_HEIGHT
;
2123 else // not separator
2128 dc
.GetTextExtent(item
->GetLabel(), &widthLabel
, NULL
);
2129 if ( widthLabel
> widthLabelMax
)
2131 widthLabelMax
= widthLabel
;
2135 dc
.GetTextExtent(item
->GetAccelString(), &widthAccel
, NULL
);
2136 if ( widthAccel
> widthAccelMax
)
2138 widthAccelMax
= widthAccel
;
2141 const wxBitmap
& bmp
= item
->GetBitmap();
2144 wxCoord widthBmp
= bmp
.GetWidth();
2145 if ( widthBmp
> widthBmpMax
)
2146 widthBmpMax
= widthBmp
;
2148 //else if ( item->IsCheckable() ): no need to check for this as
2149 // MENU_LEFT_MARGIN is big enough to show the check mark
2152 h
+= 2*MENU_VERT_MARGIN
;
2154 // remember the item position and height
2155 item
->SetGeometry(height
, h
);
2160 // bundle the metrics into a struct and return it
2161 wxGTKMenuGeometryInfo
*gi
= new wxGTKMenuGeometryInfo
;
2163 gi
->m_ofsLabel
= widthBmpMax
+ 2*MENU_BMP_MARGIN
;
2164 gi
->m_ofsAccel
= gi
->m_ofsLabel
+ widthLabelMax
;
2165 if ( widthAccelMax
> 0 )
2167 // if we actually have any accesl, add a margin
2168 gi
->m_ofsAccel
+= MENU_ACCEL_MARGIN
;
2171 gi
->m_heightItem
= heightText
+ 2*MENU_VERT_MARGIN
;
2173 gi
->m_size
.x
= gi
->m_ofsAccel
+ widthAccelMax
+ MENU_RIGHT_MARGIN
;
2174 gi
->m_size
.y
= height
;
2179 // ----------------------------------------------------------------------------
2181 // ----------------------------------------------------------------------------
2183 wxSize
wxGTKRenderer::GetStatusBarBorders(wxCoord
*borderBetweenFields
) const
2185 return wxSize(0, 0);
2188 void wxGTKRenderer::DrawStatusField(wxDC
& dc
,
2190 const wxString
& label
,
2195 // ----------------------------------------------------------------------------
2197 // ----------------------------------------------------------------------------
2199 void wxGTKRenderer::InitComboBitmaps()
2201 wxSize sizeArrow
= m_sizeScrollbarArrow
;
2207 for ( n
= ComboState_Normal
; n
< ComboState_Max
; n
++ )
2209 m_bitmapsCombo
[n
].Create(sizeArrow
.x
, sizeArrow
.y
);
2212 static const int comboButtonFlags
[ComboState_Max
] =
2220 wxRect
rect(wxPoint(0, 0), sizeArrow
);
2223 for ( n
= ComboState_Normal
; n
< ComboState_Max
; n
++ )
2225 int flags
= comboButtonFlags
[n
];
2227 dc
.SelectObject(m_bitmapsCombo
[n
]);
2228 DoDrawBackground(dc
, GetBackgroundColour(flags
), rect
);
2229 DrawArrow(dc
, wxDOWN
, rect
, flags
);
2233 void wxGTKRenderer::GetComboBitmaps(wxBitmap
*bmpNormal
,
2235 wxBitmap
*bmpPressed
,
2236 wxBitmap
*bmpDisabled
)
2238 if ( !m_bitmapsCombo
[ComboState_Normal
].Ok() )
2244 *bmpNormal
= m_bitmapsCombo
[ComboState_Normal
];
2246 *bmpFocus
= m_bitmapsCombo
[ComboState_Focus
];
2248 *bmpPressed
= m_bitmapsCombo
[ComboState_Pressed
];
2250 *bmpDisabled
= m_bitmapsCombo
[ComboState_Disabled
];
2253 // ----------------------------------------------------------------------------
2255 // ----------------------------------------------------------------------------
2257 void wxGTKRenderer::DoDrawBackground(wxDC
& dc
,
2258 const wxColour
& col
,
2261 wxBrush
brush(col
, wxSOLID
);
2263 dc
.SetPen(*wxTRANSPARENT_PEN
);
2264 dc
.DrawRectangle(rect
);
2267 void wxGTKRenderer::DrawBackground(wxDC
& dc
,
2268 const wxColour
& col
,
2272 wxColour colBg
= col
.Ok() ? col
: GetBackgroundColour(flags
);
2273 DoDrawBackground(dc
, colBg
, rect
);
2276 // ----------------------------------------------------------------------------
2278 // ----------------------------------------------------------------------------
2280 void wxGTKRenderer::DrawArrowBorder(wxDC
& dc
,
2284 static const wxDirection sides
[] =
2286 wxUP
, wxLEFT
, wxRIGHT
, wxDOWN
2289 wxRect rect1
, rect2
, rectInner
;
2295 rectInner
.Inflate(-2);
2297 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
), *rect
);
2299 // find the side not to draw and also adjust the rectangles to compensate
2301 wxDirection sideToOmit
;
2305 sideToOmit
= wxDOWN
;
2307 rectInner
.height
+= 1;
2315 rectInner
.height
+= 1;
2319 sideToOmit
= wxRIGHT
;
2321 rectInner
.width
+= 1;
2325 sideToOmit
= wxLEFT
;
2329 rectInner
.width
+= 1;
2333 wxFAIL_MSG(_T("unknown arrow direction"));
2337 // the outer rect first
2339 for ( n
= 0; n
< WXSIZEOF(sides
); n
++ )
2341 wxDirection side
= sides
[n
];
2342 if ( side
== sideToOmit
)
2345 DrawAntiShadedRectSide(dc
, rect1
, m_penDarkGrey
, m_penHighlight
, side
);
2348 // and then the inner one
2349 for ( n
= 0; n
< WXSIZEOF(sides
); n
++ )
2351 wxDirection side
= sides
[n
];
2352 if ( side
== sideToOmit
)
2355 DrawAntiShadedRectSide(dc
, rect2
, m_penBlack
, m_penGrey
, side
);
2361 void wxGTKRenderer::DrawScrollbarArrow(wxDC
& dc
,
2363 const wxRect
& rectArrow
,
2366 // first of all, draw the border around it - but we don't want the border
2367 // on the side opposite to the arrow point
2368 wxRect rect
= rectArrow
;
2369 DrawArrowBorder(dc
, &rect
, dir
);
2371 // then the arrow itself
2372 DrawArrow(dc
, dir
, rect
, flags
);
2375 // gtk_default_draw_arrow() takes ~350 lines and we can't do much better here
2376 // these people are just crazy :-(
2377 void wxGTKRenderer::DrawArrow(wxDC
& dc
,
2390 wxPoint ptArrow
[Point_Max
];
2392 wxColour colInside
= GetBackgroundColour(flags
);
2394 if ( flags
& wxCONTROL_DISABLED
)
2396 penShadow
[0] = m_penDarkGrey
;
2397 penShadow
[1] = m_penDarkGrey
;
2398 penShadow
[2] = wxNullPen
;
2399 penShadow
[3] = wxNullPen
;
2401 else if ( flags
& wxCONTROL_PRESSED
)
2403 penShadow
[0] = m_penDarkGrey
;
2404 penShadow
[1] = m_penHighlight
;
2405 penShadow
[2] = wxNullPen
;
2406 penShadow
[3] = m_penBlack
;
2408 else // normal arrow
2410 penShadow
[0] = m_penHighlight
;
2411 penShadow
[1] = m_penBlack
;
2412 penShadow
[2] = m_penDarkGrey
;
2413 penShadow
[3] = wxNullPen
;
2417 if ( dir
== wxUP
|| dir
== wxDOWN
)
2420 middle
= (rect
.GetRight() + rect
.GetLeft() + 1) / 2;
2424 middle
= (rect
.GetTop() + rect
.GetBottom() + 1) / 2;
2427 // draw the arrow interior
2428 dc
.SetPen(*wxTRANSPARENT_PEN
);
2429 dc
.SetBrush(wxBrush(colInside
, wxSOLID
));
2434 ptArrow
[Point_First
].x
= rect
.GetLeft();
2435 ptArrow
[Point_First
].y
= rect
.GetBottom();
2436 ptArrow
[Point_Second
].x
= middle
;
2437 ptArrow
[Point_Second
].y
= rect
.GetTop();
2438 ptArrow
[Point_Third
].x
= rect
.GetRight();
2439 ptArrow
[Point_Third
].y
= rect
.GetBottom();
2443 ptArrow
[Point_First
] = rect
.GetPosition();
2444 ptArrow
[Point_Second
].x
= middle
;
2445 ptArrow
[Point_Second
].y
= rect
.GetBottom();
2446 ptArrow
[Point_Third
].x
= rect
.GetRight();
2447 ptArrow
[Point_Third
].y
= rect
.GetTop();
2451 ptArrow
[Point_First
].x
= rect
.GetRight();
2452 ptArrow
[Point_First
].y
= rect
.GetTop();
2453 ptArrow
[Point_Second
].x
= rect
.GetLeft();
2454 ptArrow
[Point_Second
].y
= middle
;
2455 ptArrow
[Point_Third
].x
= rect
.GetRight();
2456 ptArrow
[Point_Third
].y
= rect
.GetBottom();
2460 ptArrow
[Point_First
] = rect
.GetPosition();
2461 ptArrow
[Point_Second
].x
= rect
.GetRight();
2462 ptArrow
[Point_Second
].y
= middle
;
2463 ptArrow
[Point_Third
].x
= rect
.GetLeft();
2464 ptArrow
[Point_Third
].y
= rect
.GetBottom();
2468 wxFAIL_MSG(_T("unknown arrow direction"));
2471 dc
.DrawPolygon(WXSIZEOF(ptArrow
), ptArrow
);
2473 // draw the arrow border
2474 dc
.SetPen(penShadow
[0]);
2478 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_First
]);
2479 dc
.DrawPoint(ptArrow
[Point_First
]);
2480 if ( penShadow
[3].Ok() )
2482 dc
.SetPen(penShadow
[3]);
2483 dc
.DrawLine(ptArrow
[Point_First
].x
+ 1, ptArrow
[Point_First
].y
,
2484 ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
);
2486 dc
.SetPen(penShadow
[1]);
2487 dc
.DrawLine(ptArrow
[Point_Second
].x
+ 1, ptArrow
[Point_Second
].y
+ 1,
2488 ptArrow
[Point_Third
].x
, ptArrow
[Point_Third
].y
);
2489 dc
.DrawPoint(ptArrow
[Point_Third
]);
2490 dc
.DrawLine(ptArrow
[Point_Third
].x
- 2, ptArrow
[Point_Third
].y
,
2491 ptArrow
[Point_First
].x
+ 1, ptArrow
[Point_First
].y
);
2492 if ( penShadow
[2].Ok() )
2494 dc
.SetPen(penShadow
[2]);
2495 dc
.DrawLine(ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
,
2496 ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
+ 1);
2497 dc
.DrawLine(ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
- 1,
2498 ptArrow
[Point_First
].x
+ 2, ptArrow
[Point_First
].y
- 1);
2503 dc
.DrawLine(ptArrow
[Point_First
], ptArrow
[Point_Second
]);
2504 dc
.DrawLine(ptArrow
[Point_First
].x
+ 2, ptArrow
[Point_First
].y
,
2505 ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
);
2506 if ( penShadow
[2].Ok() )
2508 dc
.SetPen(penShadow
[2]);
2509 dc
.DrawLine(ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
- 1,
2510 ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
- 1);
2512 dc
.SetPen(penShadow
[1]);
2513 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_Third
]);
2514 dc
.DrawPoint(ptArrow
[Point_Third
]);
2518 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_First
]);
2519 dc
.DrawPoint(ptArrow
[Point_First
]);
2520 if ( penShadow
[2].Ok() )
2522 dc
.SetPen(penShadow
[2]);
2523 dc
.DrawLine(ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
,
2524 ptArrow
[Point_First
].x
- 1, ptArrow
[Point_First
].y
+ 2);
2525 dc
.DrawLine(ptArrow
[Point_Third
].x
, ptArrow
[Point_Third
].y
,
2526 ptArrow
[Point_Second
].x
+ 2, ptArrow
[Point_Second
].y
+ 1);
2528 dc
.SetPen(penShadow
[1]);
2529 dc
.DrawLine(ptArrow
[Point_Third
].x
, ptArrow
[Point_Third
].y
,
2530 ptArrow
[Point_First
].x
, ptArrow
[Point_First
].y
+ 1);
2531 dc
.DrawLine(ptArrow
[Point_Second
].x
+ 1, ptArrow
[Point_Second
].y
+ 1,
2532 ptArrow
[Point_Third
].x
- 1, ptArrow
[Point_Third
].y
);
2536 dc
.DrawLine(ptArrow
[Point_First
], ptArrow
[Point_Third
]);
2537 dc
.DrawLine(ptArrow
[Point_First
].x
+ 2, ptArrow
[Point_First
].y
+ 1,
2538 ptArrow
[Point_Second
].x
, ptArrow
[Point_Second
].y
);
2539 dc
.SetPen(penShadow
[1]);
2540 dc
.DrawLine(ptArrow
[Point_Second
], ptArrow
[Point_Third
]);
2541 dc
.DrawPoint(ptArrow
[Point_Third
]);
2545 wxFAIL_MSG(_T("unknown arrow direction"));
2550 void wxGTKRenderer::DrawThumbBorder(wxDC
& dc
,
2552 wxOrientation orient
)
2554 if ( orient
== wxVERTICAL
)
2556 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2558 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2560 rect
->Inflate(-1, 0);
2562 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2564 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2566 rect
->Inflate(-1, 0);
2570 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2572 DrawAntiShadedRectSide(dc
, *rect
, m_penDarkGrey
, m_penHighlight
,
2574 rect
->Inflate(0, -1);
2576 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2578 DrawAntiShadedRectSide(dc
, *rect
, m_penBlack
, m_penGrey
,
2580 rect
->Inflate(0, -1);
2584 void wxGTKRenderer::DrawScrollbarThumb(wxDC
& dc
,
2585 wxOrientation orient
,
2589 // the thumb is never pressed never has focus border under GTK and the
2590 // scrollbar background never changes at all
2591 int flagsThumb
= flags
& ~(wxCONTROL_PRESSED
| wxCONTROL_FOCUSED
);
2593 // we don't want the border in the direction of the scrollbar movement
2594 wxRect rectThumb
= rect
;
2595 DrawThumbBorder(dc
, &rectThumb
, orient
);
2597 DrawButtonBorder(dc
, rectThumb
, flagsThumb
, &rectThumb
);
2598 DrawBackground(dc
, wxNullColour
, rectThumb
, flagsThumb
);
2601 void wxGTKRenderer::DrawScrollbarShaft(wxDC
& dc
,
2602 wxOrientation orient
,
2606 wxRect rectBar
= rect
;
2607 DrawThumbBorder(dc
, &rectBar
, orient
);
2608 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, SCROLLBAR
), rectBar
);
2611 void wxGTKRenderer::DrawScrollCorner(wxDC
& dc
, const wxRect
& rect
)
2613 DoDrawBackground(dc
, wxSCHEME_COLOUR(m_scheme
, CONTROL
), rect
);
2616 wxRect
wxGTKRenderer::GetScrollbarRect(const wxScrollBar
*scrollbar
,
2617 wxScrollBar::Element elem
,
2620 // as GTK scrollbars can't be disabled, it makes no sense to remove the
2621 // thumb for a scrollbar with range 0 - instead, make it fill the entire
2623 if ( (elem
== wxScrollBar::Element_Thumb
) && !scrollbar
->GetRange() )
2625 elem
= wxScrollBar::Element_Bar_2
;
2628 return StandardGetScrollbarRect(scrollbar
, elem
,
2630 GetScrollbarArrowSize(scrollbar
));
2633 wxCoord
wxGTKRenderer::GetScrollbarSize(const wxScrollBar
*scrollbar
)
2635 return StandardScrollBarSize(scrollbar
, GetScrollbarArrowSize(scrollbar
));
2638 wxHitTest
wxGTKRenderer::HitTestScrollbar(const wxScrollBar
*scrollbar
,
2639 const wxPoint
& pt
) const
2641 return StandardHitTestScrollbar(scrollbar
, pt
,
2642 GetScrollbarArrowSize(scrollbar
));
2645 wxCoord
wxGTKRenderer::ScrollbarToPixel(const wxScrollBar
*scrollbar
,
2648 return StandardScrollbarToPixel(scrollbar
, thumbPos
,
2649 GetScrollbarArrowSize(scrollbar
));
2652 int wxGTKRenderer::PixelToScrollbar(const wxScrollBar
*scrollbar
,
2655 return StandardPixelToScrollbar(scrollbar
, coord
,
2656 GetScrollbarArrowSize(scrollbar
));
2659 // ----------------------------------------------------------------------------
2661 // ----------------------------------------------------------------------------
2663 void wxGTKRenderer::AdjustSize(wxSize
*size
, const wxWindow
*window
)
2666 if ( wxDynamicCast(window
, wxBitmapButton
) )
2671 #endif // wxUSE_BMPBUTTON
2673 if ( wxDynamicCast(window
, wxButton
) )
2675 if ( !(window
->GetWindowStyle() & wxBU_EXACTFIT
) )
2677 // TODO: this is ad hoc...
2678 size
->x
+= 3*window
->GetCharWidth();
2679 wxCoord minBtnHeight
= 18;
2680 if ( size
->y
< minBtnHeight
)
2681 size
->y
= minBtnHeight
;
2683 // button border width
2687 #endif //wxUSE_BUTTON
2688 if ( wxDynamicCast(window
, wxScrollBar
) )
2690 // we only set the width of vert scrollbars and height of the
2692 if ( window
->GetWindowStyle() & wxSB_HORIZONTAL
)
2693 size
->y
= m_sizeScrollbarArrow
.x
;
2695 size
->x
= m_sizeScrollbarArrow
.x
;
2699 // take into account the border width
2700 wxRect rectBorder
= GetBorderDimensions(window
->GetBorder());
2701 size
->x
+= rectBorder
.x
+ rectBorder
.width
;
2702 size
->y
+= rectBorder
.y
+ rectBorder
.height
;
2706 // ----------------------------------------------------------------------------
2707 // top level windows
2708 // ----------------------------------------------------------------------------
2710 void wxGTKRenderer::DrawFrameTitleBar(wxDC
& dc
,
2712 const wxString
& title
,
2716 int specialButtonFlag
)
2720 void wxGTKRenderer::DrawFrameBorder(wxDC
& dc
,
2726 void wxGTKRenderer::DrawFrameBackground(wxDC
& dc
,
2732 void wxGTKRenderer::DrawFrameTitle(wxDC
& dc
,
2734 const wxString
& title
,
2739 void wxGTKRenderer::DrawFrameIcon(wxDC
& dc
,
2746 void wxGTKRenderer::DrawFrameButton(wxDC
& dc
,
2747 wxCoord x
, wxCoord y
,
2753 wxRect
wxGTKRenderer::GetFrameClientArea(const wxRect
& rect
, int flags
) const
2758 wxSize
wxGTKRenderer::GetFrameTotalSize(const wxSize
& clientSize
, int flags
) const
2763 wxSize
wxGTKRenderer::GetFrameMinSize(int flags
) const
2768 wxSize
wxGTKRenderer::GetFrameIconSize() const
2770 return wxSize(-1, -1);
2773 int wxGTKRenderer::HitTestFrame(const wxRect
& rect
, const wxPoint
& pt
, int flags
) const
2775 return wxHT_TOPLEVEL_CLIENT_AREA
;
2779 // ----------------------------------------------------------------------------
2781 // ----------------------------------------------------------------------------
2783 static char *error_xpm
[] = {
2784 /* columns rows colors chars-per-pixel */
2787 ". c #000001010101",
2788 "X c #010101010101",
2789 "o c #010102020202",
2790 "O c #020202020202",
2791 "+ c #020203030303",
2792 "@ c #030302020202",
2794 "$ c #020204040404",
2795 "% c #030304040404",
2796 "& c #070703030202",
2797 "* c #040404040404",
2798 "= c #040405050505",
2800 "; c #050507070707",
2801 ": c #060606060606",
2802 "> c #060607070707",
2803 ", c #070707070707",
2804 "< c #070709090909",
2805 "1 c #0c0c04040303",
2806 "2 c #0d0d04040404",
2807 "3 c #0d0d05050404",
2809 "5 c #080809090909",
2810 "6 c #090909090909",
2811 "7 c #0b0b0b0b0b0b",
2812 "8 c #0a0a0d0d0d0d",
2813 "9 c #0b0b0d0d0d0d",
2814 "0 c #0c0c0c0c0c0c",
2816 "w c #0d0d0f0f1010",
2817 "e c #101006060505",
2818 "r c #141404040303",
2819 "t c #141407070606",
2820 "y c #171707070606",
2821 "u c #1d1d09090707",
2822 "i c #181809090808",
2823 "p c #1d1d09090808",
2824 "a c #1e1e0a0a0808",
2825 "s c #1e1e0b0b0909",
2826 "d c #101010101010",
2827 "f c #101011111212",
2829 "h c #131313131313",
2831 "k c #181818181818",
2832 "l c #191919191919",
2834 "x c #1d1d1d1d1d1d",
2836 "v c #24240b0b0a0a",
2837 "b c #27270d0d0b0b",
2838 "n c #2b2b0e0e0c0c",
2839 "m c #2d2d0e0e0b0b",
2840 "M c #30300e0e0b0b",
2841 "N c #33330d0d0909",
2842 "B c #3a3a0f0f0b0b",
2843 "V c #333310100e0e",
2844 "C c #373710100d0d",
2845 "Z c #373711110e0e",
2846 "A c #363612120f0f",
2847 "S c #3d3d13130f0f",
2848 "D c #363612121010",
2850 "G c #252525252525",
2851 "H c #2a2a2a2a2a2a",
2853 "K c #323232323232",
2856 "I c #3f3f3f3f3f3f",
2857 "U c #414113130e0e",
2858 "Y c #414113130f0f",
2859 "T c #404013131010",
2860 "R c #404014141111",
2861 "E c #404015151212",
2862 "W c #4d4d17171212",
2863 "Q c #4e4e18181313",
2864 "! c #4e4e18181414",
2865 "~ c #4e4e19191515",
2866 "^ c #4e4e1a1a1616",
2867 "/ c #57571b1b1515",
2868 "( c #595917171010",
2869 ") c #5b5b1a1a1313",
2870 "_ c #58581b1b1616",
2871 "` c #58581c1c1717",
2872 "' c #5c5c1e1e1a1a",
2873 "] c #5c5c1f1f1b1b",
2874 "[ c #6e6e19190f0f",
2875 "{ c #67671c1c1616",
2876 "} c #6b6b1b1b1212",
2877 "| c #68681e1e1717",
2878 " . c #6e6e1e1e1616",
2879 ".. c #79791e1e1515",
2880 "X. c #666622221d1d",
2881 "o. c #6b6b24241e1e",
2882 "O. c #6c6c22221d1d",
2883 "+. c #6d6d24241f1f",
2884 "@. c #7d7d23231c1c",
2885 "#. c #727226262020",
2886 "$. c #757526262020",
2887 "%. c #777728282222",
2888 "&. c #7f7f28282121",
2889 "*. c #484848484848",
2891 "-. c #555555555555",
2892 ";. c #656565656565",
2894 ">. c #94941f1f1212",
2895 ",. c #96961f1f1111",
2896 "<. c #98981f1f1111",
2897 "1. c #818126261e1e",
2898 "2. c #858523231919",
2899 "3. c #858525251c1c",
2900 "4. c #878728281e1e",
2901 "5. c #898921211717",
2902 "6. c #8a8a22221616",
2903 "7. c #8b8b25251c1c",
2904 "8. c #8c8c27271d1d",
2905 "9. c #888828281f1f",
2906 "0. c #8a8a29291f1f",
2907 "q. c #959520201111",
2908 "w. c #969620201111",
2909 "e. c #949424241717",
2910 "r. c #969624241717",
2911 "t. c #909024241919",
2912 "y. c #929225251919",
2913 "u. c #929225251b1b",
2914 "i. c #959526261b1b",
2915 "p. c #969624241818",
2916 "a. c #90902a2a1f1f",
2917 "s. c #969629291f1f",
2918 "d. c #9b9b20201313",
2919 "f. c #999924241616",
2920 "g. c #9c9c21211212",
2921 "h. c #9f9f21211212",
2922 "j. c #9d9d22221414",
2923 "k. c #9d9d23231414",
2924 "l. c #9c9c23231616",
2925 "z. c #989827271b1b",
2926 "x. c #999927271b1b",
2927 "c. c #9a9a26261b1b",
2928 "v. c #989827271c1c",
2929 "b. c #9c9c25251818",
2930 "n. c #9c9c27271b1b",
2931 "m. c #9d9d27271b1b",
2932 "M. c #999928281c1c",
2933 "N. c #999929291e1e",
2934 "B. c #9b9b28281c1c",
2935 "V. c #9b9b28281d1d",
2936 "C. c #9a9a29291e1e",
2937 "Z. c #9a9a2a2a1e1e",
2938 "A. c #9a9a2b2b1f1f",
2939 "S. c #9b9b2a2a1f1f",
2940 "D. c #9c9c28281c1c",
2941 "F. c #9e9e29291f1f",
2942 "G. c #9f9f29291e1e",
2943 "H. c #9e9e2a2a1e1e",
2944 "J. c #83832b2b2424",
2945 "K. c #83832c2c2525",
2946 "L. c #84842a2a2424",
2947 "P. c #8b8b29292121",
2948 "I. c #89892b2b2424",
2949 "U. c #8b8b2c2c2626",
2950 "Y. c #8f8f2a2a2222",
2951 "T. c #8f8f2b2b2323",
2952 "R. c #8d8d2e2e2828",
2953 "E. c #8f8f2f2f2828",
2954 "W. c #8f8f38383232",
2955 "Q. c #919129292020",
2956 "!. c #90902b2b2222",
2957 "~. c #91912d2d2525",
2958 "^. c #90902d2d2626",
2959 "/. c #969629292020",
2960 "(. c #95952c2c2323",
2961 "). c #97972c2c2222",
2962 "_. c #94942d2d2525",
2963 "`. c #94942e2e2626",
2964 "'. c #97972d2d2525",
2965 "]. c #96962e2e2424",
2966 "[. c #97972e2e2626",
2967 "{. c #97972f2f2727",
2968 "}. c #99992b2b2020",
2969 "|. c #99992c2c2121",
2970 " X c #98982d2d2323",
2971 ".X c #99992c2c2222",
2972 "XX c #9b9b2c2c2121",
2973 "oX c #9a9a2c2c2323",
2974 "OX c #98982d2d2424",
2975 "+X c #98982e2e2525",
2976 "@X c #98982e2e2626",
2977 "#X c #9d9d2b2b2121",
2978 "$X c #9e9e2a2a2020",
2979 "%X c #9c9c2c2c2121",
2980 "&X c #9c9c2d2d2323",
2981 "*X c #9d9d2e2e2323",
2982 "=X c #9f9f2d2d2323",
2983 "-X c #9e9e2e2e2020",
2984 ";X c #9f9f2e2e2323",
2985 ":X c #9c9c2d2d2424",
2986 ">X c #9d9d2f2f2525",
2987 ",X c #9c9c2f2f2626",
2988 "<X c #9d9d2f2f2626",
2989 "1X c #9f9f2e2e2424",
2990 "2X c #9f9f2f2f2525",
2991 "3X c #9f9f2f2f2626",
2992 "4X c #939330302828",
2993 "5X c #909036362f2f",
2994 "6X c #949430302929",
2995 "7X c #959530302828",
2996 "8X c #949430302a2a",
2997 "9X c #969630302828",
2998 "0X c #969630302929",
2999 "qX c #9d9d30302727",
3000 "wX c #9e9e30302626",
3001 "eX c #9e9e30302727",
3002 "rX c #9e9e31312727",
3003 "tX c #9f9f30302626",
3004 "yX c #989831312929",
3005 "uX c #9a9a30302929",
3006 "iX c #9a9a31312a2a",
3007 "pX c #9a9a32322a2a",
3008 "aX c #9d9d31312929",
3009 "sX c #9d9d32322929",
3010 "dX c #9c9c32322a2a",
3011 "fX c #9d9d32322a2a",
3012 "gX c #9d9d33332a2a",
3013 "hX c #9d9d33332b2b",
3014 "jX c #9e9e31312828",
3015 "kX c #9e9e31312929",
3016 "lX c #9f9f31312828",
3017 "zX c #9e9e32322929",
3018 "xX c #9f9f32322a2a",
3019 "cX c #9f9f33332a2a",
3020 "vX c #9f9f33332b2b",
3021 "bX c #9d9d3a3a3232",
3022 "nX c #9f9f39393030",
3023 "mX c #9f9f3e3e3636",
3024 "MX c #a3a323231313",
3025 "NX c #a0a022221414",
3026 "BX c #a2a223231414",
3027 "VX c #a0a024241616",
3028 "CX c #a4a422221212",
3029 "ZX c #a4a423231313",
3030 "AX c #a5a522221212",
3031 "SX c #a6a622221212",
3032 "DX c #a6a622221313",
3033 "FX c #a7a722221212",
3034 "GX c #a4a424241515",
3035 "HX c #a5a525251616",
3036 "JX c #a7a724241414",
3037 "KX c #a7a724241515",
3038 "LX c #a6a625251717",
3039 "PX c #a7a725251616",
3040 "IX c #a7a725251717",
3041 "UX c #a6a626261717",
3042 "YX c #a0a025251818",
3043 "TX c #a3a325251818",
3044 "RX c #a2a226261818",
3045 "EX c #a3a326261818",
3046 "WX c #a2a227271a1a",
3047 "QX c #a2a227271b1b",
3048 "!X c #a3a327271a1a",
3049 "~X c #a5a527271919",
3050 "^X c #a5a527271a1a",
3051 "/X c #a6a626261818",
3052 "(X c #a6a627271818",
3053 ")X c #a6a627271919",
3054 "_X c #a3a328281b1b",
3055 "`X c #a1a128281c1c",
3056 "'X c #a1a129291d1d",
3057 "]X c #a1a129291e1e",
3058 "[X c #a0a02a2a1f1f",
3059 "{X c #a1a12a2a1f1f",
3060 "}X c #a2a228281c1c",
3061 "|X c #a2a229291c1c",
3062 " o c #a3a32b2b1f1f",
3063 ".o c #a5a528281a1a",
3064 "Xo c #a5a528281b1b",
3065 "oo c #a5a529291b1b",
3066 "Oo c #a4a429291c1c",
3067 "+o c #a4a429291d1d",
3068 "@o c #a5a529291c1c",
3069 "#o c #a5a529291d1d",
3070 "$o c #a4a42a2a1d1d",
3071 "%o c #a4a42a2a1e1e",
3072 "&o c #a4a42b2b1e1e",
3073 "*o c #a4a42b2b1f1f",
3074 "=o c #a9a921211010",
3075 "-o c #a9a921211111",
3076 ";o c #a8a822221111",
3077 ":o c #a9a922221111",
3078 ">o c #a8a822221212",
3079 ",o c #a8a823231212",
3080 "<o c #a8a823231313",
3081 "1o c #abab23231313",
3082 "2o c #a8a823231414",
3083 "3o c #a9a924241313",
3084 "4o c #a8a824241414",
3085 "5o c #acac22221111",
3086 "6o c #aeae22221212",
3087 "7o c #aeae23231212",
3088 "8o c #afaf24241313",
3089 "9o c #a9a927271818",
3090 "0o c #abab27271919",
3091 "qo c #a8a829291b1b",
3092 "wo c #abab28281a1a",
3093 "eo c #a8a829291c1c",
3094 "ro c #a8a82a2a1d1d",
3095 "to c #abab29291c1c",
3096 "yo c #adad29291b1b",
3097 "uo c #adad2a2a1b1b",
3098 "io c #aeae28281a1a",
3099 "po c #adad2b2b1d1d",
3100 "ao c #b1b123231111",
3101 "so c #b3b323231010",
3102 "do c #b3b323231111",
3103 "fo c #b1b126261515",
3104 "go c #b1b126261717",
3105 "ho c #b2b225251414",
3106 "jo c #b6b624241212",
3107 "ko c #b5b525251414",
3108 "lo c #b5b526261515",
3109 "zo c #b4b427271717",
3110 "xo c #b1b127271818",
3111 "co c #b3b32a2a1a1a",
3112 "vo c #b6b628281919",
3113 "bo c #b7b728281919",
3114 "no c #b5b52a2a1c1c",
3115 "mo c #b4b42c2c1d1d",
3116 "Mo c #b9b923231111",
3117 "No c #bbbb25251313",
3118 "Bo c #baba26261414",
3119 "Vo c #bebe25251212",
3120 "Co c #bdbd27271616",
3121 "Zo c #baba2b2b1a1a",
3122 "Ao c #bcbc2a2a1818",
3123 "So c #bebe2b2b1b1b",
3124 "Do c #bdbd2c2c1d1d",
3125 "Fo c #a0a02a2a2020",
3126 "Go c #a0a02b2b2020",
3127 "Ho c #a2a22b2b2020",
3128 "Jo c #a0a02c2c2020",
3129 "Ko c #a0a02c2c2121",
3130 "Lo c #a0a02d2d2222",
3131 "Po c #a0a02d2d2323",
3132 "Io c #a1a12d2d2222",
3133 "Uo c #a0a02e2e2323",
3134 "Yo c #a1a12f2f2222",
3135 "To c #a2a22d2d2121",
3136 "Ro c #a3a32c2c2020",
3137 "Eo c #a3a32c2c2121",
3138 "Wo c #a3a32d2d2121",
3139 "Qo c #a2a22d2d2222",
3140 "!o c #a2a22e2e2323",
3141 "~o c #a0a02e2e2424",
3142 "^o c #a0a02f2f2525",
3143 "/o c #a1a12f2f2424",
3144 "(o c #a1a12f2f2525",
3145 ")o c #a2a22e2e2424",
3146 "_o c #a2a22f2f2424",
3147 "`o c #a9a92f2f2020",
3148 "'o c #aaaa2f2f2020",
3149 "]o c #a0a031312727",
3150 "[o c #a1a130302626",
3151 "{o c #a1a130302727",
3152 "}o c #a0a031312828",
3153 "|o c #a0a032322929",
3154 " O c #a0a032322a2a",
3155 ".O c #a1a137372d2d",
3156 "XO c #a2a236362c2c",
3157 "oO c #a6a636362b2b",
3158 "OO c #a3a338382e2e",
3159 "+O c #a7a739392f2f",
3160 "@O c #a7a73a3a2f2f",
3161 "#O c #abab32322424",
3162 "$O c #abab32322525",
3163 "%O c #aaaa33332626",
3164 "&O c #aaaa33332727",
3165 "*O c #abab33332626",
3166 "=O c #aaaa34342727",
3167 "-O c #acac30302121",
3168 ";O c #acac30302222",
3169 ":O c #acac31312323",
3170 ">O c #a9a935352929",
3171 ",O c #a9a936362a2a",
3172 "<O c #a9a936362b2b",
3173 "1O c #a9a937372b2b",
3174 "2O c #aaaa34342828",
3175 "3O c #aaaa35352929",
3176 "4O c #a8a837372c2c",
3177 "5O c #a9a937372c2c",
3178 "6O c #a8a838382d2d",
3179 "7O c #a8a838382e2e",
3180 "8O c #a8a839392e2e",
3181 "9O c #a9a93f3f2f2f",
3182 "0O c #a2a23b3b3232",
3183 "qO c #a2a23d3d3535",
3184 "wO c #a2a23e3e3636",
3185 "eO c #a6a63b3b3131",
3186 "rO c #a5a53d3d3434",
3187 "tO c #a5a53e3e3535",
3188 "yO c #afaf3f3f3333",
3189 "uO c #c3c325251212",
3190 "iO c #c3c326261313",
3191 "pO c #c3c327271414",
3192 "aO c #c7c728281616",
3193 "sO c #c6c62c2c1a1a",
3194 "dO c #c7c72e2e1d1d",
3195 "fO c #cdcd2e2e1c1c",
3196 "gO c #cfcf2f2f1c1c",
3197 "hO c #d0d028281313",
3198 "jO c #d3d329291414",
3199 "kO c #d5d529291313",
3200 "lO c #d0d02e2e1b1b",
3201 "zO c #d8d829291414",
3202 "xO c #dddd2a2a1414",
3203 "cO c #dddd2d2d1717",
3204 "vO c #dfdf30301c1c",
3205 "bO c #e2e22b2b1515",
3206 "nO c #ebeb2d2d1414",
3207 "mO c #eded2e2e1717",
3208 "MO c #e4e431311b1b",
3209 "NO c #e9e930301a1a",
3210 "BO c #ebeb31311b1b",
3211 "VO c #e8e833331d1d",
3212 "CO c #e9e932321c1c",
3213 "ZO c #ebeb33331e1e",
3214 "AO c #eeee30301a1a",
3215 "SO c #eeee32321b1b",
3216 "DO c #eaea3a3a1b1b",
3217 "FO c #f1f132321b1b",
3218 "GO c #f3f331311919",
3219 "HO c #f7f732321b1b",
3220 "JO c #f6f636361b1b",
3221 "KO c #f6f638381c1c",
3222 "LO c #fcfc30301717",
3223 "PO c #fefe33331717",
3224 "IO c #ffff32321616",
3225 "UO c #fdfd35351717",
3226 "YO c #ffff34341717",
3227 "TO c #fafa30301919",
3228 "RO c #fafa31311818",
3229 "EO c #fafa36361919",
3230 "WO c #fdfd33331919",
3231 "QO c #ffff33331818",
3232 "!O c #fdfd35351818",
3233 "~O c #fafa3c3c1a1a",
3234 "^O c #fafa3d3d1a1a",
3235 "/O c #fbfb3d3d1d1d",
3236 "(O c #fdfd38381919",
3237 ")O c #fcfc39391a1a",
3238 "_O c #ffff3a3a1a1a",
3239 "`O c #ffff3f3f1b1b",
3240 "'O c #ffff3c3c1d1d",
3241 "]O c #ffff3e3e1d1d",
3242 "[O c #c1c178782e2e",
3243 "{O c #ffff40401e1e",
3244 "}O c #d4d48d8d1d1d",
3245 "|O c #cdcd86862222",
3246 " + c #c1c181813838",
3247 ".+ c #c7c79d9d3737",
3248 "X+ c #c5c59c9c3939",
3249 "o+ c #c4c49c9c3a3a",
3250 "O+ c #c8c89b9b3030",
3251 "++ c #cbcb9d9d3131",
3252 "@+ c #caca9e9e3434",
3253 "#+ c #cccc9d9d3030",
3254 "$+ c #cccc9f9f3232",
3255 "%+ c #cbcba0a03737",
3256 "&+ c #cfcfa3a33737",
3257 "*+ c #cfcfa3a33838",
3258 "=+ c #cfcfa5a53e3e",
3259 "-+ c #d5d5a8a82e2e",
3260 ";+ c #dadaa8a82f2f",
3261 ":+ c #dadaacac2f2f",
3262 ">+ c #dbdbacac2e2e",
3263 ",+ c #dddda8a82a2a",
3264 "<+ c #ddddacac2a2a",
3265 "1+ c #dedeadad2929",
3266 "2+ c #dfdfaeae2828",
3267 "3+ c #dcdcadad2d2d",
3268 "4+ c #d0d0a1a13131",
3269 "5+ c #d1d1a2a23030",
3270 "6+ c #d1d1a3a33333",
3271 "7+ c #d2d2a3a33232",
3272 "8+ c #d3d3a3a33232",
3273 "9+ c #d3d3a4a43333",
3274 "0+ c #d1d1a4a43636",
3275 "q+ c #d1d1a4a43737",
3276 "w+ c #d2d2a4a43535",
3277 "e+ c #d2d2a4a43636",
3278 "r+ c #d5d5a5a53333",
3279 "t+ c #d5d5a6a63434",
3280 "y+ c #d4d4a6a63737",
3281 "u+ c #d6d6a7a73535",
3282 "i+ c #d7d7a7a73434",
3283 "p+ c #d2d2a5a53939",
3284 "a+ c #d3d3a6a63838",
3285 "s+ c #d3d3a6a63a3a",
3286 "d+ c #d0d0a5a53d3d",
3287 "f+ c #d1d1a5a53c3c",
3288 "g+ c #d0d0a5a53f3f",
3289 "h+ c #d8d8a7a73333",
3290 "j+ c #d9d9a8a83232",
3291 "k+ c #d9d9acac3232",
3292 "l+ c #dfdfadad3636",
3293 "z+ c #d9d9abab3e3e",
3294 "x+ c #dadaaeae3939",
3295 "c+ c #dbdbafaf3a3a",
3296 "v+ c #dadaacac3f3f",
3297 "b+ c #dbdbadad3e3e",
3298 "n+ c #dfdfb1b13535",
3299 "m+ c #dfdfb0b03636",
3300 "M+ c #dcdcb0b03b3b",
3301 "N+ c #ddddb0b03a3a",
3302 "B+ c #dedeb1b13939",
3303 "V+ c #e3e3afaf2222",
3304 "C+ c #e0e0adad2525",
3305 "Z+ c #e1e1aeae2424",
3306 "A+ c #e4e4afaf2121",
3307 "S+ c #e2e2b2b23232",
3308 "D+ c #e0e0b2b23434",
3309 "F+ c #cfcfa5a54040",
3310 "G+ c #d3d3aaaa4747",
3311 "H+ c #d5d5abab4343",
3312 "J+ c #d6d6abab4242",
3313 "K+ c #d4d4aaaa4444",
3314 "L+ c #d2d2aaaa4848",
3315 "P+ c #d8d8acac4040",
3316 "I+ c #dfdfb4b44545",
3317 "U+ c #fbfbfbfbfbfb",
3319 "T+ c #fdfdfdfdfdfd",
3320 "R+ c #fefefefefefe",
3324 "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+",
3325 "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+",
3326 "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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",
3358 "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+",
3359 "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+",
3360 "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+",
3361 "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+",
3362 "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+",
3363 "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+",
3364 "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+",
3365 "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+",
3366 "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+",
3367 "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+",
3368 "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+",
3369 "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+",
3370 "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+",
3371 "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+"
3374 static char *info_xpm
[] = {
3375 /* columns rows colors chars-per-pixel */
3378 ". c #010101010101",
3379 "X c #020202020202",
3380 "o c #050505050404",
3382 "+ c #080808080707",
3383 "@ c #090909090808",
3384 "# c #0b0b0b0b0909",
3385 "$ c #0b0b0b0b0b0b",
3386 "% c #0c0c0c0c0b0b",
3387 "& c #0d0d0d0d0a0a",
3388 "* c #0c0c0c0c0c0c",
3389 "= c #0f0f0e0e0c0c",
3390 "- c #0f0f0f0f0e0e",
3392 ": c #101010100e0e",
3393 "> c #121212120f0f",
3394 ", c #101010101010",
3395 "< c #121212121111",
3396 "1 c #131313131111",
3397 "2 c #131313131313",
3398 "3 c #141414141111",
3399 "4 c #141414141212",
3400 "5 c #161616161313",
3401 "6 c #161616161414",
3402 "7 c #1a1a1a1a1717",
3403 "8 c #1d1d1d1d1616",
3404 "9 c #191919191919",
3405 "0 c #1e1e1e1e1e1e",
3406 "q c #20201d1d1313",
3407 "w c #202020201c1c",
3408 "e c #212121211d1d",
3409 "r c #212120201e1e",
3410 "t c #232323231f1f",
3411 "y c #242421211919",
3413 "i c #272727272727",
3414 "p c #2a2a2a2a2727",
3415 "a c #282828282828",
3416 "s c #2a2a2a2a2a2a",
3417 "d c #2c2c2c2c2a2a",
3418 "f c #2f2f2f2f2929",
3419 "g c #2d2d2d2d2d2d",
3421 "j c #313131312b2b",
3422 "k c #303030302f2f",
3423 "l c #333333332f2f",
3424 "z c #353535352e2e",
3425 "x c #383835352626",
3426 "c c #3b3b37372424",
3427 "v c #333333333131",
3429 "n c #343434343434",
3430 "m c #353535353535",
3431 "M c #393937373232",
3432 "N c #383838383737",
3433 "B c #3d3d3d3d3535",
3435 "C c #3e3e3e3e3e3e",
3436 "Z c #42423f3f3636",
3437 "A c #434340403232",
3438 "S c #424242423a3a",
3439 "D c #434343433d3d",
3440 "F c #444444443b3b",
3441 "G c #474744443939",
3442 "H c #4f4f49493838",
3443 "J c #4d4d49493c3c",
3444 "K c #434343434242",
3445 "L c #434343434343",
3446 "P c #474747474242",
3447 "I c #464646464444",
3448 "U c #464646464646",
3450 "T c #4b4b4b4b4444",
3451 "R c #4d4d4c4c4747",
3452 "E c #4e4e4e4e4545",
3453 "W c #494949494949",
3454 "Q c #4b4b4b4b4b4b",
3455 "! c #4e4e4e4e4e4e",
3456 "~ c #4f4f4f4f4e4e",
3457 "^ c #525252524848",
3458 "/ c #525252524949",
3459 "( c #555555554e4e",
3460 ") c #565656564f4f",
3461 "_ c #5a5a59594c4c",
3462 "` c #5f5f5c5c4f4f",
3465 "[ c #585858585151",
3466 "{ c #585858585858",
3467 "} c #595959595858",
3468 "| c #5c5c5c5c5b5b",
3469 " . c #5f5f5e5e5959",
3470 ".. c #6d6d66664d4d",
3471 "X. c #646461615959",
3472 "o. c #71716d6d5b5b",
3473 "O. c #797971715757",
3474 "+. c #626262626262",
3476 "#. c #646464646464",
3477 "$. c #696969696464",
3478 "%. c #6d6d6d6d6464",
3479 "&. c #696969696868",
3480 "*. c #6b6b6b6b6a6a",
3481 "=. c #6d6d6d6d6d6d",
3482 "-. c #6f6f6f6f6f6f",
3483 ";. c #73736f6f6161",
3484 ":. c #707070706b6b",
3485 ">. c #717171716f6f",
3486 ",. c #757575756c6c",
3487 "<. c #797976766c6c",
3488 "1. c #7f7f7a7a6464",
3490 "3. c #757575757171",
3491 "4. c #7b7b7b7b7a7a",
3492 "5. c #7b7b7b7b7b7b",
3493 "6. c #7f7f7f7f7b7b",
3495 "8. c #818179795959",
3496 "9. c #808079795f5f",
3497 "0. c #8f8f82825555",
3498 "q. c #959588885757",
3499 "w. c #9b9b8c8c5a5a",
3500 "e. c #929289896363",
3501 "r. c #9d9d91916464",
3502 "t. c #a9a999995959",
3503 "y. c #abab9b9b5b5b",
3504 "u. c #b3b3a0a05e5e",
3505 "i. c #a9a9a0a07777",
3506 "p. c #aeaea4a47575",
3507 "a. c #b9b9a9a96464",
3508 "s. c #babaa8a86464",
3509 "d. c #b7b7aaaa7c7c",
3510 "f. c #c1c1aeae6767",
3511 "g. c #c4c4b2b26969",
3512 "h. c #c4c4b3b36b6b",
3513 "j. c #c6c6b3b36a6a",
3514 "k. c #c9c9b7b76d6d",
3515 "l. c #ccccb9b96e6e",
3516 "z. c #c1c1b3b37272",
3517 "x. c #c2c2b0b07171",
3518 "c. c #c6c6b6b67777",
3519 "v. c #cacab8b87171",
3520 "b. c #cdcdbcbc7070",
3521 "n. c #d1d1bcbc7070",
3522 "m. c #d1d1bfbf7373",
3523 "M. c #d1d1c0c07676",
3524 "N. c #d9d9c5c57777",
3525 "B. c #d9d9c6c67777",
3526 "V. c #dadac7c77777",
3527 "C. c #d9d9c6c67979",
3528 "Z. c #dbdbc7c77c7c",
3529 "A. c #dbdbc8c87878",
3530 "S. c #dbdbc9c97c7c",
3531 "D. c #dadac8c87e7e",
3532 "F. c #dbdbc9c97e7e",
3533 "G. c #e2e2cdcd7f7f",
3534 "H. c #e4e4d0d07e7e",
3535 "J. c #e4e4d0d07f7f",
3536 "K. c #e4e4d1d17e7e",
3537 "L. c #e6e6d2d27e7e",
3538 "P. c #818181818181",
3539 "I. c #838383838383",
3540 "U. c #848484848484",
3542 "T. c #898987878282",
3543 "R. c #8d8d8d8d8585",
3544 "E. c #8d8d8d8d8787",
3545 "W. c #929292928d8d",
3546 "Q. c #969696968e8e",
3547 "!. c #989895958585",
3548 "~. c #9b9b95958484",
3549 "^. c #929292929292",
3550 "/. c #939393939393",
3553 "_. c #9d9d9d9d9999",
3554 "`. c #9e9e9e9e9a9a",
3555 "'. c #a2a29c9c8484",
3557 "[. c #b8b8b0b09595",
3558 "{. c #a0a0a0a0a0a0",
3560 "|. c #a5a5a5a5a5a5",
3561 " X c #a7a7a7a7a7a7",
3562 ".X c #a9a9a9a9a4a4",
3563 "XX c #aeaeaeaea9a9",
3564 "oX c #babab6b6a9a9",
3565 "OX c #b3b3b3b3b0b0",
3566 "+X c #b3b3b3b3b1b1",
3567 "@X c #b4b4b4b4b2b2",
3568 "#X c #b4b4b4b4b4b4",
3569 "$X c #b6b6b6b6b6b6",
3570 "%X c #b9b9b9b9b1b1",
3572 "*X c #bbbbbbbbbbbb",
3573 "=X c #bcbcbcbcb9b9",
3575 ";X c #c1c1b9b99999",
3576 ":X c #c2c2bebeafaf",
3577 ">X c #d7d7c4c48080",
3578 ",X c #d8d8c7c78e8e",
3579 "<X c #dfdfcbcb8080",
3580 "1X c #dcdccbcb8484",
3581 "2X c #d7d7c8c89696",
3582 "3X c #c4c4c4c4b5b5",
3583 "4X c #c8c8c8c8b9b9",
3584 "5X c #cbcbcbcbbcbc",
3585 "6X c #dfdfd2d2a9a9",
3586 "7X c #e0e0cece8a8a",
3587 "8X c #e3e3d1d18686",
3588 "9X c #e7e7d1d18080",
3589 "0X c #e5e5d1d18787",
3590 "qX c #e7e7d4d48080",
3591 "wX c #e5e5d4d48d8d",
3592 "eX c #e6e6d6d68c8c",
3593 "rX c #eeeed6d68181",
3594 "tX c #efefd7d78282",
3595 "yX c #e8e8d6d68b8b",
3596 "uX c #e8e8d4d48d8d",
3597 "iX c #ececd7d78c8c",
3598 "pX c #efefd8d88181",
3599 "aX c #efefd8d88282",
3600 "sX c #efefd9d98686",
3601 "dX c #eeeedbdb8b8b",
3602 "fX c #eeeedada8d8d",
3603 "gX c #efefdada8e8e",
3604 "hX c #efefdcdc8b8b",
3605 "jX c #efefdddd8f8f",
3606 "kX c #eaeadada9191",
3607 "lX c #e9e9dada9696",
3608 "zX c #ededd9d99090",
3609 "xX c #efefdddd9292",
3610 "cX c #efefdddd9393",
3611 "vX c #ebebdbdb9999",
3612 "bX c #f1f1dcdc8686",
3613 "nX c #f3f3dede8787",
3614 "mX c #f4f4dede8787",
3615 "MX c #f2f2dcdc8a8a",
3616 "NX c #f3f3dfdf8d8d",
3617 "BX c #f0f0dcdc9191",
3618 "VX c #f1f1dcdc9292",
3619 "CX c #f0f0dfdf9292",
3620 "ZX c #f0f0dddd9c9c",
3621 "AX c #f1f1dfdfa1a1",
3622 "SX c #f1f1e0e08e8e",
3623 "DX c #f6f6e3e38f8f",
3624 "FX c #f7f7e5e58f8f",
3625 "GX c #f2f2e0e09090",
3626 "HX c #f2f2e0e09393",
3627 "JX c #f3f3e0e09393",
3628 "KX c #f3f3e2e29090",
3629 "LX c #f1f1e1e19595",
3630 "PX c #f2f2e0e09797",
3631 "IX c #f3f3e2e29595",
3632 "UX c #f3f3e2e29696",
3633 "YX c #f4f4e1e19191",
3634 "TX c #f5f5e1e19090",
3635 "RX c #f5f5e3e39191",
3636 "EX c #f5f5e2e29393",
3637 "WX c #f5f5e3e39393",
3638 "QX c #f4f4e3e39595",
3639 "!X c #f6f6e5e59191",
3640 "~X c #f6f6e4e49393",
3641 "^X c #f6f6e5e59393",
3642 "/X c #f7f7e4e49393",
3643 "(X c #f7f7e6e69191",
3644 ")X c #f6f6e4e49696",
3645 "_X c #f7f7e6e69595",
3646 "`X c #f6f6e6e69797",
3647 "'X c #f1f1e1e19b9b",
3648 "]X c #f2f2e2e29a9a",
3649 "[X c #f4f4e2e29898",
3650 "{X c #f6f6e4e49898",
3651 "}X c #f6f6e4e49999",
3652 "|X c #f6f6e5e59b9b",
3653 " o c #f4f4e4e49d9d",
3654 ".o c #f5f5e4e49c9c",
3655 "Xo c #f6f6e5e59d9d",
3656 "oo c #f7f7e6e69f9f",
3657 "Oo c #f8f8e6e69191",
3658 "+o c #f8f8e7e79191",
3659 "@o c #f8f8e7e79393",
3660 "#o c #f8f8e7e79595",
3661 "$o c #f8f8e7e79696",
3662 "%o c #f9f9e8e89b9b",
3663 "&o c #f9f9e9e99b9b",
3664 "*o c #f9f9e8e89e9e",
3665 "=o c #edede7e7baba",
3666 "-o c #f1f1e3e3a4a4",
3667 ";o c #f3f3e3e3a7a7",
3668 ":o c #f2f2e4e4a1a1",
3669 ">o c #f3f3e4e4a1a1",
3670 ",o c #f3f3e6e6a3a3",
3671 "<o c #f4f4e5e5a0a0",
3672 "1o c #f5f5e4e4a3a3",
3673 "2o c #f5f5e7e7a2a2",
3674 "3o c #f6f6e6e6a0a0",
3675 "4o c #f7f7e7e7a0a0",
3676 "5o c #f7f7e7e7a5a5",
3677 "6o c #f6f6e7e7a7a7",
3678 "7o c #f1f1e6e6adad",
3679 "8o c #f3f3e6e6adad",
3680 "9o c #f3f3e7e7adad",
3681 "0o c #f7f7e8e8a6a6",
3682 "qo c #f7f7e8e8a7a7",
3683 "wo c #f7f7eaeaafaf",
3684 "eo c #f9f9e9e9a7a7",
3685 "ro c #fafaeaeaa6a6",
3686 "to c #f8f8e8e8a9a9",
3687 "yo c #f8f8eaeaaeae",
3688 "uo c #f8f8eaeaafaf",
3689 "io c #fafaececafaf",
3690 "po c #f4f4e7e7b2b2",
3691 "ao c #f5f5e7e7b2b2",
3692 "so c #f4f4e7e7bbbb",
3693 "do c #f7f7ebebb1b1",
3694 "fo c #f4f4e9e9bbbb",
3695 "go c #f6f6ebebbebe",
3696 "ho c #f8f8ebebb1b1",
3697 "jo c #f9f9ebebb1b1",
3698 "ko c #fafaededb7b7",
3699 "lo c #f8f8ececb8b8",
3700 "zo c #f8f8ececb9b9",
3701 "xo c #f8f8ededbaba",
3702 "co c #fafaeeeebbbb",
3703 "vo c #c2c2c2c2c1c1",
3704 "bo c #c3c3c3c3c1c1",
3706 "mo c #c3c3c3c3c2c2",
3707 "Mo c #c7c7c7c7c5c5",
3708 "No c #cacacacac4c4",
3710 "Vo c #cacacacacaca",
3711 "Co c #cbcbcbcbcbcb",
3712 "Zo c #cfcfcfcfc8c8",
3714 "So c #cfcfcfcfcece",
3715 "Do c #d8d8d8d8cdcd",
3716 "Fo c #ddddd9d9caca",
3717 "Go c #d4d4d4d4d1d1",
3718 "Ho c #d7d7d7d7d3d3",
3719 "Jo c #d5d5d5d5d5d5",
3721 "Lo c #dadadadad8d8",
3722 "Po c #dadadadadada",
3724 "Uo c #dddddddddddd",
3725 "Yo c #dededededddd",
3726 "To c #dfdfdfdfdede",
3727 "Ro c #e0e0e0e0d7d7",
3728 "Eo c #e5e5e5e5dddd",
3729 "Wo c #f3f3eaeac1c1",
3730 "Qo c #f4f4e9e9c1c1",
3731 "!o c #f5f5e9e9c2c2",
3732 "~o c #f4f4e9e9c4c4",
3733 "^o c #f7f7eeeec3c3",
3734 "/o c #f4f4eaeac9c9",
3735 "(o c #f4f4eaeacaca",
3736 ")o c #f9f9efefcbcb",
3737 "_o c #f8f8efefcfcf",
3738 "`o c #f7f7efefd0d0",
3739 "'o c #f7f7eeeed9d9",
3740 "]o c #f7f7efefd8d8",
3741 "[o c #f9f9f0f0c7c7",
3742 "{o c #fafaf3f3d0d0",
3743 "}o c #fafaf2f2d2d2",
3744 "|o c #fafaf2f2d3d3",
3745 " O c #f8f8f1f1dbdb",
3746 ".O c #f9f9f1f1dbdb",
3747 "XO c #f8f8f2f2dbdb",
3748 "oO c #f9f9f2f2dbdb",
3749 "OO c #fafaf3f3dada",
3750 "+O c #fafaf3f3dbdb",
3751 "@O c #f8f8f1f1dcdc",
3752 "#O c #f8f8f2f2dede",
3753 "$O c #fafaf4f4d9d9",
3754 "%O c #fafaf5f5dede",
3755 "&O c #e7e7e7e7e1e1",
3756 "*O c #e4e4e4e4e4e4",
3757 "=O c #e9e9e9e9e2e2",
3758 "-O c #ebebebebe6e6",
3760 ":O c #edededede8e8",
3761 ">O c #ecececececec",
3763 "<O c #efefefefeeee",
3764 "1O c #efefefefefef",
3765 "2O c #f1f1f1f1ecec",
3766 "3O c #f2f2f2f2eeee",
3767 "4O c #fafaf3f3e5e5",
3768 "5O c #f9f9f4f4e0e0",
3769 "6O c #f9f9f4f4e2e2",
3770 "7O c #f9f9f4f4e3e3",
3771 "8O c #f9f9f5f5e3e3",
3772 "9O c #fafaf4f4e1e1",
3773 "0O c #f9f9f4f4e5e5",
3774 "qO c #f9f9f5f5e4e4",
3775 "wO c #f9f9f5f5e5e5",
3776 "eO c #f9f9f4f4e6e6",
3777 "rO c #f9f9f4f4e7e7",
3778 "tO c #f9f9f5f5e6e6",
3779 "yO c #f9f9f6f6e5e5",
3780 "uO c #f9f9f6f6e7e7",
3781 "iO c #fafaf5f5e4e4",
3782 "pO c #fafaf5f5e5e5",
3783 "aO c #fafaf5f5e6e6",
3784 "sO c #fafaf5f5e7e7",
3785 "dO c #fbfbf5f5e6e6",
3786 "fO c #fafaf6f6e6e6",
3787 "gO c #fafaf6f6e7e7",
3788 "hO c #fbfbf6f6e7e7",
3789 "jO c #f9f9f6f6eaea",
3790 "kO c #fafaf5f5e8e8",
3791 "lO c #fafaf6f6e8e8",
3792 "zO c #fafaf6f6e9e9",
3793 "xO c #fafaf7f7eaea",
3794 "cO c #fafaf7f7ebeb",
3795 "vO c #fbfbf7f7eaea",
3796 "bO c #fbfbf7f7ecec",
3797 "nO c #fbfbf7f7eded",
3798 "mO c #fafaf8f8ecec",
3799 "MO c #fbfbf8f8eded",
3800 "NO c #fbfbf8f8eeee",
3801 "BO c #fbfbf9f9efef",
3803 "CO c #f1f1f1f1f1f1",
3804 "ZO c #f4f4f4f4f0f0",
3805 "AO c #f4f4f4f4f1f1",
3806 "SO c #f5f5f5f5f2f2",
3807 "DO c #f6f6f6f6f3f3",
3808 "FO c #f4f4f4f4f4f4",
3810 "HO c #f6f6f6f6f4f4",
3811 "JO c #f7f7f7f7f5f5",
3812 "KO c #f6f6f6f6f6f6",
3814 "PO c #f8f8f8f8f5f5",
3815 "IO c #f8f8f8f8f6f6",
3816 "UO c #f8f8f8f8f7f7",
3817 "YO c #f9f9f9f9f7f7",
3818 "TO c #fafaf9f9f4f4",
3819 "RO c #fafafafaf6f6",
3820 "EO c #fbfbfbfbf7f7",
3821 "WO c #fefefcfcf0f0",
3822 "QO c #fefefcfcf1f1",
3823 "!O c #fefefcfcf3f3",
3824 "~O c #fefefcfcf4f4",
3825 "^O c #fefefcfcf5f5",
3826 "/O c #fefefdfdf5f5",
3827 "(O c #fefefdfdf6f6",
3828 ")O c #fefefdfdf7f7",
3829 "_O c #f9f9f9f9f8f8",
3830 "`O c #f9f9f9f9f9f9",
3831 "'O c #fafafafaf8f8",
3832 "]O c #fafafafaf9f9",
3833 "[O c #fbfbfbfbf8f8",
3834 "{O c #fbfbfbfbf9f9",
3836 "|O c #fbfbfbfbfafa",
3837 " + c #fbfbfbfbfbfb",
3838 ".+ c #fcfcfcfcf9f9",
3839 "X+ c #fcfcfcfcfafa",
3840 "o+ c #fcfcfcfcfbfb",
3841 "O+ c #fefefdfdf8f8",
3842 "++ c #fefefdfdf9f9",
3843 "@+ c #fefefdfdfafa",
3844 "#+ c #fefefdfdfbfb",
3845 "$+ c #fefefefefafa",
3846 "%+ c #fefefefefbfb",
3848 "*+ c #fdfdfdfdfcfc",
3849 "=+ c #fdfdfdfdfdfd",
3850 "-+ c #fefefefefcfc",
3851 ";+ c #fefefefefdfd",
3852 ":+ c #fefefefefefe",
3856 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+,+,+,+,+,+,+,+,+",
3857 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+(O>+>+>+>+>+>+>+>+,+,+,+,+,+,+",
3858 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+QOO+>+>+>+>+>+>+>+++!OO+>+>+>+>+>+>+>+>+,+,+,+,+,+",
3859 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+>+>+>+>+>+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+,+,+,+>+>+3OAOHO;O9 =XXXT - W.^.-.&.4 Y.*+*+*+X+[O;+;+@+>+>+>+>+>+>+>+>+>+,+",
3891 ",+,+,+,+,+,+,+,+,+,+,+,+>+>+:O3OAOHO ,.moVOVO%X/ I 6.=.O LO&+o+o+o+'O++@+O+%+>+>+>+>+>+>+>+>+,+",
3892 ",+,+,+,+,+,+,+,+,+,+,+,+,+>+Eo:O3OAO F v OX1OSo&.K ) i + +|O|O|O]O>+%+(O@+>+>+>+>+>+>+>+,+,+",
3893 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+5XEo-O2O* 5 > f d `.-.*. n ]O]O]O'O'O_O>+>+++O+>+>+>+>+>+>+,+,+,+",
3894 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].5XRo-OAo : e w N &.2. UOYOYOYOUOIOPO>+>+>+>+>+>+>+>+>+,+,+,+,+",
3895 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].Do&O3 @ 5 1 # j l k , JOJOJOHOHODOSO>+>+>+>+>+>+>+,+,+,+,+,+,+",
3896 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].5XE . 3 7 % : PoUoAOAOAOAOZO3O3O>+>+>+>+>+>+,+,+,+,+,+,+,+",
3897 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].X X . X * -O:O2O2O2O2O2O:O-O-O>+>+>+>+,+,+,+,+,+,+,+,+,+",
3898 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].3X4XDoRoRo=O=O=O=O=ORoRoDo>+>+,+,+,+,+,+,+,+,+,+,+,+",
3899 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].].].].].].5X5X5X5X5X].].].,+,+,+,+,+,+,+,+,+,+,+,+,+",
3900 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].].].].].].].].].].].].].].,+,+,+,+,+,+,+,+,+,+,+,+,+",
3901 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+].].].].].].].].].].].].].].].].].].].].].,+,+,+,+,+,+,+,+,+,+,+,+,+",
3902 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+",
3903 ",+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+,+"
3907 static char *warning_xpm
[] = {
3908 /* columns rows colors chars-per-pixel */
3911 ". c #010100000000",
3912 "X c #010101010000",
3913 "o c #010101010101",
3914 "O c #020201010000",
3915 "+ c #030301010000",
3916 "@ c #020202020000",
3917 "# c #020202020202",
3919 "% c #040403030000",
3920 "& c #050504040000",
3921 "* c #070704040000",
3922 "= c #040404040404",
3924 "; c #060606060606",
3925 ": c #090907070000",
3926 "> c #090907070101",
3927 ", c #0e0e03030202",
3928 "< c #0d0d04040303",
3929 "1 c #0a0a08080000",
3930 "2 c #0b0b09090000",
3931 "3 c #0e0e0b0b0000",
3933 "5 c #090909090909",
3935 "7 c #0b0b0b0b0b0b",
3937 "9 c #171704040202",
3938 "0 c #10100d0d0101",
3939 "q c #13130f0f0000",
3940 "w c #13130f0f0101",
3941 "e c #1c1c07070505",
3942 "r c #151510100101",
3943 "t c #191913130000",
3944 "y c #1d1d16160202",
3945 "u c #1e1e17170202",
3946 "i c #111111111111",
3947 "p c #161616161616",
3948 "a c #212107070505",
3949 "s c #222207070505",
3950 "d c #232307070404",
3951 "f c #232307070505",
3952 "g c #262608080606",
3953 "h c #2b2b0a0a0707",
3954 "j c #2c2c08080505",
3955 "k c #2e2e08080505",
3956 "l c #2e2e09090606",
3957 "z c #2e2e0a0a0808",
3958 "x c #24241c1c0303",
3959 "c c #25251d1d0202",
3960 "v c #25251d1d0303",
3961 "b c #27271e1e0202",
3962 "n c #3b3b0b0b0707",
3963 "m c #3b3b0c0c0909",
3964 "M c #3c3c0c0c0909",
3965 "N c #3d3d0c0c0909",
3966 "B c #3e3e0c0c0808",
3967 "V c #292920200303",
3968 "C c #2c2c23230303",
3969 "Z c #313126260404",
3970 "A c #313126260505",
3971 "S c #333327270404",
3972 "D c #38382c2c0505",
3973 "F c #3c3c2e2e0505",
3975 "H c #41410c0c0707",
3976 "J c #42420c0c0606",
3977 "K c #42420c0c0707",
3978 "L c #42420d0d0808",
3979 "P c #44440e0e0909",
3980 "I c #44440e0e0a0a",
3981 "U c #47470e0e0909",
3982 "Y c #46460e0e0a0a",
3983 "T c #49490d0d0707",
3984 "R c #4d4d0d0d0707",
3985 "E c #49490e0e0909",
3986 "W c #49490e0e0a0a",
3987 "Q c #4d4d10100c0c",
3988 "! c #52520e0e0707",
3989 "~ c #575711110909",
3990 "^ c #5a5a12120d0d",
3991 "/ c #5d5d11110b0b",
3992 "( c #5e5e11110a0a",
3993 ") c #5c5c12120d0d",
3994 "_ c #5e5e12120c0c",
3995 "` c #404031310404",
3996 "' c #404031310505",
3997 "] c #414132320606",
3998 "[ c #424233330505",
3999 "{ c #454535350606",
4000 "} c #4b4b3a3a0707",
4001 "| c #4e4e3d3d0606",
4002 " . c #51513f3f0707",
4003 ".. c #606012120b0b",
4004 "X. c #636311110909",
4005 "o. c #616113130e0e",
4006 "O. c #646412120909",
4007 "+. c #6a6a13130b0b",
4008 "@. c #6e6e13130a0a",
4009 "#. c #6e6e14140a0a",
4010 "$. c #6f6f14140b0b",
4011 "%. c #6d6d16160e0e",
4012 "&. c #6e6e15150c0c",
4013 "*. c #717115150d0d",
4014 "=. c #727215150d0d",
4015 "-. c #737315150c0c",
4016 ";. c #737316160e0e",
4017 ":. c #777715150c0c",
4018 ">. c #787815150b0b",
4019 ",. c #787815150c0c",
4020 "<. c #737317171111",
4021 "1. c #7a7a17171010",
4022 "2. c #787818181212",
4023 "3. c #7b7b19191212",
4024 "4. c #525240400707",
4025 "5. c #676750500909",
4026 "6. c #696952520a0a",
4027 "7. c #717157570a0a",
4028 "8. c #74745a5a0c0c",
4029 "9. c #7a7a61610909",
4030 "0. c #7c7c61610c0c",
4031 "q. c #858517170c0c",
4032 "w. c #868618180d0d",
4033 "e. c #8a8a18180c0c",
4034 "r. c #8a8a19190f0f",
4035 "t. c #808018181010",
4036 "y. c #80801a1a1313",
4037 "u. c #868619191010",
4038 "i. c #86861b1b1313",
4039 "p. c #87871b1b1212",
4040 "a. c #85851b1b1414",
4041 "s. c #88881a1a1111",
4042 "d. c #89891a1a1111",
4043 "f. c #8b8b1c1c1515",
4044 "g. c #8d8d1b1b1212",
4045 "h. c #8f8f1b1b1010",
4046 "j. c #8c8c1c1c1414",
4047 "k. c #90901a1a0f0f",
4048 "l. c #91911a1a0f0f",
4049 "z. c #92921a1a0e0e",
4050 "x. c #9b9b1b1b0e0e",
4051 "c. c #9a9a1c1c0f0f",
4052 "v. c #93931b1b1010",
4053 "b. c #90901e1e1212",
4054 "n. c #97971e1e1515",
4055 "m. c #99991d1d1313",
4056 "M. c #98981d1d1414",
4057 "N. c #98981f1f1717",
4058 "B. c #99991f1f1616",
4059 "V. c #9a9a1f1f1515",
4060 "C. c #9b9b1e1e1414",
4061 "Z. c #9b9b1f1f1717",
4062 "A. c #9c9c1e1e1313",
4063 "S. c #9d9d1e1e1212",
4064 "D. c #9e9e1d1d1111",
4065 "F. c #9f9f1d1d1010",
4066 "G. c #9f9f1e1e1313",
4067 "H. c #9d9d1f1f1515",
4068 "J. c #9c9c1f1f1616",
4069 "K. c #9e9e1e1e1414",
4070 "L. c #a0a01d1d0f0f",
4071 "P. c #a1a11c1c0e0e",
4072 "I. c #a2a21d1d0f0f",
4073 "U. c #a3a31c1c0e0e",
4074 "Y. c #a3a31d1d0f0f",
4075 "T. c #a4a41c1c0e0e",
4076 "R. c #a6a61d1d0f0f",
4077 "E. c #a7a71d1d0e0e",
4078 "W. c #a9a91d1d0f0f",
4079 "Q. c #a1a11d1d1010",
4080 "!. c #a1a11d1d1111",
4081 "~. c #a0a01e1e1212",
4082 "^. c #a2a21d1d1010",
4083 "/. c #b3b31f1f0f0f",
4084 "(. c #b2b21f1f1010",
4085 "). c #b9b920200f0f",
4086 "_. c #b6b621211111",
4087 "`. c #b7b720201010",
4088 "'. c #baba20201010",
4089 "]. c #bdbd21211111",
4090 "[. c #bfbf22221212",
4091 "{. c #abab42421616",
4092 "}. c #b1b140401010",
4093 "|. c #b9b95b5b1313",
4094 " X c #bbbb5b5b1111",
4095 ".X c #bfbf6f6f1616",
4096 "XX c #92924f4f4848",
4097 "oX c #c6c622221010",
4098 "OX c #c8c823231212",
4099 "+X c #caca23231010",
4100 "@X c #cdcd25251313",
4101 "#X c #d1d124241212",
4102 "$X c #d2d224241111",
4103 "%X c #d2d226261414",
4104 "&X c #d5d525251111",
4105 "*X c #d4d425251313",
4106 "=X c #d9d926261313",
4107 "-X c #dbdb26261212",
4108 ";X c #d8d827271515",
4109 ":X c #dcdc26261313",
4110 ">X c #dede26261212",
4111 ",X c #e0e027271212",
4112 "<X c #e3e327271313",
4113 "1X c #e6e627271212",
4114 "2X c #e4e42e2e1a1a",
4115 "3X c #ebeb27271313",
4116 "4X c #ebeb28281212",
4117 "5X c #e8e828281414",
4118 "6X c #eaea29291515",
4119 "7X c #eaea2a2a1616",
4120 "8X c #ecec29291313",
4121 "9X c #eeee29291313",
4122 "0X c #eded29291414",
4123 "qX c #ecec2a2a1616",
4124 "wX c #efef29291414",
4125 "eX c #f1f129291212",
4126 "rX c #f3f329291212",
4127 "tX c #f4f429291313",
4128 "yX c #f5f529291313",
4129 "uX c #f5f52a2a1313",
4130 "iX c #f6f629291313",
4131 "pX c #f7f729291313",
4132 "aX c #f4f429291414",
4133 "sX c #f4f42a2a1414",
4134 "dX c #f6f62b2b1414",
4135 "fX c #c1c169691616",
4136 "gX c #c2c26f6f1212",
4137 "hX c #c1c16f6f1414",
4138 "jX c #c5c56b6b1212",
4139 "kX c #c5c57e7e1616",
4140 "lX c #c7c77e7e1414",
4141 "zX c #c8c87e7e1414",
4142 "xX c #b9b993930e0e",
4143 "cX c #bdbd93931212",
4144 "vX c #c9c985851717",
4145 "bX c #cbcb86861717",
4146 "nX c #cdcd87871313",
4147 "mX c #cccc86861414",
4148 "MX c #cccc86861515",
4149 "NX c #cbcb89891414",
4150 "BX c #cfcf88881212",
4151 "VX c #cfcf8c8c1212",
4152 "CX c #c3c39b9b0f0f",
4153 "ZX c #c4c498981313",
4154 "AX c #c7c79a9a1414",
4155 "SX c #cbcb9e9e1313",
4156 "DX c #d1d189891212",
4157 "FX c #d2d288881414",
4158 "GX c #d0d08c8c1313",
4159 "HX c #d7d7a8a81616",
4160 "JX c #d7d7a8a81a1a",
4161 "KX c #d8d8a5a51c1c",
4162 "LX c #dadaaaaa1616",
4163 "PX c #dadaaaaa1717",
4164 "IX c #dbdbaaaa1616",
4165 "UX c #dbdbabab1717",
4166 "YX c #dcdcabab1515",
4167 "TX c #dcdcaeae1111",
4168 "RX c #dedeacac1313",
4169 "EX c #dfdfadad1313",
4170 "WX c #d8d8a9a91919",
4171 "QX c #d8d8a9a91a1a",
4172 "!X c #d9d9aaaa1919",
4173 "~X c #dfdfb1b11212",
4174 "^X c #e0e0adad1111",
4175 "/X c #e1e1aeae1212",
4176 "(X c #e0e0aeae1414",
4177 ")X c #e0e0b2b21313",
4178 "_X c #808080808080",
4181 "`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",
4182 "`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",
4183 "`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",
4184 "`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`X`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"`X`X`X`X`X`X`X`XJ @XY.L.^.^.^.!.!.!.!.~.~.~.~.G.G.G.G.K.K.K.H.H.H.H.J.J.J.J.Z.f.I `X`X`X`X",
4217 "`X`X`X`X`X`X`X`X9 >.! +.$.,.w.r.v.D.S.~.~.~.G.G.G.G.K.K.K.H.H.H.H.J.J.J.J.Z.Z.N.^ o `X`X`X`X",
4218 "`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",
4219 "`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",
4220 "`X`X`X`X`X`X`X`X $ $ # # # # # # # # # # # # # # # # # # # # # # # # # o `X`X`X`X",
4221 "`X`X`X`X`X`X`X`X`X 8 6 o o = = $ $ # # # # # # # # # # # # # # $ $ `X`X`X`X",
4222 "`X`X`X`X`X`X`X`X`X`X`X`X`X 5 5 4 `X`X`X`X",
4223 "`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",
4224 "`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",
4225 "`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",
4226 "`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",
4227 "`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",
4228 "`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"
4232 static char *question_xpm
[] = {
4233 /* columns rows colors chars-per-pixel */
4237 "X c #010101010101",
4238 "o c #000000000202",
4239 "O c #000001010202",
4240 "+ c #010101010202",
4241 "@ c #010102020303",
4242 "# c #020202020202",
4243 "$ c #020202020303",
4245 "& c #030305050707",
4246 "* c #040404040404",
4247 "= c #040404040606",
4248 "- c #070707070707",
4249 "; c #060607070808",
4250 ": c #060608080a0a",
4251 "> c #060608080b0b",
4253 "< c #0d0d0d0d0c0c",
4255 "2 c #191915150d0d",
4258 "5 c #22221c1c1212",
4259 "6 c #393939393939",
4260 "7 c #2b2b3d3d6161",
4261 "8 c #353545456464",
4262 "9 c #65654f4f2424",
4263 "0 c #6b6b55552727",
4264 "q c #6e6e55552626",
4265 "w c #707056562727",
4266 "e c #717159592929",
4267 "r c #73735f5f3b3b",
4268 "t c #7c7c62622d2d",
4269 "y c #7f7f69694141",
4271 "i c #727272727272",
4272 "p c #737375757979",
4274 "s c #808063632d2d",
4275 "d c #828266662f2f",
4276 "f c #87876a6a3131",
4277 "g c #8c8c6d6d3131",
4278 "h c #929273733535",
4279 "j c #939374743535",
4280 "k c #949475753636",
4281 "l c #979777773737",
4282 "z c #99997a7a3b3b",
4283 "x c #9d9d7d7d3a3a",
4284 "c c #a2a27f7f3b3b",
4285 "v c #92927c7c5252",
4286 "b c #a6a682823c3c",
4287 "n c #a8a884843d3d",
4288 "m c #aaaa86863e3e",
4289 "M c #a6a687874848",
4290 "N c #a3a38e8e5555",
4291 "B c #a4a48b8b5a5a",
4292 "V c #b3b38d8d4040",
4293 "C c #b8b892924343",
4294 "Z c #b9b993934444",
4295 "A c #bebe95954444",
4296 "S c #bebe9b9b5353",
4297 "D c #bebea3a36363",
4298 "F c #bfbfa1a16a6a",
4299 "G c #bebea2a27272",
4300 "H c #c0c097974545",
4301 "J c #c3c39f9f5555",
4302 "K c #c3c39f9f5757",
4303 "L c #c9c9a4a45b5b",
4304 "P c #d2d2a6a64c4c",
4305 "I c #d2d2a6a64d4d",
4306 "U c #d8d8abab4e4e",
4307 "Y c #d8d8acac5858",
4308 "T c #d8d8acac5b5b",
4309 "R c #d8d8b1b15f5f",
4310 "E c #c3c3a4a46666",
4311 "W c #c6c6a7a76a6a",
4312 "Q c #c9c9acac7373",
4313 "! c #d2d2b0b06c6c",
4314 "~ c #d8d8b1b16363",
4315 "^ c #d8d8b1b16565",
4316 "/ c #dcdcb4b46363",
4317 "( c #d8d8b5b56e6e",
4318 ") c #d8d8b6b66e6e",
4319 "_ c #dadab8b87272",
4320 "` c #ddddbcbc7474",
4321 "' c #d8d8baba7b7b",
4322 "] c #f7f7c3c35a5a",
4323 "[ c #f7f7c9c96d6d",
4324 "{ c #f7f7cfcf7e7e",
4325 "} c #aaaaaaaaaaaa",
4326 "| c #d8d8bebe8686",
4327 " . c #dcdcc4c49494",
4328 ".. c #f7f7d4d48c8c",
4329 "X. c #f7f7d8d89999",
4330 "o. c #f7f7dcdca5a5",
4331 "O. c #f7f7dfdfafaf",
4332 "+. c #f7f7e2e2b8b8",
4333 "@. c #f7f7e5e5c0c0",
4337 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4338 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4339 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4340 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4341 "$.$.$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U o 8 a a B ] [ R U b # #.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4353 "$.$.$.$.$.$.$.$.$.$.$.$.$. I { ] b 8 a #.#. B [ [ ) U d # } #.$.$.$.$.$.$.$.$.$.$.$.$.",
4354 "$.$.$.$.$.$.$.$.$.$.$.$.$. ] { ] b a #.#.$. B ] ) ) U 9 % } #.$.$.$.$.$.$.$.$.$.$.$.$.",
4355 "$.$.$.$.$.$.$.$.$.$.$.$.$. / R A d a #.$. E [ ' U b a } #.$.$.$.$.$.$.$.$.$.$.$.$.",
4356 "$.$.$.$.$.$.$.$.$.$.$.$.$. a #.$. g ! | R U e + a } #.$.$.$.$.$.$.$.$.$.$.$.$.",
4357 "$.$.$.$.$.$.$.$.$.$.$.$.$. : a #. Z ..| U A 3 a #.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4358 "$.$.$.$.$.$.$.$.$.$.$.$.$.$. a a a a a a - V [ | U U $ a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4359 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. a a a a #. ] ..( Y z . 3 a #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4360 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. 0 J ._ Q F 2 3 a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4361 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. f ! ( L W y & a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4362 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. l ' ^ T G . p } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4363 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. H ' ~ T v = a #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4364 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. U | R U r a } #.$.$.$.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$.$.$.$.$.",
4376 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. # } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4377 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. + a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4378 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. , , , a a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4379 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$. a a a } #.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4380 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4381 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4382 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4383 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.",
4384 "$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$."
4388 wxIcon
wxGTKRenderer::GetStdIcon(int which
) const
4392 case wxICON_INFORMATION
:
4393 return wxIcon(info_xpm
);
4395 case wxICON_QUESTION
:
4396 return wxIcon(question_xpm
);
4398 case wxICON_EXCLAMATION
:
4399 return wxIcon(warning_xpm
);
4402 wxFAIL_MSG(wxT("requested non existent standard icon"));
4403 // still fall through
4406 return wxIcon(error_xpm
);
4411 // ============================================================================
4413 // ============================================================================
4415 // ----------------------------------------------------------------------------
4416 // wxGTKInputHandler
4417 // ----------------------------------------------------------------------------
4419 wxGTKInputHandler::wxGTKInputHandler(wxGTKRenderer
*renderer
)
4421 m_renderer
= renderer
;
4424 bool wxGTKInputHandler::HandleKey(wxInputConsumer
*control
,
4425 const wxKeyEvent
& event
,
4431 bool wxGTKInputHandler::HandleMouse(wxInputConsumer
*control
,
4432 const wxMouseEvent
& event
)
4434 // clicking on the control gives it focus
4435 if ( event
.ButtonDown() && wxWindow::FindFocus() != control
->GetInputWindow() )
4437 control
->GetInputWindow()->SetFocus();
4445 bool wxGTKInputHandler::HandleMouseMove(wxInputConsumer
*control
,
4446 const wxMouseEvent
& event
)
4448 if ( event
.Entering() )
4450 control
->GetInputWindow()->SetCurrent(TRUE
);
4452 else if ( event
.Leaving() )
4454 control
->GetInputWindow()->SetCurrent(FALSE
);
4464 // ----------------------------------------------------------------------------
4465 // wxGTKCheckboxInputHandler
4466 // ----------------------------------------------------------------------------
4468 bool wxGTKCheckboxInputHandler::HandleKey(wxInputConsumer
*control
,
4469 const wxKeyEvent
& event
,
4474 int keycode
= event
.GetKeyCode();
4475 if ( keycode
== WXK_SPACE
|| keycode
== WXK_RETURN
)
4477 control
->PerformAction(wxACTION_CHECKBOX_TOGGLE
);
4486 // ----------------------------------------------------------------------------
4487 // wxGTKTextCtrlInputHandler
4488 // ----------------------------------------------------------------------------
4490 bool wxGTKTextCtrlInputHandler::HandleKey(wxInputConsumer
*control
,
4491 const wxKeyEvent
& event
,
4494 // handle only GTK-specific text bindings here, the others are handled in
4498 wxControlAction action
;
4499 int keycode
= event
.GetKeyCode();
4500 if ( event
.ControlDown() )
4505 action
= wxACTION_TEXT_HOME
;
4509 action
= wxACTION_TEXT_LEFT
;
4513 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_RIGHT
;
4517 action
= wxACTION_TEXT_END
;
4521 action
= wxACTION_TEXT_RIGHT
;
4525 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_LEFT
;
4529 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_END
;
4533 action
= wxACTION_TEXT_DOWN
;
4537 action
= wxACTION_TEXT_UP
;
4541 //delete the entire line
4542 control
->PerformAction(wxACTION_TEXT_HOME
);
4543 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_END
;
4547 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_WORD_LEFT
;
4551 else if ( event
.AltDown() )
4556 action
= wxACTION_TEXT_WORD_LEFT
;
4560 action
<< wxACTION_TEXT_PREFIX_DEL
<< wxACTION_TEXT_WORD_RIGHT
;
4564 action
= wxACTION_TEXT_WORD_RIGHT
;
4569 if ( action
!= wxACTION_NONE
)
4571 control
->PerformAction(action
);
4577 return wxStdTextCtrlInputHandler::HandleKey(control
, event
, pressed
);