SECTION III : SLIDE SHOW


Slide_show Class (derived from wxFrame)

Files: slide_show.h, slide_show.cpp
Author: Muhammad Zulfiqar JPC36
Date: August 08, 2000
Technical Advisor : Carlos Moreno


Member

Purpose


void on_slide_show(): Called from main program
void on_interval(): User inputs interval in seconds from main program
void on_timer(wxTimerEvent&): Receives timer events
void start_slide_show(): User starts slide show from main program
vector <wxString> image_list: stores a list of files including their paths in an array
vector <wxString> image_list: stores a list of files including their paths in an array
wxString: path, filename, imagename: used to extract one file name with path from array, one file name excluding path, and just file (image name) without extension, respectively.
wxTimer * slide_show_timer; timer will be used for slide show
wxBitmap *bm; bitmap image will be used to convert images of other types to bitmap
long user_interval; the user enters interval interval in seconds, using 'wxGetNumberFromUser' which returns a long.
wxStaticText *text; Static text will be used to display the name of the image.
wxStaticText *text; Static text will be used to display the name of the image.




Slide_show::Slide_show

Receives: N/A
Return: N/A
Description: Configures frame application with Canvas.h


Slide_show::on_timer

Receives: timer event
Return: N/A
Description: The timer will send one image at a time to display on canvas


Slide_show::start_slide_show

Receives: N/A
Return: N/A
Description: timer is triggered.


Slide_show::send_to_load_file

Receives: N/A
Return: N/A
Description: The timer calls this function which sends one file at a time to display the image

 


Back