1 #ifndef FILEZILLA_INTERFACE_OPTIONSPAGE_SIZEFORMATTING_HEADER
2 #define FILEZILLA_INTERFACE_OPTIONSPAGE_SIZEFORMATTING_HEADER
3 
4 #include "../sizeformatting.h"
5 
6 class COptionsPageSizeFormatting final : public COptionsPage
7 {
8 public:
9 	COptionsPageSizeFormatting();
10 	virtual ~COptionsPageSizeFormatting();
11 
12 	virtual bool CreateControls(wxWindow* parent) override;
13 
14 	virtual bool LoadPage() override;
15 	virtual bool SavePage() override;
16 	virtual bool Validate() override;
17 
18 private:
19 	void UpdateControls();
20 
21 	CSizeFormat::_format GetFormat() const;
22 
23 	wxString FormatSize(int64_t size);
24 
25 	struct impl;
26 	std::unique_ptr<impl> impl_;
27 };
28 
29 #endif
30