orca-robotics


INTRODUCTION
Overview
Download and Install
Documentation

REPOSITORY
Interfaces
Drivers
Libraries
Utilities
Software Map

DEVELOPER
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

ihumanmanager.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2008 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 <QObject>
00015 #include <QAction>
00016 #include <QMenu>
00017 #include <QMenuBar>
00018 #include <QToolBar>
00019 #include <hydroqguielementutil/iguielement.h>
00020 #include <hydroutil/uncopyable.h>
00021 
00022 namespace hydroqguielementutil {
00023 
00029 class IHumanManager : public hydroutil::Uncopyable
00030 {
00031 
00032 public: 
00033 
00034     enum MessageType
00035     {
00036         Information,
00037         Warning,
00038         Error    
00039     };
00040 
00041     virtual ~IHumanManager() {}
00042 
00044     virtual void showDialogMsg( MessageType type, const QString &msg ) = 0;
00046     virtual void showStatusMsg( MessageType type, const QString &msg ) = 0;
00047 
00048     // convenience functions for those above
00049     void showDialogInformation( const QString &msg ) { showDialogMsg( Information, msg ); }
00050     void showDialogWarning( const QString &msg )     { showDialogMsg( Warning, msg ); }
00051     void showDialogError( const QString &msg )       { showDialogMsg( Error, msg ); }
00052 
00053     void showStatusInformation( const QString &msg ) { showStatusMsg( Information, msg ); }
00054     void showStatusWarning( const QString &msg )     { showStatusMsg( Warning, msg ); }
00055     void showStatusError( const QString &msg )       { showStatusMsg( Error, msg ); }
00056 
00059     virtual QMenu    *fileMenu()=0;
00060     virtual QMenu    *optionsMenu()=0;
00061     virtual QMenu    *displayMenu()=0;
00062     virtual QMenuBar *menuBar()=0;
00063     virtual QToolBar *toolBar()=0;
00064 
00065 private: 
00066 
00067 };
00068 
00069 }
00070 
00071 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5