/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Copyright (C) 2011-2016 OpenFOAM Foundation
     \\/     M anipulation  |
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.

Class
    pqPVFoamReaderPanel

Description
    GUI modifications for the ParaView reader panel

    A custom panel for the PVFoamReader.

SourceFiles
    pqPVFoamReaderPanel.cxx

\*---------------------------------------------------------------------------*/
#ifndef pqPVFoamReaderPanel_h
#define pqPVFoamReaderPanel_h


#include "pqAutoGeneratedObjectPanel.h"

// Forward declaration of QT classes

class QCheckBox;
class QLineEdit;
class QTimer;
class QToolButton;

// Forward declaration of ParaView classes
class vtkSMSourceProxy;


/*---------------------------------------------------------------------------*\
                  Class pqPVFoamReaderPanel Declaration
\*---------------------------------------------------------------------------*/

class pqPVFoamReaderPanel
:
    public pqAutoGeneratedObjectPanel
{
    // Private data
    Q_OBJECT;
    typedef pqAutoGeneratedObjectPanel Superclass;

    //- ZeroTime checkbox
    QCheckBox* ZeroTime_;

    //- CacheMesh checkbox
    QCheckBox* CacheMesh_;

    //- Show Patch Names checkbox
    QCheckBox* ShowPatchNames_;

    //- Show Groups Only checkbox
    QCheckBox* ShowGroupsOnly_;

    //- IncludeSets checkbox
    QCheckBox* IncludeSets_;

    //- IncludeZones checkbox
    QCheckBox* IncludeZones_;

    //- InterpolateVolFields checkbox
    QCheckBox* InterpolateVolFields_;

    //- ExtrapolatePatches checkbox
    QCheckBox* ExtrapolatePatches_;


protected slots:

    void CacheMeshToggled();
    void ZeroTimeToggled();
    void RefreshPressed();
    void ShowPatchNamesToggled();
    void ShowGroupsOnlyToggled();
    void IncludeSetsToggled();
    void IncludeZonesToggled();
    void InterpolateVolFieldsToggled();
    void ExtrapolatePatchesToggled();


public:

    // Constructors

        //- Construct from components
        pqPVFoamReaderPanel(pqProxy*, QWidget*);


    //- Destructor
    // virtual ~pqPVFoamReaderPanel();
};


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#endif

// ************************************************************************* //
