mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added dialog for selecting a new stylesheet if the one from a set is not found;
'availible' is not a word git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@657 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -48,6 +48,12 @@ class PackageError : public Error {
|
||||
inline PackageError(const String& str) : Error(str) {}
|
||||
};
|
||||
|
||||
/// A package is not found
|
||||
class PackageNotFoundError : public PackageError {
|
||||
public:
|
||||
inline PackageNotFoundError(const String& str) : PackageError(str) {}
|
||||
};
|
||||
|
||||
/// A file is not found
|
||||
class FileNotFoundError : public PackageError {
|
||||
public:
|
||||
|
||||
@@ -82,7 +82,7 @@ void Package::open(const String& n) {
|
||||
} else if (wxFileExists(filename)) {
|
||||
openZipfile();
|
||||
} else {
|
||||
throw PackageError(_("Package not found: '") + filename + _("'"));
|
||||
throw PackageNotFoundError(_("Package not found: '") + filename + _("'"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,9 @@ String tr(const SymbolFont&, const String& key, const String& def);
|
||||
/// A localized string for tooltip text, with 1 argument (printf style)
|
||||
#define _TOOLTIP_1_(s,a) format_string(_TOOLTIP_(s), a)
|
||||
|
||||
/// A localized string for tooltip labels, with 1 argument (printf style)
|
||||
#define _LABEL_1_(s,a) format_string(_LABEL_(s), a)
|
||||
|
||||
/// A localized string for button text, with 1 argument (printf style)
|
||||
#define _BUTTON_1_(s,a) format_string(_BUTTON_(s), a)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user