00001
#ifndef GNUPLOT_SIM_H
00002
#define GNUPLOT_SIM_H
00003
00004
#include "gnuplottext.h"
00005
#include "../SRC/include.h"
00006
00008
00062 template <
class T>
class Gnuplot_SIM:
public GnuplotText<T>
00063 {
00064
public:
00065 Gnuplot_SIM(
Gnuplot<T> *gp)
00066 :
GnuplotText<T>(gp)
00067 {};
00068
00069 void list(){
00070 ShowUserInfo (2, 2);
00071
00072
int j=0;
00073 std::string str;
00074
char name[20];
00075
char zeichen[2];
00076 zeichen[0]=
'a';
00077 zeichen[1]=0;
00078
int pos=0;
00079
00080 Color (GREY_69);
00081 FillRectangle (0, 0, 500, 320);
00082 Color (BLUE);
00083
00084
for(
typename Gnuplot<T>::nameslist::iterator i=names.begin();i!=names.end();++i,j++){
00085 str=gg->getTitle(*i);
00086
00087
for(
int z=0;z<str.length();z++)
00088 name[z]=str[z];
00089 name[str.length()]=0;
00090
if ((j%17)==16)
00091 pos++;
00092
00093
if (sh[j]==
true)
00094 DrawText(10+pos*150,20+(j-16*pos)*20,
"*");
00095
00096 zeichen[0]=
getChar(j);
00097 DrawText(20+pos*150,20+(j-16*pos)*20,zeichen);
00098 DrawText(50+pos*150,20+(j-16*pos)*20,name);
00099 }
00100 };
00101
00103 void info(){
00104 Color (BLUE);
00105 DrawText(20,30,
"GNUPLOT COMMANDS");
00106 DrawText(20,50,
"show channel list - Gl");
00107 DrawText(20,70,
"show channel - Gsxx (x channel, * = all)");
00108 DrawText(20,90,
"hide channel - Ghxx (x channel, * = all)");
00109 };
00110 };
00111
00112
#endif