Browse Source

cmGrPlot.h/c Added comments.

master
kevin 12 years ago
parent
commit
4c86711cb0
2 changed files with 6 additions and 5 deletions
  1. 1
    1
      cmGrPlot.c
  2. 5
    4
      cmGrPlot.h

+ 1
- 1
cmGrPlot.c View File

256
 
256
 
257
 void _cmGrPlotObjSetSelect( cmGrPlotObj_t* op, bool clearFl )
257
 void _cmGrPlotObjSetSelect( cmGrPlotObj_t* op, bool clearFl )
258
 {
258
 {
259
-  // if the object is disabled or no selectable
259
+  // if the object is disabled or not selectable
260
   if( _cmGrPlotObjIsEnabled(op)==false || cmIsFlag(op->cfgFlags,kNoSelectGrPlFl | kNoDrawGrPlFl) )
260
   if( _cmGrPlotObjIsEnabled(op)==false || cmIsFlag(op->cfgFlags,kNoSelectGrPlFl | kNoDrawGrPlFl) )
261
     return;
261
     return;
262
 
262
 

+ 5
- 4
cmGrPlot.h View File

13
     kRsrcFailGrPlRC
13
     kRsrcFailGrPlRC
14
   };
14
   };
15
 
15
 
16
+  // Graphic object type id's
16
   typedef enum
17
   typedef enum
17
   {
18
   {
18
     kInvalidPlId,
19
     kInvalidPlId,
31
     kPlusGrPlId,
32
     kPlusGrPlId,
32
   } cmGrPlObjTypeId_t;
33
   } cmGrPlObjTypeId_t;
33
 
34
 
34
-  // object cfg flags
35
+  // Object cfg. flags
35
   enum
36
   enum
36
   {
37
   {
37
     kSymbolGrPlFl   = 0x0001,  // This object is a symbol
38
     kSymbolGrPlFl   = 0x0001,  // This object is a symbol
47
   // object state flags
48
   // object state flags
48
   enum
49
   enum
49
   {
50
   {
50
-    kVisibleGrPlFl = 0x0001,
51
+    kVisibleGrPlFl = 0x0001,  //  
51
     kEnabledGrPlFl = 0x0002,  // Enabled obj's must be visible. 
52
     kEnabledGrPlFl = 0x0002,  // Enabled obj's must be visible. 
52
-    kSelectGrPlFl  = 0x0004,  // 
53
-    kFocusGrPlFl   = 0x0008   // Focused obj's are also selected.
53
+    kSelectGrPlFl  = 0x0004,  // This object is selected - multiple objects may be selected
54
+    kFocusGrPlFl   = 0x0008   // Focused obj's are also selected - only one object can have the focus.
54
   };
55
   };
55
 
56
 
56
   typedef enum
57
   typedef enum

Loading…
Cancel
Save