Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ProjectListBox Class Reference

#include <ProjectListBox.h>

Inheritance diagram for ProjectListBox:
Inheritance graph

Public Member Functions

bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
 
void AppendProject (Project *project)
 
void ChangePrefix (int index, wxString newPrefix)
 
void ChangeUserDefined (int index, wxString newUserDefined)
 
void Deselect (int index)
 
void Fill (Batch *batch)
 
int GetIndex (int id)
 
int GetProjectCountByPath (wxString path)
 
int GetProjectId (int index)
 
HuginBase::UIntSet GetSelectedProjects ()
 
wxString GetText (int row, int column)
 
void ReloadProject (int index, Project *project)
 
void Select (int index)
 
void SetMissing (int index)
 
void SwapProject (int index)
 
bool UpdateStatus (int index, Project *project)
 

Protected Member Functions

void OnContextMenu (wxContextMenuEvent &e)
 
void OnChar (wxKeyEvent &e)
 
void OnChangePrefix (wxCommandEvent &e)
 
void OnResetProject (wxCommandEvent &e)
 
void OnEditProject (wxCommandEvent &e)
 
void OnRemoveProject (wxCommandEvent &e)
 
void OnChangeUserDefined (wxCommandEvent &e)
 

Private Types

enum  ColumnName {
  ID, PROJECT, PREFIX, MODDATE,
  FORMAT, PROJECTION, SIZE, STATUS,
  USERDEFINEDSEQUENCE
}
 

Private Member Functions

wxString GetAttributeString (int i, Project *project)
 
wxString GetLongerFormatName (std::string str)
 
void OnColumnWidthChange (wxListEvent &event)
 

Private Attributes

Batchm_batch
 
IntArray columns
 

Static Private Attributes

static const wxString fileFormat []
 
static const wxString outputMode []
 
static const wxString HDRMergeType []
 
static const wxString blendingMechanism []
 

Detailed Description

Definition at line 32 of file ProjectListBox.h.

Member Enumeration Documentation

Enumerator
ID 
PROJECT 
PREFIX 
MODDATE 
FORMAT 
PROJECTION 
SIZE 
STATUS 
USERDEFINEDSEQUENCE 

Definition at line 72 of file ProjectListBox.h.

Member Function Documentation

void ProjectListBox::AppendProject ( Project project)
void ProjectListBox::ChangePrefix ( int  index,
wxString  newPrefix 
)

Definition at line 132 of file ProjectListBox.cpp.

References columns, GetAttributeString(), Batch::GetProject(), m_batch, and PREFIX.

Referenced by BatchFrame::ChangePrefix().

void ProjectListBox::ChangeUserDefined ( int  index,
wxString  newUserDefined 
)
bool ProjectListBox::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel") 
)

Definition at line 52 of file ProjectListBox.cpp.

void ProjectListBox::Deselect ( int  index)
void ProjectListBox::Fill ( Batch batch)
wxString ProjectListBox::GetAttributeString ( int  i,
Project project 
)
private
int ProjectListBox::GetIndex ( int  id)

Definition at line 166 of file ProjectListBox.cpp.

References GetText().

Referenced by BatchFrame::OnRefillListBox(), and BatchFrame::OnUpdateListBox().

wxString ProjectListBox::GetLongerFormatName ( std::string  str)
private

Definition at line 366 of file ProjectListBox.cpp.

Referenced by GetAttributeString().

int ProjectListBox::GetProjectCountByPath ( wxString  path)

Definition at line 180 of file ProjectListBox.cpp.

References GetText().

int ProjectListBox::GetProjectId ( int  index)

Definition at line 193 of file ProjectListBox.cpp.

References GetText().

HuginBase::UIntSet ProjectListBox::GetSelectedProjects ( )
wxString ProjectListBox::GetText ( int  row,
int  column 
)
void ProjectListBox::OnChangePrefix ( wxCommandEvent &  e)
protected

Definition at line 477 of file ProjectListBox.cpp.

void ProjectListBox::OnChangeUserDefined ( wxCommandEvent &  e)
protected

Definition at line 501 of file ProjectListBox.cpp.

void ProjectListBox::OnChar ( wxKeyEvent &  e)
protected

Definition at line 449 of file ProjectListBox.cpp.

void ProjectListBox::OnColumnWidthChange ( wxListEvent &  event)
private

Definition at line 390 of file ProjectListBox.cpp.

References columns.

void ProjectListBox::OnContextMenu ( wxContextMenuEvent &  e)
protected
void ProjectListBox::OnEditProject ( wxCommandEvent &  e)
protected

Definition at line 489 of file ProjectListBox.cpp.

void ProjectListBox::OnRemoveProject ( wxCommandEvent &  e)
protected

Definition at line 495 of file ProjectListBox.cpp.

void ProjectListBox::OnResetProject ( wxCommandEvent &  e)
protected

Definition at line 483 of file ProjectListBox.cpp.

void ProjectListBox::ReloadProject ( int  index,
Project project 
)

Definition at line 226 of file ProjectListBox.cpp.

References columns, and GetAttributeString().

Referenced by BatchFrame::OnUpdateListBox().

void ProjectListBox::Select ( int  index)

Definition at line 234 of file ProjectListBox.cpp.

Referenced by BatchFrame::OnRefillListBox(), and BatchFrame::SwapProject().

void ProjectListBox::SetMissing ( int  index)

Definition at line 242 of file ProjectListBox.cpp.

References columns, ID, PREFIX, PROJECT, STATUS, and USERDEFINEDSEQUENCE.

Referenced by BatchFrame::OnUpdateListBox().

void ProjectListBox::SwapProject ( int  index)

Definition at line 257 of file ProjectListBox.cpp.

References GetText().

Referenced by BatchFrame::SwapProject().

bool ProjectListBox::UpdateStatus ( int  index,
Project project 
)

Definition at line 268 of file ProjectListBox.cpp.

References columns, Project::GetStatusText(), GetText(), and STATUS.

Referenced by BatchFrame::OnUpdateListBox().

Member Data Documentation

const wxString ProjectListBox::blendingMechanism
staticprivate
Initial value:
=
{
_T("NO_BLEND"),
_T("PTBLENDER_BLEND"),
_T("ENBLEND_BLEND"),
_T("SMARTBLEND_BLEND"),
}

Definition at line 89 of file ProjectListBox.h.

IntArray ProjectListBox::columns
private
const wxString ProjectListBox::fileFormat
staticprivate
Initial value:
= {_T("JPEG"),
_T("JPEG_m"),
_T("PNG"),
_T("PNG_m"),
_T("TIFF"),
_T("TIFF_m"),
_T("TIFF_mask"),
_T("TIFF_multilayer"),
_T("TIFF_multilayer_mask"),
_T("PICT"),
_T("PSD"),
_T("PSD_m"),
_T("PSD_mask"),
_T("PAN"),
_T("IVR"),
_T("IVR_java"),
_T("VRML"),
_T("QTVR"),
_T("HDR"),
_T("HDR_m"),
_T("EXR"),
_T("EXR_m"),
}

Definition at line 86 of file ProjectListBox.h.

const wxString ProjectListBox::HDRMergeType
staticprivate
Initial value:
=
{
_T("HDRMERGE_AVERAGE"),
}

Definition at line 88 of file ProjectListBox.h.

Batch* ProjectListBox::m_batch
private

Definition at line 65 of file ProjectListBox.h.

Referenced by ChangePrefix(), ChangeUserDefined(), Fill(), and OnContextMenu().

const wxString ProjectListBox::outputMode
staticprivate
Initial value:
=
{
_T("OUTPUT_LDR"),
}

Definition at line 87 of file ProjectListBox.h.


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