46 #ifndef OPTIONSWIDGET_HH
47 #define OPTIONSWIDGET_HH
49 #include "ui_optionsWidget.hh"
51 #include <QStringList>
54 #include <OpenFlipper/Core/PluginInfo.hh>
55 #include <ACG/Scenegraph/DrawModes.hh>
58 typedef std::multimap< std::pair< QObject*, int >, std::pair< int, Qt::KeyboardModifiers > > InverseKeyMap;
67 OptionsWidget(std::vector<PluginInfo>& _plugins, std::vector<KeyBinding>& _core, InverseKeyMap& _invKeys, QWidget* parent =0 );
73 void addKeyMapping(
int _key, Qt::KeyboardModifiers _modifiers, QObject* _plugin,
int _keyBindingID);
101 void slotShowPluginOptions(
const QString& _pluginName );
128 void showEvent ( QShowEvent * event );
133 void initPluginOptions();
135 QVBoxLayout* pluginOptionsLayout;
138 std::vector<PluginInfo>& plugins_;
139 std::vector<KeyBinding>& coreKeys_;
141 InverseKeyMap& keys_;
150 bool httpRequestAborted;
162 QProgressDialog *progressDialog;
173 std::vector< ACG::SceneGraph::DrawModes::DrawMode > defaultDrawModes_;
174 std::vector< bool > defaultProjectionMode_;
175 std::vector< int > defaultViewingDirections_;
176 std::vector< bool > defaultRotationLocks_;
178 bool updatingViewerSettings_;
181 QColor backgroundColor_;
191 bool isNewer(QString _current, QString _latest);
199 void httpRequestFinished(
int requestId,
bool error);
202 void readResponseHeader(
const QHttpResponseHeader &responseHeader);
205 void updateDataReadProgress(
int bytesRead,
int totalBytes);
208 void cancelDownload();
211 void updateComponent();
214 void slotTranslationIndexChanged(
int);
237 #endif //OPTIONSWIDGET_HH