|
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="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 91 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 131 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 141 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 = "panel" |
||
| ) |
Definition at line 42 of file ProjectListBox.cpp.
References columns, FORMAT, ID, ID_CHANGE_PREFIX, ID_CHANGE_USER_DEFINED, ID_EDIT_PROJECT, ID_REMOVE_PROJECT, ID_RESET_PROJECT, MODDATE, OnChangePrefix(), OnChangeUserDefined(), OnChar(), OnColumnWidthChange(), OnContextMenu(), OnEditProject(), OnRemoveProject(), OnResetProject(), PREFIX, PROJECT, PROJECTION, SIZE, STATUS, and USERDEFINEDSEQUENCE.
| void ProjectListBox::Deselect | ( | int | index | ) |
Definition at line 151 of file ProjectListBox.cpp.
Referenced by BatchFrame::OnButtonRemoveComplete(), BatchFrame::OnButtonRemoveFromList(), and BatchFrame::SwapProject().
| void ProjectListBox::Fill | ( | Batch * | batch | ) |
Definition at line 156 of file ProjectListBox.cpp.
References AppendProject(), Batch::GetProject(), Batch::GetProjectCount(), and m_batch.
Referenced by BatchFrame::BatchFrame(), BatchFrame::OnButtonOpenBatch(), and BatchFrame::OnRefillListBox().
|
private |
Definition at line 288 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 165 of file ProjectListBox.cpp.
References GetText().
Referenced by BatchFrame::OnRefillListBox(), and BatchFrame::OnUpdateListBox().
|
private |
Definition at line 365 of file ProjectListBox.cpp.
Referenced by GetAttributeString().
| int ProjectListBox::GetProjectCountByPath | ( | wxString | path | ) |
Definition at line 179 of file ProjectListBox.cpp.
References GetText().
| int ProjectListBox::GetProjectId | ( | int | index | ) |
Definition at line 192 of file ProjectListBox.cpp.
References GetText(), and hugin_utils::HuginMessageBox().
| HuginBase::UIntSet ProjectListBox::GetSelectedProjects | ( | ) |
Definition at line 202 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 215 of file ProjectListBox.cpp.
Referenced by GetIndex(), GetProjectCountByPath(), GetProjectId(), BatchFrame::OnButtonOpenWithHugin(), SwapProject(), and UpdateStatus().
|
protected |
Definition at line 476 of file ProjectListBox.cpp.
Referenced by Create().
|
protected |
Definition at line 500 of file ProjectListBox.cpp.
Referenced by Create().
|
protected |
Definition at line 448 of file ProjectListBox.cpp.
Referenced by Create().
|
private |
|
protected |
Definition at line 396 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.
Referenced by Create().
|
protected |
Definition at line 488 of file ProjectListBox.cpp.
Referenced by Create().
|
protected |
Definition at line 494 of file ProjectListBox.cpp.
Referenced by Create().
|
protected |
Definition at line 482 of file ProjectListBox.cpp.
Referenced by Create().
| void ProjectListBox::ReloadProject | ( | int | index, |
| Project * | project | ||
| ) |
Definition at line 225 of file ProjectListBox.cpp.
References columns, and GetAttributeString().
Referenced by BatchFrame::OnUpdateListBox().
| void ProjectListBox::Select | ( | int | index | ) |
Definition at line 233 of file ProjectListBox.cpp.
Referenced by BatchFrame::OnRefillListBox(), and BatchFrame::SwapProject().
| void ProjectListBox::SetMissing | ( | int | index | ) |
Definition at line 241 of file ProjectListBox.cpp.
References columns, ID, PREFIX, PROJECT, STATUS, and USERDEFINEDSEQUENCE.
Referenced by BatchFrame::OnUpdateListBox().
| void ProjectListBox::SwapProject | ( | int | index | ) |
Definition at line 256 of file ProjectListBox.cpp.
References GetText().
Referenced by BatchFrame::SwapProject().
| bool ProjectListBox::UpdateStatus | ( | int | index, |
| Project * | project | ||
| ) |
Definition at line 267 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(), Create(), 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.
1.8.5