Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
huggleweb.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef HUGGLEWEB_H
12 #define HUGGLEWEB_H
13 
14 #include <QFrame>
15 #include <QWebHistory>
16 #include "wikipage.hpp"
17 #include "wikiedit.hpp"
18 #include "exception.hpp"
19 #include "core.hpp"
20 
21 namespace Ui
22 {
23  class HuggleWeb;
24 }
25 
26 namespace Huggle
27 {
28  class WikiEdit;
29 
30  //! Web browser
31  class HuggleWeb : public QFrame
32  {
33  Q_OBJECT
34 
35  public:
36  explicit HuggleWeb(QWidget *parent = 0);
37  ~HuggleWeb();
38  QString CurrentPageName();
39  /*!
40  * \brief Retrieve a page in render mode on currently selected project
41  * \param page
42  */
44  /*!
45  * \brief Open a page but append action=render to it
46  * \param url
47  */
48  void DisplayPreFormattedPage(QString url);
49  void DisplayPage(QString url);
50  /// \todo DOCUMENT ME
51  void RenderHtml(QString html);
52  /// \todo DOCUMENT ME
53  void DisplayDiff(WikiEdit *edit);
54  static QString Encode(const QString &string);
55 
56  private:
57  Ui::HuggleWeb *ui;
58  QString CurrentPage;
59  };
60 }
61 
62 #endif // HUGGLEWEB_H
Web browser.
Definition: huggleweb.hpp:31
HuggleWeb(QWidget *parent=0)
Definition: huggleweb.cpp:16
void DisplayPreFormattedPage(WikiPage *page)
Retrieve a page in render mode on currently selected project.
Definition: huggleweb.cpp:33
Mediawiki page.
Definition: wikipage.hpp:43
Wiki edit.
Definition: wikiedit.hpp:67
void DisplayDiff(WikiEdit *edit)
Definition: huggleweb.cpp:81
void RenderHtml(QString html)
Definition: huggleweb.cpp:56