ProjectListBox Class Reference

#include <ProjectListBox.h>

List of all members.

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 Deselect (int index)
void Fill (Batch *batch)
int GetIndex (int id)
int GetProjectCountByPath (wxString path)
int GetProjectId (int index)
int GetSelectedIndex ()
wxString GetSelectedProject ()
wxString GetSelectedProjectPrefix ()
 gets the prefix of the currently selected project
Project::Target GetSelectedProjectTarget ()
 return the target of the currently selected project
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 OnChangePrefix (wxCommandEvent &e)
void OnResetProject (wxCommandEvent &e)
void OnEditProject (wxCommandEvent &e)
void OnRemoveProject (wxCommandEvent &e)

Private Types

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

Private Member Functions

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

Private Attributes

int m_selected
Batchm_batch
IntArray columns

Static Private Attributes

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


Detailed Description

Definition at line 32 of file ProjectListBox.h.


Member Enumeration Documentation

enum ProjectListBox::ColumnName [private]

Enumerator:
ID 
PROJECT 
PREFIX 
MODDATE 
FORMAT 
PROJECTION 
SIZE 
STATUS 

Definition at line 77 of file ProjectListBox.h.


Member Function Documentation

void ProjectListBox::AppendProject ( Project project  ) 

Definition at line 87 of file ProjectListBox.cpp.

References columns, GetAttributeString(), Project::id, Project::path, and PROJECT.

Referenced by BatchFrame::AddDirToList(), BatchFrame::AddToList(), Fill(), and BatchFrame::OnButtonAddCommand().

void ProjectListBox::ChangePrefix ( int  index,
wxString  newPrefix 
)

Definition at line 127 of file ProjectListBox.cpp.

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

Referenced by BatchFrame::ChangePrefix().

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 48 of file ProjectListBox.cpp.

void ProjectListBox::Deselect ( int  index  ) 

Definition at line 137 of file ProjectListBox.cpp.

References m_selected.

Referenced by BatchFrame::OnButtonRemoveComplete(), and BatchFrame::OnButtonRemoveFromList().

void ProjectListBox::Fill ( Batch batch  ) 

Definition at line 143 of file ProjectListBox.cpp.

References AppendProject(), Batch::GetProject(), Batch::GetProjectCount(), and m_batch.

Referenced by BatchFrame::OnButtonOpenBatch(), BatchFrame::OnRefillListBox(), and BatchFrame::OnReloadBatch().

wxString ProjectListBox::GetAttributeString ( int  i,
Project project 
) [private]

Definition at line 283 of file ProjectListBox.cpp.

References HuginBase::PanoramaOptions::getHeight(), GetLongerFormatName(), HuginBase::PanoramaOptions::getProjection(), Project::GetStatusText(), HuginBase::PanoramaOptions::getWidth(), Project::id, Project::MISSING, Project::modDate, Project::options, HuginBase::PanoramaOptions::outputImageType, Project::path, Project::prefix, makefile::prefix(), Project::status, Project::STITCHING, and Project::target.

Referenced by AppendProject().

int ProjectListBox::GetIndex ( int  id  ) 

Definition at line 152 of file ProjectListBox.cpp.

References GetText().

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

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

Definition at line 346 of file ProjectListBox.cpp.

Referenced by GetAttributeString().

int ProjectListBox::GetProjectCountByPath ( wxString  path  ) 

Definition at line 166 of file ProjectListBox.cpp.

References GetText().

int ProjectListBox::GetProjectId ( int  index  ) 

Definition at line 179 of file ProjectListBox.cpp.

References GetText().

Referenced by BatchFrame::OnRefillListBox().

int ProjectListBox::GetSelectedIndex (  ) 

Definition at line 189 of file ProjectListBox.cpp.

References m_selected.

Referenced by BatchFrame::OnButtonChangePrefix(), BatchFrame::OnButtonMoveDown(), BatchFrame::OnButtonMoveUp(), BatchFrame::OnButtonOpenWithHugin(), BatchFrame::OnButtonRemoveFromList(), BatchFrame::OnButtonReset(), BatchFrame::OnButtonSkip(), BatchFrame::OnRefillListBox(), and BatchFrame::SwapProject().

wxString ProjectListBox::GetSelectedProject (  ) 

Definition at line 194 of file ProjectListBox.cpp.

References GetText(), and m_selected.

Referenced by BatchFrame::OnButtonChangePrefix(), BatchFrame::OnButtonOpenWithHugin(), BatchFrame::OnButtonRemoveFromList(), and BatchFrame::OnButtonReset().

wxString ProjectListBox::GetSelectedProjectPrefix (  ) 

gets the prefix of the currently selected project

Definition at line 204 of file ProjectListBox.cpp.

References GetText(), and m_selected.

Referenced by BatchFrame::OnButtonChangePrefix().

Project::Target ProjectListBox::GetSelectedProjectTarget (  ) 

return the target of the currently selected project

Definition at line 199 of file ProjectListBox.cpp.

References Batch::GetProject(), m_batch, m_selected, and Project::target.

Referenced by BatchFrame::OnButtonChangePrefix().

wxString ProjectListBox::GetText ( int  row,
int  column 
)

Definition at line 209 of file ProjectListBox.cpp.

Referenced by GetIndex(), GetProjectCountByPath(), GetProjectId(), GetSelectedProject(), GetSelectedProjectPrefix(), BatchFrame::OnButtonOpenWithHugin(), SwapProject(), and UpdateStatus().

void ProjectListBox::OnChangePrefix ( wxCommandEvent &  e  )  [protected]

Definition at line 412 of file ProjectListBox.cpp.

void ProjectListBox::OnColumnWidthChange ( wxListEvent &  event  )  [private]

Definition at line 375 of file ProjectListBox.cpp.

References columns.

void ProjectListBox::OnContextMenu ( wxContextMenuEvent &  e  )  [protected]

Definition at line 387 of file ProjectListBox.cpp.

References ID_CHANGE_PREFIX, ID_EDIT_PROJECT, ID_REMOVE_PROJECT, ID_RESET_PROJECT, and m_selected.

void ProjectListBox::OnDeselect ( wxListEvent &  event  )  [private]

Definition at line 370 of file ProjectListBox.cpp.

References m_selected.

void ProjectListBox::OnEditProject ( wxCommandEvent &  e  )  [protected]

Definition at line 424 of file ProjectListBox.cpp.

void ProjectListBox::OnRemoveProject ( wxCommandEvent &  e  )  [protected]

Definition at line 430 of file ProjectListBox.cpp.

void ProjectListBox::OnResetProject ( wxCommandEvent &  e  )  [protected]

Definition at line 418 of file ProjectListBox.cpp.

void ProjectListBox::OnSelect ( wxListEvent &  event  )  [private]

Definition at line 381 of file ProjectListBox.cpp.

References m_selected.

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

Definition at line 219 of file ProjectListBox.cpp.

References columns.

Referenced by BatchFrame::OnUpdateListBox().

void ProjectListBox::Select ( int  index  ) 

Definition at line 227 of file ProjectListBox.cpp.

References m_selected.

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

void ProjectListBox::SetMissing ( int  index  ) 

Definition at line 236 of file ProjectListBox.cpp.

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

Referenced by BatchFrame::OnUpdateListBox().

void ProjectListBox::SwapProject ( int  index  ) 

Definition at line 251 of file ProjectListBox.cpp.

References GetText().

Referenced by BatchFrame::SwapProject().

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

Definition at line 262 of file ProjectListBox.cpp.

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

Referenced by BatchFrame::OnUpdateListBox().


Member Data Documentation

const wxString ProjectListBox::blendingMechanism [static, private]

Initial value:

{
    _T("NO_BLEND"),
    _T("PTBLENDER_BLEND"),
    _T("ENBLEND_BLEND"),
    _T("SMARTBLEND_BLEND"),

}

Definition at line 93 of file ProjectListBox.h.

const wxString ProjectListBox::colorCorrection [static, private]

Initial value:

{
    _T("NONE"),
    _T("BRIGHTNESS_COLOR"),
    _T("BRIGHTNESS"),

}

Definition at line 94 of file ProjectListBox.h.

IntArray ProjectListBox::columns [private]

Definition at line 69 of file ProjectListBox.h.

Referenced by AppendProject(), ChangePrefix(), OnColumnWidthChange(), ReloadProject(), SetMissing(), and UpdateStatus().

const wxString ProjectListBox::fileFormat [static, private]

Initial value:

 {_T("JPEG"),
        _T("PNG"),
        _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 90 of file ProjectListBox.h.

const wxString ProjectListBox::HDRMergeType [static, private]

Initial value:

{
    _T("HDRMERGE_AVERAGE"),

}

Definition at line 92 of file ProjectListBox.h.

Batch* ProjectListBox::m_batch [private]

Definition at line 68 of file ProjectListBox.h.

Referenced by ChangePrefix(), Fill(), and GetSelectedProjectTarget().

int ProjectListBox::m_selected [private]

Definition at line 67 of file ProjectListBox.h.

Referenced by Deselect(), GetSelectedIndex(), GetSelectedProject(), GetSelectedProjectPrefix(), GetSelectedProjectTarget(), OnContextMenu(), OnDeselect(), OnSelect(), and Select().

const wxString ProjectListBox::outputMode [static, private]

Initial value:

{
    _T("OUTPUT_LDR"),

}

Definition at line 91 of file ProjectListBox.h.


The documentation for this class was generated from the following files:
Generated on 1 Nov 2014 for Hugintrunk by  doxygen 1.4.7