summaryrefslogtreecommitdiff
path: root/shared/util.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
commitb338e29fd3eaf700f8c8360aa0310048ba941d54 (patch)
tree122f8ef3790d12cd10275ef7453a9e8053322d78 /shared/util.cpp
parent3.18 (diff)
downloadFreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.gz
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.bz2
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.zip
3.19
Diffstat (limited to 'shared/util.cpp')
-rw-r--r--shared/util.cpp20
1 files changed, 5 insertions, 15 deletions
diff --git a/shared/util.cpp b/shared/util.cpp
index 6f066959..faa4074c 100644
--- a/shared/util.cpp
+++ b/shared/util.cpp
@@ -5,42 +5,32 @@
// **************************************************************************
//
#include "util.h"
-#include <wx/scrolwin.h>
-#include <wx/textctrl.h>
-#include <wx/combobox.h>
-#include <wx/filepicker.h>
+#include "zstring.h"
#include "i18n.h"
-#include "file_handling.h"
-#include "string_conv.h"
#include "last_error.h"
-#include "check_exist.h"
-#include "assert_static.h"
-#include "system_constants.h"
#include "global_func.h"
-
#ifdef FFS_WIN
#include <wx/msw/wrapwin.h> //includes "windows.h"
#endif
+
wxString zen::extractJobName(const wxString& configFilename)
{
- using namespace common;
-
const wxString shortName = configFilename.AfterLast(FILE_NAME_SEPARATOR); //returns the whole string if seperator not found
const wxString jobName = shortName.BeforeLast(wxChar('.')); //returns empty string if seperator not found
return jobName.IsEmpty() ? shortName : jobName;
}
-wxString zen::formatFilesizeToShortString(zen::UInt64 size)
+wxString zen::formatFilesizeToShortString(UInt64 size)
{
- if (to<zen::Int64>(size) < 0) return _("Error");
+ if (to<Int64>(size) < 0) return _("Error");
if (size <= 999U)
{
wxString output = _P("1 Byte", "%x Bytes", to<int>(size));
- output.Replace(wxT("%x"), zen::toStringSep(size)); //no decimal places in case of bytes
+ output.Replace(wxT("%x"), toStringSep(size)); //no decimal places in case of bytes
return output;
}
else
bgstack15