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)
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 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)

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 []
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 69 of file ProjectListBox.h.


Member Function Documentation

void ProjectListBox::AppendProject ( Project project  ) 

Definition at line 84 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 124 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 46 of file ProjectListBox.cpp.

void ProjectListBox::Deselect ( int  index  ) 

Definition at line 134 of file ProjectListBox.cpp.

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

void ProjectListBox::Fill ( Batch batch  ) 

Definition at line 139 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 271 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 148 of file ProjectListBox.cpp.

References GetText().

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

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

Definition at line 342 of file ProjectListBox.cpp.

Referenced by GetAttributeString().

int ProjectListBox::GetProjectCountByPath ( wxString  path  ) 

Definition at line 162 of file ProjectListBox.cpp.

References GetText().

int ProjectListBox::GetProjectId ( int  index  ) 

Definition at line 175 of file ProjectListBox.cpp.

References GetText().

HuginBase::UIntSet ProjectListBox::GetSelectedProjects (  ) 

Definition at line 185 of file ProjectListBox.cpp.

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

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

Definition at line 198 of file ProjectListBox.cpp.

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

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

Definition at line 399 of file ProjectListBox.cpp.

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

Definition at line 366 of file ProjectListBox.cpp.

References columns.

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

Definition at line 373 of file ProjectListBox.cpp.

References GetSelectedProjects(), ID_CHANGE_PREFIX, ID_EDIT_PROJECT, ID_REMOVE_PROJECT, and ID_RESET_PROJECT.

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

Definition at line 411 of file ProjectListBox.cpp.

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

Definition at line 417 of file ProjectListBox.cpp.

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

Definition at line 405 of file ProjectListBox.cpp.

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

Definition at line 208 of file ProjectListBox.cpp.

References columns.

Referenced by BatchFrame::OnUpdateListBox().

void ProjectListBox::Select ( int  index  ) 

Definition at line 216 of file ProjectListBox.cpp.

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

void ProjectListBox::SetMissing ( int  index  ) 

Definition at line 224 of file ProjectListBox.cpp.

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

Referenced by BatchFrame::OnUpdateListBox().

void ProjectListBox::SwapProject ( int  index  ) 

Definition at line 239 of file ProjectListBox.cpp.

References GetText().

Referenced by BatchFrame::SwapProject().

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

Definition at line 250 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 85 of file ProjectListBox.h.

const wxString ProjectListBox::colorCorrection [static, private]

Initial value:

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

}

Definition at line 86 of file ProjectListBox.h.

IntArray ProjectListBox::columns [private]

Definition at line 63 of file ProjectListBox.h.

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

const wxString ProjectListBox::fileFormat [static, private]

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 82 of file ProjectListBox.h.

const wxString ProjectListBox::HDRMergeType [static, private]

Initial value:

{
    _T("HDRMERGE_AVERAGE"),

}

Definition at line 84 of file ProjectListBox.h.

Batch* ProjectListBox::m_batch [private]

Definition at line 62 of file ProjectListBox.h.

Referenced by ChangePrefix(), and Fill().

const wxString ProjectListBox::outputMode [static, private]

Initial value:

{
    _T("OUTPUT_LDR"),

}

Definition at line 83 of file ProjectListBox.h.


The documentation for this class was generated from the following files:
Generated on 16 Aug 2017 for Hugintrunk by  doxygen 1.4.7