Mirroring.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (c) 2007 Werner Mayer <wmayer[at]users.sourceforge.net>     *
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 #ifndef PARTGUI_MIRRORING_H
00024 #define PARTGUI_MIRRORING_H
00025 
00026 #include <Gui/TaskView/TaskDialog.h>
00027 #include <Gui/TaskView/TaskView.h>
00028 
00029 class QTreeWidgetItem;
00030 
00031 namespace App {
00032 class DocumentObject;
00033 class Property;
00034 }
00035 namespace PartGui {
00036 
00037 class Ui_Mirroring;
00038 class Mirroring : public QWidget
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     Mirroring(QWidget* parent = 0);
00044     ~Mirroring();
00045     bool accept();
00046 
00047 protected:
00048     void changeEvent(QEvent *e);
00049 
00050 private:
00051     void findShapes();
00052 
00053 private:
00054     QString document;
00055     Ui_Mirroring* ui;
00056 };
00057 
00058 class TaskMirroring : public Gui::TaskView::TaskDialog
00059 {
00060     Q_OBJECT
00061 
00062 public:
00063     TaskMirroring();
00064     ~TaskMirroring();
00065 
00066 public:
00067     bool accept();
00068 
00069     virtual QDialogButtonBox::StandardButtons getStandardButtons() const
00070     { return QDialogButtonBox::Ok | QDialogButtonBox::Cancel; }
00071     virtual bool isAllowedAlterDocument(void) const
00072     { return false; }
00073     virtual bool needsFullSpace() const
00074     { return false; }
00075 
00076 private:
00077     Mirroring* widget;
00078     Gui::TaskView::TaskBox* taskbox;
00079 };
00080 
00081 } // namespace PartGui
00082 
00083 #endif // PARTGUI_MIRRORING_H

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