class RecMonitor;
class CustomTrackView;
class RenderWidget;
+#ifndef NO_JOGSHUTTLE
class JogShuttle;
+#endif /* NO_JOGSHUTTLE */
class DocClipBase;
class Render;
Q_OBJECT
public:
- MainWindow(const QString &MltPath = QString(), QWidget *parent = 0);
+ /** Constructor
+ * \param MltPath path to MLT environment
+ * \param Url Url to open
+ * \param parent Std. widget parent
+ *
+ * The constructor inits the main window. If Url is present, it will be opened.
+ * If Url is not present, and openLastproject is set, last project will be set
+ * If no file is open after trying this, a default "newfile" will be created. */
+ MainWindow(const QString &MltPath = QString(), const KUrl & Url = KUrl(), QWidget *parent = 0);
void parseProfiles(const QString &mltPath = QString());
static EffectsList videoEffects;
virtual bool queryClose();
virtual void customEvent(QEvent * e);
virtual void keyPressEvent(QKeyEvent *ke);
+ /** Override hideEvent to get events when the mainwindow gets hidden */
+ virtual void hideEvent(QHideEvent *e);
bool eventFilter(QObject *obj, QEvent *ev);
/**
* This function is called when it is time for the app to save its
RenderWidget *m_renderWidget;
+#ifndef NO_JOGSHUTTLE
JogShuttle *m_jogProcess;
+#endif /* NO_JOGSHUTTLE */
KRecentFilesAction *m_fileOpenRecent;
KAction *m_projectSearch;
void readOptions();
void saveOptions();
+#ifndef NO_JOGSHUTTLE
void activateShuttleDevice();
void slotShuttleAction(int code);
+#endif /* NO_JOGSHUTTLE */
void connectDocumentInfo(KdenliveDoc *doc);
void findAhead();
void doOpenFile(const KUrl &url, KAutoSaveFile *stale);
void slotAddCustomEffect(QAction *result);
void slotAddTransition(QAction *result);
void slotAddProjectClip(KUrl url);
+#ifndef NO_JOGSHUTTLE
void slotShuttleButton(int code);
+#endif /* NO_JOGSHUTTLE */
void slotShowClipProperties(DocClipBase *clip);
void slotActivateEffectStackView();
void slotActivateTransitionView();