INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
ihumanmanager.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef HYDROQGUI_IHUMANMANAGER_H 00012 #define HYDROQGUI_IHUMANMANAGER_H 00013 00014 #include <QAction> 00015 #include <QMenu> 00016 #include <QMenuBar> 00017 #include <QToolBar> 00018 #include <QStatusBar> 00019 #include <hydroutil/uncopyable.h> 00020 00021 namespace hydroqguielementutil { 00022 00028 class IHumanManager : public hydroutil::Uncopyable 00029 { 00030 00031 public: 00032 00033 enum MessageType 00034 { 00035 Information, 00036 Warning, 00037 Error 00038 }; 00039 00040 virtual ~IHumanManager() {} 00041 00043 virtual void showDialogMsg( MessageType type, const QString &msg ) = 0; 00045 virtual void showStatusMsg( MessageType type, const QString &msg ) = 0; 00046 00047 // convenience functions for those above 00048 void showDialogInformation( const QString &msg ) { showDialogMsg( Information, msg ); } 00049 void showDialogWarning( const QString &msg ) { showDialogMsg( Warning, msg ); } 00050 void showDialogError( const QString &msg ) { showDialogMsg( Error, msg ); } 00051 00052 void showStatusInformation( const QString &msg ) { showStatusMsg( Information, msg ); } 00053 void showStatusWarning( const QString &msg ) { showStatusMsg( Warning, msg ); } 00054 void showStatusError( const QString &msg ) { showStatusMsg( Error, msg ); } 00055 00058 virtual QMenu *fileMenu()=0; 00059 virtual QMenu *optionsMenu()=0; 00060 virtual QMenu *displayMenu()=0; 00061 virtual QMenuBar *menuBar()=0; 00062 virtual QToolBar *toolBar()=0; 00063 virtual QStatusBar *statusBar()=0; 00064 00065 private: 00066 00067 }; 00068 00069 } 00070 00071 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)