From 4c86711cb07e84d5b876f82f0ace599a9f1af342 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 17 Dec 2012 12:45:45 -0800 Subject: [PATCH] cmGrPlot.h/c Added comments. --- cmGrPlot.c | 2 +- cmGrPlot.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmGrPlot.c b/cmGrPlot.c index 9f7d02d..158a01b 100644 --- a/cmGrPlot.c +++ b/cmGrPlot.c @@ -256,7 +256,7 @@ void _cmGrPlotObjSetFocus( cmGrPlotObj_t* op ) void _cmGrPlotObjSetSelect( cmGrPlotObj_t* op, bool clearFl ) { - // if the object is disabled or no selectable + // if the object is disabled or not selectable if( _cmGrPlotObjIsEnabled(op)==false || cmIsFlag(op->cfgFlags,kNoSelectGrPlFl | kNoDrawGrPlFl) ) return; diff --git a/cmGrPlot.h b/cmGrPlot.h index 603d79a..0ed21aa 100644 --- a/cmGrPlot.h +++ b/cmGrPlot.h @@ -13,6 +13,7 @@ extern "C" { kRsrcFailGrPlRC }; + // Graphic object type id's typedef enum { kInvalidPlId, @@ -31,7 +32,7 @@ extern "C" { kPlusGrPlId, } cmGrPlObjTypeId_t; - // object cfg flags + // Object cfg. flags enum { kSymbolGrPlFl = 0x0001, // This object is a symbol @@ -47,10 +48,10 @@ extern "C" { // object state flags enum { - kVisibleGrPlFl = 0x0001, + kVisibleGrPlFl = 0x0001, // kEnabledGrPlFl = 0x0002, // Enabled obj's must be visible. - kSelectGrPlFl = 0x0004, // - kFocusGrPlFl = 0x0008 // Focused obj's are also selected. + kSelectGrPlFl = 0x0004, // This object is selected - multiple objects may be selected + kFocusGrPlFl = 0x0008 // Focused obj's are also selected - only one object can have the focus. }; typedef enum