+
+ m_timecodeFormat = new KComboBox(this);
+ m_timecodeFormat->addItem(i18n("hh:mm:ss::ff"));
+ m_timecodeFormat->addItem(i18n("Frames"));
+
+ statusProgressBar = new QProgressBar(this);
+ statusProgressBar->setMinimum(0);
+ statusProgressBar->setMaximum(100);
+ statusProgressBar->setMaximumWidth(150);
+ statusProgressBar->setVisible(false);
+
+ QWidget *w = new QWidget;
+
+ QHBoxLayout *layout = new QHBoxLayout;
+ w->setLayout(layout);
+ layout->setContentsMargins(5, 0, 5, 0);
+ QToolBar *toolbar = new QToolBar("statusToolBar", this);
+
+
+ m_toolGroup = new QActionGroup(this);
+
+ QString style1 = "QToolButton {background-color: rgba(230, 230, 230, 220); border-style: inset; border:1px solid #999999;border-radius: 3px;margin: 0px 3px;padding: 0px;} QToolButton:checked { background-color: rgba(224, 224, 0, 100); border-style: inset; border:1px solid #cc6666;border-radius: 3px;}";
+
+ m_buttonSelectTool = toolbar->addAction(KIcon("kdenlive-select-tool"), i18n("Selection tool"));
+ m_buttonSelectTool->setCheckable(true);
+ m_buttonSelectTool->setChecked(true);
+
+ m_buttonRazorTool = toolbar->addAction(KIcon("edit-cut"), i18n("Razor tool"));
+ m_buttonRazorTool->setCheckable(true);
+ m_buttonRazorTool->setChecked(false);
+
+ m_toolGroup->addAction(m_buttonSelectTool);
+ m_toolGroup->addAction(m_buttonRazorTool);
+ m_toolGroup->setExclusive(true);
+ toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly);
+
+ QWidget * actionWidget;
+ actionWidget = toolbar->widgetForAction(m_buttonSelectTool);
+ actionWidget->setMaximumWidth(24);
+ actionWidget->setMinimumHeight(17);
+
+ actionWidget = toolbar->widgetForAction(m_buttonRazorTool);
+ actionWidget->setMaximumWidth(24);
+ actionWidget->setMinimumHeight(17);
+
+ toolbar->setStyleSheet(style1);
+ connect(m_toolGroup, SIGNAL(triggered(QAction *)), this, SLOT(slotChangeTool(QAction *)));
+
+ toolbar->addSeparator();
+ m_buttonFitZoom = toolbar->addAction(KIcon("zoom-fit-best"), i18n("Fit zoom to project"));
+ m_buttonFitZoom->setCheckable(false);
+ connect(m_buttonFitZoom, SIGNAL(triggered()), this, SLOT(slotFitZoom()));
+
+ actionWidget = toolbar->widgetForAction(m_buttonFitZoom);
+ actionWidget->setMaximumWidth(24);
+ actionWidget->setMinimumHeight(17);
+
+ m_zoomSlider = new QSlider(Qt::Horizontal, this);
+ m_zoomSlider->setMaximum(13);
+
+ m_zoomSlider->setMaximumWidth(150);
+ m_zoomSlider->setMinimumWidth(100);
+
+ const int contentHeight = QFontMetrics(w->font()).height() + 8;
+ QString style = "QSlider::groove:horizontal { background-color: rgba(230, 230, 230, 220);border: 1px solid #999999;height: 8px;border-radius: 3px;margin-top:3px }";
+ style.append("QSlider::handle:horizontal { background-color: white; border: 1px solid #999999;width: 9px;margin: -2px 0;border-radius: 3px; }");
+ m_zoomSlider->setStyleSheet(style);
+
+ //m_zoomSlider->setMaximumHeight(contentHeight);
+ //m_zoomSlider->height() + 5;
+ statusBar()->setMinimumHeight(contentHeight);
+
+
+ toolbar->addWidget(m_zoomSlider);
+
+ m_buttonVideoThumbs = toolbar->addAction(KIcon("kdenlive-show-videothumb"), i18n("Show video thumbnails"));
+ m_buttonVideoThumbs->setCheckable(true);
+ m_buttonVideoThumbs->setChecked(KdenliveSettings::videothumbnails());
+ connect(m_buttonVideoThumbs, SIGNAL(triggered()), this, SLOT(slotSwitchVideoThumbs()));
+
+ m_buttonAudioThumbs = toolbar->addAction(KIcon("kdenlive-show-audiothumb"), i18n("Show audio thumbnails"));
+ m_buttonAudioThumbs->setCheckable(true);
+ m_buttonAudioThumbs->setChecked(KdenliveSettings::audiothumbnails());
+ connect(m_buttonAudioThumbs, SIGNAL(triggered()), this, SLOT(slotSwitchAudioThumbs()));
+
+ m_buttonShowMarkers = toolbar->addAction(KIcon("kdenlive-show-markers"), i18n("Show markers comments"));
+ m_buttonShowMarkers->setCheckable(true);
+ m_buttonShowMarkers->setChecked(KdenliveSettings::showmarkers());
+ connect(m_buttonShowMarkers, SIGNAL(triggered()), this, SLOT(slotSwitchMarkersComments()));
+
+ m_buttonSnap = toolbar->addAction(KIcon("kdenlive-snap"), i18n("Snap"));
+ m_buttonSnap->setCheckable(true);
+ m_buttonSnap->setChecked(KdenliveSettings::snaptopoints());
+ connect(m_buttonSnap, SIGNAL(triggered()), this, SLOT(slotSwitchSnap()));
+ layout->addWidget(toolbar);
+
+
+ actionWidget = toolbar->widgetForAction(m_buttonVideoThumbs);
+ actionWidget->setMaximumWidth(24);
+ actionWidget->setMinimumHeight(17);
+
+ actionWidget = toolbar->widgetForAction(m_buttonAudioThumbs);
+ actionWidget->setMaximumWidth(24);
+ actionWidget->setMinimumHeight(17);
+
+ actionWidget = toolbar->widgetForAction(m_buttonShowMarkers);
+ actionWidget->setMaximumWidth(24);
+ actionWidget->setMinimumHeight(17);
+
+ actionWidget = toolbar->widgetForAction(m_buttonSnap);
+ actionWidget->setMaximumWidth(24);
+ actionWidget->setMinimumHeight(17);
+
+ m_messageLabel = new StatusBarMessageLabel(this);
+ m_messageLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
+
+ statusBar()->addWidget(m_messageLabel, 10);
+ statusBar()->addWidget(statusProgressBar, 0);
+ statusBar()->insertPermanentWidget(ID_TIMELINE_BUTTONS, w);
+ statusBar()->insertPermanentFixedItem("00:00:00:00", ID_TIMELINE_POS);
+ statusBar()->insertPermanentWidget(ID_TIMELINE_FORMAT, m_timecodeFormat);
+ statusBar()->setMaximumHeight(statusBar()->font().pointSize() * 4);
+ m_messageLabel->hide();
+
+ actionCollection()->addAction("select_tool", m_buttonSelectTool);
+ actionCollection()->addAction("razor_tool", m_buttonRazorTool);
+
+ actionCollection()->addAction("show_video_thumbs", m_buttonVideoThumbs);
+ actionCollection()->addAction("show_audio_thumbs", m_buttonAudioThumbs);
+ actionCollection()->addAction("show_markers", m_buttonShowMarkers);
+ actionCollection()->addAction("snap", m_buttonSnap);
+ actionCollection()->addAction("zoom_fit", m_buttonFitZoom);
+
+ m_projectSearch = new KAction(KIcon("edit-find"), i18n("Find"), this);
+ actionCollection()->addAction("project_find", m_projectSearch);
+ connect(m_projectSearch, SIGNAL(triggered(bool)), this, SLOT(slotFind()));
+ m_projectSearch->setShortcut(Qt::Key_Slash);
+
+ m_projectSearchNext = new KAction(KIcon("go-down-search"), i18n("Find Next"), this);
+ actionCollection()->addAction("project_find_next", m_projectSearchNext);
+ connect(m_projectSearchNext, SIGNAL(triggered(bool)), this, SLOT(slotFindNext()));
+ m_projectSearchNext->setShortcut(Qt::Key_F3);
+ m_projectSearchNext->setEnabled(false);
+
+ KAction* profilesAction = new KAction(KIcon("document-new"), i18n("Manage Profiles"), this);