47 #ifndef OPTIONSWIDGET_HH 48 #define OPTIONSWIDGET_HH 50 #include <OpenFlipper/Core/PluginInfo.hh> 51 #include <ACG/Scenegraph/DrawModes.hh> 53 #include "ui_optionsWidget.h" 55 #include <QStringList> 56 #include <QProgressDialog> 61 typedef std::multimap< std::pair< QObject*, int >, std::pair< int, Qt::KeyboardModifiers > > InverseKeyMap;
70 OptionsWidget(std::vector<PluginInfo>& _plugins, std::vector<KeyBinding>& _core, InverseKeyMap& _invKeys, QWidget* parent =0 );
76 void addKeyMapping(
int _key, Qt::KeyboardModifiers _modifiers, QObject* _plugin,
int _keyBindingID);
95 void getDefaultColor();
104 void slotShowPluginOptions(
const QString& _pluginName );
134 void showEvent ( QShowEvent * event );
139 void initPluginOptions();
141 QVBoxLayout* pluginOptionsLayout;
144 std::vector<PluginInfo>& plugins_;
145 std::vector<KeyBinding>& coreKeys_;
147 InverseKeyMap& keys_;
156 bool httpRequestAborted;
160 QNetworkAccessManager *networkMan_;
162 QNetworkReply* downloadRep_;
168 QProgressDialog *progressDialog_;
179 std::vector< ACG::SceneGraph::DrawModes::DrawMode > defaultDrawModes_;
180 std::vector< bool > defaultProjectionMode_;
181 std::vector< int > defaultViewingDirections_;
182 std::vector< bool > defaultRotationLocks_;
184 bool updatingViewerSettings_;
187 QColor backgroundColor_;
197 bool isNewer(QString _current, QString _latest);
205 void httpRequestFinished(QNetworkReply *_qnr);
208 void updateDataReadProgress(qint64 _bytesReceived, qint64 _bytesTotal);
211 void showError(QNetworkReply::NetworkError _error);
214 void cancelDownload();
217 void updateComponent();
220 void slotTranslationIndexChanged(
int);
223 void authentication ( QNetworkReply* _reply, QAuthenticator* _authenticator );
246 #endif //OPTIONSWIDGET_HH