*/}}
Browse Source

Marco fixes

YimingWu 1 year ago
parent
commit
0967e69e44
2 changed files with 6 additions and 6 deletions
  1. 5 5
      example_viewer.c
  2. 1 1
      widget_flags.c

+ 5 - 5
example_viewer.c

@@ -63,7 +63,7 @@ static void ExamplesCleanUp(){
     memFree(EV);
 }
 
-#define EXAMPLE_COMMON_BEGIN\
+#define EXAMPLE_COMMON_BEGIN \
     ExampleItem* ei=This->EndInstance;\
     laColumn* c=laFirstColumn(uil);\
     laUiItem* row=laBeginRow(uil,c,0,0);\
@@ -84,7 +84,7 @@ static void ExamplesCleanUp(){
         laEndRow(uil,row);\
         laShowSeparator(uil,c);
 
-#define EXAMPLE_COMMON_END\
+#define EXAMPLE_COMMON_END \
     }laEndCondition(uil,bu);
 
 void ui_Fruits(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
@@ -148,8 +148,8 @@ This demo shows commom widgets inside LaGUI.\n\
 \n\
 What you need to know about widgets in LaGUI:\n\
 ---------------------------------------------\n\
-    1) Except labels, you need a data source (a defined property in LaGUI) to show any other kind of widget.\n\
-    2) To show a button, you need to define an operator, and an operator is basically what you trigger an action with.\n\
+    1) Except labels, you need a data source (a defined property in LaGUI) to show any other kind of widget.\n \
+    2) To show a button, you need to define an operator, and an operator is basically what you trigger an action with.\n \
     3) A widget can have multiple style/looks controlled by mainly `ui->Flags`. Some ui types accept extra instructions as a string, like you \
 could specify \"text=something;\" to a button.\n\
     4) You could arrange widgets in a columns or rows, also with groups and tabs. Currently, group/subprop widgets can not be used inside a row.\n\
@@ -249,7 +249,7 @@ void set_CurrentExample(ExampleViewer* v, ExampleItem* ei){
     memAssignRef(v,&v->CurrentExample, ei); v->ShowCode=0;
 }
 
-#define EXAMPLE_ADD_PC(name,_PC,_UI)\
+#define EXAMPLE_ADD_PC(name,_PC,_UI) \
     pc=laAddPropertyContainer("example_" name, name "Example", name "example",0,_UI,sizeof(ExampleItem),0,0,1); _PC=pc;\
     laAddStringProperty(pc,"name","Name","Name of the example",LA_WIDGET_STRING_PLAIN,0,0,0,1,offsetof(ExampleItem,Name),0,0,0,0,LA_READ_ONLY|LA_AS_IDENTIFIER);\
     laAddSubGroup(pc,"base","Base","Base example","program_example",0,0,0,0,0,0,0,0,0,0,0,LA_UDF_LOCAL);

+ 1 - 1
widget_flags.c

@@ -18,7 +18,7 @@
 
 #include "la_5.h"
 
-#define SHOW_FLAG(what)\
+#define SHOW_FLAG(what) \
     laShowSeparator(uil,c); laShowLabel(uil,cl, #what ,0,0)->Flags|=LA_TEXT_MONO;
 #define BR b=laBeginRow(uil,cr,0,0);
 #define ER laEndRow(uil,b);