X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Fuimanager.h;h=7c9f1bd723e969f45c9532aa11ab98fa3a8b9e5e;hb=c25902b514d64fd65c96ed56171bcd205d19d699;hp=8b1187f23787ffa2798d850e5a4d8de66ebfe679;hpb=ce408de81ca266b1f334ee9bc6c8fb7ba1492ed4;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/uimanager.h b/synfig-studio/trunk/src/synfigapp/uimanager.h index 8b1187f..7c9f1bd 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 @@ -54,7 +54,7 @@ public: 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; -}; +}; class DefaultUIInterface : public UIInterface { @@ -65,7 +65,7 @@ public: { return dflt; } Response ok_cancel(const std::string &title, const std::string &message,Response dflt) { return dflt; } - + bool task(const std::string &task) { return true; } bool error(const std::string &task) @@ -74,7 +74,7 @@ public: { return true; } bool amount_complete(int current, int total) { return true; } -}; +}; class ConfidentUIInterface : public UIInterface { @@ -85,7 +85,7 @@ public: { return RESPONSE_YES; } Response ok_cancel(const std::string &title, const std::string &message,Response dflt) { return RESPONSE_OK; } - + bool task(const std::string &task) { return true; } bool error(const std::string &task) @@ -94,7 +94,7 @@ public: { return true; } bool amount_complete(int current, int total) { return true; } -}; +}; class ConsoleUIInterface : public UIInterface { @@ -102,12 +102,12 @@ public: 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); - + bool task(const std::string &task); bool error(const std::string &task); bool warning(const std::string &task); bool amount_complete(int current, int total); -}; +}; }; // END of namespace synfigapp