Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/gui/EditorProperty.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by haruneko24, Thu Nov 29 15:49:47 2012 UTC revision 101 by haruneko24, Fri Feb 1 01:09:56 2013 UTC
# Line 8  Line 8 
8    
9  #include "SynthesizerFactory.h"  #include "SynthesizerFactory.h"
10  #include "StyleGeneratorFactory.h"  #include "StyleGeneratorFactory.h"
11    #include "SecondOrderStyleGenerator.h"
12  #include "SimpleStyleGenerator.h"  #include "SimpleStyleGenerator.h"
13  #include "SingerPreferenceItem.h"  #include "SingerPreferenceItem.h"
14  #include "SingerModel.h"  #include "SingerModel.h"
# Line 125  public: Line 126  public:
126      }      }
127  };  };
128    
129    class DefaultStyleGeneratorFactory2 : public StyleGeneratorFactory
130    {
131    public:
132        explicit DefaultStyleGeneratorFactory2(const QString &path = QString()) :
133            StyleGeneratorFactory(path)
134        {
135        }
136    
137        QString author() const
138        {
139            return QString("HAL@shurabaP");
140        }
141    
142        QString comment() const
143        {
144            return QString("This is a test packaged class for AbstractStyleGenerator");
145        }
146    
147        QString web() const
148        {
149            return QString("http://sourceforge.jp/projects/echoes/");
150        }
151    
152        QString name() const
153        {
154            return QString("Simple F0 Generator");
155        }
156    
157        QString iconPath() const
158        {
159            return QString("");
160        }
161    
162        virtual stand::echoes::AbstractStyleGenerator *createGenerator() const
163        {
164            return new stand::echoes::SecondOrderStyleGenerator;
165        }
166    };
167    
168  }  }
169    
170  EditorProperty::EditorProperty()  EditorProperty::EditorProperty()
# Line 179  void EditorProperty::_destroy() Line 219  void EditorProperty::_destroy()
219    
220      _StyleItem defaultStyle = {"Simple Note F0", "Default", new DefaultStyleGeneratorFactory };      _StyleItem defaultStyle = {"Simple Note F0", "Default", new DefaultStyleGeneratorFactory };
221      _styles.append(defaultStyle);      _styles.append(defaultStyle);
222    
223        _StyleItem defaultStyle2 = {"Second Order", "Default", new DefaultStyleGeneratorFactory2 };
224        _styles.append(defaultStyle2);
225  }  }
226    
227  void EditorProperty::setCurrentDir(const QDir &dir)  void EditorProperty::setCurrentDir(const QDir &dir)

Legend:
Removed from v.100  
changed lines
  Added in v.101

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26