intro::introDialog Class Reference

introDialog(QDialog, Ui_introDialog) More...

Inherits ui_intro::Ui_introDialog.

List of all members.

Public Member Functions

def __init__
 Constructor of introDialog.
def clearAllRecent
 Clears all recent project.
def recentUpdate
 Updates recent project project name, description and author.
def browseOpen
 Triggers Project browse dialog, which looks for main project XML file (project.xml) and tries to load it's info into Open project tab.
def processIntroAction
 Processes Click on open/create button and trigger suitable action according to active tab.
def createNewProject
 Creates New Project and closes intro dialog on success.
def openProject
 Opens selected project on project open tab and closes intro dialog.
def openRecentProject
 Opens selected project on project recent tab and closes intro dialog.
def checkEmptyName
 Check whether string name is empty.
def loadRecentProjects
 Puts items into recent project list widget.
def loadRecordingTemplates
 Function which loads all recording templates from templates/recording/*.xml into recording template list.
def loadFuzzingTemplates
 Function which loads all fuzzing templates from templates/fuzzing/*.xml into fuzzing template list.
def switchTab
 Changes the open/create button caption whenever user switch to another tab.
def closeEvent
 An overwritten PyQt function which is performed, when intro dialog is closed.

Public Attributes

 success
 Indicates whether loading of project was successful.


Detailed Description

introDialog(QDialog, Ui_introDialog)

Class representing introduction dialog Dialog has 3 tabs new project, recent project, open project. This dialog can result in loading project into main window or quitting application.

Author:
Stepan Henek

Member Function Documentation

def intro::introDialog::__init__ (   self,
  mainWindow 
)

Constructor of introDialog.

It loads recent project, list, fuzzing template list and recording template list and sets default author name. It consists of three independent parts: Recent project, New project and Open project

Parameters:
self The object pointer.
mainWindow class representing main window of the application window class

def intro::introDialog::browseOpen (   self  ) 

Triggers Project browse dialog, which looks for main project XML file (project.xml) and tries to load it's info into Open project tab.

Parameters:
self The object pointer.

def intro::introDialog::checkEmptyName (   self,
  name 
)

Check whether string name is empty.

Parameters:
self The object pointer.
name when name is empty disable create button

def intro::introDialog::clearAllRecent (   self  ) 

Clears all recent project.

Sets recent project list of the main window as empty and updates current widget list. Note that recent project list become actually empty after storing setting of main window

See also:
window.loadSettings

window.storeSettings

Parameters:
self The object pointer.

def intro::introDialog::closeEvent (   self,
  event 
)

An overwritten PyQt function which is performed, when intro dialog is closed.

It results in closing main window whenever the project wasn't successfully loaded.

Parameters:
self The object pointer.
event unused closing event variable

def intro::introDialog::createNewProject (   self  ) 

Creates New Project and closes intro dialog on success.

Queries for a new project path using QFileDialog and creates new project using window::Window::projectCreate function, with selected templates files, sets its Name, description and Author. Loads the project into main window and closes intro dialog.

Parameters:
self The object pointer.

def intro::introDialog::loadFuzzingTemplates (   self  ) 

Function which loads all fuzzing templates from templates/fuzzing/*.xml into fuzzing template list.

Parameters:
self The object pointer.

def intro::introDialog::loadRecentProjects (   self  ) 

Puts items into recent project list widget.

Item are read from the list of recent project of the main window class.

Parameters:
self The object pointer.
See also:
window.storeSettings

window.loadSettings

def intro::introDialog::loadRecordingTemplates (   self  ) 

Function which loads all recording templates from templates/recording/*.xml into recording template list.

Parameters:
self The object pointer.

def intro::introDialog::openProject (   self  ) 

Opens selected project on project open tab and closes intro dialog.

Parameters:
self The object pointer.

def intro::introDialog::openRecentProject (   self  ) 

Opens selected project on project recent tab and closes intro dialog.

Parameters:
self The object pointer.

def intro::introDialog::processIntroAction (   self  ) 

Processes Click on open/create button and trigger suitable action according to active tab.

Parameters:
self The object pointer.

def intro::introDialog::recentUpdate (   self,
  item,
  previous 
)

Updates recent project project name, description and author.

Updates widgets representing project name, description and author according to activated item.

Parameters:
self The object pointer.
item Item of recent project list which was newly selected
previous unused previously selected item

def intro::introDialog::switchTab (   self,
  index 
)

Changes the open/create button caption whenever user switch to another tab.

Parameters:
self The object pointer.
index of newly opened tab


Member Data Documentation

Indicates whether loading of project was successful.


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

Generated on Sun Sep 5 12:41:36 2010 for HotFuzz by  doxygen 1.5.8