Author Topic: _proc_search Icons?  (Read 7362 times)

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
_proc_search Icons?
« on: November 19, 2009, 02:51:28 AM »
hi,

where can i find the icons for _proc_search, i have been trying all various types eg:

proc_name=proc_name'(label)';

and would really like to see them all with there name so i can choose ..

thanks for any directions?

best regards
ehab

Graeme

  • Senior Community Member
  • Posts: 2812
  • Hero Points: 347
Re: _proc_search Icons?
« Reply #1 on: November 19, 2009, 07:13:36 PM »
I don't understand the question.  Why does "proc_search" have icons?  What is proc_name?  You can find most icons/bitmaps in the slick installation folder.

Graeme
 

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
Re: _proc_search Icons?
« Reply #2 on: November 19, 2009, 07:27:37 PM »
hi Graeme,

yeah, i was thinking to edit my question, it was like 4:00 am, anyway please allow me to explain.

I am now doing my Thesis and using Tex for documentation. I used the Def window to display:

Chapter
section
subsection
subsubsection
...

i used the function

Code: [Select]
_str tex_proc_search(_str &proc_name, int find_first)
{
   ......
   // sample
 if (pos('\section',line))
        proc_name=proc_name'(var)';  // [b]where can i find and see all those var const label .. icons[/b]
 else if (pos('\subsection',line))
      proc_name=proc_name'(const)';
 else
      proc_name=proc_name'(label)';

}

i attached an image of how it looks like. What i wanted to ask is where are those proc_name icons documented?

I need to see them all so i can select the most suitable looking.

:) If its much more to ask, how can i have a tree like structure .. at least for 1 or 2 levels eg:

  section
    subsection
       subsubsection

i hope i explained better, if not then let me know i can try again.

ehab
ps: Thanks for asking
« Last Edit: November 19, 2009, 07:29:18 PM by ehab »

MartyL

  • Senior Community Member
  • Posts: 166
  • Hero Points: 29
  • Synergex
Re: _proc_search Icons?
« Reply #3 on: November 19, 2009, 09:03:11 PM »
Oh, wow. I never thought of using SlickEdit like that before. The list of "icons" that you're looking for are actually the various VS_TAGTYPEs. You can find them in tagsdb.sh. For the sake of convenience, this is the list out of version 14.0.2:
Code: [Select]
#define VS_TAGTYPE_proc         1  // procedure or command
#define VS_TAGTYPE_proto        2  // function prototype
#define VS_TAGTYPE_define       3  // preprocessor macro definition
#define VS_TAGTYPE_typedef      4  // type definition
#define VS_TAGTYPE_gvar         5  // global variable declaration
#define VS_TAGTYPE_struct       6  // structure definition
#define VS_TAGTYPE_enumc        7  // enumeration value
#define VS_TAGTYPE_enum         8  // enumerated type
#define VS_TAGTYPE_class        9  // class definition
#define VS_TAGTYPE_union       10  // structure / union definition
#define VS_TAGTYPE_label       11  // label
#define VS_TAGTYPE_interface   12  // interface, eg, for Java, IDL, or C#
#define VS_TAGTYPE_constructor 13  // class constructor
#define VS_TAGTYPE_destructor  14  // class destructor
#define VS_TAGTYPE_package     15  // package / module / namespace
#define VS_TAGTYPE_var         16  // member of a class / struct / package
#define VS_TAGTYPE_lvar        17  // local variable declaration
#define VS_TAGTYPE_constant    18  // pascal constant
#define VS_TAGTYPE_function    19  // function
#define VS_TAGTYPE_property    20  // property
#define VS_TAGTYPE_program     21  // pascal program
#define VS_TAGTYPE_library     22  // pascal library
#define VS_TAGTYPE_parameter   23  // function or procedure parameter
#define VS_TAGTYPE_import      24  // package import or using
#define VS_TAGTYPE_friend      25  // C++ friend relationship
#define VS_TAGTYPE_database    26  // SQL/OO Database
#define VS_TAGTYPE_table       27  // Database Table
#define VS_TAGTYPE_column      28  // Database Column
#define VS_TAGTYPE_index       29  // Database index
#define VS_TAGTYPE_view        30  // Database view
#define VS_TAGTYPE_trigger     31  // Database trigger
#define VS_TAGTYPE_form        32  // GUI Form or window
#define VS_TAGTYPE_menu        33  // GUI Menu
#define VS_TAGTYPE_control     34  // GUI Control or Widget
#define VS_TAGTYPE_eventtab    35  // GUI Event table
#define VS_TAGTYPE_procproto   36  // Prototype for procedure
#define VS_TAGTYPE_task        37  // Ada task
#define VS_TAGTYPE_include     38  // C++ include or Ada with (dependency)
#define VS_TAGTYPE_file        39  // COBOL file descriptor
#define VS_TAGTYPE_group       40  // Container variable
#define VS_TAGTYPE_subfunc     41  // Nested function or cobol paragraph
#define VS_TAGTYPE_subproc     42  // Nested procedure or cobol paragraph
#define VS_TAGTYPE_cursor      43  // Database result set cursor
#define VS_TAGTYPE_tag         44  // SGML or XML tag type (like a class)
#define VS_TAGTYPE_taguse      45  // SGML or XML tag instance (like an object)
#define VS_TAGTYPE_statement   46  // generic statement
#define VS_TAGTYPE_annotype    47  // Java annotation type or C# attribute class
#define VS_TAGTYPE_annotation  48  // Java annotation or C# attribute instance
#define VS_TAGTYPE_call        49  // Function/Method call
#define VS_TAGTYPE_if          50  // If/Switch statement
#define VS_TAGTYPE_loop        51  // Loop statement
#define VS_TAGTYPE_break       52  // Break statement
#define VS_TAGTYPE_continue    53  // Continue statement
#define VS_TAGTYPE_return      54  // Return statement
#define VS_TAGTYPE_goto        55  // Goto statement
#define VS_TAGTYPE_try         56  // Try/Catch/Finally statement
#define VS_TAGTYPE_pp          57  // Preprocessing statement
#define VS_TAGTYPE_block       58  // Statement block
#define VS_TAGTYPE_mixin       59  // D language mixin construct
#define VS_TAGTYPE_target      60  // Ant target type

It looks like you just want the last part of the type.
« Last Edit: November 19, 2009, 09:07:02 PM by MartyL »

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
Re: _proc_search Icons?
« Reply #4 on: November 19, 2009, 09:19:15 PM »
thats great MartyL , did you find the location of icons? it does good to see them!

SE continues to amaze me
« Last Edit: November 19, 2009, 09:29:46 PM by ehab »

MartyL

  • Senior Community Member
  • Posts: 166
  • Hero Points: 29
  • Synergex
Re: _proc_search Icons?
« Reply #5 on: November 19, 2009, 09:55:16 PM »
Hi ehab,

The icons are located in your SlickEdit\bitmaps directory as you might expect, but they are not named in a very friendly manner.

For instance, the icon on your "INTRODUCTION" tag is "_clsdat0.bmp".

It looks like their goal was to keep the icon names under 8 characters.

proc is _clsprc0.bmp
proto is _clsprt0.bmp
define is _clsdef0.bmp

And so on.

Hope this helps!
Marty

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
Re: _proc_search Icons?
« Reply #6 on: November 19, 2009, 10:01:53 PM »
your right, i visited that place many times.. somehow i expected they'll have a friendlier name..  Thanks : )

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
Re: _proc_search Icons?
« Reply #7 on: November 19, 2009, 11:52:41 PM »
Question remains how to get subtree's?
« Last Edit: November 20, 2009, 01:13:05 AM by ehab »

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: _proc_search Icons?
« Reply #8 on: November 20, 2009, 04:15:15 AM »
See "Tree View Events", "Tree View Methods", and "Tree View Properties" in the SlickEdit Help.
Find sample usage of tree view controls in the slick\macros\*.e files.

ehab

  • Senior Community Member
  • Posts: 285
  • Hero Points: 15
  • coding with SE is like playing music
Re: _proc_search Icons?
« Reply #9 on: November 20, 2009, 02:50:39 PM »
chrisant, thanks for hints. I tried and get errors, i will try again and maybe get add how i did it here.
this is the desired out put in def windows as tree

Code: [Select]
Section
 Subsection
  Subsubsection
Section
 Subsection
....