Author Topic: Code::Block on Ubuntu 7.04 - SVN version (wizard puts '.' in the class name).  (Read 3063 times)

Offline momaa

  • Multiple posting newcomer
  • *
  • Posts: 16
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

BTW: Many thanks for a superb IDE.

Cheers,
  // moma
      http://www.futuredesktop.org  <-- Ubuntu stuff
« Last Edit: May 31, 2007, 04:21:50 pm by momaa »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Thanks for the feedback. I'll fix it. :)

Edit 1: Fixed in revision 4023.
« Last Edit: May 31, 2007, 07:01:43 pm by Biplab »
Be a part of the solution, not a part of the problem.

Offline momaa

  • Multiple posting newcomer
  • *
  • Posts: 16
Thank you.
SVN version 4023 fixed it.  :D
Case closed.