X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Fuimanager.h;h=416256952cc762e811548d91473f3513eb5a244f;hb=04e736f96597bb36dbd6b8059d785269369b3321;hp=2f99e1886cf9114800cfe18d717de88e57b07004;hpb=c34eaa5441242b3e9a7b7645e9ee4983d14eae85;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/uimanager.h b/synfig-studio/trunk/src/synfigapp/uimanager.h index 2f99e18..4162569 100644 --- a/synfig-studio/trunk/src/synfigapp/uimanager.h +++ b/synfig-studio/trunk/src/synfigapp/uimanager.h @@ -2,7 +2,7 @@ /*! \file uimanager.h ** \brief User Interface Manager Class ** -** $Id: uimanager.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -51,6 +51,9 @@ public: RESPONSE_OK=2 }; virtual ~UIInterface() { } + virtual Response confirmation(const std::string &title, const std::string &primaryText, + const std::string &secondaryText, const std::string &confirmPhrase, + const std::string &cancelPhrase, Response dflt=RESPONSE_OK)=0; virtual Response yes_no(const std::string &title, const std::string &message,Response dflt=RESPONSE_YES)=0; virtual Response yes_no_cancel(const std::string &title, const std::string &message,Response dflt=RESPONSE_YES)=0; virtual Response ok_cancel(const std::string &title, const std::string &message,Response dflt=RESPONSE_OK)=0; @@ -59,46 +62,57 @@ public: class DefaultUIInterface : public UIInterface { public: - Response yes_no(const std::string &title, const std::string &message,Response dflt) + Response confirmation(const std::string &/*title*/, const std::string &/*primaryText*/, + const std::string &/*secondaryText*/, const std::string &/*confirmPhrase*/, + const std::string &/*cancelPhrase*/, Response dflt) { return dflt; } - Response yes_no_cancel(const std::string &title, const std::string &message,Response dflt) + Response yes_no(const std::string &/*title*/, const std::string &/*message*/,Response dflt) { return dflt; } - Response ok_cancel(const std::string &title, const std::string &message,Response dflt) + Response yes_no_cancel(const std::string &/*title*/, const std::string &/*message*/,Response dflt) + { return dflt; } + Response ok_cancel(const std::string &/*title*/, const std::string &/*message*/,Response dflt) { return dflt; } - bool task(const std::string &task) + bool task(const std::string &/*task*/) { return true; } - bool error(const std::string &task) + bool error(const std::string &/*task*/) { return true; } - bool warning(const std::string &task) + bool warning(const std::string &/*task*/) { return true; } - bool amount_complete(int current, int total) + bool amount_complete(int /*current*/, int /*total*/) { return true; } }; class ConfidentUIInterface : public UIInterface { public: - Response yes_no(const std::string &title, const std::string &message,Response dflt) + Response confirmation(const std::string &/*title*/, const std::string &/*primaryText*/, + const std::string &/*secondaryText*/, const std::string &/*confirmPhrase*/, + const std::string &/*cancelPhrase*/, Response /*dflt*/) + { return RESPONSE_OK; } + Response yes_no(const std::string &/*title*/, const std::string &/*message*/,Response /*dflt*/) { return RESPONSE_YES; } - Response yes_no_cancel(const std::string &title, const std::string &message,Response dflt) + Response yes_no_cancel(const std::string &/*title*/, const std::string &/*message*/,Response /*dflt*/) { return RESPONSE_YES; } - Response ok_cancel(const std::string &title, const std::string &message,Response dflt) + Response ok_cancel(const std::string &/*title*/, const std::string &/*message*/,Response /*dflt*/) { return RESPONSE_OK; } - bool task(const std::string &task) + bool task(const std::string &/*task*/) { return true; } - bool error(const std::string &task) + bool error(const std::string &/*task*/) { return true; } - bool warning(const std::string &task) + bool warning(const std::string &/*task*/) { return true; } - bool amount_complete(int current, int total) + bool amount_complete(int /*current*/, int /*total*/) { return true; } }; class ConsoleUIInterface : public UIInterface { public: + Response confirmation(const std::string &title, const std::string &primaryText, + const std::string &secondaryText, const std::string &confirmPhrase, + const std::string &cancelPhrase, Response dflt); Response yes_no(const std::string &title, const std::string &message,Response dflt); Response yes_no_cancel(const std::string &title, const std::string &message,Response dflt); Response ok_cancel(const std::string &title, const std::string &message,Response dflt);