Hugintrunk
0.1
|
#include <ProjectListBox.h>
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 | |
Batch * | m_batch |
IntArray | columns |
Static Private Attributes | |
static const wxString | fileFormat [] |
static const wxString | outputMode [] |
static const wxString | HDRMergeType [] |
static const wxString | blendingMechanism [] |
Definition at line 32 of file ProjectListBox.h.
|
private |
Enumerator | |
---|---|
ID | |
PROJECT | |
PREFIX | |
MODDATE | |
FORMAT | |
PROJECTION | |
SIZE | |
STATUS | |
USERDEFINEDSEQUENCE |
Definition at line 72 of file ProjectListBox.h.
void ProjectListBox::AppendProject | ( | Project * | project | ) |
Definition at line 92 of file ProjectListBox.cpp.
References columns, GetAttributeString(), Project::id, Project::path, and PROJECT.
Referenced by BatchFrame::AddArrayToList(), BatchFrame::AddDirToList(), BatchFrame::AddToList(), Fill(), and BatchFrame::OnButtonAddCommand().
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 | ||
) |
Definition at line 142 of file ProjectListBox.cpp.
References columns, GetAttributeString(), Batch::GetProject(), m_batch, and USERDEFINEDSEQUENCE.
Referenced by BatchFrame::ChangeUserDefined(), and BatchFrame::OnButtonChangeUserDefinedSequence().
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 | ) |
Definition at line 152 of file ProjectListBox.cpp.
Referenced by BatchFrame::OnButtonRemoveComplete(), BatchFrame::OnButtonRemoveFromList(), and BatchFrame::SwapProject().
void ProjectListBox::Fill | ( | Batch * | batch | ) |
Definition at line 157 of file ProjectListBox.cpp.
References AppendProject(), Batch::GetProject(), Batch::GetProjectCount(), and m_batch.
Referenced by BatchFrame::OnButtonOpenBatch(), and BatchFrame::OnRefillListBox().
|
private |
Definition at line 289 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, Project::status, Project::STITCHING, Project::target, and Project::userDefindSequence.
Referenced by AppendProject(), ChangePrefix(), ChangeUserDefined(), and ReloadProject().
int ProjectListBox::GetIndex | ( | int | id | ) |
Definition at line 166 of file ProjectListBox.cpp.
References GetText().
Referenced by BatchFrame::OnRefillListBox(), and BatchFrame::OnUpdateListBox().
|
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 | ( | ) |
Definition at line 203 of file ProjectListBox.cpp.
Referenced by BatchFrame::OnButtonChangePrefix(), BatchFrame::OnButtonChangeUserDefinedSequence(), 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 216 of file ProjectListBox.cpp.
Referenced by GetIndex(), GetProjectCountByPath(), GetProjectId(), BatchFrame::OnButtonOpenWithHugin(), SwapProject(), and UpdateStatus().
|
protected |
Definition at line 477 of file ProjectListBox.cpp.
|
protected |
Definition at line 501 of file ProjectListBox.cpp.
|
protected |
Definition at line 449 of file ProjectListBox.cpp.
|
private |
Definition at line 390 of file ProjectListBox.cpp.
References columns.
|
protected |
Definition at line 397 of file ProjectListBox.cpp.
References Batch::GetProject(), GetSelectedProjects(), ID_CHANGE_PREFIX, ID_CHANGE_USER_DEFINED, ID_EDIT_PROJECT, ID_REMOVE_PROJECT, ID_RESET_PROJECT, m_batch, and Project::target.
|
protected |
Definition at line 489 of file ProjectListBox.cpp.
|
protected |
Definition at line 495 of file ProjectListBox.cpp.
|
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().
|
staticprivate |
Definition at line 89 of file ProjectListBox.h.
|
private |
Definition at line 66 of file ProjectListBox.h.
Referenced by AppendProject(), ChangePrefix(), ChangeUserDefined(), OnColumnWidthChange(), ReloadProject(), SetMissing(), and UpdateStatus().
|
staticprivate |
Definition at line 86 of file ProjectListBox.h.
|
staticprivate |
Definition at line 88 of file ProjectListBox.h.
|
private |
Definition at line 65 of file ProjectListBox.h.
Referenced by ChangePrefix(), ChangeUserDefined(), Fill(), and OnContextMenu().
|
staticprivate |
Definition at line 87 of file ProjectListBox.h.