pihmLIBS/helpDialog/helpdialog.cpp

Go to the documentation of this file.
00001 #include <QtGui>
00002 #include "helpdialog.h"
00003 
00004 helpDialog::helpDialog(QWidget *parent, const char* name , bool modal, const QString& helpFileName,const QString& captionText)
00005 {
00006         setupUi(this);
00007         //if ( !name )
00008         //setName( "helpDialog" );
00009 
00010         
00011         connect(helpDialogCloseButton, SIGNAL(clicked()), this, SLOT(close()));
00012         helpTextBrowser->setFocus();
00013         QFile f( helpFileName );
00014         if ( !f.open( QIODevice::ReadOnly ) )
00015                 return;
00016 //      helpTextBrowser->setSearchPaths(QStringList("images"));
00017 
00018         QTextStream ts( &f );
00019         helpTextBrowser->setText( ts.readAll() );
00020         helpTextBrowser->setModified( FALSE );
00021         setWindowTitle( captionText );
00022                 helpTextBrowser->show();
00023 }
00024 

Generated on Sun Aug 5 17:33:59 2007 for PIHMgis by  doxygen 1.5.2