Changeset 501
- Timestamp:
- 09/18/08 19:59:29 (5 years ago)
- Location:
- branches/audiofilebrowser
- Files:
-
- 19 modified
-
data/i18n/hydrogen.de.qm (modified) (previous)
-
data/i18n/hydrogen.de.ts (modified) (1 diff)
-
data/i18n/hydrogen.es.ts (modified) (1 diff)
-
data/i18n/hydrogen.fr.ts (modified) (1 diff)
-
data/i18n/hydrogen.hu_HU.ts (modified) (1 diff)
-
data/i18n/hydrogen.it.ts (modified) (1 diff)
-
data/i18n/hydrogen.ja.ts (modified) (1 diff)
-
data/i18n/hydrogen.nl.ts (modified) (1 diff)
-
data/i18n/hydrogen.pl.ts (modified) (1 diff)
-
data/i18n/hydrogen.pt_BR.ts (modified) (1 diff)
-
data/i18n/hydrogen.ru.ts (modified) (1 diff)
-
data/i18n/hydrogen.sv.ts (modified) (1 diff)
-
gui/src/AudioFileBrowser/AudioFileBrowser.cpp (modified) (3 diffs)
-
gui/src/AudioFileBrowser/AudioFileBrowser.h (modified) (1 diff)
-
gui/src/AudioFileBrowser/AudioFileBrowser_UI.ui (modified) (7 diffs)
-
gui/src/InstrumentEditor/InstrumentEditor.cpp (modified) (2 diffs)
-
gui/src/MainForm.cpp (modified) (1 diff)
-
gui/src/PatternEditor/PatternEditorInstrumentList.cpp (modified) (3 diffs)
-
gui/src/SongEditor/SongEditor.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/audiofilebrowser/data/i18n/hydrogen.de.ts
r497 r501 593 593 <message> 594 594 <source>Home</source> 595 <translation type="unfinished">Eigene Dateien</translation> 595 <translation type="unfinished">Persöhnlicher Ordner</translation> 596 </message> 597 <message> 598 <source>Filename to instrument name</source> 599 <translation type="unfinished">Dateiname wird Instrument Name</translation> 596 600 </message> 597 601 </context> -
branches/audiofilebrowser/data/i18n/hydrogen.es.ts
r497 r501 595 595 <translation type="unfinished"></translation> 596 596 </message> 597 <message> 598 <source>Filename to instrument name</source> 599 <translation type="unfinished"></translation> 600 </message> 597 601 </context> 598 602 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.fr.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.hu_HU.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.it.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.ja.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.nl.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.pl.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.pt_BR.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.ru.ts
r497 r501 595 595 <translation type="unfinished"></translation> 596 596 </message> 597 <message> 598 <source>Filename to instrument name</source> 599 <translation type="unfinished"></translation> 600 </message> 597 601 </context> 598 602 <context> -
branches/audiofilebrowser/data/i18n/hydrogen.sv.ts
r497 r501 594 594 <translation type="unfinished"></translation> 595 595 </message> 596 <message> 597 <source>Filename to instrument name</source> 598 <translation type="unfinished"></translation> 599 </message> 596 600 </context> 597 601 <context> -
branches/audiofilebrowser/gui/src/AudioFileBrowser/AudioFileBrowser.cpp
r494 r501 51 51 installEventFilter( this ); 52 52 53 filters << "*.wav" << "*.WAV" << "*.flac"<< "*.FLAC" << "*.aiff" << "*.AIFF"<< "*.au" << "*.AU" ; 53 54 54 55 model = new QDirModel(); 56 // model->setNameFilters(filters); 55 57 model->setFilter( QDir::AllEntries | QDir::NoDotAndDotDot ); 56 58 model->setSorting( QDir::DirsFirst |QDir::Name ); … … 117 119 m_pSampleWaveDisplay->updateDisplay( sEmptySampleFilename ); 118 120 119 120 121 updateModelIndex(); //with this you have a navigation like konqueror 121 122 122 123 if ( model->isDir( index ) ) 123 124 return; 124 125 125 126 QString name = path.section( '/', -1 ); 126 127 … … 251 252 QString AudioFileBrowser::selectedFile() 252 253 { 254 if ( useNameCheckBox->isChecked() ){ 255 m_pselectedFile.append( "___trUe" ); 256 } 253 257 return m_pselectedFile; 254 258 } -
branches/audiofilebrowser/gui/src/AudioFileBrowser/AudioFileBrowser.h
r493 r501 71 71 SampleWaveDisplay *m_pSampleWaveDisplay; 72 72 QString sEmptySampleFilename; 73 73 QStringList filters; 74 74 75 75 -
branches/audiofilebrowser/gui/src/AudioFileBrowser/AudioFileBrowser_UI.ui
r490 r501 6 6 <x>0</x> 7 7 <y>0</y> 8 <width>82 4</width>9 <height>5 29</height>8 <width>821</width> 9 <height>562</height> 10 10 </rect> 11 11 </property> … … 13 13 <string>Dialog</string> 14 14 </property> 15 <widget class="QPushButton" name="openBTN" >16 <property name="geometry" >17 <rect>18 <x>604</x>19 <y>490</y>20 <width>101</width>21 <height>26</height>22 </rect>23 </property>24 <property name="text" >25 <string>Open</string>26 </property>27 </widget>28 15 <widget class="QFrame" name="waveformview" > 29 16 <property name="geometry" > … … 48 35 <y>390</y> 49 36 <width>341</width> 50 <height> 91</height>37 <height>131</height> 51 38 </rect> 52 39 </property> … … 57 44 <enum>QFrame::Raised</enum> 58 45 </property> 59 <widget class="Q Label" name="m_pNameLabel" >46 <widget class="QWidget" name="" > 60 47 <property name="geometry" > 61 48 <rect> … … 63 50 <y>10</y> 64 51 <width>321</width> 65 <height>1 6</height>52 <height>111</height> 66 53 </rect> 67 54 </property> 68 <property name="text" > 69 <string>Name:</string> 70 </property> 55 <layout class="QVBoxLayout" name="verticalLayout_3" > 56 <item> 57 <widget class="QLabel" name="m_pNameLabel" > 58 <property name="text" > 59 <string>Name:</string> 60 </property> 61 </widget> 62 </item> 63 <item> 64 <widget class="QLabel" name="m_pSamplerateLable" > 65 <property name="text" > 66 <string>Samplerate:</string> 67 </property> 68 </widget> 69 </item> 70 <item> 71 <widget class="QLabel" name="m_pNBytesLable" > 72 <property name="text" > 73 <string>Size:</string> 74 </property> 75 </widget> 76 </item> 77 <item> 78 <widget class="QLabel" name="m_pLengthLable" > 79 <property name="text" > 80 <string>Length:</string> 81 </property> 82 </widget> 83 </item> 84 </layout> 71 85 </widget> 72 <widget class="QLabel" name="m_pSamplerateLable" > 73 <property name="geometry" > 74 <rect> 75 <x>10</x> 76 <y>30</y> 77 <width>321</width> 78 <height>16</height> 79 </rect> 80 </property> 81 <property name="text" > 82 <string>Samplerate:</string> 83 </property> 84 </widget> 85 <widget class="QLabel" name="m_pNBytesLable" > 86 <property name="geometry" > 87 <rect> 88 <x>10</x> 89 <y>50</y> 90 <width>321</width> 91 <height>16</height> 92 </rect> 93 </property> 94 <property name="text" > 95 <string>Size:</string> 96 </property> 97 </widget> 98 <widget class="QLabel" name="m_pLengthLable" > 99 <property name="geometry" > 100 <rect> 101 <x>10</x> 102 <y>70</y> 103 <width>321</width> 104 <height>16</height> 105 </rect> 106 </property> 107 <property name="text" > 108 <string>Length:</string> 109 </property> 110 </widget> 111 </widget> 112 <widget class="QPushButton" name="cancelBTN" > 113 <property name="geometry" > 114 <rect> 115 <x>714</x> 116 <y>490</y> 117 <width>101</width> 118 <height>26</height> 119 </rect> 120 </property> 121 <property name="text" > 122 <string>Cancel</string> 123 </property> 124 </widget> 125 <widget class="QPushButton" name="m_pPlayBtn" > 126 <property name="geometry" > 127 <rect> 128 <x>360</x> 129 <y>490</y> 130 <width>111</width> 131 <height>26</height> 132 </rect> 133 </property> 134 <property name="text" > 135 <string>Play Sample</string> 136 </property> 137 </widget> 138 <widget class="QWidget" name="layoutWidget" > 86 </widget> 87 <widget class="QCheckBox" name="playSamplescheckBox" > 139 88 <property name="geometry" > 140 89 <rect> 141 90 <x>10</x> 142 <y>40</y> 143 <width>801</width> 144 <height>341</height> 145 </rect> 146 </property> 147 <layout class="QVBoxLayout" name="verticalLayout" > 148 <item> 149 <widget class="QTreeView" name="treeView" /> 150 </item> 151 <item> 152 <widget class="QLineEdit" name="filelineedit" /> 153 </item> 154 </layout> 155 </widget> 156 <widget class="QCheckBox" name="playSamplescheckBox" > 157 <property name="geometry" > 158 <rect> 159 <x>10</x> 160 <y>490</y> 161 <width>311</width> 91 <y>530</y> 92 <width>271</width> 162 93 <height>21</height> 163 94 </rect> … … 193 124 </property> 194 125 </widget> 126 </item> 127 </layout> 128 </widget> 129 <widget class="QPushButton" name="m_pPlayBtn" > 130 <property name="geometry" > 131 <rect> 132 <x>360</x> 133 <y>490</y> 134 <width>121</width> 135 <height>26</height> 136 </rect> 137 </property> 138 <property name="text" > 139 <string>Play Sample</string> 140 </property> 141 </widget> 142 <widget class="QWidget" name="" > 143 <property name="geometry" > 144 <rect> 145 <x>11</x> 146 <y>41</y> 147 <width>801</width> 148 <height>341</height> 149 </rect> 150 </property> 151 <layout class="QVBoxLayout" name="verticalLayout" > 152 <item> 153 <widget class="QTreeView" name="treeView" /> 154 </item> 155 <item> 156 <layout class="QHBoxLayout" name="horizontalLayout_2" > 157 <item> 158 <widget class="QLineEdit" name="filelineedit" /> 159 </item> 160 </layout> 161 </item> 162 </layout> 163 </widget> 164 <widget class="QWidget" name="" > 165 <property name="geometry" > 166 <rect> 167 <x>550</x> 168 <y>490</y> 169 <width>261</width> 170 <height>61</height> 171 </rect> 172 </property> 173 <layout class="QVBoxLayout" name="verticalLayout_2" > 174 <item> 175 <widget class="QCheckBox" name="useNameCheckBox" > 176 <property name="text" > 177 <string>Filename to instrument name</string> 178 </property> 179 </widget> 180 </item> 181 <item> 182 <layout class="QHBoxLayout" name="horizontalLayout_3" > 183 <item> 184 <widget class="QPushButton" name="openBTN" > 185 <property name="text" > 186 <string>Open</string> 187 </property> 188 </widget> 189 </item> 190 <item> 191 <widget class="QPushButton" name="cancelBTN" > 192 <property name="text" > 193 <string>Cancel</string> 194 </property> 195 </widget> 196 </item> 197 </layout> 195 198 </item> 196 199 </layout> … … 202 205 <tabstop>filelineedit</tabstop> 203 206 <tabstop>playSamplescheckBox</tabstop> 204 <tabstop>m_pPlayBtn</tabstop>205 207 <tabstop>openBTN</tabstop> 206 <tabstop>cancelBTN</tabstop>207 208 </tabstops> 208 209 <resources/> -
branches/audiofilebrowser/gui/src/InstrumentEditor/InstrumentEditor.cpp
r481 r501 498 498 delete fb; 499 499 500 bool fnc = false; 501 if ( filename.endsWith( "___trUe" )){ 502 fnc = true; 503 filename.replace( "___trUe", "" ); 504 } 505 500 506 if (filename != "") { 501 507 // lastUsedDir = fd->directory().absolutePath(); … … 521 527 pLayer = new H2Core::InstrumentLayer(newSample); 522 528 pInstr->set_layer( pLayer, m_nSelectedLayer ); 529 } 530 531 if ( fnc ){ 532 QString newfilename = filename.section( '/', -1 ); 533 newfilename.replace( "." + newfilename.section( '.', -1 ), ""); 534 m_pInstrument->set_name( newfilename ); 523 535 } 524 536 -
branches/audiofilebrowser/gui/src/MainForm.cpp
r472 r501 869 869 Instrument *pNewInstr = new Instrument(to_string( nID ), "New instrument", new ADSR()); 870 870 pList->add( pNewInstr ); 871 Hydrogen::get_instance()->renameJackPorts(); 871 872 AudioEngine::get_instance()->unlock(); 872 873 -
branches/audiofilebrowser/gui/src/PatternEditor/PatternEditorInstrumentList.cpp
r420 r501 531 531 } 532 532 533 534 535 533 } 536 534 … … 558 556 559 557 560 if(sText.startsWith("Songs:") or sText.startsWith("Patterns:") or sText.startsWith("move pattern:")orsText.startsWith("drag pattern:")) return;558 if(sText.startsWith("Songs:") || sText.startsWith("Patterns:") || sText.startsWith("move pattern:") || sText.startsWith("drag pattern:")) return; 561 559 562 560 if (sText.startsWith("move instrument:")) { … … 627 625 event->acceptProposedAction(); 628 626 } 629 630 627 } 631 628 -
branches/audiofilebrowser/gui/src/SongEditor/SongEditor.cpp
r447 r501 1273 1273 ERRORLOG(sText); 1274 1274 1275 if(sText.startsWith("Songs:") orsText.startsWith("Instruments:")) return;1275 if(sText.startsWith("Songs:") || sText.startsWith("Instruments:")) return; 1276 1276 1277 1277 if (sText.startsWith("move pattern:")) {