1 /***************************************************************************
2 * Copyright (C) 2011 by Till Theato (root@ttill.de) *
3 * This file is part of Kdenlive (www.kdenlive.org). *
5 * Kdenlive is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
10 * Kdenlive is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with Kdenlive. If not, see <http://www.gnu.org/licenses/>. *
17 ***************************************************************************/
19 #ifndef MONITOREDITWIDGET_H_
20 #define MONITOREDITWIDGET_H_
22 #include "ui_monitoreditwidget_ui.h"
34 class MonitorEditWidget : public QWidget
39 MonitorEditWidget(Render *renderer, QWidget* parent = 0);
40 virtual ~MonitorEditWidget();
42 /** @brief Updates the necessary settings on a profile change. */
43 void resetProfile(Render *renderer);
45 /** @brief Returns the on-monitor scene. */
46 MonitorScene *getScene();
48 /** @brief Returns the action toggling between the normal monitor and the editor. */
49 QAction *getVisibilityAction();
50 /** @brief Shows/Hides the visibility button/action. */
51 void showVisibilityButton(bool show);
53 /** @brief Adds a custom widget to the controls. */
54 void addCustomControl(QWidget *widget);
55 /** @brief Empties the list of custom controls. */
56 void removeCustomControls();
59 /** @brief Sets the KdenliveSetting directupdate with true = update parameters (rerender frame) during mouse move (before mouse button is released) */
60 void slotSetDirectUpdate(bool directUpdate);
63 Ui::MonitorEditWidget_UI m_ui;
64 MonitorScene *m_scene;
65 QGraphicsView *m_view;
66 QAction *m_visibilityAction;
67 QVBoxLayout *m_customControlsLayout;
70 /** true = show edit monitor, false = show normal monitor */
71 void showEdit(bool show);