added category.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
<setVar name="local/typefiles" >
|
||||
datapair.t2d
|
||||
category.t2d
|
||||
subgraph.t2d
|
||||
tick.t2d
|
||||
axis.t2d
|
||||
@@ -42,6 +43,7 @@
|
||||
|
||||
<setVar name="local/built_sources" >
|
||||
datapair.c
|
||||
category.c
|
||||
subgraph.c
|
||||
tick.c
|
||||
axis.c
|
||||
@@ -50,6 +52,7 @@
|
||||
|
||||
<setVar name="local/built_headers_pub">
|
||||
datapair.h
|
||||
category.h
|
||||
subgraph.h
|
||||
tick.h
|
||||
axis.h
|
||||
@@ -59,6 +62,7 @@
|
||||
|
||||
<setVar name="local/built_headers_priv" >
|
||||
datapair_p.h
|
||||
category_p.h
|
||||
subgraph_p.h
|
||||
tick_p.h
|
||||
axis_p.h
|
||||
|
||||
99
src/lib/aqdiagram/graph/category.t2d
Normal file
99
src/lib/aqdiagram/graph/category.t2d
Normal file
@@ -0,0 +1,99 @@
|
||||
<?xml?>
|
||||
|
||||
<tm2>
|
||||
<type id="AQDG_GRAPH_CATEGORY" type="pointer">
|
||||
<descr>
|
||||
This class describes a set of report data for a given category.
|
||||
</descr>
|
||||
<lang id="c">
|
||||
<identifier>AQDG_GRAPH_CATEGORY</identifier>
|
||||
<prefix>AQDG_Graph_Category</prefix>
|
||||
<baseFileName>category</baseFileName>
|
||||
|
||||
<flags>
|
||||
with_list1
|
||||
with_list2
|
||||
with_tree2
|
||||
</flags>
|
||||
|
||||
<headers>
|
||||
<header type="sys" loc="pre">aqdiagram/aqdg_api.h</header>
|
||||
<header type="sys" loc="pre">aqdiagram/graph/datapair.h</header>
|
||||
</headers>
|
||||
|
||||
<inlines>
|
||||
<inline loc="end" access="public">
|
||||
<content>
|
||||
$(api) void $(struct_prefix)_AddDataPair($(struct_type) *st, AQDG_GRAPH_DATAPAIR *dp);
|
||||
</content>
|
||||
</inline>
|
||||
|
||||
<inline loc="code">
|
||||
<content>
|
||||
void $(struct_prefix)_AddDataPair($(struct_type) *st, AQDG_GRAPH_DATAPAIR *dp) \n
|
||||
{ \n
|
||||
if (st && dp) { \n
|
||||
if (st->dataPairList==NULL) \n
|
||||
st->dataPairList=AQDG_Graph_DataPair_List_new(); \n
|
||||
AQDG_Graph_DataPair_List_Add(dp, st->dataPairList); \n
|
||||
} \n
|
||||
} \n
|
||||
</content>
|
||||
</inline>
|
||||
|
||||
</inlines>
|
||||
|
||||
</lang>
|
||||
|
||||
<members>
|
||||
|
||||
<member name="flags" type="uint32_t" maxlen="8">
|
||||
<default>0</default>
|
||||
<preset>0</preset>
|
||||
<flags>with_flags</flags>
|
||||
<access>public</access>
|
||||
</member>
|
||||
|
||||
<member name="categoryId" type="uint32_t" maxlen="8">
|
||||
<default>0</default>
|
||||
<preset>0</preset>
|
||||
<flags>none with_getbymember</flags>
|
||||
<access>public</access>
|
||||
</member>
|
||||
|
||||
<member name="label" type="char_ptr" maxlen="256" >
|
||||
<access>public</access>
|
||||
<flags>own with_getbymember</flags>
|
||||
<setflags>const dup</setflags>
|
||||
<getflags>const</getflags>
|
||||
</member>
|
||||
|
||||
<member name="negAmount" type="double" maxlen="8" >
|
||||
<default>0.0</default>
|
||||
<preset>0.0</preset>
|
||||
<access>public</access>
|
||||
<flags>sortbymember</flags>
|
||||
</member>
|
||||
|
||||
<member name="posAmount" type="double" maxlen="8" >
|
||||
<default>0.0</default>
|
||||
<preset>0.0</preset>
|
||||
<access>public</access>
|
||||
<flags>sortbymember</flags>
|
||||
</member>
|
||||
|
||||
<member name="dataPairList" type="AQDG_GRAPH_DATAPAIR_LIST" >
|
||||
<default>NULL</default>
|
||||
<preset>NULL</preset>
|
||||
<access>public</access>
|
||||
<flags>own</flags>
|
||||
<setflags>nodup</setflags>
|
||||
<getflags>none</getflags>
|
||||
</member>
|
||||
|
||||
</members>
|
||||
|
||||
</type>
|
||||
|
||||
</tm2>
|
||||
|
||||
Reference in New Issue
Block a user