Back to index

salome-paravis  6.5.0
MyViewOptions.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003    Program: ParaView
00004    Module:    $RCSfile: MyViewOptions.h,v $
00005 
00006    Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
00007    All rights reserved.
00008 
00009    ParaView is a free software; you can redistribute it and/or modify it
00010    under the terms of the ParaView license version 1.2. 
00011 
00012    See License_v1.2.txt for the full ParaView license.
00013    A copy of this license can be obtained by contacting
00014    Kitware Inc.
00015    28 Corporate Drive
00016    Clifton Park, NY 12065
00017    USA
00018 
00019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00022 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
00023 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 
00031 =========================================================================*/
00032 
00033 #ifndef _MyViewOptions_h
00034 #define _MyViewOptions_h
00035 
00036 #include "pqOptionsContainer.h"
00037 #include <QPointer>
00038 
00039 class MyView;
00040 class pqView;
00041 class pqColorChooserButton;
00042 
00044 class MyViewOptions : public pqOptionsContainer
00045 {
00046   Q_OBJECT
00047 
00048 public:
00049   MyViewOptions(QWidget *parent=0);
00050   virtual ~MyViewOptions();
00051 
00052   // set the view to show options for
00053   void setView(pqView* view);
00054 
00055   // set the current page
00056   virtual void setPage(const QString &page);
00057   // return a list of strings for pages we have
00058   virtual QStringList getPageList();
00059 
00060   // apply the changes
00061   virtual void applyChanges();
00062   // reset the changes
00063   virtual void resetChanges();
00064 
00065   // tell pqOptionsDialog that we want an apply button
00066   virtual bool isApplyUsed() const { return true; }
00067 
00068 protected:
00069   QPointer<MyView> View;
00070   pqColorChooserButton* ColorChooser;
00071 };
00072 
00073 #endif