• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. more on viewfile operations

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13284
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

more on viewfile operations

linbo
linbo over 14 years ago

Started this post over in Custom IC, probably more appropriate in the SKILL section so here goes...

 I need to display data in a viewfile dependent on the process.  I'm using html since the data looks best in table format.  I've got the rudimentary file displaying but there are issues...I have pored over the documentation and cannot find the info I need..

 

wind = hiCreateWindow( 'default "html" "PROCESS")

hiSetViewfile( wind "pathtomyhtmlfile/foo.html")

hiDisplayWindow( wind)

 

First off I'd like to get a couple of menu items up like "Print" but I'm not seeing a lot of documentation on how to do this.  Plus this seems pretty standard with most browsers (mine is set to mozilla) but my viewfile is blank in this respect.  Do I have to create these?  Do these behave like pulldown menu items?  What documentation should I be looking at? (and why aren't there examples in the documentation?)

Second, I don't see any hooks for simple stuff like title.  In the above example I would expect the title of the page to be PROCESS or to inherit the Page Title entry from the file itself, but it's the name of the file, foo.html.

 There is a rudimentary toolbar of buttons: left and right arrows and home icon.  Since the buttons aren't linked to anything how do I get rid of them?  I mean "home" is a browser function, not a built in Cadence thing, right?  Yet the toolbar acts like a Cadence dockable/movable toolbar.

 Are there ANY examples out there for simple viewfile manipulation?  I've tried fiddling with hiOpenWindow and I'm not any better off.  Should I just be calling an outside browser process instead of trying to do this with viewfiles?

 

Thanks,

--lin

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Hi Lin,

    The "html" widget support is quite basic, and is not that widely used. It's using an embedded Qt browser - which in IC614 supports this subset of html. In IC615 the subset is this (not sure it's significantly different, although a later version of Qt).

    There does not appear to be any API we provide to print it. To request this, please log a service request with Cadence Customer Support. I'm not sure an "edit" menu would make any sense, but provided there is a means of printing it (I suspect Qt may provide something, so it may just be a matter of hooking this in).

    The back and forward buttons make sense - as these allow you to navigate around the  document you're display. The home button will return to the file first set with hiSetViewfile() in that window.

    There does not appear to be a way of telling it not to add the toolbar or to remove the toolbar. You can interactively remove it by doing a right mouse button in the top of the window and unchecking the (unnamed) checkbox. But this is something that's part of the widget, and there's no equivalent SKILL function, it seems. You should also request the ability to do that from Customer Support.

    The intention with this widget is to provide a simple HTML capability for displaying rich text content, rather than a full-featured browser. That's why for complex things (e.g. datasheets produced by ADE XL, Export HTML available in Schematic XL in IC615) we use an external browser (set using your user preferences) using hiLaunchBrowser - for example:

    hiLaunchBrowser("file:///export/home/users/andrewb/OCEAN/mylib/multitest/adexl/documents/CornerResults.html") 

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information