Tree Views

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
aoirthoir
Posts: 2
Joined: Fri Sep 01, 2006 6:28 am

Tree Views

Post by aoirthoir »

I just downloaded the RapidPHP a couple of days ago. But I have not had much chance to play with it, or study it. I will do so next week. Part of the thing is I am not quite sure what is what and what is where. I will look at the manuals also next week.

But what I am curious about are all of these tree views I keep hearing on the forum. (Did a search). I need some software that provides the following tree views, all collapsable, and expandable in a true tree format.

1. locally and in FTP, a Folder/File tree view. (Typical Windows/Linux treeview thing here)

2. A class/function/variable tree view, showing which files/classes/functions make calls or changes to that class or function or variable. So for instance if I clicked on the variable $TaxRate, I could see all of the files or classes that reference it. Maybe like this:

Code: Select all

-$TaxRate
  +Classes
  -Files
    -example.php
    -otherexample.html
+$AnotherVariable
3. A File/Calls File tree view. So if file A.php has an INCLUDE, or IMPORT (or any of the other such include statements in other languages like CSS) I would really like to be able to see that as a tree structure. I realize sometimes those imports are made on the fly however, for the ones that are static, that we know instantly by looking at the code what is being called, I would like that file tree. Maybe like this:

Code: Select all

-mainSub.php
  -SetupVariables.php
    -SetupGlobals.php
    -SetupLocals.php
  -SetupPages.php
    -AddHeads.php
+AnotherFileENtirely.php
So I am curious to what extent this exists within WeBuilder. (We are going to buy it, if we buy anything from here, instead of RapidPHP.)
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

The treeview in WeBuilder isn't as detailed as that, unfortunately. Heres a sample:
Image

Right click on the 'wibble.php' in the treeview, and you can open it.
Click the function name, and it will jump to that position in code.
Click the variable name, and it will jump to the first occurance of that variable. Each occurance of that variable will also be seperate legs (ok, branches) under that variable, but I haven't shown that in the screenshot.
aoirthoir
Posts: 2
Joined: Fri Sep 01, 2006 6:28 am

Post by aoirthoir »

Thanks for the reply. I really appreciate it.

My question then is, do these only show the thing for the current file?

It appears that the includes and the requires are only for the file you are editing. If I am editing multiple files, and I switch between them, I assume this switches as well. I can live with that for now. Not exactly what I wanted, but I can deal. I imagine I could put in a feature request and sometime the product would be upgraded.

Now regarding the Functions and Variables and Classes...is it the same way. Only showing the classes of the current file, and if I switch to a different file I see its class calls. Or, is there someplace to see an overall class tree for the entire project?

Thank yall kindly for answering my questions in advance.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

aoirthoir wrote:My question then is, do these only show the thing for the current file?
Yes. Just the current file.
If I am editing multiple files, and I switch between them, I assume this switches as well.
Yes, thats right.
Now regarding the Functions and Variables and Classes...is it the same way.
Yes, in exactly the same way.
Post Reply