Changeset 56231
- Timestamp:
- 10/11/08 08:55:23 (6 weeks ago)
- Location:
- wxWidgets/trunk/utils/screenshotgen/src
- Files:
-
- 5 modified
-
autocapture.cpp (modified) (1 diff)
-
guidesign.fbp (modified) (6 diffs)
-
guiframe.cpp (modified) (3 diffs)
-
guiframe.h (modified) (2 diffs)
-
screenshot_main.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxWidgets/trunk/utils/screenshotgen/src/autocapture.cpp
r56123 r56231 167 167 ctrl.name.MakeLower(); 168 168 169 // AD-HOC FIX for wxHyperlink 170 if (ctrl.name == "generichyperlinkctrl") 171 ctrl.name = "hyperlinkctrl"; 172 169 173 // take the screenshot 170 174 wxBitmap screenshot = Capture(rect); -
wxWidgets/trunk/utils/screenshotgen/src/guidesign.fbp
r56221 r56231 71 71 <event name="OnSize"></event> 72 72 <event name="OnUpdateUI"></event> 73 <object class="wxMenuBar" expanded=" 0">73 <object class="wxMenuBar" expanded="1"> 74 74 <property name="bg"></property> 75 75 <property name="context_help"></property> … … 173 173 </object> 174 174 <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> 176 176 <property name="checked">0</property> 177 177 <property name="enabled">1</property> … … 181 181 <property name="label">Regions<Begin></property> 182 182 <property name="name">m_menuCapRect</property> 183 <property name="permission"> none</property>183 <property name="permission">protected</property> 184 184 <property name="shortcut">Ctrl+Alt+R</property> 185 185 <property name="unchecked_bitmap"></property> … … 188 188 </object> 189 189 <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> 191 191 <property name="checked">0</property> 192 192 <property name="enabled">0</property> … … 196 196 <property name="label">Regions<End></property> 197 197 <property name="name">m_menuEndCapRect</property> 198 <property name="permission"> none</property>198 <property name="permission">protected</property> 199 199 <property name="shortcut">Ctrl+Alt+E</property> 200 200 <property name="unchecked_bitmap"></property> … … 1590 1590 <property name="pos"></property> 1591 1591 <property name="size"></property> 1592 <property name="style"> </property>1592 <property name="style">wxLC_REPORT</property> 1593 1593 <property name="subclass"></property> 1594 1594 <property name="tooltip">wxListCtrl</property> -
wxWidgets/trunk/utils/screenshotgen/src/guiframe.cpp
r56221 r56231 1 1 /////////////////////////////////////////////////////////////////////////// 2 // C++ code generated with wxFormBuilder (version Apr 212008)2 // C++ code generated with wxFormBuilder (version Apr 16 2008) 3 3 // http://www.wxformbuilder.org/ 4 4 // … … 53 53 captureMenu->Append( m_menuCapFullScreen ); 54 54 55 wxMenuItem* m_menuCapRect;56 55 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 #endif62 56 captureMenu->Append( m_menuCapRect ); 63 57 64 wxMenuItem* m_menuEndCapRect;65 58 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 #endif71 59 captureMenu->Append( m_menuEndCapRect ); 72 60 m_menuEndCapRect->Enable( false ); … … 217 205 fgSizer2->Add( m_treeCtrl1, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 20 ); 218 206 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 ); 220 208 m_listCtrl1->SetToolTip( _("wxListCtrl") ); 221 209 -
wxWidgets/trunk/utils/screenshotgen/src/guiframe.h
r56149 r56231 1 1 /////////////////////////////////////////////////////////////////////////// 2 // C++ code generated with wxFormBuilder (version Apr 212008)2 // C++ code generated with wxFormBuilder (version Apr 16 2008) 3 3 // http://www.wxformbuilder.org/ 4 4 // … … 81 81 wxMenu* fileMenu; 82 82 wxMenu* captureMenu; 83 wxMenuItem* m_menuCapRect; 84 wxMenuItem* m_menuEndCapRect; 83 85 wxMenu* helpMenu; 84 86 wxNotebook* m_notebook1; -
wxWidgets/trunk/utils/screenshotgen/src/screenshot_main.cpp
r56221 r56231 35 35 #include "autocapture.h" 36 36 37 #include "bitmaps/play.xpm" 38 #include "bitmaps/stop.xpm" 39 37 40 38 41 // ---------------------------------------------------------------------------- … … 105 108 106 109 // 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 } 109 116 110 117 // Check the first item in wxCheckListBox … … 120 127 // set minimum size hints 121 128 GetSizer()->SetSizeHints(this); 129 130 // add bitmaps to the menus 131 m_menuCapRect->SetBitmaps( wxIcon(play_xpm) ); 132 m_menuEndCapRect->SetBitmaps( wxIcon(stop_xpm) ); 122 133 } 123 134
