summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-01-09 02:26:59 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-01-09 02:26:59 +0100
commit3118e255ecf417553a6750950da4cd4880a7a42c (patch)
tree4ce1e0718b7e97bb7a12fba95c1ac077987eed48 /src/mainwindow.h
parentCreated mainview! (diff)
downloadrekonq-3118e255ecf417553a6750950da4cd4880a7a42c.tar.xz
Last commit before loadPage REMOVAL..
..
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h59
1 files changed, 34 insertions, 25 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 8a13d7f9..fb251657 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -40,10 +40,16 @@
class QWebFrame;
class WebView;
+
/**
- The MainWindow of the Browser Application.
- Handles the tab widget and all the actions
-*/
+ * This class serves as the main window for rekonq.
+ * It handles the menus, toolbars, and status bars.
+ *
+ * @short Main window class
+ * @author Andrea Diamantini adjam7_AT_gmail_DOT_com
+ *
+ */
+
class MainWindow : public KXmlGuiWindow
{
Q_OBJECT
@@ -60,28 +66,42 @@ private:
void setupActions();
void setupCustomMenu();
-public slots:
+private slots:
+
void loadPage(const QString &url);
void slotHome();
- void slotFind(const QString &);
- void slotFindNext();
- void slotFindPrevious();
-
-private slots:
+ void loadUrl(const KUrl &url);
void slotLoadProgress(int);
void slotUpdateStatusbar(const QString &string);
void slotUpdateWindowTitle(const QString &title = QString());
+ void slotOpenLocation();
+ void slotAboutToShowBackMenu();
- void loadUrl(const KUrl &url);
- void slotPreferences();
+ // history related
+ void slotOpenActionUrl(QAction *action);
+ void slotOpenPrevious();
+ void slotOpenNext();
+ void slotShowWindow();
+ void slotSwapFocus();
+ void geometryChangeRequested(const QRect &geometry);
+
+
+ // File Menu slots
void slotFileNew();
void slotFileOpen();
void slotFilePrintPreview();
void slotFilePrint();
void slotPrivateBrowsing();
void slotFileSaveAs();
+ void printRequested(QWebFrame *frame);
+ // Edit Menu slots
+ void slotFind(const QString &);
+ void slotFindNext();
+ void slotFindPrevious();
+
+ // View Menu slots
void slotViewTextBigger();
void slotViewTextNormal();
void slotViewTextSmaller();
@@ -89,23 +109,12 @@ private slots:
void slotViewFullScreen(bool enable);
void slotViewFindBar();
+ // Tools Menu slots
void slotToggleInspector(bool enable);
void slotDownloadManager();
- void slotOpenLocation();
-
- void slotAboutToShowBackMenu();
-
- // history related
- void slotOpenActionUrl(QAction *action);
- void slotOpenPrevious();
- void slotOpenNext();
-
- void slotShowWindow();
- void slotSwapFocus();
-
- void printRequested(QWebFrame *frame);
- void geometryChangeRequested(const QRect &geometry);
+ // Settings Menu slots
+ void slotPreferences();
private:
SearchBar *m_searchBar;