00001 /* 00002 * The Mana World 00003 * Copyright (C) 2004 The Mana World Development Team 00004 * 00005 * This file is part of The Mana World. 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 */ 00021 00022 #ifndef GUI_SETUP_VIDEO_H 00023 #define GUI_SETUP_VIDEO_H 00024 00025 #include "guichanfwd.h" 00026 00027 #include "gui/setuptab.h" 00028 00029 #include <guichan/actionlistener.hpp> 00030 #include <guichan/keylistener.hpp> 00031 00032 class Setup_Video : public SetupTab, public gcn::ActionListener, 00033 public gcn::KeyListener 00034 { 00035 public: 00036 Setup_Video(); 00037 00038 void apply(); 00039 void cancel(); 00040 00041 void action(const gcn::ActionEvent &event); 00042 00044 void keyPressed(gcn::KeyEvent &event); 00045 00046 private: 00047 int updateSlider(gcn::Slider *slider, gcn::TextField *field, 00048 const std::string &configName); 00049 00050 bool mFullScreenEnabled; 00051 bool mOpenGLEnabled; 00052 bool mCustomCursorEnabled; 00053 bool mVisibleNamesEnabled; 00054 bool mParticleEffectsEnabled; 00055 bool mNameEnabled; 00056 bool mPickupChatEnabled; 00057 bool mPickupParticleEnabled; 00058 double mOpacity; 00059 int mFps; 00060 int mSpeechMode; 00061 00062 class ModeListModel *mModeListModel; 00063 00064 gcn::Label *speechLabel; 00065 gcn::Label *alphaLabel; 00066 gcn::Label *scrollRadiusLabel; 00067 gcn::Label *scrollLazinessLabel; 00068 gcn::Label *overlayDetailLabel; 00069 gcn::Label *particleDetailLabel; 00070 gcn::Label *fontSizeLabel; 00071 00072 gcn::ListBox *mModeList; 00073 gcn::CheckBox *mFsCheckBox; 00074 gcn::CheckBox *mOpenGLCheckBox; 00075 gcn::CheckBox *mCustomCursorCheckBox; 00076 gcn::CheckBox *mVisibleNamesCheckBox; 00077 gcn::CheckBox *mParticleEffectsCheckBox; 00078 gcn::CheckBox *mNameCheckBox; 00079 00080 gcn::Label *mPickupNotifyLabel; 00081 gcn::CheckBox *mPickupChatCheckBox; 00082 gcn::CheckBox *mPickupParticleCheckBox; 00083 00084 gcn::Slider *mSpeechSlider; 00085 gcn::Label *mSpeechLabel; 00086 gcn::Slider *mAlphaSlider; 00087 gcn::CheckBox *mFpsCheckBox; 00088 gcn::Slider *mFpsSlider; 00089 gcn::TextField *mFpsField; 00090 00091 int mOriginalScrollLaziness; 00092 gcn::Slider *mScrollLazinessSlider; 00093 gcn::TextField *mScrollLazinessField; 00094 00095 int mOriginalScrollRadius; 00096 gcn::Slider *mScrollRadiusSlider; 00097 gcn::TextField *mScrollRadiusField; 00098 00099 int mOverlayDetail; 00100 gcn::Slider *mOverlayDetailSlider; 00101 gcn::Label *mOverlayDetailField; 00102 00103 int mParticleDetail; 00104 gcn::Slider *mParticleDetailSlider; 00105 gcn::Label *mParticleDetailField; 00106 00107 int mFontSize; 00108 gcn::DropDown *mFontSizeDropDown; 00109 }; 00110 00111 #endif