X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FModalDialog.hh;h=d56d8ea08f7dc217611bf17453574116975d9110;hp=8bb6741f80148dfbf5b9d3d8c3d1d11348d91a24;hb=e0c0a3b5e7337cde55e520801d2e59e03dc97d9c;hpb=ed5fcf5f1357fc42749408f705e9ec55531ff006 diff --git a/src/Moof/ModalDialog.hh b/src/Moof/ModalDialog.hh index 8bb6741..d56d8ea 100644 --- a/src/Moof/ModalDialog.hh +++ b/src/Moof/ModalDialog.hh @@ -18,7 +18,7 @@ #include "../config.h" #endif -#if defined(_WIN32) || defined(__WIN32__) +#if defined(_WIN32) #include #elif defined(__APPLE__) && defined(__MACH__) #include @@ -57,6 +57,17 @@ struct ModalDialog std::string text2; + + ModalDialog(Type pType = INFO, + const std::string& pTitle = "", + const std::string& pText1 = "", + const std::string& pText2 = "") : + title(pTitle), + type(pType), + text1(pText1), + text2(pText2) {} + + void run() const { switch (type) @@ -75,7 +86,7 @@ struct ModalDialog break; } -#if defined(_WIN32) || defined(__WIN32__) +#if defined(_WIN32) int iconType; switch (type)