00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #if 0
00012 header
00013
00014 QTextBrowser* helpBrowser;
00015
00016 constructor
00017
00018 QWidget* browserspace = new QWidget(tab);
00019 helpBrowser = new QTextBrowser(browserspace);
00020 tab->addTab(browserspace, "Help");
00021 char * path = getenv("RP_SeExpr");
00022 if (path)
00023 helpBrowser->setSource(QString("%1/share/doc/SeExpr/SeExpressions.html").arg(path));
00024
00025 QPushButton* backPb = new QPushButton("Back");
00026 backPb->setEnabled(false);
00027 QPushButton* forwardPb = new QPushButton("Forward");
00028 forwardPb->setEnabled(false);
00029
00030 QVBoxLayout * helpLayout = new QVBoxLayout(browserspace);
00031 QHBoxLayout * helpPbLayout = new QHBoxLayout;
00032 helpLayout->addLayout(helpPbLayout);
00033 helpPbLayout->addWidget(backPb);
00034 helpPbLayout->addWidget(forwardPb);
00035 helpPbLayout->addItem(new QSpacerItem(0,0, QSizePolicy::MinimumExpanding,
00036 QSizePolicy::Minimum));
00037 helpLayout->addWidget(helpBrowser, true);
00038 helpBrowser->setMinimumHeight(120);
00039
00040
00041 connect(backPb, SIGNAL(clicked()), helpBrowser, SLOT(backward()));
00042 connect(forwardPb, SIGNAL(clicked()), helpBrowser, SLOT(forward()));
00043 connect(helpBrowser, SIGNAL(backwardAvailable(bool)), backPb, SLOT(setEnabled(bool)));
00044 connect(helpBrowser, SIGNAL(forwardAvailable(bool)), forwardPb, SLOT(setEnabled(bool)));
00045 #endif