[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src sheetcanvas/FadeView.cpp sheetcanv...
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src sheetcanvas/FadeView.cpp sheetcanv... |
Date: |
Sat, 24 May 2008 17:27:50 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 08/05/24 17:27:50
Modified files:
src/sheetcanvas: FadeView.cpp FadeView.h
Removed files:
src/traverso : FadeContextDialog.cpp FadeContextDialog.h
Log message:
* remove FadeContextDialog, it has been obsoleted long time ago
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/FadeView.cpp?cvsroot=traverso&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/FadeView.h?cvsroot=traverso&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/FadeContextDialog.cpp?cvsroot=traverso&r1=1.7&r2=0
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/FadeContextDialog.h?cvsroot=traverso&r1=1.2&r2=0
Patches:
Index: sheetcanvas/FadeView.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/FadeView.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- sheetcanvas/FadeView.cpp 21 Jan 2008 16:17:28 -0000 1.1
+++ sheetcanvas/FadeView.cpp 24 May 2008 17:27:49 -0000 1.2
@@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-$Id: FadeView.cpp,v 1.1 2008/01/21 16:17:28 r_sijrier Exp $
+$Id: FadeView.cpp,v 1.2 2008/05/24 17:27:49 r_sijrier Exp $
*/
#include "FadeView.h"
@@ -26,7 +26,6 @@
#include "FadeCurve.h"
#include "AudioClipView.h"
-#include "FadeContextDialog.h"
#include "SheetView.h"
#include "Interface.h"
#include <Themer.h>
Index: sheetcanvas/FadeView.h
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/FadeView.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- sheetcanvas/FadeView.h 21 Jan 2008 16:17:28 -0000 1.1
+++ sheetcanvas/FadeView.h 24 May 2008 17:27:49 -0000 1.2
@@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-$Id: FadeView.h,v 1.1 2008/01/21 16:17:28 r_sijrier Exp $
+$Id: FadeView.h,v 1.2 2008/05/24 17:27:49 r_sijrier Exp $
*/
#ifndef FADE_VIEW_H
@@ -27,7 +27,6 @@
class Curve;
class FadeCurve;
-class FadeContextDialog;
class AudioClipView;
class FadeView : public ViewItem
Index: traverso/FadeContextDialog.cpp
===================================================================
RCS file: traverso/FadeContextDialog.cpp
diff -N traverso/FadeContextDialog.cpp
--- traverso/FadeContextDialog.cpp 5 Nov 2007 15:49:31 -0000 1.7
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,140 +0,0 @@
-/*
-Copyright (C) 2006 Remon Sijrier
-
-This file is part of Traverso
-
-Traverso is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-
-$Id: FadeContextDialog.cpp,v 1.7 2007/11/05 15:49:31 r_sijrier Exp $
-*/
-
-#include "FadeContextDialog.h"
-#include "FadeContextDialogView.h"
-#include "ViewPort.h"
-#include "FadeCurve.h"
-
-#include <QWidget>
-#include <QHBoxLayout>
-#include <QVBoxLayout>
-#include <QLabel>
-
-
-FadeContextDialog::FadeContextDialog(FadeCurve* fadeCurve)
- : ContextDialog(), m_fade(fadeCurve)
-{
-// m_fadeCDV = new FadeContextDialogView(m_vp, fadeCurve);
-
- setWindowTitle(tr("Fade Editor"));
-
- // set the background color
- setAutoFillBackground(false);
- setAttribute(Qt::WA_PaintOnScreen);
-
- resize(450, 220);
-
- QVBoxLayout* mainlayout = new QVBoxLayout(this);
-
- QWidget* definitionWidget = new QWidget(this);
- QHBoxLayout* definitionLayout = new QHBoxLayout(definitionWidget);
-
- QLabel* rasterDef = new QLabel("Raster: <r>");
- QLabel* bendDef = new QLabel("Bend: [b]");
- QLabel* strengthDef = new QLabel("Strength: [s]");
- QLabel* modeDef = new QLabel("Mode: <m>");
- QLabel* resetDef = new QLabel("Reset: <l>");
-
- definitionLayout->addWidget(rasterDef);
- definitionLayout->addWidget(bendDef);
- definitionLayout->addWidget(strengthDef);
- definitionLayout->addWidget(modeDef);
- definitionLayout->addWidget(resetDef);
- definitionLayout->setMargin(0);
- definitionLayout->setSpacing(0);
- definitionWidget->setLayout(definitionLayout);
-
-
- QWidget* valuesWidget = new QWidget(this);
- QHBoxLayout* valuesLayout = new QHBoxLayout(valuesWidget);
-
- m_bendLabel = new QLabel();
- m_strengthLabel = new QLabel();
- m_modeLabel = new QLabel();
- m_rasterLabel = new QLabel();
- update_bend_value();
- update_mode_value();
- update_raster_value();
- update_strength_value();
-
- valuesLayout->addWidget(m_bendLabel);
- valuesLayout->addWidget(m_strengthLabel);
- valuesLayout->addWidget(m_modeLabel);
- valuesLayout->addWidget(m_rasterLabel);
- valuesLayout->setMargin(0);
- valuesLayout->setSpacing(0);
- valuesWidget->setLayout(valuesLayout);
-
- mainlayout->addWidget(definitionWidget);
-// mainlayout->addWidget(m_vp, 10);
- mainlayout->addWidget(valuesWidget);
- mainlayout->setMargin(0);
- mainlayout->setSpacing(2);
-
- setLayout(mainlayout);
-
- connect(m_fade, SIGNAL(modeChanged()), this, SLOT(update_mode_value()));
- connect(m_fade, SIGNAL(bendValueChanged()), this,
SLOT(update_bend_value()));
- connect(m_fade, SIGNAL(strengthValueChanged()), this,
SLOT(update_strength_value()));
- connect(m_fade, SIGNAL(rasterChanged()), this,
SLOT(update_raster_value()));
-}
-
-FadeContextDialog::~FadeContextDialog()
-{
-}
-
-void FadeContextDialog::update_bend_value( )
-{
- m_bendLabel->setText(QString("Bending:
%1").arg(m_fade->get_bend_factor(), 0, 'f', 2));
-}
-
-void FadeContextDialog::update_strength_value( )
-{
- m_strengthLabel->setText(QString("Strength:
%1").arg(m_fade->get_strength_factor(), 0, 'f', 2));
-}
-
-void FadeContextDialog::update_raster_value( )
-{
- if (m_fade->get_raster()) {
- m_rasterLabel->setText("Raster: on");
- } else {
- m_rasterLabel->setText("Raster: off");
- }
-}
-
-void FadeContextDialog::update_mode_value( )
-{
- if (m_fade->get_bend_factor() == 0.5) {
- m_modeLabel->setText("Mode: linear");
- } else {
- if (m_fade->get_mode() == 0)
- m_modeLabel->setText("Mode: bended");
- if (m_fade->get_mode() == 1)
- m_modeLabel->setText("Mode: s-shape");
- if (m_fade->get_mode() == 2)
- m_modeLabel->setText("Mode: long");
- }
-}
-
-
-
Index: traverso/FadeContextDialog.h
===================================================================
RCS file: traverso/FadeContextDialog.h
diff -N traverso/FadeContextDialog.h
--- traverso/FadeContextDialog.h 7 Aug 2006 19:15:23 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,59 +0,0 @@
-/*
-Copyright (C) 2006 Remon Sijrier
-
-This file is part of Traverso
-
-Traverso is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-
-$Id: FadeContextDialog.h,v 1.2 2006/08/07 19:15:23 r_sijrier Exp $
-*/
-
-#ifndef FADE_CONTEXT_DIALOG_H
-#define FADE_CONTEXT_DIALOG_H
-
-#include "ContextDialog.h"
-
-#include <QLabel>
-
-class FadeContextDialogView;
-class FadeCurve;
-
-class FadeContextDialog : public ContextDialog
-{
- Q_OBJECT
-
-public:
- FadeContextDialog(FadeCurve* fadeCurve);
- ~FadeContextDialog();
-
-private:
- FadeContextDialogView* m_fadeCDV;
- FadeCurve* m_fade;
-
- QLabel* m_bendLabel;
- QLabel* m_strengthLabel;
- QLabel* m_modeLabel;
- QLabel* m_rasterLabel;
-
-public slots:
- void update_bend_value();
- void update_strength_value();
- void update_raster_value();
- void update_mode_value();
-};
-
-#endif
-
-//eof
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Traverso-commit] traverso/src sheetcanvas/FadeView.cpp sheetcanv...,
Remon Sijrier <=