Browse code

Changes in YAB.rdef and YabInterface

Lorenz Glaser authored onTue/Jul/2020 05:0:th
Showing2 changed files
... ...
@@ -26,10 +26,10 @@ resource app_signature "application/x-vnd.yab-app";
26 26
 resource app_version {
27 27
 	major  = 1,
28 28
 	middle = 7,
29
-	minor  = 5,
29
+	minor  = 8,
30 30
 
31 31
 	variety = B_APPV_FINAL,
32
-	internal = 3,
32
+	internal = 4,
33 33
 
34 34
 	short_info = "Yab BASIC programming language",
35 35
 	long_info = "Yab allows fast prototyping with simple and clean code. yab contains a large number of BeAPI specific commands for GUI creation and much, much more."
... ...
@@ -646,7 +646,7 @@ void YabInterface::TabAdd(const char* id, const char* tabname)
646 646
 		myView = cast_as((BView*)viewList->ItemAt(i), YabView);
647 647
 		if(myView)
648 648
 		{
649
-			viewList->PrintOut();	
649
+			//viewList->PrintOut();	
650 650
 			//fprintf(stderr, "Viewlist %d\n",viewList->ItemAt(i));
651 651
 			YabWindow *w = cast_as(myView->Window(), YabWindow);
652 652
 			if(w)
... ...
@@ -657,13 +657,13 @@ void YabInterface::TabAdd(const char* id, const char* tabname)
657 657
 				//printf("\t View %d and the id %d\n", viewList->ItemAt(i));
658 658
 				//printf ("%d \n",myTabView);
659 659
 				//
660
-				myTabView->PrintOut();
660
+				//myTabView->PrintOut();
661 661
 				oldtabview=myTabView->GetTabName(i);
662
-				printf ("oldtabview: ");
663
-				printf (oldtabview);
664
-				printf("\n");
662
+				//printf ("oldtabview: ");
663
+				//printf (oldtabview);
664
+				//printf("\n");
665 665
 				myTabView->FindTabName(tabname);
666
-				printf("\n");
666
+				//printf("\n");
667 667
 				if (oldtabview==tabname)
668 668
 				{
669 669
 					
... ...
@@ -672,7 +672,7 @@ void YabInterface::TabAdd(const char* id, const char* tabname)
672 672
 					
673 673
 					//viewList->AddView(id, tabname, TYPE_YABVIEW);
674 674
 					//myTabView=cast_as(myView->FindView(id), YabTabView);
675
-					printf ("%d \n",myTabView);
675
+					//printf ("%d \n",myTabView);
676 676
 					//myTabView->AddTab(cast_as(myView->FindView(id), YabTabView),oldtabview);
677 677
 					//YabTabView* tabView = static_cast<YabTabView*>(myTabView);
678 678
 					//YabView *t = static_cast<YabView*>(tabView->TabAt(num)->View());
... ...
@@ -4526,6 +4526,7 @@ const char* YabInterface::DrawGet(const char* option)
4526 4526
 int YabInterface::DrawGet(BPoint coord, const char* option, const char* view)
4527 4527
 {
4528 4528
 	BString t(option);
4529
+	return 0;
4529 4530
 	
4530 4531
 }
4531 4532
 
... ...
@@ -10398,12 +10399,12 @@ int yi_TreeboxCount(const char* treebox, YabInterface *yab)
10398 10399
 
10399 10400
 void yi_ButtonImage(double x,double y,const char* id,const char* enabledon, const char* enabledoff, const char *disabled, const char* view, YabInterface *yab)
10400 10401
 {
10401
-	yab->ButtonImage(x,y, id, enabledon, enabledoff, disabled, view);
10402
+	return yab->ButtonImage(x,y, id, enabledon, enabledoff, disabled, view);
10402 10403
 }
10403 10404
 
10404 10405
 void yi_CheckboxImage(double x,double y,const char* id,const char* enabledon, const char* enabledoff, const char *disabledon, const char *disabledoff, int isActivated, const char* view, YabInterface *yab)
10405 10406
 {
10406
-	yab->CheckboxImage(x,y, id, enabledon, enabledoff, disabledon, disabledoff, isActivated, view);
10407
+	return yab->CheckboxImage(x,y, id, enabledon, enabledoff, disabledon, disabledoff, isActivated, view);
10407 10408
 }
10408 10409
 
10409 10410
 void yi_CheckboxSet(const char* id, int isActivated, YabInterface* yab)
... ...
@@ -10859,7 +10860,7 @@ void yi_Bitmap(double w, double h, const char* id,YabInterface* yab)
10859 10860
 
10860 10861
 int yi_BitmapColor(double x, double y, const char* id, const char* option, YabInterface *yab)
10861 10862
 {
10862
-	yab->BitmapColor(x,y, id, option);
10863
+	return yab->BitmapColor(x,y, id, option);
10863 10864
 }
10864 10865
 
10865 10866
 void yi_BitmapDraw(double x, double y, const char* bitmap, const char* mode, const char* view,YabInterface* yab)
... ...
@@ -10884,12 +10885,12 @@ void yi_BitmapGet2(double w, const char* id, const char* path, YabInterface* yab
10884 10885
 
10885 10886
 int yi_BitmapGetNum(const char* id, const char* option, YabInterface* yab)
10886 10887
 {
10887
-	yab->BitmapGet(id, option);
10888
+	return yab->BitmapGet(id, option);
10888 10889
 }
10889 10890
 
10890 10891
 int yi_BitmapLoad(const char* filename, const char* bitmap, YabInterface* yab)
10891 10892
 {
10892
-	yab->BitmapLoad(filename, bitmap);
10893
+	return yab->BitmapLoad(filename, bitmap);
10893 10894
 }
10894 10895
 
10895 10896
 void yi_BitmapGetIcon(const char* id, const char* option, const char* path, YabInterface* yab)