Author Topic: code completition with wxWidgets  (Read 5128 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
code completition with wxWidgets
« on: April 06, 2006, 01:56:19 pm »
I write this...

wxArrayString as;
as.

On the '.' I want a list of all available members of wxArrayString. How can I get this?

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: code completition with wxWidgets
« Reply #1 on: April 06, 2006, 02:21:09 pm »
enable Settings->Editor->Code-completion and class-browser->Parser(tab)->"Follow GLOBAL includes"
and be shure, that you've included #include <wx/wx.h> in your source files before.
enjoy  :)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: code completition with wxWidgets
« Reply #2 on: April 06, 2006, 02:35:33 pm »
enable Settings->Editor->Code-completion

Ah understand. But it is not possible this time because my nightly crashes there.
But the problem is described in an other thread.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: code completition with wxWidgets
« Reply #3 on: April 06, 2006, 02:37:26 pm »
the latest nightly build should NOT crash  8)
or did i miss something ?

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: code completition with wxWidgets
« Reply #4 on: April 06, 2006, 02:44:45 pm »
the latest nightly build should NOT crash  8)

Is it a ansi build? My latest ansi is from april 1th.

Any plans about a new ansi? ;)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: code completition with wxWidgets
« Reply #5 on: April 06, 2006, 02:47:54 pm »
yes the ansi version crashes when opening the Settings->Editor dialog if ANY plugin is activated,
i've no idea why this happens so don't expect any solution soon.

personally i use CB 1.0RC2 on my old Win98SE laptop ...  8)  :x

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: code completition with wxWidgets
« Reply #6 on: April 06, 2006, 03:40:39 pm »
as workaround you can enable it manually by editing your default.conf

This is not possible. There is no default.conf alive because C::B stores is config in the registry under Win98se.

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: code completition with wxWidgets
« Reply #7 on: April 06, 2006, 04:21:08 pm »
I searched for it in the C::B dir.

There is no PARSER_FOLLOW_GLOBAL_INCLUDES in it.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: code completition with wxWidgets
« Reply #8 on: April 06, 2006, 04:46:12 pm »
I searched for it in the C::B dir.
Big ow!

You should not have a config file inside the Code::Blocks directory, unless you did that on purpose and you know what you are doing. Things like that can lead to a lot of confusion.

To explain further, under Windows, the application searches for a configuration file with the currently active profile's name (not necessarily default.conf) in the following locations:
- the configuration folder (C:\Windows\AppData\codeblocks or something similar)
- the data folder (CodeBlocksDir/share/codeblocks
- the folder containing the Code::Blocks executable
- the currently active user's "My Files" directory

If no profile was specified, then default.conf will be used. If a profile was specified but not found, it will be created. If no profile was specified and no default profile is found, it is created.

The reasoning behind this is to allow both user-specific profiles as well as pre-configured installations on read-only media such as CD-ROMs. As you can see, the settings stored in the executable folder will not be honoured if you have settings stored in the configuration folder (which will be the case if you have run Code::Blocks before). Thus, it may happen that you search in one file and make modifications, but strangely you never see any effect!
Therefore, best keep the files where Code::Blocks puts them, unless you really *need* to do it differently.

Under Linux, different locations are used, but similar rules apply.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: code completition with wxWidgets
« Reply #9 on: April 06, 2006, 05:09:27 pm »
Adding a bit of info, the configuration is usually to be found in these paths (in %AppData%):

* On Windows XP/2000
    %AppData%\codeblocks\
* On Windows 9x/Me (if password protection is disabled)
    C:\WINDOWS\Application Data\codeblocks\

* On Windows 9x/Me (if password protection is enabled)
    C:\WINDOWS\Profiles\%USER%\Application Data\codeblocks\

* On Windows NT 4.x
    C:\WINNT\Profiles\%USER%\Application Data\codeblocks\

* On Linux
    ~/.codeblocks/
* On Mac OS X
    ~/Library/codeblocks/
    ~/Library/Application Support/codeblocks/

%AppData% is a environmental variable which normally points to
C:\Documents and Settings\%USER%\Application Data on Windows 2000/XP.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: code completition with wxWidgets
« Reply #10 on: April 06, 2006, 06:01:22 pm »
i want to withdraw my proposal to edit something in any file,
obviously a well-meant tip produces more confusion than an unsolved issue ...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5188
Re: code completition with wxWidgets
« Reply #11 on: April 06, 2006, 10:55:30 pm »
hopefully new ansi build this weekend ...

nithin

  • Guest
Re: code completition with wxWidgets
« Reply #12 on: April 26, 2006, 04:18:11 pm »
hi
    right now my code completion works fine and shows me the possible completions. but when the code completion kicks in shouldnt the keyboard focus shift to the popup so that i can make my selection rather than remain on the main window or rather than steal focus can it not respond only to up down and enter keys(like vc) ? am i missing something or does some setting need to be made
 
  cheers
     nithin