CPictureWallMainWindow Class Reference

#include <PictureWallMainWindow.h>

Collaboration diagram for CPictureWallMainWindow:

Collaboration graph
[legend]

List of all members.

Public Slots

void changeDirectorySlot ()
void startNewGoogleSearch ()
void selectGoogleSearchOption (bool checked)
void selectLocalImageViewerSelected (bool checked)

Signals

void directoryChangedSignal (QString directoryPath)
void googleSearchOptionSelected ()
void localImageViewerSelected ()
void googleSearchResult (QHash< QString, QString >)

Public Member Functions

 CPictureWallMainWindow (QWidget *parent=0)
virtual ~CPictureWallMainWindow ()

Private Attributes

CGoogleSearcherm_pGoogleSearcherInstance


Detailed Description

CPictureWallMainWindow class is a main GUI container class. CPictureWallMainWindow initializes Graphics widget where pictures are displayed and GUI control over those displayed images.

CPictureWallMainWindow class provides two options to select images from. 1. browse through local images i.e. images which are store on local media. User has to select directory path in which recurcively search will take place and all images will be taken out. 2. search images on web using google.com, Once the search query is entered, recurcive search is done on google.com server using google AJAX api

Author:
vishwajeet <vishwajeet.dusane@gmail.com>

Constructor & Destructor Documentation

CPictureWallMainWindow::CPictureWallMainWindow ( QWidget *  parent = 0  ) 

CPictureWallMainWindow::~CPictureWallMainWindow (  )  [virtual]


Member Function Documentation

void CPictureWallMainWindow::changeDirectorySlot (  )  [slot]

This slot is called when local directory path needs to change. This slot invokes interactive file dialog to select directory path, Once the directory is selected, respective images are populated within graphics area.

References directoryChangedSignal(), and m_pGoogleSearcherInstance.

Referenced by CPictureWallMainWindow().

void CPictureWallMainWindow::startNewGoogleSearch (  )  [slot]

This slot is emitted when the Return or Enter key is pressed on input text line edit in GUI. This slot invokes CGoogleSearcher class object to search on google searver with new query.

References googleSearchResult(), m_pGoogleSearcherInstance, CGoogleSearcher::search(), and CGoogleSearcher::setSearchString().

Referenced by CPictureWallMainWindow().

void CPictureWallMainWindow::selectGoogleSearchOption ( bool  checked  )  [slot]

This slot is invoked when google search radio button is toggled.This slot will hide file dialog button and path of the direcotry and make line edit visible to enter search query This slot also clean up previous search images from graphics window

Parameters:
checked if true hide file dialog and show line edit to enter search
See also:
selectLocalImageViewerSelected

References googleSearchOptionSelected().

Referenced by CPictureWallMainWindow().

void CPictureWallMainWindow::selectLocalImageViewerSelected ( bool  checked  )  [slot]

This slot is invoked when local directory search radio button is toggled.This slot will hide google search line edit and make file dialog button visible

Parameters:
checked if true hide google search line edit and make file dialog visible
See also:
selectGoogleSearchOption

References localImageViewerSelected().

Referenced by CPictureWallMainWindow().

void CPictureWallMainWindow::directoryChangedSignal ( QString  directoryPath  )  [signal]

This signal is emitted when directory path changes

Parameters:
directoryPath 

Referenced by changeDirectorySlot(), and CPictureWallMainWindow().

void CPictureWallMainWindow::googleSearchOptionSelected (  )  [signal]

This signal is emitted when google radio button is toggled

Referenced by selectGoogleSearchOption().

void CPictureWallMainWindow::localImageViewerSelected (  )  [signal]

This signal is emitted when local radio button is toggled

Referenced by selectLocalImageViewerSelected().

void CPictureWallMainWindow::googleSearchResult ( QHash< QString, QString >   )  [signal]

This signal is emitted when new search record is recieve from CGoogleSearcher class

Parameters:
 

Referenced by CPictureWallMainWindow(), and startNewGoogleSearch().


Member Data Documentation


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

Generated on Mon Apr 27 15:25:35 2009 for PictureWall by  doxygen 1.5.6