Audacity 3.2.0
|
Public Member Functions | |
ProjectsTableData (ProjectsListDialog &owner, int pageSize) | |
int | GetNumberRows () override |
int | GetNumberCols () override |
wxString | GetValue (int row, int col) override |
void | SetValue (int row, int col, const wxString &value) override |
wxString | GetRowLabelValue (int row) override |
wxString | GetColLabelValue (int col) override |
wxString | GetCornerLabelValue () const override |
int | GetColWidth (int col) const |
void | Refresh (int page, const wxString &searchTerm) |
bool | HasPrevPage () const |
bool | HasNextPage () const |
void | PrevPage () |
void | NextPage () |
int | GetCurrentPage () const |
int | GetPagesCount () const |
const ProjectInfo * | GetSelectedProjectInfo () const |
std::string | GetSelectedProjectUrl () const |
Static Public Member Functions | |
static wxString | FormatTime (int64_t time) |
Private Attributes | |
ProjectsListDialog & | mOwner |
const int | mPageSize |
PaginatedProjectsResponse | mResponse |
Definition at line 56 of file ProjectsListDialog.cpp.
|
inline |
Definition at line 59 of file ProjectsListDialog.cpp.
|
inlinestatic |
Definition at line 75 of file ProjectsListDialog.cpp.
Referenced by GetValue().
|
inlineoverride |
Definition at line 125 of file ProjectsListDialog.cpp.
References XO().
|
inline |
Definition at line 140 of file ProjectsListDialog.cpp.
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::ProjectsListDialog().
|
inlineoverride |
Definition at line 135 of file ProjectsListDialog.cpp.
|
inline |
Definition at line 252 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::sync::PaginationInfo::CurrentPage, mResponse, and audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Pagination.
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::FormatPageLabel().
|
inlineoverride |
Definition at line 70 of file ProjectsListDialog.cpp.
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::ProjectsListDialog().
|
inlineoverride |
Definition at line 65 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Items, and mResponse.
|
inline |
Definition at line 257 of file ProjectsListDialog.cpp.
References mResponse, audacity::cloud::audiocom::sync::PaginationInfo::PagesCount, and audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Pagination.
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::FormatPageLabel().
|
inlineoverride |
Definition at line 120 of file ProjectsListDialog.cpp.
|
inline |
Definition at line 262 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Items, mOwner, audacity::cloud::audiocom::sync::ProjectsListDialog::mProjectsTable, and mResponse.
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::OnOpen().
|
inline |
Definition at line 272 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::GetOAuthService(), audacity::cloud::audiocom::GetServiceConfig(), audacity::cloud::audiocom::GetUserService(), audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Items, mOwner, audacity::cloud::audiocom::sync::ProjectsListDialog::mProjectsTable, mResponse, OpenFromCloudMenu, audacity::ToUTF8(), and audacity::cloud::audiocom::anonymous_namespace{UserService.cpp}::userId.
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::OnOpen().
|
inlineoverride |
Definition at line 97 of file ProjectsListDialog.cpp.
References FormatTime(), audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Items, mResponse, and audacity::ToWXString().
|
inline |
Definition at line 235 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::sync::PaginationInfo::CurrentPage, mResponse, audacity::cloud::audiocom::sync::PaginationInfo::PagesCount, and audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Pagination.
Referenced by NextPage(), and audacity::cloud::audiocom::sync::ProjectsListDialog::OnRefreshCompleted().
|
inline |
Definition at line 230 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::sync::PaginationInfo::CurrentPage, mResponse, and audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Pagination.
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::OnRefreshCompleted(), and PrevPage().
|
inline |
Definition at line 246 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::sync::PaginationInfo::CurrentPage, HasNextPage(), audacity::cloud::audiocom::sync::ProjectsListDialog::mLastSearchValue, mOwner, mResponse, audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Pagination, and Refresh().
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::SetupHandlers().
|
inline |
Definition at line 240 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::sync::PaginationInfo::CurrentPage, HasPrevPage(), audacity::cloud::audiocom::sync::ProjectsListDialog::mLastSearchValue, mOwner, mResponse, audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Pagination, and Refresh().
Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::SetupHandlers().
|
inline |
Definition at line 146 of file ProjectsListDialog.cpp.
References audacity::cloud::audiocom::AuthResult::Authorised, audacity::concurrency::CancellationContext::Create(), audacity::cloud::audiocom::AuthResult::Failure, audacity::cloud::audiocom::CloudSyncService::Get(), audacity::cloud::audiocom::CloudSyncService::GetProjects(), audacity::cloud::audiocom::sync::PaginatedProjectsResponse::Items, BasicUI::ErrorDialogOptions::Log(), BasicUI::MakeGenericProgress(), mOwner, mPageSize, audacity::cloud::audiocom::sync::ProjectsListDialog::mProject, mResponse, audacity::cloud::audiocom::sync::ProjectsListDialog::OnBeforeRefresh(), audacity::cloud::audiocom::sync::ProjectsListDialog::OnRefreshCompleted(), OpenFromCloudMenu, audacity::cloud::audiocom::sync::anonymous_namespace{ProjectsListDialog.cpp}::OpenFromCloudTitle, audacity::cloud::audiocom::PerformBlockingAuth(), BasicUI::ShowErrorDialog(), BasicUI::Success, audacity::ToUTF8(), audacity::ToWString(), XO(), and BasicUI::Yield().
Referenced by NextPage(), PrevPage(), and audacity::cloud::audiocom::sync::ProjectsListDialog::ProjectsListDialog().
|
inlineoverride |
Definition at line 115 of file ProjectsListDialog.cpp.
|
private |
Definition at line 293 of file ProjectsListDialog.cpp.
Referenced by GetSelectedProjectInfo(), GetSelectedProjectUrl(), NextPage(), PrevPage(), and Refresh().
|
private |
Definition at line 294 of file ProjectsListDialog.cpp.
Referenced by Refresh().
|
private |
Definition at line 296 of file ProjectsListDialog.cpp.
Referenced by GetCurrentPage(), GetNumberRows(), GetPagesCount(), GetSelectedProjectInfo(), GetSelectedProjectUrl(), GetValue(), HasNextPage(), HasPrevPage(), NextPage(), PrevPage(), and Refresh().