Moved help browser from MainPage to a new base class named FloatingHelpBrowser for global usage.

Added FloatingHelpBrowser to the option window (help text not including).
The help text can be specified for the ConfigPages in the method "helpText".

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6818 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-10-09 09:31:40 +00:00
parent fa6bc5fe39
commit a50c899ff3
24 changed files with 225 additions and 67 deletions

View file

@ -49,6 +49,10 @@ class ConfigPage : public QWidget
//
virtual QString pageName() const = 0 ;
// Text to be used to display in the help browser
//
virtual QString helpText() const = 0;
protected:
virtual void showEvent(QShowEvent * /*event*/)
{

View file

@ -28,6 +28,7 @@
class UserNotify;
class QAbstractButton ;
class FloatingHelpBrowser;
class MainPage : public QWidget
{
@ -45,11 +46,8 @@ class MainPage : public QWidget
//
void registerHelpButton(QAbstractButton *button, const QString& help_html_text) ;
private slots:
void showHelp(bool b) ;
private:
QTextBrowser *help_browser ;
FloatingHelpBrowser *mHelpBrowser ;
};
#endif