Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: momaa on May 31, 2007, 04:01:31 pm

Title: Code::Block on Ubuntu 7.04 - SVN version (wizard puts '.' in the class name).
Post by: momaa on May 31, 2007, 04:01:31 pm
Hello,

I have downloaded and compiled Code::Blocks from the svn repository
$ svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk

I created a new wxWidgets 2.6 (and 2.8 ) project with the name "test". The project was created Ok but the wizard put a "." into class name instead of "_".  The "." makes the generated code erroneous.

Selected options were:
Preferred GUI builder: None
Application type: Frame Type
And "Use default wxWidgets configuration".

The wizard script is /usr/local/share/codeblocks/templates/wizard/wxwidgets/wizard.script

wxWizard project "test":
Code
/***************************************************************
 * Name:      test.cbpMain.h
 * Purpose:   Defines Application Frame
 * Author:     ()
 * Created:   2007-05-31
 * Copyright:  ()
 * License:   
 **************************************************************/
#ifndef TEST.CBPMAIN_H
#define TEST.CBPMAIN_H

#include "test.cbpApp.h"

class test.cbpFrame: public wxFrame
{
public:
test.cbpFrame(wxFrame *frame, const wxString& title);
~test.cbpFrame();
private:
enum
{
idMenuQuit = 1000,
idMenuAbout
};
void OnClose(wxCloseEvent& event);
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
DECLARE_EVENT_TABLE()
};
#endif // test.cbpMAIN_H

My operating system is Ubuntu 7.04 Linux.
C::B installation instructions are here: http://ubuntuforums.org/showthread.php?p=1962696#post1962696 (http://ubuntuforums.org/showthread.php?p=1962696#post1962696)

BTW: Many thanks for a superb IDE.

Cheers,
  // moma
      http://www.futuredesktop.org  <-- Ubuntu stuff
Title: Re: Code::Block on Ubuntu 7.04 - SVN version (wizard puts '.' in the class name)
Post by: Biplab on May 31, 2007, 06:37:50 pm
Thanks for the feedback. I'll fix it. :)

Edit 1: Fixed in revision 4023.
Title: Re: Code::Block on Ubuntu 7.04 - SVN version (wizard puts '.' in the class name)
Post by: momaa on May 31, 2007, 07:14:53 pm
Thank you.
SVN version 4023 fixed it.  :D
Case closed.