Remove unused class TransformableAutoModel
Also remove .svnignore (I've always wanted to do this!) And a file I accidentally committed
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
Makefile.in
|
||||
*.moc
|
||||
.libs
|
||||
embedded_resources.h
|
||||
.deps
|
||||
Makefile
|
||||
@@ -1,91 +0,0 @@
|
||||
/*
|
||||
* TransformableAutoModel.h - template transformableAutoModel
|
||||
*
|
||||
* Copyright (c) 2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of LMMS - http://lmms.io
|
||||
*
|
||||
* This program 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 (see COPYING); if not, write to the
|
||||
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301 USA.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef TRANSFORMABLE_AUTO_MODEL_H
|
||||
#define TRANSFORMABLE_AUTO_MODEL_H
|
||||
|
||||
#include "AutomatableModel.h"
|
||||
//#include "automatable_model_templates.h"
|
||||
|
||||
|
||||
template<typename T>
|
||||
struct AutoModelTransformer
|
||||
{
|
||||
inline virtual T transform( const T & _val ) const
|
||||
{
|
||||
return( _val );
|
||||
}
|
||||
} ;
|
||||
|
||||
|
||||
template<typename T, typename EDIT_STEP_TYPE>
|
||||
class TransformableAutoModel : public AutomatableModel<T, EDIT_STEP_TYPE>
|
||||
{
|
||||
public:
|
||||
TransformableAutoModel( const AutoModelTransformer<T> * _transformer,
|
||||
const T _val = 0,
|
||||
const T _min = 0,
|
||||
const T _max = 0,
|
||||
const T _step = defaultRelStep(),
|
||||
Model * _parent = NULL,
|
||||
bool _default_constructed = false ) :
|
||||
AutomatableModel( _val, _min, _max, _step, _parent,
|
||||
_default_constructed ),
|
||||
m_transformer( _transformer )
|
||||
{
|
||||
}
|
||||
|
||||
inline virtual ~TransformableAutoModel()
|
||||
{
|
||||
}
|
||||
|
||||
inline virtual void setValue( const T _value )
|
||||
{
|
||||
autoModel::setValue( _value );
|
||||
if( m_transformer != NULL )
|
||||
{
|
||||
m_transformedValue = m_transformer->transform(
|
||||
autoModel::value() );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_transformedValue = autoModel::value();
|
||||
}
|
||||
}
|
||||
|
||||
inline virtual T value() const
|
||||
{
|
||||
return( m_transformedValue );
|
||||
}
|
||||
|
||||
private:
|
||||
T m_transformedValue;
|
||||
const AutoModelTransformer<T> * m_transformer;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
81
qt.cfg
81
qt.cfg
@@ -1,81 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<def>
|
||||
|
||||
<markup ext=".qml" reporterrors="false" aftercode="true">
|
||||
|
||||
<!-- keywords in QML code to ignore -->
|
||||
<keywords>
|
||||
<keyword name="if"/>
|
||||
<keyword name="while"/>
|
||||
<keyword name="typeof"/>
|
||||
<keyword name="for"/>
|
||||
</keywords>
|
||||
|
||||
<!-- code blocks are meta-code/pseudo code placed in the library
|
||||
that is used/called by the native c/c++ code -->
|
||||
<codeblocks>
|
||||
<!-- need to add all the QML function names below -->
|
||||
<block name="onClicked"/>
|
||||
<block name="onFinished"/>
|
||||
<block name="onTriggered"/>
|
||||
<block name="onRetrieveTriggered"/>
|
||||
<block name="onPressed"/>
|
||||
<block name="onTouch"/>
|
||||
<block name="onFocusedChanged"/>
|
||||
<block name="onSubmittedNewStatusChanged"/>
|
||||
<block name="onCreationCompleted"/>
|
||||
<block name="onFileSelected"/>
|
||||
<!-- code block structure in QML is:
|
||||
onClicked: {
|
||||
call(var)
|
||||
} -->
|
||||
<structure offset="3" start="{" end="}"/>
|
||||
<!-- the start block is '3' tokens after the
|
||||
name token so we skip them -->
|
||||
</codeblocks>
|
||||
|
||||
<codeblocks>
|
||||
<block name="function"/>
|
||||
<!-- code block structure in QML is:
|
||||
funnction x(args): {
|
||||
call(var)
|
||||
} -->
|
||||
<structure offset="2" start="{" end="}"/>
|
||||
</codeblocks>
|
||||
|
||||
<!-- Qt Properties have the format :
|
||||
Q_PROPERTY(<type> <name> READ <func> WRITE <func> NOTIFY <func>)
|
||||
the READ/WRITE/NOTIFY parts are optional -->
|
||||
<exported>
|
||||
<exporter prefix="Q_PROPERTY">
|
||||
<suffix>READ</suffix> <!-- catch the element before READ if present -->
|
||||
<prefix>READ</prefix>
|
||||
<prefix>WRITE</prefix>
|
||||
<prefix>NOTIFY</prefix>
|
||||
</exporter>
|
||||
</exported>
|
||||
|
||||
<!-- qml files can call connect on the c++ code -->
|
||||
<imported>
|
||||
<importer>connect</importer>
|
||||
</imported>
|
||||
</markup>
|
||||
|
||||
<!-- qt can call methods as strings using invokeMethod -->
|
||||
<reflection>
|
||||
<call arg="2">invokeMethod</call>
|
||||
</reflection>
|
||||
|
||||
<!-- the SLOT/SIGNAL methods can be cause false-positives for pure
|
||||
virtual functions being called in the constructor because it sees
|
||||
the macro as a function. -->
|
||||
<function name="SLOT">
|
||||
<ignorefunction>true</ignorefunction>
|
||||
</function>
|
||||
<function name="SIGNAL">
|
||||
<ignorefunction>true</ignorefunction>
|
||||
</function>
|
||||
|
||||
<define name="Q_DECL_EXPORT" value=""/>
|
||||
<define name="Q_DECL_IMPORT" value=""/>
|
||||
</def>
|
||||
Reference in New Issue
Block a user