1 /**************************************************************************/ 2 /* Copyright 2009 Tim Day */ 3 /* */ 4 /* This file is part of Fracplanet */ 5 /* */ 6 /* Fracplanet is free software: you can redistribute it and/or modify */ 7 /* it under the terms of the GNU General Public License as published by */ 8 /* the Free Software Foundation, either version 3 of the License, or */ 9 /* (at your option) any later version. */ 10 /* */ 11 /* Fracplanet is distributed in the hope that it will be useful, */ 12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ 14 /* GNU General Public License for more details. */ 15 /* */ 16 /* You should have received a copy of the GNU General Public License */ 17 /* along with Fracplanet. If not, see <http://www.gnu.org/licenses/>. */ 18 /**************************************************************************/ 19 20 /*! \file 21 \brief Interface for class ControlSave. 22 */ 23 #ifndef _control_save_h_ 24 #define _control_save_h_ 25 26 #include "common.h" 27 #include "control.h" 28 #include "parameters_save.h" 29 #include "qtcommon.h" 30 31 class FracplanetMain; 32 33 //! Encapsulates GUI elements for controlling save. 34 class ControlSave : public Control 35 { 36 private: 37 38 Q_OBJECT 39 40 public: 41 42 ControlSave(FracplanetMain* save_target,ParametersSave* param); 43 44 ~ControlSave(); 45 46 public slots: 47 48 void setAtmosphere(int v); 49 void setSeaSphere(int v); 50 void setPerVertexAlpha(int v); 51 void setTextureShaded(int v); 52 void setTextureHeight(int v); 53 54 private: 55 56 //! The parameters set we control 57 ParametersSave*const parameters; 58 }; 59 60 61 62 #endif 63