Gui/TaskView/TaskWatcher.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de>              *
00003  *                                                                         *
00004  *   This file is part of the FreeCAD CAx development system.              *
00005  *                                                                         *
00006  *   This library is free software; you can redistribute it and/or         *
00007  *   modify it under the terms of the GNU Library General Public           *
00008  *   License as published by the Free Software Foundation; either          *
00009  *   version 2 of the License, or (at your option) any later version.      *
00010  *                                                                         *
00011  *   This library  is distributed in the hope that it will be useful,      *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU Library General Public License for more details.                  *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Library General Public     *
00017  *   License along with this library; see the file COPYING.LIB. If not,    *
00018  *   write to the Free Software Foundation, Inc., 59 Temple Place,         *
00019  *   Suite 330, Boston, MA  02111-1307, USA                                *
00020  *                                                                         *
00021  ***************************************************************************/
00022 
00023 
00024 #ifndef GUI_TASKVIEW_TASKWATCHER_H
00025 #define GUI_TASKVIEW_TASKWATCHER_H
00026 
00027 #include <map>
00028 #include <string>
00029 #include <vector>
00030 #include <QObject>
00031 
00032 #include <Gui/iisTaskPanel/include/iisTaskPanel>
00033 #include <Gui/Selection.h>
00034 #include <Gui/SelectionFilter.h>
00035 
00036 namespace App {
00037 
00038 }
00039 
00040 namespace Gui {
00041 namespace TaskView {
00042 
00043 class TaskContent;
00044 
00046 class GuiExport TaskWatcher : public QObject, public Gui::SelectionFilter
00047 {
00048     Q_OBJECT
00049 
00050 public:
00051     TaskWatcher(const char* Filter);
00052     ~TaskWatcher();
00053 
00054     std::vector<QWidget*> &getWatcherContent(void);
00055 
00056 public:
00058     virtual bool shouldShow(void);
00059 
00060 protected:
00062     std::vector<QWidget*> Content;
00063 
00064 };
00065 
00066 // --------------------------------------------------------------------------
00067 
00069 class GuiExport TaskWatcherCommands : public TaskWatcher
00070 {
00071     Q_OBJECT
00072 
00073 public:
00074     TaskWatcherCommands(const char* Filter,const char* commands[], const char* name, const char* pixmap);
00075     ~TaskWatcherCommands();
00076 
00077 public:
00079     virtual bool shouldShow(void);
00080 
00081 };
00082 
00083 // --------------------------------------------------------------------------
00084 
00086 class GuiExport TaskWatcherCommandsEmptyDoc : public TaskWatcherCommands
00087 {
00088     Q_OBJECT
00089 
00090 public:
00091     TaskWatcherCommandsEmptyDoc(const char* commands[], const char* name, const char* pixmap);
00092     ~TaskWatcherCommandsEmptyDoc();
00093 
00094 public:
00096     virtual bool shouldShow(void);
00097 
00098 };
00099 
00100 
00101 
00102 } //namespace TaskView
00103 } //namespace Gui
00104 
00105 #endif // GUI_TASKVIEW_TASKWATCHER_H

Generated on Wed Nov 23 19:00:44 2011 for FreeCAD by  doxygen 1.6.1