Changeset 56231

Show
Ignore:
Timestamp:
10/11/08 08:55:23 (6 weeks ago)
Author:
FM
Message:

fix the menu item bitmaps for wxMSW;
fix the name of the screenshot generated for wxHyperlinkCtrl on platforms != wxGTK

Location:
wxWidgets/trunk/utils/screenshotgen/src
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/utils/screenshotgen/src/autocapture.cpp

    r56123 r56231  
    167167    ctrl.name.MakeLower(); 
    168168 
     169        // AD-HOC FIX for wxHyperlink 
     170        if (ctrl.name == "generichyperlinkctrl") 
     171                ctrl.name = "hyperlinkctrl"; 
     172 
    169173    // take the screenshot 
    170174    wxBitmap screenshot = Capture(rect); 
  • wxWidgets/trunk/utils/screenshotgen/src/guidesign.fbp

    r56221 r56231  
    7171            <event name="OnSize"></event> 
    7272            <event name="OnUpdateUI"></event> 
    73             <object class="wxMenuBar" expanded="0"> 
     73            <object class="wxMenuBar" expanded="1"> 
    7474                <property name="bg"></property> 
    7575                <property name="context_help"></property> 
     
    173173                    </object> 
    174174                    <object class="wxMenuItem" expanded="1"> 
    175                         <property name="bitmap">play; Load From Icon Resource [-1; -1]</property> 
     175                        <property name="bitmap">; Load From File</property> 
    176176                        <property name="checked">0</property> 
    177177                        <property name="enabled">1</property> 
     
    181181                        <property name="label">Regions&lt;Begin&gt;</property> 
    182182                        <property name="name">m_menuCapRect</property> 
    183                         <property name="permission">none</property> 
     183                        <property name="permission">protected</property> 
    184184                        <property name="shortcut">Ctrl+Alt+R</property> 
    185185                        <property name="unchecked_bitmap"></property> 
     
    188188                    </object> 
    189189                    <object class="wxMenuItem" expanded="1"> 
    190                         <property name="bitmap">stop; Load From Icon Resource [-1; -1]</property> 
     190                        <property name="bitmap">; Load From Icon Resource [-1; -1]</property> 
    191191                        <property name="checked">0</property> 
    192192                        <property name="enabled">0</property> 
     
    196196                        <property name="label">Regions&lt;End&gt;</property> 
    197197                        <property name="name">m_menuEndCapRect</property> 
    198                         <property name="permission">none</property> 
     198                        <property name="permission">protected</property> 
    199199                        <property name="shortcut">Ctrl+Alt+E</property> 
    200200                        <property name="unchecked_bitmap"></property> 
     
    15901590                                            <property name="pos"></property> 
    15911591                                            <property name="size"></property> 
    1592                                             <property name="style"></property> 
     1592                                            <property name="style">wxLC_REPORT</property> 
    15931593                                            <property name="subclass"></property> 
    15941594                                            <property name="tooltip">wxListCtrl</property> 
  • wxWidgets/trunk/utils/screenshotgen/src/guiframe.cpp

    r56221 r56231  
    11/////////////////////////////////////////////////////////////////////////// 
    2 // C++ code generated with wxFormBuilder (version Apr 21 2008) 
     2// C++ code generated with wxFormBuilder (version Apr 16 2008) 
    33// http://www.wxformbuilder.org/ 
    44// 
     
    5353        captureMenu->Append( m_menuCapFullScreen ); 
    5454         
    55         wxMenuItem* m_menuCapRect; 
    5655        m_menuCapRect = new wxMenuItem( captureMenu, idMenuCapRect, wxString( _("Regions<Begin>") ) + wxT('\t') + wxT("Ctrl+Alt+R"), _("Manually specify rectangular regions for the screenshots."), wxITEM_NORMAL ); 
    57         #ifdef __WXMSW__ 
    58         m_menuCapRect->SetBitmaps( wxICON( play ) ); 
    59         #elif defined( __WXGTK__ ) 
    60         m_menuCapRect->SetBitmap( wxICON( play ) ); 
    61         #endif 
    6256        captureMenu->Append( m_menuCapRect ); 
    6357         
    64         wxMenuItem* m_menuEndCapRect; 
    6558        m_menuEndCapRect = new wxMenuItem( captureMenu, idMenuEndCapRect, wxString( _("Regions<End>") ) + wxT('\t') + wxT("Ctrl+Alt+E"), _("Stop manually generating screenshots."), wxITEM_NORMAL ); 
    66         #ifdef __WXMSW__ 
    67         m_menuEndCapRect->SetBitmaps( wxICON( stop ) ); 
    68         #elif defined( __WXGTK__ ) 
    69         m_menuEndCapRect->SetBitmap( wxICON( stop ) ); 
    70         #endif 
    7159        captureMenu->Append( m_menuEndCapRect ); 
    7260        m_menuEndCapRect->Enable( false ); 
     
    217205        fgSizer2->Add( m_treeCtrl1, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 20 ); 
    218206         
    219         m_listCtrl1 = new wxListCtrl( m_panel2, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0|wxSUNKEN_BORDER ); 
     207        m_listCtrl1 = new wxListCtrl( m_panel2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER ); 
    220208        m_listCtrl1->SetToolTip( _("wxListCtrl") ); 
    221209         
  • wxWidgets/trunk/utils/screenshotgen/src/guiframe.h

    r56149 r56231  
    11/////////////////////////////////////////////////////////////////////////// 
    2 // C++ code generated with wxFormBuilder (version Apr 21 2008) 
     2// C++ code generated with wxFormBuilder (version Apr 16 2008) 
    33// http://www.wxformbuilder.org/ 
    44// 
     
    8181                wxMenu* fileMenu; 
    8282                wxMenu* captureMenu; 
     83                wxMenuItem* m_menuCapRect; 
     84                wxMenuItem* m_menuEndCapRect; 
    8385                wxMenu* helpMenu; 
    8486                wxNotebook* m_notebook1; 
  • wxWidgets/trunk/utils/screenshotgen/src/screenshot_main.cpp

    r56221 r56231  
    3535#include "autocapture.h" 
    3636 
     37#include "bitmaps/play.xpm" 
     38#include "bitmaps/stop.xpm" 
     39 
    3740 
    3841// ---------------------------------------------------------------------------- 
     
    105108 
    106109    // Add items into wxListCtrl 
    107     for(long index = 0; index < 5; index++) 
    108         m_listCtrl1->InsertItem( index, wxString::Format(_("Item\n(0,%d)"),index)); 
     110        m_listCtrl1->InsertColumn(0, "Names"); 
     111        m_listCtrl1->InsertColumn(1, "Values"); 
     112        for(long index = 0; index < 5; index++) { 
     113        m_listCtrl1->InsertItem( index, wxString::Format(_("Item%d"),index)); 
     114                m_listCtrl1->SetItem(index, 1, wxString::Format("%d", index)); 
     115        } 
    109116 
    110117    // Check the first item in wxCheckListBox 
     
    120127    // set minimum size hints 
    121128    GetSizer()->SetSizeHints(this); 
     129 
     130        // add bitmaps to the menus 
     131        m_menuCapRect->SetBitmaps( wxIcon(play_xpm) ); 
     132        m_menuEndCapRect->SetBitmaps( wxIcon(stop_xpm) ); 
    122133} 
    123134