MainWindow Class Reference

The main application window, containing toolbar, status bar, menu, PDF view and dock widgets. More...

#include <mainwindow.h>

Collaboration diagram for MainWindow:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MainWindow (QWidget *parent=0)
 ~MainWindow ()
void open (QString path)

Private Slots

void on_actionViewPageText_toggled (bool)
void on_actionViewPageImage_toggled (bool)
void on_actionZoom_Width_triggered ()
void on_actionZoom_to_Fit_triggered ()
void on_actionZoom_25_triggered ()
void on_actionZoom_100_triggered ()
void on_actionZoom_Out_triggered ()
void on_actionZoom_In_triggered ()
void on_actionExport_triggered ()
void on_actionBox_toggled (bool)
void on_actionSelect_toggled (bool)
void on_actionPan_toggled (bool)
void on_actionSave_triggered ()
void on_actionNext_Page_triggered ()
void on_actionPrevious_Page_triggered ()
void on_actionOpen_PDF_triggered ()
void renderPage ()
void selectionChanged ()
void cursorMoved (QPointF pos)
void zoomChanged ()

Private Attributes

Ui::MainWindow * ui
PDFPager doc
QLineEdit * pageNum
QLineEdit * zoomPercent
ThumbnailScene thumbnailScene
PDFScene pdfScene


Detailed Description

The main application window, containing toolbar, status bar, menu, PDF view and dock widgets.

Since Qt Creator creates action handlers in here, this class also contains a lot of the application functionality. (Some action handlers delegate, and some of them directly do what is requested.)

Definition at line 25 of file mainwindow.h.


Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0  ) 

Todo:
how to set busy cursor while rendering occurs

Definition at line 14 of file mainwindow.cpp.

References cursorMoved(), doc, pageNum, PDFPager::pageRange, pdfScene, renderPage(), selectionChanged(), thumbnailScene, ui, zoomChanged(), and zoomPercent.

Here is the call graph for this function:

MainWindow::~MainWindow (  ) 

Definition at line 71 of file mainwindow.cpp.

References ui.


Member Function Documentation

void MainWindow::cursorMoved ( QPointF  pos  )  [private, slot]

Definition at line 150 of file mainwindow.cpp.

References ui.

Referenced by MainWindow().

Here is the caller graph for this function:

void MainWindow::on_actionBox_toggled ( bool  checked  )  [private, slot]

Definition at line 144 of file mainwindow.cpp.

References BoxTool::activate(), PDFScene::boxTool, and pdfScene.

Here is the call graph for this function:

void MainWindow::on_actionExport_triggered (  )  [private, slot]

Todo:
use preferences (QSettings) for image conversion flags

Definition at line 161 of file mainwindow.cpp.

References doc, PDFScene::image(), pdfScene, and PDFPager::plainText().

Here is the call graph for this function:

void MainWindow::on_actionNext_Page_triggered (  )  [private, slot]

Definition at line 96 of file mainwindow.cpp.

References doc, and PDFPager::page().

Here is the call graph for this function:

void MainWindow::on_actionOpen_PDF_triggered (  )  [private, slot]

Definition at line 82 of file mainwindow.cpp.

References open().

Here is the call graph for this function:

void MainWindow::on_actionPan_toggled ( bool  checked  )  [private, slot]

Definition at line 129 of file mainwindow.cpp.

References pdfScene, PDFScene::setTool(), and ui.

Here is the call graph for this function:

void MainWindow::on_actionPrevious_Page_triggered (  )  [private, slot]

Definition at line 91 of file mainwindow.cpp.

References doc, and PDFPager::page().

Here is the call graph for this function:

void MainWindow::on_actionSave_triggered (  )  [private, slot]

Definition at line 113 of file mainwindow.cpp.

References doc, and PDFPager::pdf.

void MainWindow::on_actionSelect_toggled ( bool  checked  )  [private, slot]

Definition at line 138 of file mainwindow.cpp.

References SelectTool::activate(), pdfScene, and PDFScene::selectTool.

Here is the call graph for this function:

void MainWindow::on_actionViewPageImage_toggled ( bool  v  )  [private, slot]

Definition at line 240 of file mainwindow.cpp.

References pdfScene, and PDFScene::setImageVisible().

Here is the call graph for this function:

void MainWindow::on_actionViewPageText_toggled ( bool  v  )  [private, slot]

Definition at line 245 of file mainwindow.cpp.

References pdfScene, and PDFScene::setTextVisible().

Here is the call graph for this function:

void MainWindow::on_actionZoom_100_triggered (  )  [private, slot]

Definition at line 205 of file mainwindow.cpp.

References ui, and zoomChanged().

Here is the call graph for this function:

void MainWindow::on_actionZoom_25_triggered (  )  [private, slot]

Definition at line 212 of file mainwindow.cpp.

References ui, and zoomChanged().

Here is the call graph for this function:

void MainWindow::on_actionZoom_In_triggered (  )  [private, slot]

Todo:
trigger from a signal somehow when the zoom actually changes, regardless of what caused the change

Definition at line 191 of file mainwindow.cpp.

References ui, ZOOM_SCALE, and zoomChanged().

Here is the call graph for this function:

void MainWindow::on_actionZoom_Out_triggered (  )  [private, slot]

Definition at line 199 of file mainwindow.cpp.

References ui, ZOOM_SCALE, and zoomChanged().

Here is the call graph for this function:

void MainWindow::on_actionZoom_to_Fit_triggered (  )  [private, slot]

Definition at line 220 of file mainwindow.cpp.

References pdfScene, ui, and zoomChanged().

Here is the call graph for this function:

void MainWindow::on_actionZoom_Width_triggered (  )  [private, slot]

Definition at line 231 of file mainwindow.cpp.

References pdfScene, ui, and zoomChanged().

Here is the call graph for this function:

void MainWindow::open ( QString  path  ) 

Definition at line 76 of file mainwindow.cpp.

References doc, ThumbnailScene::layout(), PDFPager::openPDF(), and thumbnailScene.

Referenced by main(), and on_actionOpen_PDF_triggered().

Here is the call graph for this function:

Here is the caller graph for this function:

void MainWindow::renderPage (  )  [private, slot]

Definition at line 101 of file mainwindow.cpp.

References doc, PDFPager::page(), and pageNum.

Referenced by MainWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void MainWindow::selectionChanged (  )  [private, slot]

Definition at line 106 of file mainwindow.cpp.

References doc, PDFPager::page(), and thumbnailScene.

Referenced by MainWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void MainWindow::zoomChanged (  )  [private, slot]


Member Data Documentation

QLineEdit* MainWindow::pageNum [private]

Definition at line 61 of file mainwindow.h.

Referenced by MainWindow(), and renderPage().

Definition at line 63 of file mainwindow.h.

Referenced by MainWindow(), open(), and selectionChanged().

Ui::MainWindow* MainWindow::ui [private]

QLineEdit* MainWindow::zoomPercent [private]

Definition at line 62 of file mainwindow.h.

Referenced by MainWindow(), and zoomChanged().


The documentation for this class was generated from the following files:

Generated on Tue Sep 8 15:09:45 2009 for Taborca by  doxygen 1.5.8