Skip to content

Commit

Permalink
Private members at bottom.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocfd committed Jul 31, 2024
1 parent cc1831f commit d13362c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
23 changes: 11 additions & 12 deletions src/DlgMain.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
#include "DlgRunnin.h"

class DlgMain final : public lib::DialogMain {
private:
struct FileInfo final {
std::wstring path;
int size = 0;
FileInfo(std::wstring_view p, int s) : path{p}, size{s} { }
};

SIZE _minSize{};
lib::Layout _layout;
lib::ImgList _imgLst;
struct { int col; bool asc; } _sort = {.col = 0, .asc = true};

public:
virtual ~DlgMain() { }

Expand All @@ -25,6 +13,12 @@ class DlgMain final : public lib::DialogMain {
DlgMain& operator=(DlgMain&&) = delete;

private:
struct FileInfo final {
std::wstring path;
int size = 0;
FileInfo(std::wstring_view p, int s) : path{p}, size{s} { }
};

INT_PTR dlgProc(UINT uMsg, WPARAM wp, LPARAM lp) override;
INT_PTR onInitDialog();
INT_PTR onGetMinMaxInfo(LPARAM lp);
Expand All @@ -48,4 +42,9 @@ class DlgMain final : public lib::DialogMain {
void _finishAddingFilesToList();
bool _validateDestDir();
DlgRunnin::Opts _buildOpts();

SIZE _minSize{};
lib::Layout _layout;
lib::ImgList _imgLst;
struct { int col; bool asc; } _sort = {.col = 0, .asc = true};
};
16 changes: 7 additions & 9 deletions src/DlgRunnin.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ class DlgRunnin final : public lib::DialogModal {
BYTE numThreads;
};

private:
lib::ComPtr<ITaskbarList4> _taskbar;
Opts _opts;
UINT _idxNextFile = 0;
UINT _numFilesDone = 0;
std::mutex _mutex;
lib::TimeCount _time;

public:
virtual ~DlgRunnin() { }

constexpr explicit DlgRunnin(Opts&& opts) : _opts{std::move(opts)} { }
Expand All @@ -44,4 +35,11 @@ class DlgRunnin final : public lib::DialogModal {

void _processNextFileDetached();
bool _launchConvertProcess(UINT idxFile);

lib::ComPtr<ITaskbarList4> _taskbar;
Opts _opts;
UINT _idxNextFile = 0;
UINT _numFilesDone = 0;
std::mutex _mutex;
lib::TimeCount _time;
};

0 comments on commit d13362c

Please sign in to comment.