app_resources.cpp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*=========================================================================
  2. Program: WXDialog - wxWidgets X-platform GUI Front-End for CMake
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Author: Jorgen Bodde
  8. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  9. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  10. This software is distributed WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE. See the above copyright notices for more information.
  13. =========================================================================*/
  14. #if defined(__GNUG__) && !defined(__APPLE__)
  15. #pragma implementation "app_resources.h"
  16. #endif
  17. // For compilers that support precompilation, includes "wx/wx.h".
  18. #include "wx/wxprec.h"
  19. #ifdef __BORLANDC__
  20. #pragma hdrstop
  21. #endif
  22. #ifndef WX_PRECOMP
  23. #include "wx/wx.h"
  24. #endif
  25. ////@begin includes
  26. ////@end includes
  27. #include "app_resources.h"
  28. ////@begin XPM images
  29. ////@end XPM images
  30. /*!
  31. * Resource functions
  32. */
  33. ////@begin AppResources resource functions
  34. /*!
  35. * Menu creation function for ID_MENU
  36. */
  37. wxMenu* AppResources::CreatePopupMenu()
  38. {
  39. wxMenu* itemMenu1 = new wxMenu;
  40. itemMenu1->Append(ID_CACHE_IGNORE, _("&Ignore cache entry"), _("Ignores the value of the current cache entry"), wxITEM_NORMAL);
  41. itemMenu1->Append(ID_CACHE_DELETE, _("&Delete cache entry"), _("Deletes the current cache entry (reverts on next configure)"), wxITEM_NORMAL);
  42. itemMenu1->AppendSeparator();
  43. itemMenu1->Append(ID_CACHE_BROWSE, _("&Browse ..."), _T(""), wxITEM_NORMAL);
  44. return itemMenu1;
  45. }
  46. ////@end AppResources resource functions
  47. /*!
  48. * Get bitmap resources
  49. */
  50. wxBitmap AppResources::GetBitmapResource( const wxString& name )
  51. {
  52. // Bitmap retrieval
  53. ////@begin AppResources bitmap retrieval
  54. return wxNullBitmap;
  55. ////@end AppResources bitmap retrieval
  56. }
  57. /*!
  58. * Get icon resources
  59. */
  60. wxIcon AppResources::GetIconResource( const wxString& name )
  61. {
  62. // Icon retrieval
  63. ////@begin AppResources icon retrieval
  64. return wxNullIcon;
  65. ////@end AppResources icon retrieval
  66. }