Logo Search packages:      
Sourcecode: scantailor version File versions  Download package

Public Slots | Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes

MainWindow Class Reference

Inheritance diagram for MainWindow:
Inheritance graph
[legend]
Collaboration diagram for MainWindow:
Collaboration graph
[legend]

List of all members.

Public Slots

void openProject (QString const &project_file)

Public Member Functions

PageSequence allPages () const
std::set< PageIdselectedPages () const
std::vector< PageRangeselectedRanges () const

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
virtual void timerEvent (QTimerEvent *event)

Private Types

typedef IntrusivePtr
< AbstractFilter
FilterPtr
enum  MainAreaAction { UPDATE_MAIN_AREA, CLEAR_MAIN_AREA }
enum  Ownership { KEEP_OWNERSHIP, TRANSFER_OWNERSHIP }
enum  SavePromptResult { SAVE, DONT_SAVE, CANCEL }

Private Slots

void closeProject ()
void currentPageChanged (PageInfo const &page_info, QRectF const &thumb_rect, ThumbnailSequence::SelectionFlags flags)
void debugToggled (bool enabled)
void filterResult (BackgroundTaskPtr const &task, FilterResultPtr const &result)
void filterSelectionChanged (QItemSelection const &selected)
void goFirstPage ()
void goLastPage ()
void goNextPage ()
void goPrevPage ()
void goToPage (PageId const &page_id)
void invalidateAllThumbnails ()
void invalidateThumbnail (PageId const &page_id)
void invalidateThumbnail (PageInfo const &page_info)
void newProject ()
void newProjectCreated (ProjectCreationContext *context)
void openProject ()
void openSettingsDialog ()
void pageContextMenuRequested (PageInfo const &page_info, QPoint const &screen_pos, bool selected)
void pageOrderingChanged (int idx)
void pastLastPageContextMenuRequested (QPoint const &screen_pos)
void projectOpened (ProjectOpeningContext *context)
void reloadRequested ()
void saveProjectAsTriggered ()
void saveProjectTriggered ()
void showAboutDialog ()
void startBatchProcessing ()
void stopBatchProcessing (MainAreaAction main_area=UPDATE_MAIN_AREA)
void thumbViewFocusToggled (bool checked)
void thumbViewScrolled ()

Private Member Functions

bool checkReadyForOutput (PageId const *ignore=0) const
bool closeProjectInteractive ()
 Closes the currently project, prompting to save it if necessary.
void closeProjectWithoutSaving ()
void createBatchProcessingWidget ()
IntrusivePtr
< CompositeCacheDrivenTask
createCompositeCacheDrivenTask (int last_filter_idx)
BackgroundTaskPtr createCompositeTask (PageInfo const &page, int last_filter_idx, bool batch, bool debug)
IntrusivePtr
< ThumbnailPixmapCache
createThumbnailCache ()
IntrusivePtr
< PageOrderProvider const > 
currentPageOrderProvider () const
void eraseOutputFiles (std::set< PageId > const &pages)
PageView getCurrentView () const
void insertImage (ImageInfo const &new_image, BeforeOrAfter before_or_after, ImageId existing)
bool isBatchProcessingInProgress () const
bool isBelowFixOrientation (int filter_idx) const
bool isBelowSelectContent (int filter_idx) const
bool isBelowSelectContent () const
bool isOutputFilter (int filter_idx) const
bool isOutputFilter () const
bool isProjectLoaded () const
void loadPageInteractive (PageInfo const &page)
SavePromptResult promptProjectSave ()
void removeFilterOptionsWidget ()
void removeFromProject (std::set< PageId > const &pages)
void removeImageWidget ()
void removeWidgetsFromLayout (QLayout *layout)
void resetThumbSequence (IntrusivePtr< PageOrderProvider const > const &page_order_provider)
bool saveProjectWithFeedback (QString const &project_file)
virtual void setImageWidget (QWidget *widget, Ownership ownership, DebugImages *debug_images=0)
virtual void setOptionsWidget (FilterOptionsWidget *widget, Ownership ownership)
void setupThumbView ()
void showInsertFileDialog (BeforeOrAfter before_or_after, ImageId const &existig)
void showNewOpenProjectPanel ()
void showRemovePagesDialog (std::set< PageId > const &pages)
void switchToNewProject (IntrusivePtr< ProjectPages > const &pages, QString const &out_dir, QString const &project_file_path=QString(), ProjectReader const *project_reader=0)
void updateDisambiguationRecords (PageSequence const &pages)
void updateMainArea ()
void updateProjectActions ()
void updateSortOptions ()
void updateWindowTitle ()

Static Private Member Functions

static bool compareFiles (QString const &fpath1, QString const &fpath2)

Private Attributes

bool m_beepOnBatchProcessingCompletion
boost::function< bool()> m_checkBeepWhenFinished
bool m_closing
int m_curFilter
bool m_debug
int m_ignorePageOrderingChanges
int m_ignoreSelectionChanges
QObjectCleanupHandler m_imageWidgetCleanup
QSizeF m_maxLogicalThumbSize
QObjectCleanupHandler m_optionsWidgetCleanup
OutputFileNameGenerator m_outFileNameGen
QStackedLayout * m_pImageFrameLayout
QStackedLayout * m_pOptionsFrameLayout
QString m_projectFile
std::auto_ptr< QWidget > m_ptrBatchProcessingWidget
std::auto_ptr
< ProcessingTaskQueue
m_ptrBatchQueue
std::auto_ptr
< ContentBoxPropagator
m_ptrContentBoxPropagator
std::auto_ptr
< ProcessingTaskQueue
m_ptrInteractiveQueue
QPointer< FilterOptionsWidgetm_ptrOptionsWidget
std::auto_ptr
< PageOrientationPropagator
m_ptrPageOrientationPropagator
IntrusivePtr< ProjectPagesm_ptrPages
std::auto_ptr
< ProcessingIndicationWidget
m_ptrProcessingIndicationWidget
IntrusivePtr< StageSequencem_ptrStages
std::auto_ptr< TabbedDebugImagesm_ptrTabbedDebugImages
IntrusivePtr
< ThumbnailPixmapCache
m_ptrThumbnailCache
std::auto_ptr< ThumbnailSequencem_ptrThumbSequence
std::auto_ptr< WorkerThreadm_ptrWorkerThread
SelectedPage m_selectedPage

Detailed Description

Definition at line 70 of file MainWindow.h.


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

Generated by  Doxygen 1.6.0   Back to index