Constants Explorer [PB IDE plugin]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Constants Explorer [PB IDE plugin]

Post by gnozal »

Constants Explorer PB IDE plugin (last update : NOV 6th 2007)

Description
Constants Explorer is a plugin for the new purebasic editor.
It's the PB-IDE version of my jaPBe plugin.

It's a constant viewer. You can use it standalone or from the PB IDE.
When started from the tool menu (or shortcut) in the PB IDE, the plugin
will search for the constant under the cursor.

You can copy a constant to the clipboard or directly copy / paste it to the
PB IDE (into the active scintilla component at current cursor position).
Installation
1. COPY PLUGIN TO ANY DIRECTORY

Example : C:\PureBasic394\Program\ConstantsExplorer.exe

2. CONFIGURATE TOOL

2.1. Automatic registering

Start ConstantsExplorer.exe, select the 'Options' tab, press the 'Register plugin' button.

2.2. Manual registering

Commandline : <Path to plugin> (example : C:\PureBasic394\Program\ConstantsExplorer.exe)

Arguments : %WORD

Name : Constants Explorer

Event to trigger the tool : Menu or Shortcut

Options : None

Download
http://gnozal.ucoz.com/ConstantsExplorerPBIDE.zip
Last edited by gnozal on Tue Nov 06, 2007 8:57 am, edited 4 times in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

@gnozal:
i havent tested it yet... have only read and saw the screenshots... seems to be a very nice and usefull tool! thanks! :)
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

there is a little bug, when i search for #wm_user i found #ACM_OPEN = (#WM_USER+100)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:there is a little bug, when i search for #wm_user i found #ACM_OPEN = (#WM_USER+100)
It's by design : it's only a string search. I could add an option to search only before the '=' character.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes
- Added 'Only value' checkbox : if checked, the plugin only searches for the constant value [and not for any occurence in the list]
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
V2
User
User
Posts: 53
Joined: Wed Oct 15, 2003 4:53 pm

Post by V2 »

Hi,

I didn't take a look at your program, but it looks like the API Viewer:
http://www.activevb.de/rubriken/apiview ... ereng.html

...and this one rocks, I wouldn't want to miss it.

BR
V2
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

V2 wrote:Hi, I didn't take a look at your program, but it looks like the API Viewer: http://www.activevb.de/rubriken/apiview ... ereng.html ...and this one rocks, I wouldn't want to miss it. BR
Not exactly, it's only for Win API constants.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Great work.

I'm using it.
Blade
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Aug 06, 2003 2:49 pm
Location: Venice - Italy, Japan when possible.
Contact:

Post by Blade »

Another great job by gnozal!

Just some suggestions:

- put the list in a listicongsdget with three columns: name, value, description

- option to search in :
all
name
value
description

- resizable window
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes
- Updated constants list
- The search is now context sensitive :
. if you enter a name, it will search for a constant
. if you enter a value, it will search for a value
. examples : WM_CLOSE -> constant, 255 -> value, $FF -> value, F5 -> constant, 2F : error (not a valid name or value)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Thank you gnozal.
Silly of me. I didn't see this thread before. :x
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
HAnil
User
User
Posts: 87
Joined: Thu Feb 26, 2004 5:42 pm
Location: 28:58E 41:01N

Post by HAnil »

Hi,

When I select "Options", Button Gadget Text isn't displayed.
is it bug ?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

HAnil wrote:Hi,
When I select "Options", Button Gadget Text isn't displayed.
is it bug ?
Sorry, I don't understand. What button ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
HAnil
User
User
Posts: 87
Joined: Thu Feb 26, 2004 5:42 pm
Location: 28:58E 41:01N

Post by HAnil »

I mean that for exam: "copy constant to PB IDE" text is not visible.
and other texts are invisible.

only "Find constant" and "Options" tab text are visible.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

HAnil wrote:I mean that for exam: "copy constant to PB IDE" text is not visible.
and other texts are invisible.
only "Find constant" and "Options" tab text are visible.
The 'copy constant to clipboard' function is only available if a constant is selected.
The 'copy constant to PB IDE' functions are only available if a constant is selected and the Purebasic IDE (3.94+) is running.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply