libraries/lib-theme/Theme.cpp
/// Opens the file and also adds a standard comment at the start of it.
Opens the file and also adds a standard comment at the start of it.
Opens the file and also adds a standard comment at the start of it .
int SourceOutputStream::OpenFile(const FilePath & Filename)
{
   nBytes = 0;
   bool bOk;
   bOk = File.Open( Filename, wxFile::write );
   if( bOk )
   {
      File.Write( wxString::Format(
         wxT("///   @file %s\r\n"), wxFileName(Filename).GetFullName()));
      File.Write( wxT("///   @brief This file was Auto-Generated.\r\n") );
      File.Write( wxT("///\r\n") );
      File.Write( wxT("///   It is included by Theme.cpp.\r\n") );
      File.Write( wxT("///   Only check this into Git if you've read and understood the guidelines!\r\n\r\n   ") );
   }
   return bOk;
}
int SourceOutputStream :: OpenFile ( const FilePath & Filename ) { nBytes = 0 ; bool bOk ; bOk = File . Open ( Filename , wxFile :: write ) ; if ( bOk ) { File . Write ( wxString :: Format ( wxT ( " \r \n " ) , wxFileName ( Filename ) . GetFullName ( ) ) ) ; File . Write ( wxT ( " \r \n " ) ) ; File . Write ( wxT ( " \r \n " ) ) ; File . Write ( wxT ( " \r \n " ) ) ; File . Write ( wxT ( " \r \n \r \n " ) ) ; } return bOk ; }
Opens the file and also adds a standard comment at the start of it.
Opens the file and also adds a standard comment at the start of it .