void Viewport::setBackdrop(Effect *value) { if (d->backdrop != value) { if (d->backdrop) { disconnect(d->backdrop, SIGNAL(effectChanged()), this, SLOT(update3d())); } d->backdrop = value; if (d->backdrop) { connect(d->backdrop, SIGNAL(effectChanged()), this, SLOT(update3d())); d->backdrop->setUseLighting(false); } emit viewportChanged(); } }
/*! * Sets the \a effect to be used with the Material. */ void QMaterial::setEffect(QEffect *effect) { Q_D(QMaterial); if (effect != d->m_effect) { if (d->m_effect && d->m_changeArbiter) { QScenePropertyChangePtr change(new QScenePropertyChange(NodeRemoved, QSceneChange::Node, id())); change->setPropertyName("effect"); change->setValue(QVariant::fromValue(d->m_effect->id())); d->notifyObservers(change); } d->m_effect = effect; emit effectChanged(); // We need to add it as a child of the current node if it has been declared inline // Or not previously added as a child of the current node so that // 1) The backend gets notified about it's creation // 2) When the current node is destroyed, it gets destroyed as well if (effect && !effect->parent()) effect->setParent(this); if (d->m_effect && d->m_changeArbiter) { QScenePropertyChangePtr change(new QScenePropertyChange(NodeAdded, QSceneChange::Node, id())); change->setPropertyName("effect"); change->setValue(QVariant::fromValue(effect->id())); d->notifyObservers(change); } } }
void EffectChain::replaceEffect(unsigned int effectSlotNumber, EffectPointer pEffect) { //qDebug() << debugString() << "replaceEffect" << effectSlotNumber << pEffect; while (effectSlotNumber >= static_cast<unsigned int>(m_effects.size())) { if (pEffect.isNull()) { return; } m_effects.append(EffectPointer()); } EffectPointer pOldEffect = m_effects[effectSlotNumber]; if (!pOldEffect.isNull()) { if (m_bAddedToEngine) { pOldEffect->removeFromEngine(m_pEngineEffectChain, effectSlotNumber); } } m_effects.replace(effectSlotNumber, pEffect); if (!pEffect.isNull()) { if (m_bAddedToEngine) { pEffect->addToEngine(m_pEngineEffectChain, effectSlotNumber); } } emit(effectChanged(effectSlotNumber)); }
/*! \qmlproperty ThemeEffect ThemeEffect::effect \since Mobility 1.1 This property holds the specific themed effect type to play. It is one of: \list \o ThemeEffect.Basic - Generic feedback. \o ThemeEffect.Sensitive - Generic sensitive feedback. \o ThemeEffect.BasicButton - Feedback for interacting with a button (e.g. pressing). \o ThemeEffect.SensitiveButton - Sensitive feedback for interacting with a button (e.g. auto repeat). \o ThemeEffect.BasicKeypad - Feedback for interacting with a keypad button. \o ThemeEffect.SensitiveKeypad - Sensitive feedback for interacting with a keypad button. \o ThemeEffect.BasicSlider - Feedback for moving a slider. \o ThemeEffect.SensitiveSlider - Sensitive feedback for moving a slider. \o ThemeEffect.BasicItem - Feedback when interacting with a list or grid item. \o ThemeEffect.SensitiveItem - Sensitive feedback when interacting with a list or grid item. \o ThemeEffect.ItemScroll - Feedback when scrolling a list or grid item view. \o ThemeEffect.ItemPick - Feedback when selecting an item to move in a list or grid view. \o ThemeEffect.ItemDrop - Feedback when dropping an item in a list or grid view. \o ThemeEffect.ItemMoveOver - Feedback when moving an item in a list or grid view. \o ThemeEffect.BounceEffect - Feedback for a bounce effect. \o ThemeEffect.CheckBox - Feedback for selecting a checkbox. \o ThemeEffect.MultipleCheckBox - Feedback for selecting checkboxes of multiple items. \o ThemeEffect.Editor - Feedback for interacting with an editor. \o ThemeEffect.TextSelection - Feedback for selecting text. \o ThemeEffect.BlankSelection - Feedback for a blank selection. \o ThemeEffect.LineSelection - Feedback for selecting a line. \o ThemeEffect.EmptyLineSelection - Feedback for selecting an empty line. \o ThemeEffect.PopUp - Generic feedback for interacting with a popup. \o ThemeEffect.PopupOpen - Generic feedback when a popup opens. \o ThemeEffect.PopupClose - Generic feedback when a popup closes. \o ThemeEffect.Flick - Generic feedback when starting a flick gesture. \o ThemeEffect.StopFlick - Generic feedback when stopping a flick. \o ThemeEffect.MultiPointTouchActivate - Generic feedback when a touch gesture with more than one point is started. \o ThemeEffect.RotateStep - Feedback when rotating using a gesture. \o ThemeEffect.LongPress - Feedback for a long press (or tap and hold) gesture. \o ThemeEffect.PositiveTacticon - Generic feedback for notification of a successful operation. \o ThemeEffect.NeutralTacticon - Generic feedback for notification. \o ThemeEffect.NegativeTacticon - Generic feedback for notification of a failed operation. \endlist \sa QFeedbackEffect::ThemeEffect */ void QDeclarativeThemeEffect::setEffect(QDeclarativeThemeEffect::ThemeEffect effect) { if (m_effect != effect) { m_effect = effect; emit effectChanged(); } }
void QgsEffectStackPropertiesWidget::changeEffect( QgsPaintEffect* newEffect ) { EffectItem *item = currentEffectItem(); item->setEffect( newEffect ); QStandardItem* root = mModel->invisibleRootItem(); int effectIdx = root->rowCount() - item->row() - 1; mStack->changeEffect( effectIdx, newEffect ); updatePreview(); // Important: This lets the effect to have its own effect properties widget effectChanged(); }
void EffectChain::addEffect(EffectPointer pEffect) { //qDebug() << debugString() << "addEffect"; if (!pEffect) { // Insert empty effects to preserve chain order // when loading chains with empty effects m_effects.append(pEffect); return; } if (m_effects.contains(pEffect)) { qWarning() << debugString() << "WARNING: EffectChain already contains Effect:" << pEffect; return; } m_effects.append(pEffect); if (m_bAddedToEngine) { pEffect->addToEngine(m_pEngineEffectChain, m_effects.size() - 1); } emit(effectChanged(m_effects.size() - 1)); }
void IniReader::setEffect(const QString &s){settings.insert("effect",s);emit effectChanged();}
void IniReader::finished() { settings=watcher->result(); emit readConfigChanged(); emit writeConfigChanged(); emit romPathChanged(); emit hashPathChanged(); emit samplePathChanged(); emit artPathChanged(); emit ctrlrPathChanged(); emit iniPathChanged(); emit fontPathChanged(); emit cheatPathChanged(); emit crosshairPathChanged(); emit cfgDirChanged(); emit nvramDirChanged(); emit inputDirChanged(); emit stateDirChanged(); emit snapshotDirChanged(); emit diffDirChanged(); emit commentDirChanged(); emit stateChanged(); emit autoSaveChanged(); emit playbackChanged(); emit recordChanged(); emit mngWriteChanged(); emit aviWriteChanged(); emit wavWriteChanged(); emit snapNameChanged(); emit snapSizeChanged(); emit snapViewChanged(); emit snapBilinearChanged(); emit stateNameChanged(); emit burninChanged(); emit autoFrameSkipChanged(); emit frameSkipChanged(); emit secondsToRunChanged(); emit throttleChanged(); emit sleepChanged(); emit speedChanged(); emit refreshSpeedChanged(); emit rotateChanged(); emit rorChanged(); emit rolChanged(); emit autoRorChanged(); emit autoRolChanged(); emit flipXChanged(); emit flipYChanged(); emit artworkCropChanged(); emit useBackdropsChanged(); emit useOverlaysChanged(); emit useBezelsChanged(); emit useCPanelsChanged(); emit useMarqueesChanged(); emit brightnessChanged(); emit contrastChanged(); emit gammaChanged(); emit effectChanged(); emit beamChanged(); emit flickerChanged(); emit sampleRateChanged(); emit samplesChanged(); emit volumeChanged(); emit coinLockoutChanged(); emit ctrlrChanged(); emit mouseChanged(); emit joystickChanged(); emit lightgunChanged(); emit multiKeyboardChanged(); emit multiMouseChanged(); emit steadyKeyChanged(); emit uiActiveChanged(); emit offScreenReloadChanged(); emit joystickMapChanged(); emit joystickDeadzoneChanged(); emit joystickSaturationChanged(); emit naturalChanged(); emit joystickContradictoryChanged(); emit coinImpulseChanged(); emit paddleDeviceChanged(); emit adstickDeviceChanged(); emit pedalDeviceChanged(); emit dialDeviceChanged(); emit trackballDeviceChanged(); emit lightgunDeviceChanged(); emit positionalDeviceChanged(); emit mouseDeviceChanged(); emit verboseChanged(); emit logChanged(); emit osLogChanged(); emit debugChanged(); emit updateInPauseChanged(); emit debugScriptChanged(); emit sdlVideoFPSChanged(); emit commLocalHostChanged(); emit commLocalPortChanged(); emit commRemoteHostChanged(); emit commRemotePortChanged(); emit antiAliasChanged(); emit drcChanged(); emit drcUseCChanged(); emit drcLogUMLChanged(); emit drcLogNativeChanged(); emit biosChanged(); emit cheatChanged(); emit skipGameInfoChanged(); emit uiFontChanged(); emit ramSizeChanged(); emit confirmQuitChanged(); emit uiMouseChanged(); emit autoBootCommandChanged(); emit autoBootDelayChanged(); emit autoBootScriptChanged(); emit httpChanged(); emit httpPortChanged(); emit httpPathChanged(); emit consoleChanged(); emit multiThreadingChanged(); emit numProcessorsChanged(); emit videoChanged(); emit numScreensChanged(); emit windowChanged(); emit maximizeChanged(); emit keepAspectChanged(); emit unevenStretchChanged(); emit waitVSyncChanged(); emit syncRefreshChanged(); emit screenChanged(); emit aspectChanged(); emit resolutionChanged(); emit viewChanged(); emit switchResChanged(); emit filterChanged(); emit prescaleChanged(); emit glForcePow2TextureChanged(); emit glNoTextureRectChanged(); emit glVboChanged(); emit glPboChanged(); emit glGlslChanged(); emit glGlslFilterChanged(); emit soundChanged(); emit audioLatencyChanged(); emit centerHChanged(); emit centerVChanged(); emit scaleModeChanged(); emit useAllHeadsChanged(); emit keymapChanged(); emit keymapFileChanged(); emit sixAxisChanged(); emit videoDriverChanged(); emit renderDriverChanged(); emit audioDriverChanged(); emit glLibChanged(); }
Monitor::Monitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *parent) : AbstractMonitor(id, manager, parent) , render(NULL) , m_controller(NULL) , m_glMonitor(NULL) , m_splitEffect(NULL) , m_splitProducer(NULL) , m_length(2) , m_dragStarted(false) , m_recManager(NULL) , m_loopClipAction(NULL) , m_effectCompare(NULL) , m_sceneVisibilityAction(NULL) , m_contextMenu(NULL) , m_selectedClip(NULL) , m_loopClipTransition(true) , m_editMarker(NULL) , m_forceSizeFactor(0) , m_rootItem(NULL) , m_lastMonitorSceneType(MonitorSceneNone) { QVBoxLayout *layout = new QVBoxLayout; layout->setContentsMargins(0, 0, 0, 0); layout->setSpacing(0); // Create container widget m_glWidget = new QWidget; QGridLayout* glayout = new QGridLayout(m_glWidget); glayout->setSpacing(0); glayout->setContentsMargins(0, 0, 0, 0); // Create QML OpenGL widget m_glMonitor = new GLWidget(); m_videoWidget = QWidget::createWindowContainer(qobject_cast<QWindow*>(m_glMonitor)); glayout->addWidget(m_videoWidget, 0, 0); m_verticalScroll = new QScrollBar(Qt::Vertical); glayout->addWidget(m_verticalScroll, 0, 1); m_verticalScroll->hide(); m_horizontalScroll = new QScrollBar(Qt::Horizontal); glayout->addWidget(m_horizontalScroll, 1, 0); m_horizontalScroll->hide(); connect(m_horizontalScroll, SIGNAL(valueChanged(int)), m_glMonitor, SLOT(setOffsetX(int))); connect(m_verticalScroll, SIGNAL(valueChanged(int)), m_glMonitor, SLOT(setOffsetY(int))); connect(m_glMonitor, SIGNAL(frameDisplayed(const SharedFrame&)), this, SLOT(onFrameDisplayed(const SharedFrame&))); connect(m_glMonitor, SIGNAL(mouseSeek(int,bool)), this, SLOT(slotMouseSeek(int,bool))); connect(m_glMonitor, SIGNAL(monitorPlay()), this, SLOT(slotPlay())); connect(m_glMonitor, SIGNAL(startDrag()), this, SLOT(slotStartDrag())); connect(m_glMonitor, SIGNAL(switchFullScreen(bool)), this, SLOT(slotSwitchFullScreen(bool))); connect(m_glMonitor, SIGNAL(zoomChanged()), this, SLOT(setZoom())); connect(m_glMonitor, SIGNAL(effectChanged(QRect)), this, SIGNAL(effectChanged(QRect))); connect(m_glMonitor, SIGNAL(effectChanged(QVariantList)), this, SIGNAL(effectChanged(QVariantList))); if (KdenliveSettings::displayMonitorInfo()) { // Load monitor overlay qml m_glMonitor->setSource(QUrl::fromLocalFile(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("kdenlivemonitor.qml")))); m_rootItem = m_glMonitor->rootObject(); } connect(m_glMonitor, SIGNAL(showContextMenu(QPoint)), this, SLOT(slotShowMenu(QPoint))); m_glWidget->setMinimumSize(QSize(320, 180)); layout->addWidget(m_glWidget, 10); layout->addStretch(); // Get base size for icons int s = style()->pixelMetric(QStyle::PM_SmallIconSize); // Tool bar buttons m_toolbar = new QToolBar(this); m_toolbar->setIconSize(QSize(s, s)); QWidget *sp1 = new QWidget(this); sp1->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred); m_toolbar->addWidget(sp1); if (id == Kdenlive::ClipMonitor) { // Add options for recording m_recManager = new RecManager(s, this); connect(m_recManager, &RecManager::warningMessage, this, &Monitor::warningMessage); connect(m_recManager, &RecManager::addClipToProject, this, &Monitor::addClipToProject); } if (id != Kdenlive::DvdMonitor) { m_toolbar->addAction(manager->getAction("mark_in")); m_toolbar->addAction(manager->getAction("mark_out")); } m_toolbar->addAction(manager->getAction("monitor_seek_backward")); QToolButton *playButton = new QToolButton(m_toolbar); m_playMenu = new QMenu(i18n("Play..."), this); m_playAction = static_cast<KDualAction*> (manager->getAction("monitor_play")); m_playMenu->addAction(m_playAction); playButton->setMenu(m_playMenu); playButton->setPopupMode(QToolButton::MenuButtonPopup); m_toolbar->addWidget(playButton); m_toolbar->addAction(manager->getAction("monitor_seek_forward")); playButton->setDefaultAction(m_playAction); m_configMenu = new QMenu(i18n("Misc..."), this); if (id != Kdenlive::DvdMonitor) { if (id == Kdenlive::ClipMonitor) { m_markerMenu = new QMenu(i18n("Go to marker..."), this); m_markerMenu->setEnabled(false); m_configMenu->addMenu(m_markerMenu); connect(m_markerMenu, SIGNAL(triggered(QAction*)), this, SLOT(slotGoToMarker(QAction*))); } m_forceSize = new KSelectAction(QIcon::fromTheme("transform-scale"), i18n("Force Monitor Size"), this); QAction *fullAction = m_forceSize->addAction(QIcon(), i18n("Force 100%")); fullAction->setData(100); QAction *halfAction = m_forceSize->addAction(QIcon(), i18n("Force 50%")); halfAction->setData(50); QAction *freeAction = m_forceSize->addAction(QIcon(), i18n("Free Resize")); freeAction->setData(0); m_configMenu->addAction(m_forceSize); m_forceSize->setCurrentAction(freeAction); connect(m_forceSize, SIGNAL(triggered(QAction*)), this, SLOT(slotForceSize(QAction*))); }
void KPrTransEffectDia::effectChanged() { effectChanged( effectList->currentItem() ); }
GeometryWidget::GeometryWidget(Monitor* monitor, const Timecode &timecode, int clipPos, bool showRotation, QWidget* parent): QWidget(parent), m_monitor(monitor), m_timePos(new TimecodeDisplay(timecode)), m_clipPos(clipPos), m_inPoint(0), m_outPoint(1), m_previous(NULL), m_geometry(NULL), m_fixedGeom(false) { m_ui.setupUi(this); setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum); connect(m_monitor, SIGNAL(effectChanged(QRect)), this, SLOT(slotUpdateGeometry(QRect))); /*MonitorEditWidget *edit = monitor->getEffectEdit(); edit->removeCustomControls(); edit->addCustomButton(KoIconUtils::themedIcon("draw-path"), i18n("Show path"), this, SLOT(slotShowPath(bool)), true, KdenliveSettings::onmonitoreffects_geometryshowpath()); edit->addCustomButton(KoIconUtils::themedIcon("transform-crop"), i18n("Show previous keyframe"), this, SLOT(slotShowPreviousKeyFrame(bool)), true, KdenliveSettings::onmonitoreffects_geometryshowprevious()); m_scene = edit->getScene(); m_scene->cleanup();*/ /* Setup of timeline and keyframe controls */ ((QGridLayout *)(m_ui.widgetTimeWrapper->layout()))->addWidget(m_timePos, 1, 5); QVBoxLayout *layout = new QVBoxLayout(m_ui.frameTimeline); m_timeline = new KeyframeHelper(m_ui.frameTimeline); layout->addWidget(m_timeline); layout->setContentsMargins(0, 0, 0, 0); int size = style()->pixelMetric(QStyle::PM_SmallIconSize); QSize iconSize(size, size); m_ui.buttonPrevious->setIcon(KoIconUtils::themedIcon(QStringLiteral("media-skip-backward"))); m_ui.buttonPrevious->setToolTip(i18n("Go to previous keyframe")); m_ui.buttonPrevious->setIconSize(iconSize); m_ui.buttonNext->setIcon(KoIconUtils::themedIcon(QStringLiteral("media-skip-forward"))); m_ui.buttonNext->setToolTip(i18n("Go to next keyframe")); m_ui.buttonNext->setIconSize(iconSize); m_ui.buttonAddDelete->setIcon(KoIconUtils::themedIcon(QStringLiteral("list-add"))); m_ui.buttonAddDelete->setToolTip(i18n("Add keyframe")); m_ui.buttonAddDelete->setIconSize(iconSize); connect(m_timeline, SIGNAL(requestSeek(int)), this, SLOT(slotRequestSeek(int))); connect(m_timeline, SIGNAL(keyframeMoved(int)), this, SLOT(slotKeyframeMoved(int))); connect(m_timeline, SIGNAL(addKeyframe(int)), this, SLOT(slotAddKeyframe(int))); connect(m_timeline, SIGNAL(removeKeyframe(int)), this, SLOT(slotDeleteKeyframe(int))); connect(m_timePos, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotPositionChanged())); connect(m_ui.buttonPrevious, SIGNAL(clicked()), this, SLOT(slotPreviousKeyframe())); connect(m_ui.buttonNext, SIGNAL(clicked()), this, SLOT(slotNextKeyframe())); connect(m_ui.buttonAddDelete, SIGNAL(clicked()), this, SLOT(slotAddDeleteKeyframe())); m_spinX = new DragValue(i18nc("x axis position", "X"), 0, 0, -99000, 99000, -1, QString(), false, this); m_ui.horizontalLayout->addWidget(m_spinX, 0, 0); m_spinY = new DragValue(i18nc("y axis position", "Y"), 0, 0, -99000, 99000, -1, QString(), false, this); m_ui.horizontalLayout->addWidget(m_spinY, 0, 1); m_spinWidth = new DragValue(i18nc("Frame width", "W"), m_monitor->render->frameRenderWidth(), 0, 1, 99000, -1, QString(), false, this); m_ui.horizontalLayout->addWidget(m_spinWidth, 0, 2); m_spinHeight = new DragValue(i18nc("Frame height", "H"), m_monitor->render->renderHeight(), 0, 1, 99000, -1, QString(), false, this); m_ui.horizontalLayout->addWidget(m_spinHeight, 0, 3); m_ui.horizontalLayout->setColumnStretch(4, 10); QMenu *menu = new QMenu(this); QAction *adjustSize = new QAction(KoIconUtils::themedIcon(QStringLiteral("zoom-fit-best")), i18n("Adjust to original size"), this); connect(adjustSize, SIGNAL(triggered()), this, SLOT(slotAdjustToFrameSize())); QAction *fitToWidth = new QAction(KoIconUtils::themedIcon(QStringLiteral("zoom-fit-width")), i18n("Fit to width"), this); connect(fitToWidth, SIGNAL(triggered()), this, SLOT(slotFitToWidth())); QAction *fitToHeight = new QAction(KoIconUtils::themedIcon(QStringLiteral("zoom-fit-height")), i18n("Fit to height"), this); connect(fitToHeight, SIGNAL(triggered()), this, SLOT(slotFitToHeight())); QAction *importKeyframes = new QAction(i18n("Import keyframes from clip"), this); connect(importKeyframes, SIGNAL(triggered()), this, SIGNAL(importClipKeyframes())); menu->addAction(importKeyframes); QAction *resetKeyframes = new QAction(i18n("Reset all keyframes"), this); connect(resetKeyframes, SIGNAL(triggered()), this, SLOT(slotResetKeyframes())); menu->addAction(resetKeyframes); QAction *resetNextKeyframes = new QAction(i18n("Reset keyframes after cursor"), this); connect(resetNextKeyframes, SIGNAL(triggered()), this, SLOT(slotResetNextKeyframes())); menu->addAction(resetNextKeyframes); QAction *resetPreviousKeyframes = new QAction(i18n("Reset keyframes before cursor"), this); connect(resetPreviousKeyframes, SIGNAL(triggered()), this, SLOT(slotResetPreviousKeyframes())); menu->addAction(resetPreviousKeyframes); menu->addSeparator(); QAction *syncTimeline = new QAction(KoIconUtils::themedIcon(QStringLiteral("edit-link")), i18n("Synchronize with timeline cursor"), this); syncTimeline->setCheckable(true); syncTimeline->setChecked(KdenliveSettings::transitionfollowcursor()); connect(syncTimeline, SIGNAL(toggled(bool)), this, SLOT(slotSetSynchronize(bool))); menu->addAction(syncTimeline); QAction *alignleft = new QAction(KoIconUtils::themedIcon(QStringLiteral("kdenlive-align-left")), i18n("Align left"), this); connect(alignleft, SIGNAL(triggered()), this, SLOT(slotMoveLeft())); QAction *alignhcenter = new QAction(KoIconUtils::themedIcon(QStringLiteral("kdenlive-align-hor")), i18n("Center horizontally"), this); connect(alignhcenter, SIGNAL(triggered()), this, SLOT(slotCenterH())); QAction *alignright = new QAction(KoIconUtils::themedIcon(QStringLiteral("kdenlive-align-right")), i18n("Align right"), this); connect(alignright, SIGNAL(triggered()), this, SLOT(slotMoveRight())); QAction *aligntop = new QAction(KoIconUtils::themedIcon(QStringLiteral("kdenlive-align-top")), i18n("Align top"), this); connect(aligntop, SIGNAL(triggered()), this, SLOT(slotMoveTop())); QAction *alignvcenter = new QAction(KoIconUtils::themedIcon(QStringLiteral("kdenlive-align-vert")), i18n("Center vertically"), this); connect(alignvcenter, SIGNAL(triggered()), this, SLOT(slotCenterV())); QAction *alignbottom = new QAction(KoIconUtils::themedIcon(QStringLiteral("kdenlive-align-bottom")), i18n("Align bottom"), this); connect(alignbottom, SIGNAL(triggered()), this, SLOT(slotMoveBottom())); m_ui.buttonOptions->setMenu(menu); m_ui.buttonOptions->setIcon(KoIconUtils::themedIcon(QStringLiteral("configure"))); m_ui.buttonOptions->setToolTip(i18n("Options")); m_ui.buttonOptions->setIconSize(iconSize); QHBoxLayout *alignLayout = new QHBoxLayout; alignLayout->setSpacing(0); QToolButton *alignButton = new QToolButton; alignButton->setDefaultAction(alignleft); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(alignhcenter); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(alignright); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(aligntop); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(alignvcenter); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(alignbottom); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(adjustSize); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(fitToWidth); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignButton = new QToolButton; alignButton->setDefaultAction(fitToHeight); alignButton->setAutoRaise(true); alignLayout->addWidget(alignButton); alignLayout->addStretch(10); m_ui.horizontalLayout->addLayout(alignLayout, 1, 0, 1, 4); //m_ui.horizontalLayout->addStretch(10); m_spinSize = new DragValue(i18n("Size"), 100, 2, 1, 99000, -1, i18n("%"), false, this); m_ui.horizontalLayout2->addWidget(m_spinSize); m_opacity = new DragValue(i18n("Opacity"), 100, 0, 0, 100, -1, i18n("%"), true, this); m_ui.horizontalLayout2->addWidget(m_opacity); if (showRotation) { m_rotateX = new DragValue(i18n("Rotate X"), 0, 0, -1800, 1800, -1, QString(), true, this); m_rotateX->setObjectName(QStringLiteral("rotate_x")); m_ui.horizontalLayout3->addWidget(m_rotateX); m_rotateY = new DragValue(i18n("Rotate Y"), 0, 0, -1800, 1800, -1, QString(), true, this); m_rotateY->setObjectName(QStringLiteral("rotate_y")); m_ui.horizontalLayout3->addWidget(m_rotateY); m_rotateZ = new DragValue(i18n("Rotate Z"), 0, 0, -1800, 1800, -1, QString(), true, this); m_rotateZ->setObjectName(QStringLiteral("rotate_z")); m_ui.horizontalLayout3->addWidget(m_rotateZ); connect(m_rotateX, SIGNAL(valueChanged(double)), this, SLOT(slotUpdateGeometry())); connect(m_rotateY, SIGNAL(valueChanged(double)), this, SLOT(slotUpdateGeometry())); connect(m_rotateZ, SIGNAL(valueChanged(double)), this, SLOT(slotUpdateGeometry())); } /* Setup of geometry controls */ connect(m_spinX, SIGNAL(valueChanged(double)), this, SLOT(slotSetX(double))); connect(m_spinY, SIGNAL(valueChanged(double)), this, SLOT(slotSetY(double))); connect(m_spinWidth, SIGNAL(valueChanged(double)), this, SLOT(slotSetWidth(double))); connect(m_spinHeight, SIGNAL(valueChanged(double)), this, SLOT(slotSetHeight(double))); connect(m_spinSize, SIGNAL(valueChanged(double)), this, SLOT(slotResize(double))); connect(m_opacity, SIGNAL(valueChanged(double)), this, SLOT(slotSetOpacity(double))); /*connect(m_ui.buttonMoveLeft, SIGNAL(clicked()), this, SLOT(slotMoveLeft())); connect(m_ui.buttonCenterH, SIGNAL(clicked()), this, SLOT(slotCenterH())); connect(m_ui.buttonMoveRight, SIGNAL(clicked()), this, SLOT(slotMoveRight())); connect(m_ui.buttonMoveTop, SIGNAL(clicked()), this, SLOT(slotMoveTop())); connect(m_ui.buttonCenterV, SIGNAL(clicked()), this, SLOT(slotCenterV())); connect(m_ui.buttonMoveBottom, SIGNAL(clicked()), this, SLOT(slotMoveBottom()));*/ /* Setup of configuration controls */ connect(m_monitor, SIGNAL(addKeyframe()), this, SLOT(slotAddKeyframe())); connect(m_monitor, SIGNAL(seekToKeyframe(int)), this, SLOT(slotSeekToKeyframe(int))); connect(this, SIGNAL(parameterChanged()), this, SLOT(slotUpdateProperties())); }