You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.8 KiB

13 years ago
  1. /**
  2. * @file reporter.cpp
  3. */
  4. /*
  5. * This program source code file is part of KiCad, a free EDA CAD application.
  6. *
  7. * Copyright (C) 2013 Wayne Stambaugh <stambaughw@verizon.net>
  8. * Copyright (C) 1992-2013 KiCad Developers, see change_log.txt for contributors.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * as published by the Free Software Foundation; either version 2
  13. * of the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, you may find one here:
  22. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  23. * or you may search the http://www.gnu.org website for the version 2 license,
  24. * or you may write to the Free Software Foundation, Inc.,
  25. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  26. */
  27. #include <macros.h>
  28. #include <reporter.h>
  29. REPORTER& REPORTER::Report( const char* aText )
  30. {
  31. Report( FROM_UTF8( aText ) );
  32. return *this;
  33. }
  34. REPORTER& WX_TEXT_CTRL_REPORTER::Report( const wxString& aText )
  35. {
  36. wxCHECK_MSG( m_textCtrl != NULL, *this,
  37. wxT( "No wxTextCtrl object defined in WX_TEXT_CTRL_REPORTER." ) );
  38. m_textCtrl->AppendText( aText );
  39. return *this;
  40. }
  41. REPORTER& WX_STRING_REPORTER::Report( const wxString& aText )
  42. {
  43. wxCHECK_MSG( m_string != NULL, *this,
  44. wxT( "No wxString object defined in WX_STRING_REPORTER." ) );
  45. *m_string << aText;
  46. return *this;
  47. }