How to attach text viewer to "Open (Read-Only)" action in li
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How to attach text viewer to "Open (Read-Only)" action in li

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Jan Hovius
Guest





Posted: Wed Nov 23, 2005 1:10 pm    Post subject: How to attach text viewer to "Open (Read-Only)" action in li Reply with quote

Hello,

I've succesfully registered a new viewType within the dfII environment
using deRegApp i.c.w. entries in the data.reg file and all works
correct upon creating a new view and opening it within the library
manager. Only problem is: there is no difference in behaviour between
the library manager actions "Open" and "Open (Read-Only)", no matter
which of these I select they both open the view in edit mode within the
external application I registered. Since the resultfile is text-based
(HDL code) I would like to differentiate between opening in edit mode
("Open") and read-only mode ("Open (Read-Only)") such that in case of
the latter it opens the text viewer (the same one as used for verilog
views per default). Is this possible at all and if so what is the clue?

Thanks for your help,

Jan.

Back to top
Andrew Beckett
Guest





Posted: Wed Nov 23, 2005 9:10 pm    Post subject: Re: How to attach text viewer to "Open (Read-Only)" action i Reply with quote

On 23 Nov 2005 01:41:17 -0800, "Jan Hovius" <Jan.Hovius@nsc.com> wrote:

Quote:
Hello,

I've succesfully registered a new viewType within the dfII environment
using deRegApp i.c.w. entries in the data.reg file and all works
correct upon creating a new view and opening it within the library
manager. Only problem is: there is no difference in behaviour between
the library manager actions "Open" and "Open (Read-Only)", no matter
which of these I select they both open the view in edit mode within the
external application I registered. Since the resultfile is text-based
(HDL code) I would like to differentiate between opening in edit mode
("Open") and read-only mode ("Open (Read-Only)") such that in case of
the latter it opens the text viewer (the same one as used for verilog
views per default). Is this possible at all and if so what is the clue?

Thanks for your help,

Jan.

Hi Jan,

My apologies for not replying to the email you sent me about this.

The triggers that get called when the application is opened (for example,
the dataTrigger) get passed a disembodied property list with a slot called
accessMode. So for example, you can do:

procedure(myDataTrigger(args)
case(args->accessMode
(("a" "w")
... do the editable thing ...
)
("r"
... do the readonly thing...
)
(t
... something bad happened ...
)
) ; case
) ;procedure

Something like that.

Hope this helps!

Regards,

Andrew.
Back to top
Jan Hovius
Guest





Posted: Thu Nov 24, 2005 5:10 pm    Post subject: Re: How to attach text viewer to "Open (Read-Only)" action i Reply with quote

Andrew,

Thx! This did the trick.

Rgds,

Jan.

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB