Changeset 180
- Timestamp:
- 06/07/08 14:51:27 (5 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
gui/src/SongPropertiesDialog.cpp (modified) (2 diffs)
-
gui/src/UI/SongPropertiesDialog_UI.ui (modified) (5 diffs)
-
libs/hydrogen/include/hydrogen/Song.h (modified) (2 diffs)
-
libs/hydrogen/src/local_file_mgr.cpp (modified) (1 diff)
-
libs/hydrogen/src/song.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/src/SongPropertiesDialog.cpp
r127 r180 46 46 authorTxt->setText( song->__author ); 47 47 notesTxt->append( song->get_notes() ); 48 licenseTxt->setText( song->get_license() ); 48 49 } 49 50 … … 67 68 song->__author = authorTxt->text(); 68 69 song->set_notes( notesTxt->toPlainText() ); 70 song->set_license( licenseTxt->text() ); 71 69 72 accept(); 70 73 } -
trunk/gui/src/UI/SongPropertiesDialog_UI.ui
r45 r180 7 7 <y>0</y> 8 8 <width>290</width> 9 <height>3 32</height>9 <height>378</height> 10 10 </rect> 11 11 </property> … … 56 56 <rect> 57 57 <x>10</x> 58 <y>1 32</y>58 <y>190</y> 59 59 <width>268</width> 60 60 <height>24</height> … … 94 94 <rect> 95 95 <x>150</x> 96 <y>3 00</y>96 <y>330</y> 97 97 <width>90</width> 98 98 <height>24</height> … … 113 113 <rect> 114 114 <x>50</x> 115 <y>3 00</y>115 <y>330</y> 116 116 <width>90</width> 117 117 <height>24</height> … … 129 129 <rect> 130 130 <x>10</x> 131 <y> 160</y>131 <y>220</y> 132 132 <width>271</width> 133 <height>1 31</height>133 <height>101</height> 134 134 </rect> 135 </property> 136 </widget> 137 <widget class="QLineEdit" name="licenseTxt" > 138 <property name="geometry" > 139 <rect> 140 <x>10</x> 141 <y>154</y> 142 <width>268</width> 143 <height>24</height> 144 </rect> 145 </property> 146 </widget> 147 <widget class="QLabel" name="TextLabel1_3" > 148 <property name="geometry" > 149 <rect> 150 <x>10</x> 151 <y>130</y> 152 <width>268</width> 153 <height>24</height> 154 </rect> 155 </property> 156 <property name="minimumSize" > 157 <size> 158 <width>0</width> 159 <height>20</height> 160 </size> 161 </property> 162 <property name="text" > 163 <string>License</string> 135 164 </property> 136 165 </widget> 137 166 </widget> 138 167 <layoutdefault spacing="6" margin="11" /> 139 <includes/>140 168 <resources/> 141 169 <connections/> -
trunk/libs/hydrogen/include/hydrogen/Song.h
r127 r180 62 62 bool __is_modified; 63 63 QString __name; ///< song name 64 QString __author; ///< author of the song 64 QString __author; ///< author of the song 65 QString __license; ///< license of the song 65 66 66 67 /* … … 123 124 const QString& get_notes() { 124 125 return __notes; 126 } 127 128 void set_license( const QString& license ) { 129 __license = license; 130 } 131 const QString& get_license() { 132 return __license; 125 133 } 126 134 -
trunk/libs/hydrogen/src/local_file_mgr.cpp
r179 r180 885 885 LocalFileMng::writeXmlString( &songNode, "author", song->__author ); 886 886 LocalFileMng::writeXmlString( &songNode, "notes", song->get_notes() ); 887 LocalFileMng::writeXmlString( &songNode, "license", song->get_license() ); 887 888 LocalFileMng::writeXmlBool( &songNode, "loopEnabled", song->is_loop_enabled() ); 888 889 -
trunk/libs/hydrogen/src/song.cpp
r127 r180 206 206 QString sAuthor( LocalFileMng::readXmlString( songNode, "author", "Unknown Author" ) ); 207 207 QString sNotes( LocalFileMng::readXmlString( songNode, "notes", "..." ) ); 208 QString sLicense( LocalFileMng::readXmlString( songNode, "license", "Unknown license" ) ); 208 209 bool bLoopEnabled = LocalFileMng::readXmlBool( songNode, "loopEnabled", false ); 209 210 … … 221 222 song->set_metronome_volume( fMetronomeVolume ); 222 223 song->set_notes( sNotes ); 224 song->set_license( sLicense ); 223 225 song->set_loop_enabled( bLoopEnabled ); 224 226 song->set_mode( nMode );