diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:12:46 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:12:46 +0200 |
commit | b338e29fd3eaf700f8c8360aa0310048ba941d54 (patch) | |
tree | 122f8ef3790d12cd10275ef7453a9e8053322d78 /shared/util.h | |
parent | 3.18 (diff) | |
download | FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.gz FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.bz2 FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.zip |
3.19
Diffstat (limited to 'shared/util.h')
-rw-r--r-- | shared/util.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/shared/util.h b/shared/util.h index 2aa48af9..25762ce7 100644 --- a/shared/util.h +++ b/shared/util.h @@ -8,12 +8,7 @@ #define UTIL_H_INCLUDED #include <wx/string.h> -#include <wx/textctrl.h> -#include <wx/filepicker.h> -#include <wx/combobox.h> #include <wx/scrolwin.h> -#include <wx/choice.h> -#include "zstring.h" #include "string_tools.h" #include "int64.h" @@ -21,15 +16,15 @@ namespace zen { wxString extractJobName(const wxString& configFilename); -wxString formatFilesizeToShortString(zen::UInt64 filesize); -wxString formatPercentage(zen::Int64 dividend, zen::Int64 divisor); +wxString formatFilesizeToShortString(UInt64 filesize); +wxString formatPercentage(Int64 dividend, Int64 divisor); template <class NumberType> wxString toStringSep(NumberType number); //convert number to wxString including thousands separator void scrollToBottom(wxScrolledWindow* scrWindow); -wxString utcTimeToLocalString(zen::Int64 utcTime); //throw std::runtime_error +wxString utcTimeToLocalString(Int64 utcTime); //throw std::runtime_error } @@ -68,8 +63,7 @@ wxString includeNumberSeparator(const wxString& number); namespace zen { -template <class NumberType> -inline +template <class NumberType> inline wxString toStringSep(NumberType number) { return ffs_Impl::includeNumberSeparator(zen::toString<wxString>(number)); |