]> git.sesse.net Git - kdenlive/blobdiff - src/monitoreditwidget.h
Rewrote DVD creation, should now support correctly 4:3 and 16:9 menus, letterbox...
[kdenlive] / src / monitoreditwidget.h
index 843a2bb13e31d6ca80d117d86e971f22dd28b03a..34f3b07c8ae840a14a1851bc58101e001918a13b 100644 (file)
@@ -22,7 +22,9 @@
 #include "ui_monitoreditwidget_ui.h"
 
 #include <QWidget>
+#include <QGraphicsView>
 
+class QIcon;
 class MonitorScene;
 class Render;
 class QGraphicsView;
@@ -30,13 +32,12 @@ class QToolButton;
 class QVBoxLayout;
 
 
-
 class MonitorEditWidget : public QWidget
 {
     Q_OBJECT
 
 public:
-    MonitorEditWidget(Render *renderer, QWidget* parent = 0);
+    explicit MonitorEditWidget(Render *renderer, QWidget* parent = 0);
     virtual ~MonitorEditWidget();
 
     /** @brief Updates the necessary settings on a profile change. */
@@ -52,13 +53,15 @@ public:
 
     /** @brief Adds a custom widget to the controls. */
     void addCustomControl(QWidget *widget);
+    void addCustomButton(const QIcon &icon, const QString &text, const QObject *receiver, const char *member, bool checkable = true, bool checked = true);
     /** @brief Empties the list of custom controls. */
     void removeCustomControls();
 
 private slots:
     /** @brief Sets the KdenliveSetting directupdate with true = update parameters (rerender frame) during mouse move (before mouse button is released) */
     void slotSetDirectUpdate(bool directUpdate);
-
+    /** @brief Update zoom slider value */
+    void slotZoom(int value);
 private:
     Ui::MonitorEditWidget_UI m_ui;
     MonitorScene *m_scene;
@@ -68,7 +71,7 @@ private:
 
 signals:
     /** true = show edit monitor, false = show normal monitor */
-    void showEdit(bool show);
+    void showEdit(bool show, bool manuallyTriggered = true);
 };