QXExport

Inherits From:	Object 

Conforms To:	QAPIPrincipalClass,QAPISelectionDelegate 

Declared In:	QXExport.h 

Class Description 

THIS CODE IS FOR DEMONSTRATION PURPOSES ONLY! You may freely copy, distribute and reuse the code in this example.  Lighthouse disclaims any warranty of any kind, expressed or implied, as to its fitness for any particular use. 

This example implements a simple export panel. 

NOTE: This example will only work on simple models. It can be improved by modifying -exportData: 

Demonstrates 

- Exporting data 

Instance Variables 

Inherited from Object 
None declared in this class. 

Declared in QXExport 
id <QAPIApp> qapiApp ; 
NXStream* aStream ; 
int prevRow ; 

Method Types 

QAPIPrincipalClass 	+q_bundleSelected: 

Basic Actions	-init 
-menuSelected: 
-exportData: 

QAPISelectionDelegate 	-q_evaluateCell:in: 
-q_evaluateNode:in: 

Class Methods 

q_bundleSelected: 
+ q_bundleSelected:(NXBundle*)aBundle;
 
Called by Quantrix when the bundle is loaded or when the menu item defined in load.strings is selected by the user.  The first time it is called, this class creates a static instance and then calls menuAction: . 

Instance Methods 

exportData: 
- exportData:(id <QAPIApp>)anApp;
 
Gets the current view, selects the first and last node in the first category, then begins an iteration. 

init 
- init;
 
Sets up a connection to the QAPIApp by calling [NXApp delegate]. 

menuSelected: 
- menuSelected:sender;
 
Issues a Save Panel, then tries to save the data from the current view. 

q_evaluateCell:in: 
- (void)q_evaluateCell:(id<QAPICell>)aCell in:aSelection;
 
Appends the cell's data to aStream . 

q_evaluateNode:in: 
- (void)q_evaluateNode:(id<QAPINode>)aNode in:aSelection;
 
Nothing