Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

cImageMainPanel Class Reference

cImageMainPanel is a panel holding the image. More...

#include <cImageMainPanel.h>

List of all members.

Public Member Functions

 cImageMainPanel (wxWindow *pParent)
 Constructor.

 ~cImageMainPanel ()
 Destructor.

void DisplayPoster (const string sFilename)
 Display poster using file name.

void UpdatePosterFileName (cFile *pFile)
 Update poster filename by reference.

Bool IsFileExist (const string sFilename)
 Check if file exists.


Private Member Functions

const string GetPosterFullPath (const string sFilename)
 Construct the full path of poster.(default value is used).

void DisplayFilePoster (const string sFilePath)
 Display poster using file's full path.

const string GetExtractFileName (const string sFilePath)
 Extract filename from at full path.(need to make it cross-platform).

Bool CopyFile (const string sFrom, const string sTo)
void RescaleImg (wxImage *pImage, const Double iWidth, const Double iHeight)
void AddImageHandler (void)
void OnDoubleClick (wxMouseEvent &event)
void OnDeletePress (wxKeyEvent &event)

Private Attributes

cFilem_pFile
cPreferencem_pPreference
cImagePanelm_pImagePanel
wxBoxSizer * m_pImageSizer


Detailed Description

cImageMainPanel is a panel holding the image.

Author:
Copyright (C) 2004 Xuan Ngo
Date:
Last Modified:
Version:
Since:
Created on: 2004-01-28
Bug:

Test:

Todo:
Warning:


Constructor & Destructor Documentation

cImageMainPanel::cImageMainPanel wxWindow *  pParent  ) 
 

Constructor.

cImageMainPanel::~cImageMainPanel  ) 
 

Destructor.


Member Function Documentation

void cImageMainPanel::AddImageHandler void   )  [private]
 

Bool cImageMainPanel::CopyFile const string  sFrom,
const string  sTo
[private]
 

void cImageMainPanel::DisplayFilePoster const string  sFilePath  )  [private]
 

Display poster using file's full path.

void cImageMainPanel::DisplayPoster const string  sFilename  ) 
 

Display poster using file name.

const string cImageMainPanel::GetExtractFileName const string  sFilePath  )  [private]
 

Extract filename from at full path.(need to make it cross-platform).

const string cImageMainPanel::GetPosterFullPath const string  sFilename  )  [private]
 

Construct the full path of poster.(default value is used).

Bool cImageMainPanel::IsFileExist const string  sFilename  ) 
 

Check if file exists.

void cImageMainPanel::OnDeletePress wxKeyEvent &  event  )  [private]
 

void cImageMainPanel::OnDoubleClick wxMouseEvent &  event  )  [private]
 

void cImageMainPanel::RescaleImg wxImage *  pImage,
const Double  iWidth,
const Double  iHeight
[private]
 

void cImageMainPanel::UpdatePosterFileName cFile pFile  ) 
 

Update poster filename by reference.


Member Data Documentation

cFile* cImageMainPanel::m_pFile [private]
 

cImagePanel* cImageMainPanel::m_pImagePanel [private]
 

wxBoxSizer* cImageMainPanel::m_pImageSizer [private]
 

cPreference* cImageMainPanel::m_pPreference [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 25 01:15:16 2004 for eDonkeyFilesManager by doxygen 1.3.2