Ejemplo n.º 1
0
static int generated_defineMask(PARAM *p)
{
  int w,h,depth;

  if(p == NULL) return 1;
  w = h = depth = strcmp(toolTip[0],whatsThis[0]);
  if(w==h) depth=0; // fool the compiler
  pvStartDefinition(p,ID_END_OF_WIDGETS);

  pvQIconView(p,iconView1,0);
  pvSetGeometry(p,iconView1,20,85,665,515);

  pvQLabel(p,welcomeLabel,0);
  pvSetGeometry(p,welcomeLabel,20,10,500,25);
  pvSetText(p,welcomeLabel,"Welcome to pvbrowser pvsexample");
  pvSetFont(p,welcomeLabel,"Sans Serif",18,1,1,0,0);

  pvQLabel(p,helpLabel,0);
  pvSetGeometry(p,helpLabel,20,40,265,30);
  pvSetText(p,helpLabel,"Click on icon to see further masks ...");

  pvQLayoutVbox(p,ID_MAIN_WIDGET,-1);

  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,welcomeLabel,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,helpLabel,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,iconView1,-1,-1);

  pvEndDefinition(p);
  return 0;
}
Ejemplo n.º 2
0
static int generated_defineMask(PARAM *p)
{
  int w,h,depth;

  if(p == NULL) return 1;
  w = h = depth = strcmp(toolTip[0],whatsThis[0]);
  if(w==h) depth=0; // fool the compiler
  pvStartDefinition(p,ID_END_OF_WIDGETS);

  pvQPushButton(p,back,0);
  pvSetGeometry(p,back,15,10,100,30);
  pvSetText(p,back,"&Back");

  pvQListView(p,listView1,0);
  pvSetGeometry(p,listView1,15,60,525,710);
  pvSetMultiSelection(p,listView1,0);

  pvQListBox(p,listBox1,0);
  pvSetGeometry(p,listBox1,550,60,350,710);
  pvSetMultiSelection(p,listBox1,0);
  pvSetMaxSize(p,listBox1,350,99999);

  pvQLayoutVbox(p,ID_MAIN_WIDGET,-1);

  pvQLayoutHbox(p,layout1,ID_MAIN_WIDGET);

  pvQLayoutHbox(p,layout2,ID_MAIN_WIDGET);

  pvAddWidgetOrLayout(p,layout1,back,-1,-1);
  pvAddStretch(p,layout1,1);
  pvAddWidgetOrLayout(p,layout2,listView1,-1,-1);
  pvAddWidgetOrLayout(p,layout2,listBox1,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,layout1,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,layout2,-1,-1);

  pvEndDefinition(p);
  return 0;
}
Ejemplo n.º 3
0
static int generated_defineMask(PARAM *p)
{
  int w,h,depth;

  if(p == NULL) return 1;
  w = h = depth = strcmp(toolTip[0],whatsThis[0]);
  if(widgetType[0] == -1) return 1;
  if(w==h) depth=0; // fool the compiler
  pvStartDefinition(p,ID_END_OF_WIDGETS);

  pvQTextBrowser(p,htmlBottom,0);
  pvSetGeometry(p,htmlBottom,5,60,955,460);
  pvSetFont(p,htmlBottom,"Sans Serif",10,0,0,0,0);

  pvQPushButton(p,buttonSearch,0);
  pvSetGeometry(p,buttonSearch,475,15,100,30);
  pvSetText(p,buttonSearch,"Search");
  pvSetFont(p,buttonSearch,"Sans Serif",10,0,0,0,0);

  pvQLineEdit(p,lineEditSearch,0);
  pvSetGeometry(p,lineEditSearch,230,15,225,30);
  pvSetFont(p,lineEditSearch,"Sans Serif",10,0,0,0,0);

  pvQLayoutHbox(p,ID_MAIN_WIDGET,-1);

  pvQLayoutVbox(p,layout1,ID_MAIN_WIDGET);

  pvQLayoutHbox(p,layout2,layout1);

  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,layout1,-1,-1);
  pvAddWidgetOrLayout(p,layout1,layout2,-1,-1);
  pvAddWidgetOrLayout(p,layout1,htmlBottom,-1,-1);
  pvAddWidgetOrLayout(p,layout2,lineEditSearch,-1,-1);
  pvAddWidgetOrLayout(p,layout2,buttonSearch,-1,-1);

  pvEndDefinition(p);
  return 0;
}
Ejemplo n.º 4
0
static int generated_defineMask(PARAM *p)
{
  int w,h,depth;

  if(p == NULL) return 1;
  w = h = depth = strcmp(toolTip[0],whatsThis[0]);
  if(w==h) depth=0; // fool the compiler
  pvStartDefinition(p,ID_END_OF_WIDGETS);

  pvQPushButton(p,back,0);
  pvSetGeometry(p,back,10,10,100,30);
  pvSetText(p,back,"&Back");

  pvQLabel(p,textLabelNumThreads,0);
  pvSetGeometry(p,textLabelNumThreads,125,10,100,30);
  pvSetText(p,textLabelNumThreads,"numThreads");

  pvQMultiLineEdit(p,textEditOutput,0,0,-1);
  pvSetGeometry(p,textEditOutput,10,55,635,290);

  pvQMultiLineEdit(p,textEditInput,0,1,-1);
  pvSetGeometry(p,textEditInput,10,355,635,200);
  pvSetMaxSize(p,textEditInput,99999,200);

  pvQPushButton(p,pushButtonSend,0);
  pvSetGeometry(p,pushButtonSend,545,570,100,30);
  pvSetText(p,pushButtonSend,"&Send <ESC>");

  pvQLineEdit(p,lineEditAlias,0);
  pvSetGeometry(p,lineEditAlias,120,575,180,30);
  pvSetText(p,lineEditAlias,"unknown");

  pvQLabel(p,labelChat,0);
  pvSetGeometry(p,labelChat,535,15,110,30);
  pvSetText(p,labelChat,"pvbrowser Chat");
  pvSetFont(p,labelChat,"Sans Serif",9,1,1,0,0);

  pvQLabel(p,labelAlias,0);
  pvSetGeometry(p,labelAlias,10,575,100,30);
  pvSetText(p,labelAlias,"Alias:");

  pvQLayoutVbox(p,ID_MAIN_WIDGET,-1);

  pvQLayoutHbox(p,layout1,ID_MAIN_WIDGET);

  pvQLayoutHbox(p,layout2,ID_MAIN_WIDGET);

  pvAddWidgetOrLayout(p,layout1,back,-1,-1);
  pvAddWidgetOrLayout(p,layout1,textLabelNumThreads,-1,-1);
  pvAddStretch(p,layout1,1);
  pvAddWidgetOrLayout(p,layout1,labelChat,-1,-1);
  pvAddWidgetOrLayout(p,layout2,labelAlias,-1,-1);
  pvAddWidgetOrLayout(p,layout2,lineEditAlias,-1,-1);
  pvAddStretch(p,layout2,1);
  pvAddWidgetOrLayout(p,layout2,pushButtonSend,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,layout1,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,textEditOutput,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,textEditInput,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,layout2,-1,-1);

  pvEndDefinition(p);
  return 0;
}
Ejemplo n.º 5
0
static int generated_defineMask(PARAM *p)
{
  int w,h,depth;

  if(p == NULL) return 1;
  w = h = depth = strcmp(toolTip[0],whatsThis[0]);
  if(widgetType[0] == -1) return 1;
  if(w==h) depth=0; // fool the compiler
  pvStartDefinition(p,ID_END_OF_WIDGETS);

  pvQTextBrowser(p,upperWidget,0);
  pvSetGeometry(p,upperWidget,5,5,945,200);
  pvSetFont(p,upperWidget,"Sans Serif",10,0,0,0,0);
  pvSetMinSize(p,upperWidget,0,200);
  pvSetMaxSize(p,upperWidget,99999,200);

  pvQTextBrowser(p,leftWidget,0);
  pvSetGeometry(p,leftWidget,5,215,175,445);
  pvSetFont(p,leftWidget,"Sans Serif",10,0,0,0,0);
  pvSetMaxSize(p,leftWidget,200,99999);

  pvQDraw(p,centerWidget,0);
  pvSetGeometry(p,centerWidget,190,215,580,425);
  pvSetFont(p,centerWidget,"Sans Serif",10,0,0,0,0);
  pvSetWhatsThis(p,centerWidget,"test.svg");
  pvSetMinSize(p,centerWidget,100,100);

  pvQGroupBox(p,rightWidget,0,-1,HORIZONTAL,"Tools");
  pvSetGeometry(p,rightWidget,780,210,170,450);
  pvSetFont(p,rightWidget,"Sans Serif",10,0,0,0,0);
  pvSetMaxSize(p,rightWidget,200,99999);

  pvQLabel(p,obj1,rightWidget);
  pvSetGeometry(p,obj1,10,150,145,35);
  pvSetText(p,obj1,"Put your tools here");
  pvSetFont(p,obj1,"Sans Serif",10,0,0,0,0);

  pvDownloadFile(p,"1center.png");
  pvQImage(p,iCenter,rightWidget,"1center.png",&w,&h,&depth);
  pvSetGeometry(p,iCenter,35,65,22,22);
  pvSetFont(p,iCenter,"Sans Serif",10,0,0,0,0);
  pvSetWhatsThis(p,iCenter,"1center.png");

  pvDownloadFile(p,"1uparrow.png");
  pvQImage(p,iUp,rightWidget,"1uparrow.png",&w,&h,&depth);
  pvSetGeometry(p,iUp,35,40,22,22);
  pvSetFont(p,iUp,"Sans Serif",10,0,0,0,0);
  pvSetWhatsThis(p,iUp,"1uparrow.png");

  pvDownloadFile(p,"1downarrow.png");
  pvQImage(p,iDown,rightWidget,"1downarrow.png",&w,&h,&depth);
  pvSetGeometry(p,iDown,35,90,22,22);
  pvSetFont(p,iDown,"Sans Serif",10,0,0,0,0);
  pvSetWhatsThis(p,iDown,"1downarrow.png");

  pvDownloadFile(p,"1leftarrow.png");
  pvQImage(p,iLeft,rightWidget,"1leftarrow.png",&w,&h,&depth);
  pvSetGeometry(p,iLeft,10,65,22,22);
  pvSetFont(p,iLeft,"Sans Serif",10,0,0,0,0);
  pvSetWhatsThis(p,iLeft,"1leftarrow.png");

  pvDownloadFile(p,"1rightarrow.png");
  pvQImage(p,iRight,rightWidget,"1rightarrow.png",&w,&h,&depth);
  pvSetGeometry(p,iRight,60,65,22,22);
  pvSetFont(p,iRight,"Sans Serif",10,0,0,0,0);
  pvSetWhatsThis(p,iRight,"1rightarrow.png");

  pvQSlider(p,sliderZoom,rightWidget,10,200,1,10,Vertical);
  pvSetGeometry(p,sliderZoom,125,30,25,100);
  pvSetFont(p,sliderZoom,"Sans Serif",10,0,0,0,0);

  pvQLayoutHbox(p,ID_MAIN_WIDGET,-1);

  pvQLayoutVbox(p,layout1,-1);

  pvQLayoutHbox(p,layout2,-1);

  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,layout1,-1,-1);
  pvAddWidgetOrLayout(p,layout1,upperWidget,-1,-1);
  pvAddWidgetOrLayout(p,layout1,layout2,-1,-1);
  pvAddWidgetOrLayout(p,layout2,leftWidget,-1,-1);
  pvAddWidgetOrLayout(p,layout2,centerWidget,-1,-1);
  pvAddWidgetOrLayout(p,layout2,rightWidget,-1,-1);

  pvEndDefinition(p);
  return 0;
}
Ejemplo n.º 6
0
static int generated_defineMask(PARAM *p)
{
  int w,h,depth;

  if(p == NULL) return 1;
  w = h = depth = strcmp(toolTip[0],whatsThis[0]);
  if(widgetType[0] == -1) return 1;
  if(w==h) depth=0; // fool the compiler
  pvStartDefinition(p,ID_END_OF_WIDGETS);

  printf("generated_defineMaks 1\n");
  pvQGL(p,OpenGL1,0);
  printf("generated_defineMaks 2\n");
  pvSetGeometry(p,OpenGL1,105,0,1024,768);
  printf("generated_defineMaks 3\n");
  pvGlBegin(p,OpenGL1);
  printf("generated_defineMaks 4\n");
  initializeGL(p);    // (todo: write your gl initialization routine) see example
  printf("generated_defineMaks 5\n");
  resizeGL(p,1024,768);  // (todo: write your resize routine) see example
  printf("generated_defineMaks 6\n");
  pvGlEnd(p);
  printf("generated_defineMaks 7\n");

  pvQGroupBox(p,group1,0,-1,HORIZONTAL,"w2d");
  pvSetGeometry(p,group1,0,0,100,515);
  pvSetFont(p,group1,"Sans Serif",10,0,0,0,0);
  pvSetMaxSize(p,group1,100,99999);

  pvQSlider(p,sliderPos,group1,0,100,1,10,Horizontal);
  pvSetGeometry(p,sliderPos,10,145,80,30);
  pvSetFont(p,sliderPos,"Sans Serif",10,0,0,0,0);

  pvQSlider(p,sliderScale,group1,0,100,1,31,Vertical);
  pvSetGeometry(p,sliderScale,70,55,25,75);
  pvSetFont(p,sliderScale,"Sans Serif",10,0,0,0,0);

  pvDownloadFile(p,"1center.png");
  pvQImage(p,btCenter,group1,"1center.png",&w,&h,&depth);
  pvSetGeometry(p,btCenter,25,85,25,25);
  pvSetFont(p,btCenter,"Sans Serif",10,0,0,0,0);

  pvDownloadFile(p,"1leftarrow.png");
  pvQImage(p,btLeft,group1,"1leftarrow.png",&w,&h,&depth);
  pvSetGeometry(p,btLeft,5,85,25,25);
  pvSetFont(p,btLeft,"Sans Serif",10,0,0,0,0);

  pvDownloadFile(p,"1rightarrow.png");
  pvQImage(p,btRight,group1,"1rightarrow.png",&w,&h,&depth);
  pvSetGeometry(p,btRight,45,85,25,25);
  pvSetFont(p,btRight,"Sans Serif",10,0,0,0,0);

  pvDownloadFile(p,"1uparrow.png");
  pvQImage(p,btUp,group1,"1uparrow.png",&w,&h,&depth);
  pvSetGeometry(p,btUp,25,65,25,25);
  pvSetFont(p,btUp,"Sans Serif",10,0,0,0,0);

  pvDownloadFile(p,"1downarrow.png");
  pvQImage(p,btDown,group1,"1downarrow.png",&w,&h,&depth);
  pvSetGeometry(p,btDown,25,105,25,25);
  pvSetFont(p,btDown,"Sans Serif",10,0,0,0,0);

  pvQLabel(p,obj1,group1);
  pvSetGeometry(p,obj1,80,45,15,15);
  pvSetText(p,obj1,"+");
  pvSetFont(p,obj1,"Sans Serif",10,0,0,0,0);

  pvQPushButton(p,btBack,group1);
  pvSetGeometry(p,btBack,5,25,75,30);
  pvSetText(p,btBack,"Back");
  pvSetFont(p,btBack,"Sans Serif",10,0,0,0,0);

  pvQLabel(p,obj2,group1);
  pvSetGeometry(p,obj2,80,135,15,15);
  pvSetText(p,obj2,"-");
  pvSetFont(p,obj2,"Sans Serif",10,0,0,0,0);

  pvQLayoutHbox(p,ID_MAIN_WIDGET,-1);

  pvQLayoutVbox(p,layout1,-1);

  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,layout1,-1,-1);
  pvAddWidgetOrLayout(p,ID_MAIN_WIDGET,OpenGL1,-1,-1);
  pvAddWidgetOrLayout(p,layout1,group1,-1,-1);

  printf("generated_defineMaks x\n");
  pvEndDefinition(p);
  printf("generated_defineMaks end\n");
  return 0;
}