/*
 (C) copyright 2008, 209 Thomas K Sharpless

 * This file 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.
 *
 * This file 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 this file; if not, write to Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef CUBELIMIT_DIALOG_H
#define CUBELIMIT_DIALOG_H

#include "ui_CubeLimit_dialog.h"

class CubeLimit_dialog
        : public QDialog,
        public Ui_Dialog {
    Q_OBJECT
public:
    CubeLimit_dialog( int lim, QWidget * parent = 0 )
        : QDialog( parent ) {
        setupUi( this );
        setLimit( lim );
    }
    int limit(){ return spinBox->value(); }
    void setLimit( int lim ){  spinBox->setValue( lim ); }
};

#endif // CUBELIMIT_DIALOG_H
