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:
twanvl
2007-09-01 21:11:56 +00:00
parent a08d4e5a1b
commit c38166c2bd
8 changed files with 169 additions and 9 deletions
+6
View File
@@ -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:
+1 -1
View File
@@ -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 + _("'"));
}
}
+3
View File
@@ -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)