/[ascend]/trunk/pygtk/instanceinterfacedata.h
ViewVC logotype

Contents of /trunk/pygtk/instanceinterfacedata.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (18 years, 1 month ago) by johnpye
File MIME type: text/x-chdr
File size: 845 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
1 #ifndef ASCXX_INSTANCEINTERFACEDATA_H
2 #define ASCXX_INSTANCEINTERFACEDATA_H
3
4 #include "instance.h"
5
6 /**
7 This defines a flexible interface for assigned extra
8 data to instances for the sake of tricky interface
9 features.
10
11 The first of these is the ability to show whether or
12 not an instance has been solved. We will have a function
13 that calls instance.setInterfaceValue(ASCXX_VAR_STATUS,ASCXX_VAR_ACTIVE)
14 when a solver variable is made active, and then
15 instance.setInterfaceValue(ASCXX_VAR_STATUS,ASCXX_VAR_SOLVED)
16 once it's solved.
17
18 From the interface, python will be able to call
19 instance.getInterfaceValue(ASCXX_VAR_STATUS) and
20 will then be able to show an icon accordingly.
21 */
22 class InstanceInterfaceData{
23 private:
24 friend class Instanc;
25 InstanceInterfaceData();
26 VarStatus status;
27 };
28
29
30 #endif /* ASCXX_INSTANCEINTERFACEDATA_H */

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22