Hugin trunk 0.1
Loading...
Searching...
No Matches
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="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

◆ ColumnName

Enumerator
ID 
PROJECT 
PREFIX 
MODDATE 
FORMAT 
PROJECTION 
SIZE 
STATUS 
USERDEFINEDSEQUENCE 

Definition at line 72 of file ProjectListBox.h.

Member Function Documentation

◆ AppendProject()

void ProjectListBox::AppendProject ( Project project)

◆ ChangePrefix()

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

◆ ChangeUserDefined()

void ProjectListBox::ChangeUserDefined ( int  index,
wxString  newUserDefined 
)

◆ Create()

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

◆ Deselect()

void ProjectListBox::Deselect ( int  index)

◆ Fill()

void ProjectListBox::Fill ( Batch batch)

◆ GetAttributeString()

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

◆ GetIndex()

int ProjectListBox::GetIndex ( int  id)

Definition at line 165 of file ProjectListBox.cpp.

References GetText(), and threshold().

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

◆ GetLongerFormatName()

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

Definition at line 365 of file ProjectListBox.cpp.

References threshold().

Referenced by GetAttributeString().

◆ GetProjectCountByPath()

int ProjectListBox::GetProjectCountByPath ( wxString  path)

Definition at line 179 of file ProjectListBox.cpp.

References GetText(), and threshold().

◆ GetProjectId()

int ProjectListBox::GetProjectId ( int  index)

Definition at line 192 of file ProjectListBox.cpp.

References GetText(), hugin_utils::HuginMessageBox(), and threshold().

◆ GetSelectedProjects()

HuginBase::UIntSet ProjectListBox::GetSelectedProjects ( )

◆ GetText()

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

◆ OnChangePrefix()

void ProjectListBox::OnChangePrefix ( wxCommandEvent &  e)
protected

Definition at line 476 of file ProjectListBox.cpp.

References threshold().

Referenced by Create().

◆ OnChangeUserDefined()

void ProjectListBox::OnChangeUserDefined ( wxCommandEvent &  e)
protected

Definition at line 500 of file ProjectListBox.cpp.

References threshold().

Referenced by Create().

◆ OnChar()

void ProjectListBox::OnChar ( wxKeyEvent e)
protected

Definition at line 448 of file ProjectListBox.cpp.

References threshold().

Referenced by Create().

◆ OnColumnWidthChange()

void ProjectListBox::OnColumnWidthChange ( wxListEvent event)
private

Definition at line 389 of file ProjectListBox.cpp.

References columns, and threshold().

Referenced by Create().

◆ OnContextMenu()

void ProjectListBox::OnContextMenu ( wxContextMenuEvent e)
protected

◆ OnEditProject()

void ProjectListBox::OnEditProject ( wxCommandEvent &  e)
protected

Definition at line 488 of file ProjectListBox.cpp.

References threshold().

Referenced by Create().

◆ OnRemoveProject()

void ProjectListBox::OnRemoveProject ( wxCommandEvent &  e)
protected

Definition at line 494 of file ProjectListBox.cpp.

References threshold().

Referenced by Create().

◆ OnResetProject()

void ProjectListBox::OnResetProject ( wxCommandEvent &  e)
protected

Definition at line 482 of file ProjectListBox.cpp.

References threshold().

Referenced by Create().

◆ ReloadProject()

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

Definition at line 225 of file ProjectListBox.cpp.

References columns, GetAttributeString(), and threshold().

Referenced by BatchFrame::OnUpdateListBox().

◆ Select()

void ProjectListBox::Select ( int  index)

Definition at line 233 of file ProjectListBox.cpp.

References threshold().

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

◆ SetMissing()

void ProjectListBox::SetMissing ( int  index)

Definition at line 241 of file ProjectListBox.cpp.

References columns, ID, PREFIX, PROJECT, STATUS, threshold(), and USERDEFINEDSEQUENCE.

Referenced by BatchFrame::OnUpdateListBox().

◆ SwapProject()

void ProjectListBox::SwapProject ( int  index)

Definition at line 256 of file ProjectListBox.cpp.

References GetText(), and threshold().

Referenced by BatchFrame::SwapProject().

◆ UpdateStatus()

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

Definition at line 267 of file ProjectListBox.cpp.

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

Referenced by BatchFrame::OnUpdateListBox().

Member Data Documentation

◆ blendingMechanism

const wxString ProjectListBox::blendingMechanism
staticprivate
Initial value:
=
{
_T("NO_BLEND"),
_T("PTBLENDER_BLEND"),
_T("ENBLEND_BLEND"),
_T("SMARTBLEND_BLEND"),
}
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41

Definition at line 543 of file ProjectListBox.h.

◆ columns

IntArray ProjectListBox::columns
private

◆ fileFormat

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

◆ HDRMergeType

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

Definition at line 537 of file ProjectListBox.h.

◆ m_batch

Batch* ProjectListBox::m_batch
private

Definition at line 65 of file ProjectListBox.h.

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

◆ outputMode

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

Definition at line 531 of file ProjectListBox.h.


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