/***************************************************************************
                          SIMPLY POWERFUL TOOLKIT (SPTK)
                          CFileOpenDialog.h  -  description
                             -------------------
    begin                : July 19 2003
    copyright            : (C) 2003 by Alexey Parshin
    email                : alexeyp@gmail.com
    based on the code    : Mikko Lahteenmaki <Laza@Flashmail.com>
 ***************************************************************************/

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

   This library 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 Library
   General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; if not, write to the Free Software Foundation, 
   Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

   Please report all bugs and problems to "alexeyp@gmail.com"
 ***************************************************************************/

#ifndef __CFILEOPENDIALOG_H__
#define __CFILEOPENDIALOG_H__

#include <sptk3/CFileDialog.h>

/// @addtogroup gui GUI Classes
/// @{

/// @brief File Open Window.
///
/// Implements the dialog to open an existing file.
/// @see CDialog, CFileDialog, CFileSaveDialog
class CFileOpenDialog : public CFileDialog {
protected:
   /// Method okPressed() overloads the default CDialog reaction on pressing
   /// 'Open' (former 'Ok') button.
   /// @returns success (true) if the file exists and could be opened for reading 
   virtual bool okPressed();
public:
   /// Default constructor
   /// @param caption window caption
   CFileOpenDialog(std::string caption="Open File");

   /// Destructor 
   virtual ~CFileOpenDialog() {}
};

/// @}

#endif
