casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TBHelp.qo.h
Go to the documentation of this file.
1 //# TBHelp.qo.h: Widget for displaying and updating the browser help files.
2 //# Copyright (C) 2005
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id: $#ifndef TBHELP_H_
27 #ifndef TBHELP_H_
28 #define TBHELP_H_
29 
30 #include <casaqt/QtBrowser/TBHelp.ui.h>
31 
32 #include <QtGui>
33 
34 #include <casa/BasicSL/String.h>
35 
36 namespace casa {
37 
38 // <summary>
39 // Widget for displaying and updating the browser help files.
40 // <summary>
41 //
42 // <synopsis>
43 // TBHelp first finds the help files (which should be located under
44 // %casadir%/code/casaqt/implement/QtBrowser/help/) and checks the modification
45 // date. The meta help information is located in help.xml, which is then
46 // converted into html files (like browsing.html) if help.xml has been modified
47 // after the html files. The HTML is then displayed using a QTextBrowser,
48 // allowing the user to browse.
49 // </synopsis>
50 
51 class TBHelp : public QWidget, Ui::Help {
52  Q_OBJECT
53 
54 public:
55  // Default Constructor.
56  TBHelp();
57 
58  ~TBHelp();
59 
60 
61  // Rebuilds the HTML files based on the XML file. Returns true if the
62  // rebuild succeeded, false otherwise.
63  bool rebuild();
64 
65 private slots:
66  // Slot for when the rebuild button is clicked. If the rebuild is
67  // successful, the help browser is reloaded to display the most recent
68  // version.
69  void rebuildClicked();
70 
71 private:
72  // Location of the directory holding the help files.
74 };
75 
76 }
77 
78 #endif /* TBHELP_H_ */
TBHelp()
Default Constructor.
Widget for displaying and updating the browser help files.
Definition: TBHelp.qo.h:51
void rebuildClicked()
Slot for when the rebuild button is clicked.
String: the storage and methods of handling collections of characters.
Definition: String.h:223
bool rebuild()
Rebuilds the HTML files based on the XML file.
casacore::String helpdir
Location of the directory holding the help files.
Definition: TBHelp.qo.h:73