view libgui/src/welcome-wizard.h @ 17937:f87a7e161710

* welcome-wizard.h, welcome-wizard.cc: Rewrite.
author John W. Eaton <jwe@octave.org>
date Fri, 15 Nov 2013 22:57:45 -0500
parents d63878346099
children b3e4ee8f4d6d
line wrap: on
line source

/*

Copyright (C) 2013 John W. Eaton
Copyright (C) 2011-2013 Jacob Dawid

This file is part of Octave.

Octave 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.

Octave 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 Octave; see the file COPYING.  If not, see
<http://www.gnu.org/licenses/>.

*/

#ifndef WELCOMEWIZARD_H
#define WELCOMEWIZARD_H

#include <QDialog>

class welcome_wizard : public QDialog
{
  Q_OBJECT

public:

  typedef QWidget *(*page_creator_fptr) (welcome_wizard *wizard);

  welcome_wizard (QWidget *parent = 0);

  ~welcome_wizard (void) { }

private:

  QList<page_creator_fptr> page_ctor_list;
  QList<page_creator_fptr>::iterator page_list_iterator;
  QWidget *current_page;                                         

private slots:

  void show_page (void);
  void previous_page (void);
  void next_page (void);
};

#endif // WELCOMEWIZARD_H