Commit 268dd17a authored by Jan Möbius's avatar Jan Möbius
Browse files

Reduced UI support

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16994 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 47f6a9f2
......@@ -190,6 +190,10 @@ void TypeLightPlugin::addDefaultLights() {
defaultLights_ = true;
}
void TypeLightPlugin::showReducedUi(bool reduced) {
viewerToolbarAction_->setVisible(!reduced);
}
void TypeLightPlugin::pluginsInitialized(){
if ( OpenFlipper::Options::gui() ){
......@@ -232,9 +236,10 @@ void TypeLightPlugin::pluginsInitialized(){
// And append light mode button if found.
if (pickAction)
viewerToolbar->insertWidget( pickAction, toolbar_ )->setText(tr("Light"));
viewerToolbarAction_ = viewerToolbar->insertWidget( pickAction, toolbar_ );
else
viewerToolbar->addWidget( toolbar_ )->setText(tr("Light"));
viewerToolbarAction_ = viewerToolbar->addWidget( toolbar_ );
viewerToolbarAction_->setText(tr("Light"));
}
......
......@@ -164,6 +164,8 @@ class TypeLightPlugin : public QObject, BaseInterface, LoadSaveInterface, Loggin
// Add default light
int addDefaultLight(QString _name);
void showReducedUi(bool reduced);
private slots:
void slotLightModeRequest(bool _checked);
......@@ -204,6 +206,7 @@ class TypeLightPlugin : public QObject, BaseInterface, LoadSaveInterface, Loggin
QAction* rotateMode_;
QAction* allLightsMode_;
QAction* viewerToolbarAction_;
// True if only target lights should be transformed
bool onlyTargets_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment