diff options
Diffstat (limited to 'shared/util.h')
-rw-r--r-- | shared/util.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/shared/util.h b/shared/util.h deleted file mode 100644 index e45262ab..00000000 --- a/shared/util.h +++ /dev/null @@ -1,74 +0,0 @@ -// ************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) 2008-2011 ZenJu (zhnmju123 AT gmx.de) * -// ************************************************************************** - -#ifndef UTIL_H_INCLUDED -#define UTIL_H_INCLUDED - -#include <wx/string.h> -#include <wx/scrolwin.h> -#include "string_tools.h" -#include "int64.h" - -namespace zen -{ -wxString extractJobName(const wxString& configFilename); - -wxString formatFilesizeToShortString(UInt64 filesize); -wxString formatPercentage(double fraction); //between [0, 1] - -template <class NumberType> -wxString toStringSep(NumberType number); //convert number to wxString including thousands separator - -void scrollToBottom(wxScrolledWindow* scrWindow); - -wxString utcTimeToLocalString(Int64 utcTime); //throw std::runtime_error -} - - - - - - - - - - - - - - - - - - - - - - - - - - -//--------------- inline impelementation ------------------------------------------- - -//helper function! not to be used directly -namespace ffs_Impl -{ -wxString includeNumberSeparator(const wxString& number); -} - - -namespace zen -{ -template <class NumberType> inline -wxString toStringSep(NumberType number) -{ - return ffs_Impl::includeNumberSeparator(zen::toString<wxString>(number)); -} -} - - -#endif // UTIL_H_INCLUDED |