Changeset 233


Ignore:
Timestamp:
Aug 3, 2010, 12:07:48 PM (11 years ago)
Author:
Joachim Langenbach
Message:
  • closes #74
  • SearchWidget? can search for MIN's using a subquery and IN functionality of MySQL
  • ConnectMediaSearch? does take care, that all connected Attributes exists right now
Location:
branches/release-0.3.0-rc1/src
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.3.0-rc1/src/MediaDBLib/connectmediasearch.cpp

    r211 r233  
    9595                connectionsView->setSortingEnabled(false);
    9696                for(int i = 0; i < mediaAttrs.size(); i++){
    97                         int row = connectionsView->rowCount();
    98                         connectionsView->insertRow(row);
    99                         connectionsView->setItem(row, 0, new QTableWidgetItem(mediaAttrs[i]));
    100                         connectionsView->setItem(row, 1, new QTableWidgetItem(searchAttrs[i]));
    101                         QList<QListWidgetItem*> items;
    102                         items = mediaPluginAttrsView->findItems(mediaAttrs[i], Qt::MatchExactly);
    103                         if(items.size() > 0)
    104                                 delete items[0];
    105                         items = searchPluginAttrsView->findItems(searchAttrs[i], Qt::MatchExactly);
    106                         if(items.size() > 0)
    107                                 delete items[0];
     97                        QList<QListWidgetItem*> itemsMediaAttrs = mediaPluginAttrsView->findItems(mediaAttrs[i], Qt::MatchExactly);
     98                        QList<QListWidgetItem*> itemsSearchAttrs = searchPluginAttrsView->findItems(searchAttrs[i], Qt::MatchExactly);
     99                        if((itemsMediaAttrs.size() > 0) && (itemsSearchAttrs.size() > 0)){
     100                                delete itemsMediaAttrs[0];
     101                                delete itemsSearchAttrs[0];
     102                                int row = connectionsView->rowCount();
     103                                connectionsView->insertRow(row);
     104                                connectionsView->setItem(row, 0, new QTableWidgetItem(mediaAttrs[i]));
     105                                connectionsView->setItem(row, 1, new QTableWidgetItem(searchAttrs[i]));
     106                        }
    108107                }
    109108                connectionsView->setSortingEnabled(true);
     
    226225        if(numSearchAttrs != numSearchPluginAttrs)
    227226                result = false;
     227       
     228        // check that all listed attributes are supported by the medium and plugin right now
     229        for(int i = 0; i < mediaAttrs.size(); i++){
     230                if(medium->supportedAttributes().indexOf(mediaAttrs[i]) == -1)
     231                        result = false;
     232        }
     233        for(int i = 0; i < searchAttrs.size(); i++){
     234                if(searchPlugin->supportedAttributes().indexOf(searchAttrs[i]) == -1)
     235                        result = false;
     236        }
    228237
    229238        if ( ( mediaAttrs.size() < 1 ) || ( mediaAttrs.size() != searchAttrs.size() ) )
  • branches/release-0.3.0-rc1/src/MediaDBLib/lang/mediadblib_de.ts

    r217 r233  
    233233    </message>
    234234    <message>
    235         <location filename="../dbbackup.cpp" line="81"/>
     235        <location filename="../dbbackup.cpp" line="83"/>
    236236        <source>Opening file</source>
    237237        <translation>Öffne Datei</translation>
    238238    </message>
    239239    <message>
    240         <location filename="../dbbackup.cpp" line="86"/>
    241         <location filename="../dbbackup.cpp" line="96"/>
    242         <location filename="../dbbackup.cpp" line="107"/>
     240        <location filename="../dbbackup.cpp" line="88"/>
     241        <location filename="../dbbackup.cpp" line="98"/>
     242        <location filename="../dbbackup.cpp" line="109"/>
    243243        <source>Output file is not writable, please select a writeable file and try again!
    244244File: %1</source>
     
    247247    </message>
    248248    <message>
    249         <location filename="../dbbackup.cpp" line="123"/>
     249        <location filename="../dbbackup.cpp" line="125"/>
    250250        <source>Could not connect to Database</source>
    251251        <translation>Konnte nicht zur Datenbank verbinden</translation>
    252252    </message>
    253253    <message>
    254         <location filename="../dbbackup.cpp" line="131"/>
     254        <location filename="../dbbackup.cpp" line="138"/>
    255255        <source>Configure file</source>
    256256        <translation>Konfiguriere Datei</translation>
    257257    </message>
    258258    <message>
    259         <location filename="../dbbackup.cpp" line="136"/>
     259        <location filename="../dbbackup.cpp" line="143"/>
    260260        <source>Writing header</source>
    261261        <translation>Schreibe Kopf</translation>
    262262    </message>
    263263    <message>
    264         <location filename="../dbbackup.cpp" line="141"/>
     264        <location filename="../dbbackup.cpp" line="148"/>
    265265        <source>MM/dd/yyyy hh:mm:ss</source>
    266266        <translation>dd.MM.yyyy hh:mm:ss</translation>
    267267    </message>
    268268    <message>
    269         <location filename="../dbbackup.cpp" line="157"/>
     269        <location filename="../dbbackup.cpp" line="164"/>
    270270        <source>Dumping tables</source>
    271271        <translation>Sichere Tabellen</translation>
    272272    </message>
    273273    <message>
    274         <location filename="../dbbackup.cpp" line="159"/>
    275         <location filename="../dbbackup.cpp" line="182"/>
     274        <location filename="../dbbackup.cpp" line="166"/>
     275        <location filename="../dbbackup.cpp" line="189"/>
    276276        <source>OK</source>
    277277        <translation>Ok</translation>
    278278    </message>
    279279    <message>
    280         <location filename="../dbbackup.cpp" line="162"/>
    281         <location filename="../dbbackup.cpp" line="185"/>
     280        <location filename="../dbbackup.cpp" line="169"/>
     281        <location filename="../dbbackup.cpp" line="192"/>
    282282        <source>FAILED</source>
    283283        <translation>FEHLGESCHLAGEN</translation>
    284284    </message>
    285285    <message>
    286         <location filename="../dbbackup.cpp" line="177"/>
     286        <location filename="../dbbackup.cpp" line="184"/>
    287287        <source>Sorting views</source>
    288288        <translation>Sortiere Views</translation>
    289289    </message>
    290290    <message>
    291         <location filename="../dbbackup.cpp" line="180"/>
     291        <location filename="../dbbackup.cpp" line="187"/>
    292292        <source>Dump views</source>
    293293        <translation>Sichere Views</translation>
    294294    </message>
    295295    <message>
    296         <location filename="../dbbackup.cpp" line="199"/>
     296        <location filename="../dbbackup.cpp" line="206"/>
    297297        <source>Writing footer</source>
    298298        <translation>Schreibe Abspann</translation>
    299299    </message>
    300300    <message>
    301         <location filename="../dbbackup.cpp" line="210"/>
     301        <location filename="../dbbackup.cpp" line="217"/>
    302302        <source>Aborted</source>
    303303        <translation>Abgebrochen</translation>
    304304    </message>
    305305    <message>
    306         <location filename="../dbbackup.cpp" line="214"/>
     306        <location filename="../dbbackup.cpp" line="221"/>
    307307        <source>Finished!</source>
    308308        <translation>Fertig!</translation>
    309309    </message>
    310310    <message>
    311         <location filename="../dbbackup.cpp" line="217"/>
     311        <location filename="../dbbackup.cpp" line="224"/>
    312312        <source>Finished with errors!</source>
    313313        <translation>Mit Fehlern beendet!</translation>
    314314    </message>
    315315    <message>
    316         <location filename="../dbbackup.cpp" line="239"/>
    317         <location filename="../dbbackup.cpp" line="241"/>
     316        <location filename="../dbbackup.cpp" line="249"/>
     317        <location filename="../dbbackup.cpp" line="251"/>
    318318        <source>SQL-Files</source>
    319319        <translation>SQL-Dateien</translation>
    320320    </message>
    321321    <message>
    322         <location filename="../dbbackup.cpp" line="245"/>
    323         <location filename="../dbbackup.cpp" line="247"/>
     322        <location filename="../dbbackup.cpp" line="255"/>
     323        <location filename="../dbbackup.cpp" line="257"/>
    324324        <source>All Files</source>
    325325        <translation>Alle Dateien</translation>
    326326    </message>
    327327    <message>
    328         <location filename="../dbbackup.cpp" line="256"/>
     328        <location filename="../dbbackup.cpp" line="266"/>
    329329        <source>Select export file</source>
    330330        <translation>WÀhle Sie eine Datei zum Exportieren</translation>
     
    335335    </message>
    336336    <message>
    337         <location filename="../dbbackup.cpp" line="438"/>
     337        <location filename="../dbbackup.cpp" line="448"/>
    338338        <source>Could not calculate dependencies of all views, someviews are missing!</source>
    339339        <translation>Konnte nicht alle AbhÀngigkeiten der Views auflösen, einige Fehlen!</translation>
     
    907907</context>
    908908<context>
     909    <name>EditMinTypes</name>
     910    <message>
     911        <location filename="../editmintypes.cpp" line="80"/>
     912        <source>MIN Types, which are provided by a plugin can not be changed!</source>
     913        <translation type="unfinished"></translation>
     914    </message>
     915    <message>
     916        <location filename="../editmintypes.cpp" line="91"/>
     917        <source>An empty name is not allowed!</source>
     918        <translation type="unfinished">Ein leerer Name ist nicht erlaubt!</translation>
     919    </message>
     920    <message>
     921        <location filename="../editmintypes.cpp" line="98"/>
     922        <source>Could not connect to database</source>
     923        <translation type="unfinished">Konnte keine Verbindung zur Datenbank herstellen</translation>
     924    </message>
     925    <message>
     926        <location filename="../editmintypes.cpp" line="115"/>
     927        <source>Could not add or update MIN type %1
     928Query: %2
     929Error: %3</source>
     930        <translation type="unfinished"></translation>
     931    </message>
     932    <message>
     933        <location filename="../editmintypes.cpp" line="137"/>
     934        <source>Add / Edit MIN Types</source>
     935        <translation type="unfinished"></translation>
     936    </message>
     937    <message>
     938        <location filename="../editmintypes.cpp" line="139"/>
     939        <source>Existing Types</source>
     940        <translation type="unfinished"></translation>
     941    </message>
     942    <message>
     943        <location filename="../editmintypes.cpp" line="164"/>
     944        <source>Please select a MIN type or press %1 to abort</source>
     945        <translation type="unfinished"></translation>
     946    </message>
     947</context>
     948<context>
    909949    <name>EditRoles</name>
    910950    <message>
     
    10711111    <name>LoanModel</name>
    10721112    <message>
    1073         <location filename="../loanmodel.cpp" line="374"/>
     1113        <location filename="../loanmodel.cpp" line="385"/>
    10741114        <source>Owner</source>
    10751115        <translation>EigentÃŒmer</translation>
    10761116    </message>
    10771117    <message>
    1078         <location filename="../loanmodel.cpp" line="374"/>
     1118        <location filename="../loanmodel.cpp" line="385"/>
    10791119        <source>Loaner</source>
    10801120        <translation>Leiher</translation>
    10811121    </message>
    10821122    <message>
    1083         <location filename="../loanmodel.cpp" line="375"/>
     1123        <location filename="../loanmodel.cpp" line="386"/>
    10841124        <source>Status</source>
    10851125        <translation>Status</translation>
    10861126    </message>
    10871127    <message>
    1088         <location filename="../loanmodel.cpp" line="375"/>
     1128        <location filename="../loanmodel.cpp" line="386"/>
    10891129        <source>Due Date</source>
    10901130        <translation>FÀlligkeit</translation>
    10911131    </message>
    10921132    <message>
    1093         <location filename="../loanmodel.cpp" line="376"/>
     1133        <location filename="../loanmodel.cpp" line="387"/>
    10941134        <source>Last Change</source>
    10951135        <translation>Letzte Änderung</translation>
     
    11051145</context>
    11061146<context>
     1147    <name>MINModel</name>
     1148    <message>
     1149        <location filename="../minmodel.cpp" line="212"/>
     1150        <source>more</source>
     1151        <translation type="unfinished">u.a.</translation>
     1152    </message>
     1153    <message>
     1154        <location filename="../minmodel.cpp" line="213"/>
     1155        <source>,
     1156</source>
     1157        <translation type="unfinished"></translation>
     1158    </message>
     1159    <message>
     1160        <location filename="../minmodel.cpp" line="314"/>
     1161        <source>MIN</source>
     1162        <translation type="unfinished"></translation>
     1163    </message>
     1164    <message>
     1165        <location filename="../minmodel.cpp" line="316"/>
     1166        <source>Type</source>
     1167        <translation type="unfinished">Typ</translation>
     1168    </message>
     1169</context>
     1170<context>
     1171    <name>MINValidator</name>
     1172    <message>
     1173        <location filename="../minvalidator.cpp" line="46"/>
     1174        <source>While loading %1 an error occured:
     1175%2 %1</source>
     1176        <translation type="unfinished"></translation>
     1177    </message>
     1178    <message>
     1179        <location filename="../minvalidator.cpp" line="52"/>
     1180        <source>Plugin is not a MINValidator-plugin:
     1181 %1</source>
     1182        <translation type="unfinished"></translation>
     1183    </message>
     1184</context>
     1185<context>
    11071186    <name>MaterialPerson</name>
    11081187    <message>
     
    11181197    <name>MaterialPersonsModel</name>
    11191198    <message>
    1120         <location filename="../materialpersonsmodel.cpp" line="175"/>
     1199        <location filename="../materialpersonsmodel.cpp" line="177"/>
    11211200        <source>more</source>
    11221201        <translation>u.a.</translation>
    11231202    </message>
    11241203    <message>
    1125         <location filename="../materialpersonsmodel.cpp" line="176"/>
     1204        <location filename="../materialpersonsmodel.cpp" line="178"/>
    11261205        <source> and </source>
    11271206        <translation> und </translation>
    11281207    </message>
    11291208    <message>
    1130         <location filename="../materialpersonsmodel.cpp" line="225"/>
     1209        <location filename="../materialpersonsmodel.cpp" line="227"/>
    11311210        <source>Name</source>
    11321211        <translation>Name</translation>
    11331212    </message>
    11341213    <message>
    1135         <location filename="../materialpersonsmodel.cpp" line="227"/>
     1214        <location filename="../materialpersonsmodel.cpp" line="229"/>
    11361215        <source>Given Name</source>
    11371216        <translation>Vorname</translation>
    11381217    </message>
    11391218    <message>
    1140         <location filename="../materialpersonsmodel.cpp" line="229"/>
     1219        <location filename="../materialpersonsmodel.cpp" line="231"/>
    11411220        <source>Role</source>
    11421221        <translation>Rolle</translation>
     
    12131292    </message>
    12141293    <message>
    1215         <location filename="../mediamodel.cpp" line="761"/>
     1294        <location filename="../mediamodel.cpp" line="759"/>
    12161295        <source>Description</source>
    12171296        <translation>Beschreibung</translation>
    12181297    </message>
    12191298    <message>
    1220         <location filename="../mediamodel.cpp" line="763"/>
     1299        <location filename="../mediamodel.cpp" line="760"/>
     1300        <source>MIN</source>
     1301        <translation type="unfinished"></translation>
     1302    </message>
     1303    <message>
     1304        <location filename="../mediamodel.cpp" line="762"/>
    12211305        <source>Title</source>
    12221306        <translation>Titel</translation>
     
    12441328    <name>Medium</name>
    12451329    <message>
    1246         <location filename="../medium.cpp" line="51"/>
     1330        <location filename="../medium.cpp" line="52"/>
    12471331        <source>Table</source>
    12481332        <translation>Tabelle</translation>
    12491333    </message>
    12501334    <message>
    1251         <location filename="../medium.cpp" line="201"/>
     1335        <location filename="../medium.cpp" line="200"/>
    12521336        <source>Preparation of manufacturer failed!</source>
    12531337        <translation>Vorbereitung des Herstellers ist fehlgeschlagen!</translation>
    12541338    </message>
    12551339    <message>
    1256         <location filename="../medium.cpp" line="205"/>
     1340        <location filename="../medium.cpp" line="204"/>
    12571341        <source>Preparation of genre failed!</source>
    12581342        <translation>Vorbereitung des Genre ist fehlgeschlagen!</translation>
    12591343    </message>
    12601344    <message>
    1261         <location filename="../medium.cpp" line="217"/>
     1345        <location filename="../medium.cpp" line="216"/>
    12621346        <source>Could not connect to database</source>
    12631347        <translation>Konnte keine Verbindung zur Datenbank herstellen</translation>
    12641348    </message>
    12651349    <message>
    1266         <location filename="../medium.cpp" line="234"/>
    1267         <location filename="../medium.cpp" line="254"/>
    1268         <location filename="../medium.cpp" line="280"/>
    1269         <location filename="../medium.cpp" line="297"/>
    1270         <location filename="../medium.cpp" line="326"/>
    1271         <location filename="../medium.cpp" line="337"/>
    1272         <location filename="../medium.cpp" line="363"/>
    1273         <location filename="../medium.cpp" line="394"/>
    1274         <location filename="../medium.cpp" line="418"/>
    1275         <location filename="../medium.cpp" line="443"/>
    1276         <location filename="../medium.cpp" line="454"/>
     1350        <location filename="../medium.cpp" line="233"/>
     1351        <location filename="../medium.cpp" line="253"/>
     1352        <location filename="../medium.cpp" line="278"/>
     1353        <location filename="../medium.cpp" line="295"/>
     1354        <location filename="../medium.cpp" line="324"/>
     1355        <location filename="../medium.cpp" line="335"/>
     1356        <location filename="../medium.cpp" line="361"/>
     1357        <location filename="../medium.cpp" line="392"/>
     1358        <location filename="../medium.cpp" line="416"/>
     1359        <location filename="../medium.cpp" line="441"/>
     1360        <location filename="../medium.cpp" line="452"/>
    12771361        <source>Error while storing medium!
    12781362%1
     
    12831367    </message>
    12841368    <message>
    1285         <location filename="../medium.cpp" line="237"/>
    1286         <location filename="../medium.cpp" line="257"/>
    1287         <location filename="../medium.cpp" line="283"/>
    1288         <location filename="../medium.cpp" line="300"/>
    1289         <location filename="../medium.cpp" line="329"/>
    1290         <location filename="../medium.cpp" line="340"/>
    1291         <location filename="../medium.cpp" line="366"/>
    1292         <location filename="../medium.cpp" line="397"/>
    1293         <location filename="../medium.cpp" line="421"/>
    1294         <location filename="../medium.cpp" line="446"/>
    1295         <location filename="../medium.cpp" line="457"/>
    1296         <location filename="../medium.cpp" line="471"/>
     1369        <location filename="../medium.cpp" line="236"/>
     1370        <location filename="../medium.cpp" line="256"/>
     1371        <location filename="../medium.cpp" line="281"/>
     1372        <location filename="../medium.cpp" line="298"/>
     1373        <location filename="../medium.cpp" line="327"/>
     1374        <location filename="../medium.cpp" line="338"/>
     1375        <location filename="../medium.cpp" line="364"/>
     1376        <location filename="../medium.cpp" line="395"/>
     1377        <location filename="../medium.cpp" line="419"/>
     1378        <location filename="../medium.cpp" line="444"/>
     1379        <location filename="../medium.cpp" line="455"/>
     1380        <location filename="../medium.cpp" line="469"/>
     1381        <location filename="../medium.cpp" line="481"/>
    12971382        <source>Rolling back failed!</source>
    12981383        <translation>Datenbank Rollback fehlgeschlagen!</translation>
    12991384    </message>
    13001385    <message>
    1301         <location filename="../medium.cpp" line="474"/>
     1386        <location filename="../medium.cpp" line="472"/>
     1387        <location filename="../medium.cpp" line="484"/>
    13021388        <source>Could not store material person model!</source>
    13031389        <translation>Konnte Personen zum Material nicht speichern!</translation>
    13041390    </message>
    13051391    <message>
    1306         <location filename="../medium.cpp" line="481"/>
     1392        <location filename="../medium.cpp" line="491"/>
    13071393        <source>Could not store medium! Commit has failed!</source>
    13081394        <translation>Konnte Medium nicht speichern, der Datenbankcommit ist fehlgeschlagen!</translation>
    13091395    </message>
    13101396    <message>
    1311         <location filename="../medium.cpp" line="594"/>
     1397        <location filename="../medium.cpp" line="647"/>
    13121398        <source>Type</source>
    13131399        <translation>Typ</translation>
    13141400    </message>
    13151401    <message>
    1316         <location filename="../medium.cpp" line="594"/>
     1402        <location filename="../medium.cpp" line="647"/>
    13171403        <source>Source</source>
    13181404        <translation>Quelle</translation>
    13191405    </message>
    13201406    <message>
    1321         <location filename="../medium.cpp" line="595"/>
     1407        <location filename="../medium.cpp" line="648"/>
    13221408        <source>Manufacturer</source>
    13231409        <translation>Hersteller</translation>
    13241410    </message>
    13251411    <message>
    1326         <location filename="../medium.cpp" line="595"/>
    1327         <location filename="../medium.cpp" line="687"/>
     1412        <location filename="../medium.cpp" line="648"/>
     1413        <location filename="../medium.cpp" line="740"/>
    13281414        <source>Title</source>
    13291415        <translation>Titel</translation>
    13301416    </message>
    13311417    <message>
    1332         <location filename="../medium.cpp" line="595"/>
     1418        <location filename="../medium.cpp" line="648"/>
    13331419        <source>Persons</source>
    13341420        <translation>Personen</translation>
    13351421    </message>
    13361422    <message>
    1337         <location filename="../medium.cpp" line="596"/>
    1338         <location filename="../medium.cpp" line="688"/>
    13391423        <source>EAN</source>
    1340         <translation>EAN</translation>
    1341     </message>
    1342     <message>
    1343         <location filename="../medium.cpp" line="596"/>
     1424        <translation type="obsolete">EAN</translation>
     1425    </message>
     1426    <message>
     1427        <location filename="../medium.cpp" line="649"/>
    13441428        <source>List Price</source>
    13451429        <translation>Listenpreis</translation>
    13461430    </message>
    13471431    <message>
    1348         <location filename="../medium.cpp" line="597"/>
     1432        <location filename="../medium.cpp" line="649"/>
     1433        <source>MIN</source>
     1434        <translation type="unfinished"></translation>
     1435    </message>
     1436    <message>
     1437        <location filename="../medium.cpp" line="650"/>
    13491438        <source>Currency</source>
    13501439        <translation>WÀhrung</translation>
    13511440    </message>
    13521441    <message>
    1353         <location filename="../medium.cpp" line="597"/>
     1442        <location filename="../medium.cpp" line="650"/>
    13541443        <source>Owner</source>
    13551444        <translation>EigentÃŒmer</translation>
    13561445    </message>
    13571446    <message>
    1358         <location filename="../medium.cpp" line="610"/>
     1447        <location filename="../medium.cpp" line="663"/>
    13591448        <source>Could no get edit wigdet</source>
    13601449        <translation>Konnte Dialog zur Bearbeitung nicht laden</translation>
    13611450    </message>
    13621451    <message>
    1363         <location filename="../medium.cpp" line="639"/>
     1452        <location filename="../medium.cpp" line="692"/>
    13641453        <source>Could not store changes!</source>
    13651454        <translation>Konnte Änderungen nicht Speichern!</translation>
    13661455    </message>
    13671456    <message>
    1368         <location filename="../medium.cpp" line="689"/>
     1457        <location filename="../medium.cpp" line="741"/>
     1458        <source>MIN&apos;s</source>
     1459        <translation type="unfinished"></translation>
     1460    </message>
     1461    <message>
     1462        <location filename="../medium.cpp" line="742"/>
    13691463        <source>Wish</source>
    13701464        <translation>Wunsch</translation>
    13711465    </message>
    13721466    <message>
    1373         <location filename="../medium.cpp" line="695"/>
     1467        <location filename="../medium.cpp" line="748"/>
    13741468        <source>Yes</source>
    13751469        <translation>Ja</translation>
     
    16221716    <name>MediumMinWidget</name>
    16231717    <message>
    1624         <location filename="../mediumminwidget.cpp" line="95"/>
    16251718        <source>MIN can not be longer than 20 characters</source>
    1626         <translation>MIN darf nicht lÀnger als 20 Zeichen sein</translation>
    1627     </message>
    1628     <message>
    1629         <location filename="../mediumminwidget.cpp" line="111"/>
     1719        <translation type="obsolete">MIN darf nicht lÀnger als 20 Zeichen sein</translation>
     1720    </message>
     1721    <message>
    16301722        <source>MIN:</source>
    1631         <translation>MIN:</translation>
    1632     </message>
    1633     <message>
    1634         <location filename="../mediumminwidget.cpp" line="129"/>
     1723        <translation type="obsolete">MIN:</translation>
     1724    </message>
     1725    <message>
     1726        <location filename="../mediumminwidget.ui" line="20"/>
     1727        <source>Medium MIN&apos;s</source>
     1728        <translation type="unfinished"></translation>
     1729    </message>
     1730    <message>
     1731        <location filename="../mediumminwidget.ui" line="40"/>
    16351732        <source>New</source>
    16361733        <translation>Neu</translation>
     1734    </message>
     1735    <message>
     1736        <location filename="../mediumminwidget.ui" line="53"/>
     1737        <source>Remove</source>
     1738        <translation type="unfinished">Entfernen</translation>
     1739    </message>
     1740    <message>
     1741        <location filename="../mediumminwidget.ui" line="66"/>
     1742        <source>New Type</source>
     1743        <translation type="unfinished"></translation>
    16371744    </message>
    16381745</context>
     
    17691876    <name>PersonsModel</name>
    17701877    <message>
    1771         <location filename="../personsmodel.cpp" line="188"/>
     1878        <location filename="../personsmodel.cpp" line="197"/>
    17721879        <source>Name</source>
    17731880        <translation>Name</translation>
    17741881    </message>
    17751882    <message>
    1776         <location filename="../personsmodel.cpp" line="190"/>
     1883        <location filename="../personsmodel.cpp" line="199"/>
    17771884        <source>Given Name</source>
    17781885        <translation>Vorname</translation>
     
    18641971    <name>SetupWizardDBDump</name>
    18651972    <message>
    1866         <location filename="../setupwizarddbdump.cpp" line="28"/>
     1973        <location filename="../setupwizarddbdump.cpp" line="29"/>
    18671974        <source>Backup Database</source>
    18681975        <translation>Sicherung der Datenbank</translation>
     
    18952002    </message>
    18962003    <message>
    1897         <location filename="../sqlinit.cpp" line="198"/>
     2004        <location filename="../sqlinit.cpp" line="223"/>
    18982005        <source>Update Database</source>
    18992006        <translation>Aktualisiere Datenbank</translation>
    19002007    </message>
    19012008    <message>
    1902         <location filename="../sqlinit.cpp" line="199"/>
     2009        <location filename="../sqlinit.cpp" line="224"/>
    19032010        <source>Database needs to be updated!</source>
    19042011        <translation>Datenbank muss aktualisiert werden!</translation>
    19052012    </message>
    19062013    <message>
    1907         <location filename="../sqlinit.cpp" line="318"/>
    19082014        <source>Database cannot be updated to current Version</source>
    1909         <translation>Datenbank konnte nicht auf die aktuelle Version aktualisiert werden</translation>
     2015        <translation type="obsolete">Datenbank konnte nicht auf die aktuelle Version aktualisiert werden</translation>
    19102016    </message>
    19112017    <message>
     
    19142020    </message>
    19152021    <message>
    1916         <location filename="../sqlinit.cpp" line="207"/>
     2022        <location filename="../sqlinit.cpp" line="232"/>
    19172023        <source>Database is updated</source>
    19182024        <translation>Database wurde aktualisiert</translation>
    19192025    </message>
    19202026    <message>
    1921         <location filename="../sqlinit.cpp" line="214"/>
     2027        <location filename="../sqlinit.cpp" line="239"/>
    19222028        <source>Checkin if updates are needed</source>
    19232029        <translation>PrÃŒfe ob Aktualisierungen nötig sind</translation>
    19242030    </message>
    19252031    <message>
    1926         <location filename="../sqlinit.cpp" line="222"/>
     2032        <location filename="../sqlinit.cpp" line="247"/>
    19272033        <source>%1 is not present, but is needed!</source>
    19282034        <translation>%1 ist nicht vorhanden, wird aber benötigt!</translation>
    19292035    </message>
    19302036    <message>
    1931         <location filename="../sqlinit.cpp" line="230"/>
     2037        <location filename="../sqlinit.cpp" line="255"/>
    19322038        <source>Cannot select version of %1!
    19332039%2</source>
     
    19362042    </message>
    19372043    <message>
    1938         <location filename="../sqlinit.cpp" line="239"/>
     2044        <location filename="../sqlinit.cpp" line="264"/>
    19392045        <source>This module-version requires a newer database scheme
    19402046Needed: %1
     
    19452051    </message>
    19462052    <message>
    1947         <location filename="../sqlinit.cpp" line="246"/>
     2053        <location filename="../sqlinit.cpp" line="271"/>
    19482054        <source>This modul-version requires an older database, so upgrade this module!</source>
    19492055        <translation>Diese Modulversion benötigt eine Àltere Datenbankversion, aktualisieren Sie dieses Modul!</translation>
    19502056    </message>
    19512057    <message>
    1952         <location filename="../sqlinit.cpp" line="261"/>
     2058        <location filename="../sqlinit.cpp" line="286"/>
    19532059        <source>Updateting tables</source>
    19542060        <translation>Aktualisiere Tabellen</translation>
    19552061    </message>
    19562062    <message>
    1957         <location filename="../sqlinit.cpp" line="279"/>
     2063        <location filename="../sqlinit.cpp" line="301"/>
    19582064        <source>Unable to update all tables!
    19592065Failed Tables:
     
    19642070    </message>
    19652071    <message>
    1966         <location filename="../sqlinit.cpp" line="286"/>
     2072        <location filename="../sqlinit.cpp" line="308"/>
    19672073        <source>Updateting views</source>
    19682074        <translation>Aktualisiere Views</translation>
    19692075    </message>
    19702076    <message>
    1971         <location filename="../sqlinit.cpp" line="308"/>
     2077        <location filename="../sqlinit.cpp" line="322"/>
    19722078        <source>Unable to update all Views!
    19732079Failed Views:
     
    19782084    </message>
    19792085    <message>
    1980         <location filename="../sqlinit.cpp" line="314"/>
     2086        <location filename="../sqlinit.cpp" line="329"/>
    19812087        <source>Run past update process</source>
    19822088        <translation>FÃŒhre nachfolgende TÀtigkeiten aus</translation>
    19832089    </message>
    19842090    <message>
    1985         <location filename="../sqlinit.cpp" line="326"/>
     2091        <location filename="../sqlinit.cpp" line="333"/>
     2092        <source>Database cannot be updated to current Version
     2093%1</source>
     2094        <translation type="unfinished"></translation>
     2095    </message>
     2096    <message>
     2097        <location filename="../sqlinit.cpp" line="342"/>
    19862098        <source>Finish database update</source>
    19872099        <translation>Datenbankaktualisierung beendet</translation>
    19882100    </message>
    19892101    <message>
     2102        <location filename="../sqlinit.cpp" line="454"/>
     2103        <location filename="../sqlinit.cpp" line="460"/>
     2104        <source>Could not find foreign key symbol to drop it from database
     2105%1</source>
     2106        <translation type="unfinished"></translation>
     2107    </message>
     2108    <message>
    19902109        <source>Finish update</source>
    19912110        <translation type="obsolete">Beende Aktualisierung</translation>
    19922111    </message>
    19932112    <message>
    1994         <location filename="../sqlinit.cpp" line="344"/>
     2113        <location filename="../sqlinit.cpp" line="360"/>
    19952114        <source>Cannot update table %1 to current version!
    19962115Query:%2
     
    20012120    </message>
    20022121    <message>
    2003         <location filename="../sqlinit.cpp" line="452"/>
    2004         <location filename="../sqlinit.cpp" line="461"/>
    20052122        <source>Could not find foreign key symbol to drop it from database</source>
    2006         <translation>Konnte das Symbol des FremdschlÃŒssels nicht finden und ihn daher nicht aus der Datenbank entfernen</translation>
    2007     </message>
    2008     <message>
    2009         <location filename="../sqlinit.cpp" line="538"/>
     2123        <translation type="obsolete">Konnte das Symbol des FremdschlÃŒssels nicht finden und ihn daher nicht aus der Datenbank entfernen</translation>
     2124    </message>
     2125    <message>
     2126        <location filename="../sqlinit.cpp" line="528"/>
    20102127        <source>Cannot add value to %1
    20112128 %2.</source>
     
    20142131    </message>
    20152132    <message>
    2016         <location filename="../sqlinit.cpp" line="614"/>
     2133        <location filename="../sqlinit.cpp" line="601"/>
    20172134        <source>SQL Scheme is not valid!
    20182135Field: %1</source>
  • branches/release-0.3.0-rc1/src/MediaDBLib/medium.cpp

    r227 r233  
    3030#include "editgenres.h"
    3131#include "minmodel.h"
     32#include "mediummin.h"
    3233
    3334#include <QSqlDatabase>
     
    507508    return false;
    508509
     510        QStringList person;
     511  MaterialPersonsModel *model;
     512  bool check = false;
     513  unsigned int role = 0;
    509514  switch ( attributeIndex ) {
    510515
     
    524529      break;
    525530
    526     case 4:
     531                case 4:
     532                        person = value.toStringList();
     533      if ( person.size() != 3 )
     534        return false;
     535      if ( person[0].isEmpty() )
     536        return false;
     537
     538      model = materialPersons();
     539      if ( !model )
     540        return false;
     541
     542      role = person[2].toUInt ( &check );
     543      // it's a id
     544      if ( check ) {
     545        model->addPerson ( person[0], person[1], role );
     546        break;
     547      }
     548      model->addPerson ( person[0], person[1], person[2] );
     549                        break;
     550
     551    case 5:
    527552                        if(value.canConvert(QVariant::StringList)){
    528553                                if(value.toStringList().size() < 1){
    529554                                        return false;
    530555                                }
    531                                 else if(value.toStringList().size() < 2){
    532                                         setMIN(value.toStringList()[0]);
     556                                else if(value.toStringList().size() == 2){
     557                                        if(value.toStringList()[0].isEmpty())
     558                                                return false;
     559                                        setMIN(value.toStringList()[0], value.toStringList()[1]);
     560                                        break;
    533561                                }
    534562                                else{
    535                                         setMIN(value.toStringList()[0], value.toStringList()[1]);
     563                                        if(value.toStringList()[0].isEmpty())
     564                                                return false;
     565                                        setMIN(value.toStringList()[0]);
     566                                        break;
    536567                                }
    537568                        }
     569                        if(value.toString().isEmpty())
     570                                return false;
    538571      setMIN ( value.toString() );
    539572      break;
    540573
    541     case 5:
     574    case 6:
    542575      setListPrice ( value.toDouble() );
    543576      break;
    544577
    545     case 6:
     578    case 7:
    546579      setListPriceCurrency ( value.toUInt() );
    547580      break;
    548581
    549     case 7:
     582    case 8:
    550583      setUser ( value.toUInt() );
    551584      break;
     
    12751308
    12761309  if ( ( id() == 0 ) && ( med.id() == 0 ) ) {
    1277                 QString myEan = min("EAN");
    1278                 QString otherEan = med.min("EAN");
    1279     if ( ( myEan.isEmpty() ) && ( otherEan.isEmpty() ) )
    1280       return false;
    1281 
    1282     if ( myEan == otherEan )
    1283       return true;
    1284 
     1310                MINModel *maxMinModel = mins();
     1311                MINModel *otherMinModel = med.mins();
     1312                if(maxMinModel->rowCount() < med.mins()->rowCount()){
     1313                        maxMinModel = otherMinModel;
     1314                        otherMinModel = mins();
     1315                }
     1316                for(int i = 0; i < maxMinModel->rowCount(); i++){
     1317                        MediumMIN *actMin = maxMinModel->minFromIndex(maxMinModel->index(i, 0));
     1318                        if(actMin){
     1319                                if(actMin == otherMinModel->min(actMin->typeName()))
     1320                                        return true;
     1321                        }
     1322                }
    12851323    return false;
    12861324  }
  • branches/release-0.3.0-rc1/src/MediaDBLib/medium.h

    r227 r233  
    9696                        * @attention if submit persons like authors (,...),
    9797                        * @attention you need this triple as QStringList: Name, givenName (may be empty), roleName or Id (may be empty)
    98                         * @attention if you want to set MINs, you can either set give a only a min and the type will be gassed,
     98                        * @attention if you want to set MINs, you can either give only a min and the type will be gassed,
    9999                        * @attention or you can give a QStringList: min, type
    100100        */
     
    163163                        * @return if more than one MIN's of @p minTypes are found,
    164164                        * @return the one which lowest type index (index of type at @p minTypes) is returned
    165                         * @return if no MIN with wished type is found, empty QString is returned
     165                        * @return if no MIN with wished type is found or no other type can be converted to, empty QString is returned
    166166                        */
    167167                QString min(QStringList minTypes) const;
  • branches/release-0.3.0-rc1/src/MediaDBLib/mediummin.cpp

    r227 r233  
    166166                        if(db.isOpen()){
    167167                                QSqlQuery query;
    168                                 query.exec( QString("SELECT id FROM mintypes WHERE name=%1").arg(name));
    169                                 if((query.first()) && (query.size() == 1))
     168                                query.prepare( "SELECT id FROM mintypes WHERE name=:name");
     169                                query.bindValue(":name", name);
     170                                if((query.first()) && (query.size() == 1)){
    170171                                        // don't set the id afterwards (loop)
    171172                                        setType(query.record().value("id").toUInt(), false);
     173                                }
    172174                                if(closeDB)
    173175                                        db.close();
     
    213215                return false;
    214216       
    215         if(otherMin.type() != type())
    216                 return false;
     217        if((otherMin.type() != 0) && (type() != 0)){
     218                if(otherMin.type() != type())
     219                        return false;
     220                return true;
     221        }
    217222       
    218223        if(otherMin.typeName() != typeName())
    219                 return false;
    220        
    221         if(otherMin.rowId() != rowId())
    222224                return false;
    223225       
     
    236238        setRowId(0);
    237239        setType(0, false);
     240        setMarkForRemovel(false);
    238241}
    239242
  • branches/release-0.3.0-rc1/src/MediaDBLib/minmodel.cpp

    r227 r233  
    4848        connect(newMIN, SIGNAL(itemChanged(MediumMIN*)), this, SLOT(itemChanged(MediumMIN*)));
    4949        emit layoutAboutToBeChanged();
    50   items.append(newMIN);
     50  items << newMIN;
    5151  emit layoutChanged();
    5252
     
    214214}
    215215
     216MediumMIN* MINModel::min(QString minType)
     217{
     218        foreach(MediumMIN *tmpMin, items){
     219                if(tmpMin->typeName() == minType)
     220                        return tmpMin;
     221        }
     222        return 0;
     223}
     224
    216225QStringList MINModel::mins(QString minType)
    217226{
  • branches/release-0.3.0-rc1/src/MediaPlugins/Books/book.cpp

    r227 r233  
    249249  switch ( attributeIndex ) {
    250250    case 1:
    251       setTitle ( value.toString() );
    252       return true;
    253 
     251      return Medium::setValue(Medium::supportedAttributes().indexOf(tr("Title")), value);
     252                       
    254253    case 2:
    255       person = value.toStringList();
    256       if ( person.size() != 3 )
    257         return false;
    258       if ( person[0].isEmpty() )
    259         return false;
    260 
    261       model = materialPersons();
    262       if ( !model )
    263         return false;
    264 
    265       role = person[2].toUInt ( &check );
    266       // it's a id
    267       if ( check ) {
    268         model->addPerson ( person[0], person[1], role );
    269         return true;
    270       }
    271       model->addPerson ( person[0], person[1], person[2] );
    272       return true;
     254                        return Medium::setValue(Medium::supportedAttributes().indexOf(tr("Persons")), value);
    273255
    274256    case 3:
     
    277259
    278260    case 4:
    279       setManufacturer ( value.toString() );
    280       return true;
     261      return Medium::setValue(Medium::supportedAttributes().indexOf(tr("Manufacturer")), value);
    281262                       
    282263                case 5:
     
    293274
    294275    case 8:
    295                         if(value.canConvert(QVariant::StringList)){
    296                                 if(value.toStringList().size() < 1){
    297                                         return false;
    298                                 }
    299                                 else if(value.toStringList().size() < 2){
    300                                         setMIN(value.toStringList()[0]);
    301                                 }
    302                                 else{
    303                                         setMIN(value.toStringList()[0], value.toStringList()[1]);
    304                                 }
    305                         }
    306       setMIN ( value.toString() );
    307       return true;
     276      return Medium::setValue(Medium::supportedAttributes().indexOf(tr("MIN")), value);
    308277
    309278    case 9:
  • branches/release-0.3.0-rc1/src/MediaPlugins/Books/lang/books_de.ts

    r211 r233  
    55    <name>Book</name>
    66    <message>
    7         <location filename="../book.cpp" line="46"/>
    8         <location filename="../book.cpp" line="101"/>
     7        <location filename="../book.cpp" line="47"/>
     8        <location filename="../book.cpp" line="102"/>
    99        <source>Book</source>
    1010        <translation>Buch</translation>
    1111    </message>
    1212    <message>
    13         <location filename="../book.cpp" line="470"/>
     13        <location filename="../book.cpp" line="451"/>
    1414        <source> and </source>
    1515        <translation> und </translation>
    1616    </message>
    1717    <message>
    18         <location filename="../book.cpp" line="386"/>
    19         <location filename="../book.cpp" line="450"/>
     18        <location filename="../book.cpp" line="251"/>
     19        <location filename="../book.cpp" line="367"/>
     20        <location filename="../book.cpp" line="431"/>
    2021        <source>Title</source>
    2122        <translation>Titel</translation>
    2223    </message>
    2324    <message>
    24         <location filename="../book.cpp" line="38"/>
     25        <location filename="../book.cpp" line="39"/>
    2526        <source>Books</source>
    2627        <translation>BÃŒcher</translation>
    2728    </message>
    2829    <message>
    29         <location filename="../book.cpp" line="148"/>
    30         <location filename="../book.cpp" line="158"/>
    31         <location filename="../book.cpp" line="189"/>
    32         <location filename="../book.cpp" line="210"/>
    33         <location filename="../book.cpp" line="225"/>
     30        <location filename="../book.cpp" line="149"/>
     31        <location filename="../book.cpp" line="159"/>
     32        <location filename="../book.cpp" line="190"/>
     33        <location filename="../book.cpp" line="211"/>
     34        <location filename="../book.cpp" line="226"/>
    3435        <source>Rolling back failed!</source>
    3536        <translation>Rollback fehlgeschlagen!</translation>
    3637    </message>
    3738    <message>
    38         <location filename="../book.cpp" line="233"/>
     39        <location filename="../book.cpp" line="234"/>
    3940        <source>Could not store medium! Commit has failed!</source>
    4041        <translation>Konnte Medium nicht speichern!
     
    4243    </message>
    4344    <message>
    44         <location filename="../book.cpp" line="386"/>
     45        <location filename="../book.cpp" line="254"/>
     46        <source>Persons</source>
     47        <translation type="unfinished"></translation>
     48    </message>
     49    <message>
     50        <location filename="../book.cpp" line="261"/>
     51        <source>Manufacturer</source>
     52        <translation type="unfinished"></translation>
     53    </message>
     54    <message>
     55        <location filename="../book.cpp" line="276"/>
     56        <location filename="../book.cpp" line="370"/>
     57        <source>MIN</source>
     58        <translation type="unfinished"></translation>
     59    </message>
     60    <message>
     61        <location filename="../book.cpp" line="367"/>
    4562        <source>Source</source>
    4663        <translation>Quelle</translation>
    4764    </message>
    4865    <message>
    49         <location filename="../book.cpp" line="387"/>
     66        <location filename="../book.cpp" line="368"/>
    5067        <source>Author</source>
    5168        <translation>Autor</translation>
    5269    </message>
    5370    <message>
    54         <location filename="../book.cpp" line="387"/>
    55         <location filename="../book.cpp" line="452"/>
     71        <location filename="../book.cpp" line="368"/>
     72        <location filename="../book.cpp" line="433"/>
    5673        <source>Edition</source>
    5774        <translation>Auflage</translation>
    5875    </message>
    5976    <message>
    60         <location filename="../book.cpp" line="388"/>
    61         <location filename="../book.cpp" line="453"/>
     77        <location filename="../book.cpp" line="369"/>
     78        <location filename="../book.cpp" line="434"/>
    6279        <source>Publisher</source>
    6380        <translation>Verlag</translation>
    6481    </message>
    6582    <message>
    66         <location filename="../book.cpp" line="388"/>
     83        <location filename="../book.cpp" line="369"/>
    6784        <source>Pub. Place</source>
    6885        <translation>Veröf. Ort</translation>
    6986    </message>
    7087    <message>
    71         <location filename="../book.cpp" line="388"/>
     88        <location filename="../book.cpp" line="369"/>
    7289        <source>Genre</source>
    7390        <translation>Genre</translation>
    7491    </message>
    7592    <message>
    76         <location filename="../book.cpp" line="389"/>
     93        <location filename="../book.cpp" line="370"/>
    7794        <source>Pub. Date</source>
    7895        <translation>Veröf. Datum</translation>
    7996    </message>
    8097    <message>
    81         <location filename="../book.cpp" line="389"/>
    82         <location filename="../book.cpp" line="454"/>
     98        <location filename="../book.cpp" line="435"/>
    8399        <source>EAN</source>
    84100        <translation>EAN</translation>
    85101    </message>
    86102    <message>
    87         <location filename="../book.cpp" line="390"/>
    88         <location filename="../book.cpp" line="455"/>
     103        <location filename="../book.cpp" line="371"/>
     104        <location filename="../book.cpp" line="436"/>
    89105        <source>Pages</source>
    90106        <translation>Seiten</translation>
     
    95111    </message>
    96112    <message>
    97         <location filename="../book.cpp" line="390"/>
     113        <location filename="../book.cpp" line="371"/>
    98114        <source>Description</source>
    99115        <translation>Beschreibung</translation>
    100116    </message>
    101117    <message>
    102         <location filename="../book.cpp" line="390"/>
     118        <location filename="../book.cpp" line="371"/>
    103119        <source>Owner</source>
    104120        <translation>EigentÃŒmer</translation>
    105121    </message>
    106122    <message>
    107         <location filename="../book.cpp" line="391"/>
     123        <location filename="../book.cpp" line="372"/>
    108124        <source>List price</source>
    109125        <translation>Listenpreis</translation>
    110126    </message>
    111127    <message>
    112         <location filename="../book.cpp" line="391"/>
     128        <location filename="../book.cpp" line="372"/>
    113129        <source>List price currency</source>
    114130        <translation>Listenpreis WÀhrung</translation>
    115131    </message>
    116132    <message>
    117         <location filename="../book.cpp" line="451"/>
     133        <location filename="../book.cpp" line="432"/>
    118134        <source>Authors</source>
    119135        <translation>Autoren</translation>
    120136    </message>
    121137    <message>
    122         <location filename="../book.cpp" line="456"/>
     138        <location filename="../book.cpp" line="437"/>
    123139        <source>Wish</source>
    124140        <translation>Wunsch</translation>
    125141    </message>
    126142    <message>
    127         <location filename="../book.cpp" line="477"/>
     143        <location filename="../book.cpp" line="458"/>
    128144        <source>Yes</source>
    129145        <translation>Ja</translation>
     
    360376    <name>BooksDB</name>
    361377    <message>
    362         <location filename="../booksdb.cpp" line="66"/>
     378        <location filename="../booksdb.cpp" line="57"/>
    363379        <source>Book</source>
    364380        <translation>Buch</translation>
    365381    </message>
    366382    <message>
    367         <location filename="../booksdb.cpp" line="66"/>
     383        <location filename="../booksdb.cpp" line="57"/>
    368384        <source>All medias which are books</source>
    369385        <translation>Alle Medien die BÃŒcher sind</translation>
    370386    </message>
    371387    <message>
    372         <location filename="../booksdb.cpp" line="75"/>
     388        <location filename="../booksdb.cpp" line="65"/>
    373389        <source>Author</source>
    374390        <translation>Autor</translation>
    375391    </message>
    376392    <message>
    377         <location filename="../booksdb.cpp" line="75"/>
     393        <location filename="../booksdb.cpp" line="65"/>
    378394        <source>The author of the material</source>
    379395        <translation>Der Autor des Materials</translation>
    380396    </message>
    381397    <message>
    382         <location filename="../booksdb.cpp" line="78"/>
     398        <location filename="../booksdb.cpp" line="68"/>
    383399        <source>Editor</source>
    384400        <translation>Herausgeber</translation>
    385401    </message>
    386402    <message>
    387         <location filename="../booksdb.cpp" line="78"/>
     403        <location filename="../booksdb.cpp" line="68"/>
    388404        <source>The editor of a book (abbr.: Ed., ed.)</source>
    389405        <translation>Der Herausgeber eines Buches (Abk.: Hrsg)</translation>
     
    403419    <message>
    404420        <location filename="../booksmodel.cpp" line="36"/>
     421        <source>MIN</source>
     422        <translation type="unfinished"></translation>
     423    </message>
     424    <message>
     425        <location filename="../booksmodel.cpp" line="37"/>
    405426        <source>List price currency</source>
    406427        <translation>Listenpreis WÀhrung</translation>
    407428    </message>
    408429    <message>
    409         <location filename="../booksmodel.cpp" line="69"/>
     430        <location filename="../booksmodel.cpp" line="70"/>
    410431        <source>Owner</source>
    411432        <translation>EigentÃŒmer</translation>
     
    417438</context>
    418439<context>
     440    <name>ISBNValidator</name>
     441    <message>
     442        <location filename="../isbnvalidatorplugin/isbnvalidator.cpp" line="38"/>
     443        <source>ISBN-10 - International Standard Book Number with 10 characters</source>
     444        <translation type="unfinished"></translation>
     445    </message>
     446</context>
     447<context>
    419448    <name>QObject</name>
    420449    <message>
  • branches/release-0.3.0-rc1/src/MediaPlugins/CDs/cd.cpp

    r227 r233  
    302302               
    303303                case 1:
    304                         setTitle(value.toString());
    305                         return true;
     304                        return Medium::setValue(Medium::supportedAttributes().indexOf(tr("Title")), value);
    306305                       
    307306                case 2:
    308                         items = value.toStringList();
    309                         if(items.size() != 3)
    310                                 return false;
    311                         if(items[0].isEmpty())
    312                                 return false;
    313                        
    314                         model = materialPersons();
    315                         if(!model)
    316                                 return false;
    317 
    318                         role = items[2].toUInt(&check);
    319                         // it's a id
    320                         if(check){
    321                                 model->addPerson(items[0], items[1], role);
    322                                 return true;
    323                         }
    324                         model->addPerson(items[0], items[1], items[2]);
    325                         return true;
     307                        return Medium::setValue(Medium::supportedAttributes().indexOf(tr("Persons")), value);
    326308                       
    327309                case 3:
    328                         setManufacturer(value.toString());
    329                         return true;
     310                        return Medium::setValue(Medium::supportedAttributes().indexOf(tr("Manufacturer")), value);
    330311                       
    331312                case 4:
     
    338319                       
    339320                case 6:
    340                         if(value.canConvert(QVariant::StringList)){
    341                                 if(value.toStringList().size() < 1){
    342                                         return false;
    343                                 }
    344                                 else if(value.toStringList().size() < 2){
    345                                         setMIN(value.toStringList()[0]);
    346                                 }
    347                                 else{
    348                                         setMIN(value.toStringList()[0], value.toStringList()[1]);
    349                                 }
    350                         }
    351       setMIN ( value.toString() );
    352                         return true;
     321                        return Medium::setValue(Medium::supportedAttributes().indexOf(tr("MIN")), value);
    353322                       
    354323                case 7:
  • branches/release-0.3.0-rc1/src/MediaPlugins/CDs/lang/cds_de.ts

    r211 r233  
    55    <name>CD</name>
    66    <message>
    7         <location filename="../cd.cpp" line="39"/>
    8         <location filename="../cd.cpp" line="117"/>
     7        <location filename="../cd.cpp" line="40"/>
     8        <location filename="../cd.cpp" line="118"/>
    99        <source>Audio CD</source>
    1010        <translation>Audio CD</translation>
    1111    </message>
    1212    <message>
    13         <location filename="../cd.cpp" line="172"/>
     13        <location filename="../cd.cpp" line="173"/>
    1414        <source>Could not connect to database!
    1515Error: %1</source>
     
    1818    </message>
    1919    <message>
    20         <location filename="../cd.cpp" line="185"/>
    21         <location filename="../cd.cpp" line="195"/>
    22         <location filename="../cd.cpp" line="222"/>
    23         <location filename="../cd.cpp" line="245"/>
    24         <location filename="../cd.cpp" line="260"/>
    25         <location filename="../cd.cpp" line="270"/>
     20        <location filename="../cd.cpp" line="186"/>
     21        <location filename="../cd.cpp" line="196"/>
     22        <location filename="../cd.cpp" line="223"/>
     23        <location filename="../cd.cpp" line="246"/>
     24        <location filename="../cd.cpp" line="261"/>
     25        <location filename="../cd.cpp" line="271"/>
    2626        <source>Rolling back failed!</source>
    2727        <translation>Rollback fehlgeschlagen!</translation>
    2828    </message>
    2929    <message>
    30         <location filename="../cd.cpp" line="225"/>
     30        <location filename="../cd.cpp" line="226"/>
    3131        <source>Could not prepare update CD!
    3232Query:%1
     
    3939    </message>
    4040    <message>
    41         <location filename="../cd.cpp" line="248"/>
     41        <location filename="../cd.cpp" line="249"/>
    4242        <source>Could not prepare insert CD statement!
    4343Query:%1
     
    4949    </message>
    5050    <message>
    51         <location filename="../cd.cpp" line="263"/>
     51        <location filename="../cd.cpp" line="264"/>
    5252        <source>Could not execute SQL statement!
    5353Query:%1
     
    5959    </message>
    6060    <message>
    61         <location filename="../cd.cpp" line="273"/>
     61        <location filename="../cd.cpp" line="274"/>
    6262        <source>Could not store tracks!</source>
    6363        <translation>Konnte MusikstÃŒcke nicht speichern!</translation>
    6464    </message>
    6565    <message>
    66         <location filename="../cd.cpp" line="279"/>
     66        <location filename="../cd.cpp" line="280"/>
    6767        <source>Could not store medium! Commit has failed!</source>
    6868        <translation>Konnte Medium nicht speichern!
     
    7070    </message>
    7171    <message>
    72         <location filename="../cd.cpp" line="374"/>
     72        <location filename="../cd.cpp" line="307"/>
     73        <source>Persons</source>
     74        <translation type="unfinished"></translation>
     75    </message>
     76    <message>
     77        <location filename="../cd.cpp" line="310"/>
     78        <source>Manufacturer</source>
     79        <translation type="unfinished"></translation>
     80    </message>
     81    <message>
     82        <location filename="../cd.cpp" line="321"/>
     83        <location filename="../cd.cpp" line="434"/>
     84        <source>MIN</source>
     85        <translation type="unfinished"></translation>
     86    </message>
     87    <message>
     88        <location filename="../cd.cpp" line="355"/>
    7389        <source>Various</source>
    7490        <translation>Verschiedene</translation>
    7591    </message>
    7692    <message>
    77         <location filename="../cd.cpp" line="454"/>
     93        <location filename="../cd.cpp" line="435"/>
    7894        <source>List price</source>
    7995        <translation>Listenpreis</translation>
    8096    </message>
    8197    <message>
    82         <location filename="../cd.cpp" line="454"/>
     98        <location filename="../cd.cpp" line="435"/>
    8399        <source>List price currency</source>
    84100        <translation>Listenpreis WÀhrung</translation>
    85101    </message>
    86102    <message>
    87         <location filename="../cd.cpp" line="512"/>
     103        <location filename="../cd.cpp" line="493"/>
    88104        <source> and </source>
    89105        <translation> und </translation>
    90106    </message>
    91107    <message>
    92         <location filename="../cd.cpp" line="423"/>
     108        <location filename="../cd.cpp" line="404"/>
    93109        <source>MM/yyyy</source>
    94110        <translation>MM.yyyy</translation>
    95111    </message>
    96112    <message>
    97         <location filename="../cd.cpp" line="450"/>
    98         <location filename="../cd.cpp" line="492"/>
     113        <location filename="../cd.cpp" line="304"/>
     114        <location filename="../cd.cpp" line="431"/>
     115        <location filename="../cd.cpp" line="473"/>
    99116        <source>Title</source>
    100117        <translation>Titel</translation>
    101118    </message>
    102119    <message>
    103         <location filename="../cd.cpp" line="450"/>
     120        <location filename="../cd.cpp" line="431"/>
    104121        <source>Source</source>
    105122        <translation>Quelle</translation>
    106123    </message>
    107124    <message>
    108         <location filename="../cd.cpp" line="451"/>
    109         <location filename="../cd.cpp" line="493"/>
     125        <location filename="../cd.cpp" line="432"/>
     126        <location filename="../cd.cpp" line="474"/>
    110127        <source>Artist</source>
    111128        <translation>Interpret</translation>
    112129    </message>
    113130    <message>
    114         <location filename="../cd.cpp" line="451"/>
    115         <location filename="../cd.cpp" line="495"/>
     131        <location filename="../cd.cpp" line="432"/>
     132        <location filename="../cd.cpp" line="476"/>
    116133        <source>Label</source>
    117134        <translation type="unfinished"></translation>
    118135    </message>
    119136    <message>
    120         <location filename="../cd.cpp" line="452"/>
     137        <location filename="../cd.cpp" line="433"/>
    121138        <source>Pub. Date</source>
    122139        <translation>Veröf. Datum</translation>
    123140    </message>
    124141    <message>
    125         <location filename="../cd.cpp" line="452"/>
    126         <location filename="../cd.cpp" line="494"/>
     142        <location filename="../cd.cpp" line="433"/>
     143        <location filename="../cd.cpp" line="475"/>
    127144        <source>Discs</source>
    128145        <translation type="unfinished"></translation>
    129146    </message>
    130147    <message>
    131         <location filename="../cd.cpp" line="453"/>
    132         <location filename="../cd.cpp" line="496"/>
     148        <location filename="../cd.cpp" line="477"/>
    133149        <source>EAN</source>
    134150        <translation>EAN</translation>
     
    139155    </message>
    140156    <message>
    141         <location filename="../cd.cpp" line="453"/>
     157        <location filename="../cd.cpp" line="434"/>
    142158        <source>Description</source>
    143159        <translation>Beschreibung</translation>
    144160    </message>
    145161    <message>
    146         <location filename="../cd.cpp" line="453"/>
     162        <location filename="../cd.cpp" line="434"/>
    147163        <source>Owner</source>
    148164        <translation>EigentÃŒmer</translation>
    149165    </message>
    150166    <message>
    151         <location filename="../cd.cpp" line="453"/>
     167        <location filename="../cd.cpp" line="434"/>
    152168        <source>Track</source>
    153169        <translation>MusikstÃŒck</translation>
    154170    </message>
    155171    <message>
    156         <location filename="../cd.cpp" line="497"/>
     172        <location filename="../cd.cpp" line="478"/>
    157173        <source>Wish</source>
    158174        <translation>Wunsch</translation>
    159175    </message>
    160176    <message>
    161         <location filename="../cd.cpp" line="518"/>
     177        <location filename="../cd.cpp" line="499"/>
    162178        <source>Yes</source>
    163179        <translation>Ja</translation>
     
    402418    <name>CDsDB</name>
    403419    <message>
    404         <location filename="../cdsdb.cpp" line="69"/>
     420        <location filename="../cdsdb.cpp" line="59"/>
    405421        <source>Audio CD</source>
    406422        <translation>Audio CD</translation>
    407423    </message>
    408424    <message>
    409         <location filename="../cdsdb.cpp" line="69"/>
     425        <location filename="../cdsdb.cpp" line="59"/>
    410426        <source>All medias which are audio cds or dvds</source>
    411427        <translation>Alle Medien wie Audio CD&apos;s sowie DVD&apos;s (...)</translation>
    412428    </message>
    413429    <message>
    414         <location filename="../cdsdb.cpp" line="72"/>
     430        <location filename="../cdsdb.cpp" line="62"/>
    415431        <source>Track</source>
    416432        <translation>MusikstÃŒck</translation>
    417433    </message>
    418434    <message>
    419         <location filename="../cdsdb.cpp" line="72"/>
     435        <location filename="../cdsdb.cpp" line="62"/>
    420436        <source>A track of an artist</source>
    421437        <translation>Ein Interpret eines MusikstÃŒckes oder einer CD</translation>
    422438    </message>
    423439    <message>
    424         <location filename="../cdsdb.cpp" line="81"/>
     440        <location filename="../cdsdb.cpp" line="70"/>
    425441        <source>Artist</source>
    426442        <translation>Interpret</translation>
    427443    </message>
    428444    <message>
    429         <location filename="../cdsdb.cpp" line="81"/>
     445        <location filename="../cdsdb.cpp" line="70"/>
    430446        <source>The artist which performs an track</source>
    431447        <translation>Der Interpret, der das MusikstÃŒck vortrÀgt</translation>
     
    436452    <message>
    437453        <location filename="../cdsmodel.cpp" line="38"/>
     454        <source>MIN</source>
     455        <translation type="unfinished"></translation>
     456    </message>
     457    <message>
     458        <location filename="../cdsmodel.cpp" line="39"/>
    438459        <source>List price</source>
    439460        <translation>Listenpreis</translation>
    440461    </message>
    441462    <message>
    442         <location filename="../cdsmodel.cpp" line="39"/>
     463        <location filename="../cdsmodel.cpp" line="40"/>
    443464        <source>List price currency</source>
    444465        <translation>ListenpreiswÀhrung</translation>
    445466    </message>
    446467    <message>
    447         <location filename="../cdsmodel.cpp" line="72"/>
     468        <location filename="../cdsmodel.cpp" line="73"/>
    448469        <source>Owner</source>
    449470        <translation>EigentÃŒmer</translation>
  • branches/release-0.3.0-rc1/src/SearchPlugins/Amazon/amazon.cpp

    r227 r233  
    116116  attrs << tr ( "Title" );
    117117  // common attributes
    118   attrs << tr ( "EAN" ) << tr ( "Image" ) << tr ( "Description" ) << tr ( "Price" ) << tr ( "Currency" );
     118  attrs << tr ( "MIN" ) << tr ( "Image" ) << tr ( "Description" ) << tr ( "Price" ) << tr ( "Currency" );
    119119  // Book specials
    120120  attrs << tr ( "Edition" ) << tr ( "Pages" ) << tr ( "Publication Date" ) << tr ( "Publication Place" );
     
    175175  //    processing constraints
    176176  foreach ( SqlConstraint constraint, sqlConstraints ) {
    177     if ( constraint.constraint().contains ( "ean" ) ) {
     177    if ( constraint.constraint().contains ( "materialhasmins" ) ) {
     178                        // we treat all MIN's as EAN's
    178179                        if(constraint.bindValues().size() == 1)
    179180                                itemSearch->setEan ( constraint.bindValues()[0].toString().replace ( "%", "" ) );
     
    971972
    972973    if ( child.tagName() == "EAN" ) {
    973       medium->setValue ( mapAttributes.value ( tr ( "EAN" ) ), child.text() );
     974                        QStringList tmp;
     975                        tmp << child.text() << "EAN";
     976      medium->setValue ( mapAttributes.value ( tr ( "MIN" ) ), tmp );
    974977    }
    975978
    976979    if ( child.tagName() == "ISBN" ) {
    977       medium->setValue ( mapAttributes.value ( tr ( "EAN" ) ), child.text() );
     980                        QStringList tmp;
     981                        tmp << child.text() << "ISBN-10";
     982      medium->setValue ( mapAttributes.value ( tr ( "MIN" ) ), tmp );
    978983    }
    979984
     
    11701175  settings.beginGroup ( "mapping" + group() + medium->group() );
    11711176
    1172   int numMediaAttrs = settings.value ( "numMediaAttrs", 0 ).toInt();
    1173 
    1174   int numSearchAttrs = settings.value ( "numSearchAttrs", 0 ).toInt();
    1175 
    11761177  QStringList mediaAttrs = settings.value ( "mediaAttrs" ).toStringList();
    11771178
     
    11791180
    11801181  settings.endGroup();
    1181 
    11821182
    11831183
  • branches/release-0.3.0-rc1/src/SearchPlugins/Amazon/lang/amazon_de.ts

    r211 r233  
    1616    <message>
    1717        <location filename="../amazon.cpp" line="116"/>
    18         <location filename="../amazon.cpp" line="896"/>
     18        <location filename="../amazon.cpp" line="897"/>
    1919        <source>Title</source>
    2020        <translation>Titel</translation>
     
    2222    <message>
    2323        <location filename="../amazon.cpp" line="113"/>
    24         <location filename="../amazon.cpp" line="903"/>
    2524        <location filename="../amazon.cpp" line="904"/>
    26         <location filename="../amazon.cpp" line="913"/>
     25        <location filename="../amazon.cpp" line="905"/>
     26        <location filename="../amazon.cpp" line="914"/>
    2727        <source>Author</source>
    2828        <translation>Autor</translation>
     
    3030    <message>
    3131        <location filename="../amazon.cpp" line="113"/>
    32         <location filename="../amazon.cpp" line="912"/>
     32        <location filename="../amazon.cpp" line="913"/>
    3333        <source>Editor</source>
    3434        <translation>Herausgeber</translation>
     
    3636    <message>
    3737        <location filename="../amazon.cpp" line="113"/>
    38         <location filename="../amazon.cpp" line="921"/>
    3938        <location filename="../amazon.cpp" line="922"/>
     39        <location filename="../amazon.cpp" line="923"/>
    4040        <source>Actor</source>
    4141        <translation>Darsteller</translation>
     
    4848    <message>
    4949        <location filename="../amazon.cpp" line="113"/>
    50         <location filename="../amazon.cpp" line="937"/>
    5150        <location filename="../amazon.cpp" line="938"/>
     51        <location filename="../amazon.cpp" line="939"/>
    5252        <source>Director</source>
    5353        <translation>Regisseur</translation>
    5454    </message>
    5555    <message>
    56         <location filename="../amazon.cpp" line="118"/>
    57         <location filename="../amazon.cpp" line="973"/>
    58         <location filename="../amazon.cpp" line="977"/>
    5956        <source>EAN</source>
    60         <translation>EAN</translation>
     57        <translation type="obsolete">EAN</translation>
    6158    </message>
    6259    <message>
     
    6764    <message>
    6865        <location filename="../amazon.cpp" line="118"/>
    69         <location filename="../amazon.cpp" line="863"/>
     66        <location filename="../amazon.cpp" line="864"/>
    7067        <source>Description</source>
    7168        <translation>Beschreibung</translation>
     
    7370    <message>
    7471        <location filename="../amazon.cpp" line="120"/>
    75         <location filename="../amazon.cpp" line="957"/>
    76         <location filename="../amazon.cpp" line="961"/>
    77         <location filename="../amazon.cpp" line="965"/>
     72        <location filename="../amazon.cpp" line="958"/>
     73        <location filename="../amazon.cpp" line="962"/>
     74        <location filename="../amazon.cpp" line="966"/>
    7875        <source>Publication Date</source>
    7976        <translation>Veröf. Datum</translation>
     
    8683    <message>
    8784        <location filename="../amazon.cpp" line="120"/>
    88         <location filename="../amazon.cpp" line="945"/>
     85        <location filename="../amazon.cpp" line="946"/>
    8986        <source>Edition</source>
    9087        <translation>Auflage</translation>
     
    9289    <message>
    9390        <location filename="../amazon.cpp" line="114"/>
    94         <location filename="../amazon.cpp" line="949"/>
     91        <location filename="../amazon.cpp" line="950"/>
    9592        <source>Publisher</source>
    9693        <translation>Verlag</translation>
     
    9895    <message>
    9996        <location filename="../amazon.cpp" line="113"/>
    100         <location filename="../amazon.cpp" line="929"/>
    10197        <location filename="../amazon.cpp" line="930"/>
     98        <location filename="../amazon.cpp" line="931"/>
    10299        <source>Artist</source>
    103100        <translation>Interpret</translation>
     
    110107    <message>
    111108        <location filename="../amazon.cpp" line="114"/>
    112         <location filename="../amazon.cpp" line="953"/>
     109        <location filename="../amazon.cpp" line="954"/>
    113110        <source>Label</source>
    114111        <translation>Label</translation>
     
    120117    <message>
    121118        <location filename="../amazon.cpp" line="120"/>
    122         <location filename="../amazon.cpp" line="981"/>
     119        <location filename="../amazon.cpp" line="986"/>
    123120        <source>Pages</source>
    124121        <translation>Seiten</translation>
     
    130127    </message>
    131128    <message>
    132         <location filename="../amazon.cpp" line="238"/>
    133         <location filename="../amazon.cpp" line="723"/>
     129        <location filename="../amazon.cpp" line="239"/>
     130        <location filename="../amazon.cpp" line="724"/>
    134131        <source>Amazon Log</source>
    135132        <translation>Amazon Log</translation>
     
    141138    </message>
    142139    <message>
    143         <location filename="../amazon.cpp" line="755"/>
     140        <location filename="../amazon.cpp" line="756"/>
    144141        <source>Settings are not correct</source>
    145142        <translation>Die Einstellungen sind nicht in Ordnung</translation>
    146143    </message>
    147144    <message>
    148         <location filename="../amazon.cpp" line="226"/>
     145        <location filename="../amazon.cpp" line="227"/>
    149146        <source>The created search request does not contain any conditions</source>
    150147        <translation>Die erstellte Anfrage enthÀlt keine Bedingungen</translation>
    151148    </message>
    152149    <message>
    153         <location filename="../amazon.cpp" line="793"/>
     150        <location filename="../amazon.cpp" line="794"/>
    154151        <source>Fetching next page</source>
    155152        <translation>Hole nÀchste Seite</translation>
     
    160157    </message>
    161158    <message>
    162         <location filename="../amazon.cpp" line="771"/>
     159        <location filename="../amazon.cpp" line="772"/>
    163160        <source>Abort</source>
    164161        <translation>Abbrechen</translation>
     
    169166    </message>
    170167    <message>
    171         <location filename="../amazon.cpp" line="806"/>
     168        <location filename="../amazon.cpp" line="807"/>
    172169        <source>Request:
    173170%1</source>
     
    176173    </message>
    177174    <message>
    178         <location filename="../amazon.cpp" line="451"/>
     175        <location filename="../amazon.cpp" line="452"/>
    179176        <source>Request error
    180177%1
     
    187184    </message>
    188185    <message>
    189         <location filename="../amazon.cpp" line="483"/>
     186        <location filename="../amazon.cpp" line="484"/>
    190187        <source>Parsing page</source>
    191188        <translation>Parse Seite</translation>
     
    198195    </message>
    199196    <message>
    200         <location filename="../amazon.cpp" line="515"/>
     197        <location filename="../amazon.cpp" line="516"/>
    201198        <source>Checking wether request was valid</source>
    202199        <translation>PrÃŒfe ob die Anfrage gÃŒltig war</translation>
    203200    </message>
    204201    <message>
    205         <location filename="../amazon.cpp" line="527"/>
     202        <location filename="../amazon.cpp" line="528"/>
    206203        <source>No valid document!</source>
    207204        <translation>Kein gÃŒltiges Dokument!</translation>
    208205    </message>
    209206    <message>
    210         <location filename="../amazon.cpp" line="535"/>
     207        <location filename="../amazon.cpp" line="536"/>
    211208        <source>Request was not valid!</source>
    212209        <translation>Anfrage war nicht gÃŒltig!</translation>
    213210    </message>
    214211    <message>
    215         <location filename="../amazon.cpp" line="543"/>
     212        <location filename="../amazon.cpp" line="544"/>
    216213        <source>Calculating the amount of results</source>
    217214        <translation>Berechne die Ergebnisanzahl</translation>
    218215    </message>
    219216    <message>
    220         <location filename="../amazon.cpp" line="559"/>
    221         <location filename="../amazon.cpp" line="599"/>
     217        <location filename="../amazon.cpp" line="560"/>
     218        <location filename="../amazon.cpp" line="600"/>
    222219        <source>No valid document</source>
    223220        <translation>Kein gÃŒltiges Dokument</translation>
    224221    </message>
    225222    <message>
    226         <location filename="../amazon.cpp" line="572"/>
     223        <location filename="../amazon.cpp" line="573"/>
    227224        <source>No results found!</source>
    228225        <translation>Keine Ergebnisse Gefunden!</translation>
    229226    </message>
    230227    <message>
    231         <location filename="../amazon.cpp" line="611"/>
     228        <location filename="../amazon.cpp" line="612"/>
    232229        <source>No results found (No pages)!</source>
    233230        <translation>Keine Ergebnisse gefunden (Keine Seiten)!</translation>
     
    238235    </message>
    239236    <message numerus="yes">
    240         <location filename="../amazon.cpp" line="626"/>
     237        <location filename="../amazon.cpp" line="627"/>
    241238        <source>%n result(s)</source>
    242239        <translation>
     
    246243    </message>
    247244    <message numerus="yes">
    248         <location filename="../amazon.cpp" line="627"/>
     245        <location filename="../amazon.cpp" line="628"/>
    249246        <source>%n page(s)</source>
    250247        <translation>
     
    254251    </message>
    255252    <message>
    256         <location filename="../amazon.cpp" line="631"/>
     253        <location filename="../amazon.cpp" line="632"/>
    257254        <source>Parsing page %1 of %2</source>
    258255        <translation>Parse Seite %1 von %2</translation>
    259256    </message>
    260257    <message>
    261         <location filename="../amazon.cpp" line="634"/>
     258        <location filename="../amazon.cpp" line="635"/>
    262259        <source>Parsing page %1 of %2 (of max. %3)</source>
    263260        <translation>Bearbeite Seite %1 von %2 (von max. %3)</translation>
    264261    </message>
    265262    <message>
    266         <location filename="../amazon.cpp" line="788"/>
     263        <location filename="../amazon.cpp" line="789"/>
    267264        <source>Start request</source>
    268265        <translation>Starte Anfrage</translation>
    269266    </message>
    270267    <message>
    271         <location filename="../amazon.cpp" line="771"/>
    272         <location filename="../amazon.cpp" line="775"/>
     268        <location filename="../amazon.cpp" line="772"/>
     269        <location filename="../amazon.cpp" line="776"/>
    273270        <source>Fetching Amazon Results</source>
    274271        <translation>Hole Amazon Ergebnisse</translation>
    275272    </message>
    276273    <message>
    277         <location filename="../amazon.cpp" line="989"/>
     274        <location filename="../amazon.cpp" line="994"/>
    278275        <source>Number Of Disks</source>
    279276        <translation>Anzahl der Discs</translation>
    280277    </message>
    281278    <message>
    282         <location filename="../amazon.cpp" line="384"/>
     279        <location filename="../amazon.cpp" line="385"/>
    283280        <source>Unknown</source>
    284281        <translation>Unbekannt</translation>
     
    286283    <message>
    287284        <location filename="../amazon.cpp" line="122"/>
    288         <location filename="../amazon.cpp" line="1024"/>
     285        <location filename="../amazon.cpp" line="1029"/>
    289286        <source>Track</source>
    290287        <translation>MusikstÃŒck</translation>
    291288    </message>
    292289    <message>
    293         <location filename="../amazon.cpp" line="625"/>
     290        <location filename="../amazon.cpp" line="626"/>
    294291        <source>Found %1 on %2, parsing details...</source>
    295292        <translation>Hole %1 von %2, bearbeite Details...</translation>
    296293    </message>
    297294    <message>
    298         <location filename="../amazon.cpp" line="761"/>
     295        <location filename="../amazon.cpp" line="762"/>
    299296        <source>The signature can not be created due to missing crypting features!
    300297Check your QCA2 installation (e.g. with qcatool2) and espacially the qca-ossl plugin.</source>
     
    303300    </message>
    304301    <message>
    305         <location filename="../amazon.cpp" line="387"/>
     302        <location filename="../amazon.cpp" line="388"/>
    306303        <source>Connection Refused</source>
    307304        <translation>Verbindungsversuch abgelehnt</translation>
     
    309306    <message>
    310307        <location filename="../amazon.cpp" line="118"/>
    311         <location filename="../amazon.cpp" line="996"/>
     308        <location filename="../amazon.cpp" line="1001"/>
    312309        <source>Price</source>
    313310        <translation>Preis</translation>
     
    315312    <message>
    316313        <location filename="../amazon.cpp" line="118"/>
    317         <location filename="../amazon.cpp" line="998"/>
     314        <location filename="../amazon.cpp" line="1003"/>
    318315        <source>Currency</source>
    319316        <translation>WÀhrung</translation>
    320317    </message>
    321318    <message>
    322         <location filename="../amazon.cpp" line="391"/>
     319        <location filename="../amazon.cpp" line="118"/>
     320        <location filename="../amazon.cpp" line="976"/>
     321        <location filename="../amazon.cpp" line="982"/>
     322        <source>MIN</source>
     323        <translation>MIN</translation>
     324    </message>
     325    <message>
     326        <location filename="../amazon.cpp" line="392"/>
    323327        <source>Remote host has closed the connection</source>
    324328        <translation>Das Verbindungsziel hat die Verbindung beendet</translation>
    325329    </message>
    326330    <message>
    327         <location filename="../amazon.cpp" line="395"/>
     331        <location filename="../amazon.cpp" line="396"/>
    328332        <source>Host not found</source>
    329333        <translation>Zielrechner nicht gefunden</translation>
    330334    </message>
    331335    <message>
    332         <location filename="../amazon.cpp" line="399"/>
     336        <location filename="../amazon.cpp" line="400"/>
    333337        <source>Timeout</source>
    334338        <translation>ZietÃŒberschreitung</translation>
    335339    </message>
    336340    <message>
    337         <location filename="../amazon.cpp" line="403"/>
     341        <location filename="../amazon.cpp" line="404"/>
    338342        <source>Operation canceled</source>
    339343        <translation>Vorgang abgebrochen</translation>
    340344    </message>
    341345    <message>
    342         <location filename="../amazon.cpp" line="407"/>
     346        <location filename="../amazon.cpp" line="408"/>
    343347        <source>SSL Handshake failed</source>
    344348        <translation>SSL Initialisierung fehlgeschlagen</translation>
    345349    </message>
    346350    <message>
    347         <location filename="../amazon.cpp" line="411"/>
     351        <location filename="../amazon.cpp" line="412"/>
    348352        <source>Access denied</source>
    349353        <translation>Zugang verweigert</translation>
    350354    </message>
    351355    <message>
    352         <location filename="../amazon.cpp" line="415"/>
     356        <location filename="../amazon.cpp" line="416"/>
    353357        <source>Operation not permitted</source>
    354358        <translation>Vorgang nicht erlaubt</translation>
    355359    </message>
    356360    <message>
    357         <location filename="../amazon.cpp" line="419"/>
     361        <location filename="../amazon.cpp" line="420"/>
    358362        <source>Page not found</source>
    359363        <translation>Seite nicht gefunden</translation>
    360364    </message>
    361365    <message>
    362         <location filename="../amazon.cpp" line="423"/>
     366        <location filename="../amazon.cpp" line="424"/>
    363367        <source>Authorisation required</source>
    364368        <translation>Authorisierung erforderlich</translation>
    365369    </message>
    366370    <message>
    367         <location filename="../amazon.cpp" line="427"/>
     371        <location filename="../amazon.cpp" line="428"/>
    368372        <source>Unknown protocol</source>
    369373        <translation>Unbekanntes Protokol</translation>
    370374    </message>
    371375    <message>
    372         <location filename="../amazon.cpp" line="431"/>
     376        <location filename="../amazon.cpp" line="432"/>
    373377        <source>Protocol: Operation invalid</source>
    374378        <translation>Protokol: Vorgang ungÃŒltig</translation>
    375379    </message>
    376380    <message>
    377         <location filename="../amazon.cpp" line="435"/>
     381        <location filename="../amazon.cpp" line="436"/>
    378382        <source>Unknown network error</source>
    379383        <translation>Unbekannter Netzwerkfehler</translation>
    380384    </message>
    381385    <message>
    382         <location filename="../amazon.cpp" line="439"/>
     386        <location filename="../amazon.cpp" line="440"/>
    383387        <source>Unknown proxy error</source>
    384388        <translation>Unbekannter Proxyfehler</translation>
    385389    </message>
    386390    <message>
    387         <location filename="../amazon.cpp" line="443"/>
     391        <location filename="../amazon.cpp" line="444"/>
    388392        <source>Unknown content error</source>
    389393        <translation>Unbekannter Fehler im Inhalt</translation>
    390394    </message>
    391395    <message>
    392         <location filename="../amazon.cpp" line="447"/>
     396        <location filename="../amazon.cpp" line="448"/>
    393397        <source>protocol failure</source>
    394398        <translation>Protokolfehler</translation>
    395399    </message>
    396400    <message>
    397         <location filename="../amazon.cpp" line="500"/>
     401        <location filename="../amazon.cpp" line="501"/>
    398402        <source>Could not convert data into an XML-DOM-Document.
    399403Error in Line %1, Column %2: %3 (s. log)</source>
     
    402406    </message>
    403407    <message>
    404         <location filename="../amazon.cpp" line="506"/>
     408        <location filename="../amazon.cpp" line="507"/>
    405409        <source>An empty file (Indicated by &quot;Error in Line 1, Column 1&quot;)
    406410is mostly returned, if the credentials are not correct!</source>
  • branches/release-0.3.0-rc1/src/mediadb/lang/mediadb_de.ts

    r217 r233  
    8181    </message>
    8282    <message>
    83         <location filename="../dbinit.cpp" line="247"/>
     83        <location filename="../dbinit.cpp" line="243"/>
    8484        <source>Loan Requested</source>
    8585        <translation>Ausleihe angefragt</translation>
    8686    </message>
    8787    <message>
    88         <location filename="../dbinit.cpp" line="247"/>
     88        <location filename="../dbinit.cpp" line="243"/>
    8989        <source>The medium is requested for loaning</source>
    9090        <translation>Eine Anfrage zur Ausleihe des Mediums wurde gestartet</translation>
    9191    </message>
    9292    <message>
    93         <location filename="../dbinit.cpp" line="247"/>
     93        <location filename="../dbinit.cpp" line="243"/>
    9494        <source>Request Loan</source>
    9595        <translation>Ausleihe anfragen</translation>
    9696    </message>
    9797    <message>
    98         <location filename="../dbinit.cpp" line="250"/>
     98        <location filename="../dbinit.cpp" line="246"/>
    9999        <source>Loan Denied</source>
    100100        <translation>Ausleihe abgelehnt</translation>
    101101    </message>
    102102    <message>
    103         <location filename="../dbinit.cpp" line="250"/>
     103        <location filename="../dbinit.cpp" line="246"/>
    104104        <source>Denie Loan</source>
    105105        <translation>Ausleihe ablehnen</translation>
    106106    </message>
    107107    <message>
    108         <location filename="../dbinit.cpp" line="250"/>
     108        <location filename="../dbinit.cpp" line="246"/>
    109109        <source>The loan request was denied</source>
    110110        <translation>Die Leihanfrage wurde abgelehnt</translation>
    111111    </message>
    112112    <message>
    113         <location filename="../dbinit.cpp" line="253"/>
     113        <location filename="../dbinit.cpp" line="249"/>
    114114        <source>Loaned</source>
    115115        <translation>Verliehen</translation>
    116116    </message>
    117117    <message>
    118         <location filename="../dbinit.cpp" line="253"/>
     118        <location filename="../dbinit.cpp" line="249"/>
    119119        <source>The medium is loaned to the user</source>
    120120        <translation>Das Medium wurde an den Leiher ÃŒbergeben</translation>
    121121    </message>
    122122    <message>
    123         <location filename="../dbinit.cpp" line="253"/>
     123        <location filename="../dbinit.cpp" line="249"/>
    124124        <source>Loan</source>
    125125        <translation>Leihen</translation>
    126126    </message>
    127127    <message>
    128         <location filename="../dbinit.cpp" line="256"/>
     128        <location filename="../dbinit.cpp" line="252"/>
    129129        <source>Return Requested</source>
    130130        <translation>RÃŒckgabe angefragt</translation>
    131131    </message>
    132132    <message>
    133         <location filename="../dbinit.cpp" line="256"/>
     133        <location filename="../dbinit.cpp" line="252"/>
    134134        <source>The owner requested the recipient, to give the medium back</source>
    135135        <translation>Der EigentÃŒmer hat angefragt, dass Medium zurÃŒckzugeben</translation>
    136136    </message>
    137137    <message>
    138         <location filename="../dbinit.cpp" line="256"/>
     138        <location filename="../dbinit.cpp" line="252"/>
    139139        <source>Request Return</source>
    140140        <translation>RÃŒckgabe anfragen</translation>
    141141    </message>
    142142    <message>
    143         <location filename="../dbinit.cpp" line="259"/>
     143        <location filename="../dbinit.cpp" line="255"/>
    144144        <source>Returned</source>
    145145        <translation>RÃŒckgabe erfolgt</translation>
    146146    </message>
    147147    <message>
    148         <location filename="../dbinit.cpp" line="259"/>
     148        <location filename="../dbinit.cpp" line="255"/>
    149149        <source>The medium was given back to owner</source>
    150150        <translation>Das Medium wurde zurÃŒckgegeben</translation>
    151151    </message>
    152152    <message>
    153         <location filename="../dbinit.cpp" line="262"/>
     153        <location filename="../dbinit.cpp" line="258"/>
    154154        <source>Request Canceled</source>
    155155        <translation>Anfrage zurÃŒckgezogen</translation>
    156156    </message>
    157157    <message>
    158         <location filename="../dbinit.cpp" line="262"/>
     158        <location filename="../dbinit.cpp" line="258"/>
    159159        <source>Cancel Request</source>
    160160        <translation>Anfrage zurÃŒckziehen</translation>
    161161    </message>
    162162    <message>
    163         <location filename="../dbinit.cpp" line="262"/>
     163        <location filename="../dbinit.cpp" line="258"/>
    164164        <source>The request was canceled</source>
    165165        <translation>Die Anfrage wurde zurÃŒckgezogen</translation>
     166    </message>
     167    <message>
     168        <location filename="../dbinit.cpp" line="455"/>
     169        <source>Could not find id of MIN EAN
     170%1
     171%2</source>
     172        <translation>Konnte Id des MIN-Types EAN nicht ermitteln
     173%1
     174%2</translation>
     175    </message>
     176    <message>
     177        <location filename="../dbinit.cpp" line="468"/>
     178        <source>Could not move EAN&apos;s to new table!
     179%1
     180%2</source>
     181        <translation>Konnte EAN&apos;s nicht in die neue Struktur ÃŒberfÃŒhren!
     182%1
     183%2</translation>
    166184    </message>
    167185</context>
     
    241259        <source>Cancel</source>
    242260        <translation type="obsolete">Abbrechen</translation>
     261    </message>
     262</context>
     263<context>
     264    <name>EANValidator</name>
     265    <message>
     266        <location filename="../eanvalidatorplugin/eanvalidator.cpp" line="38"/>
     267        <source>EAN + ISBN-13 - European Product Number is used for many kind of products. It can have 8 or 13 numbers. The ISBN-13 is also an EAN</source>
     268        <translation>EAN + ISBN-13 - Die European Product Number wird fÃŒr viele verschiedene Produkte eingesetzt. Sie kann 8 oder 13 Ziffern umfassen. Die ISBN-13 ist dabei eine Teilmenge der EAN-13, weshalb in diesem Programm die EAN genutzt wird und nicht die ISBN-13.</translation>
    243269    </message>
    244270</context>
     
    341367    </message>
    342368    <message>
    343         <location filename="../mediendb.ui" line="46"/>
    344         <location filename="../mediendb.ui" line="90"/>
     369        <location filename="../mediendb.ui" line="49"/>
     370        <location filename="../mediendb.ui" line="93"/>
    345371        <source>Help</source>
    346372        <translation>Hilfe</translation>
    347373    </message>
    348374    <message>
    349         <location filename="../mediendb.ui" line="55"/>
     375        <location filename="../mediendb.ui" line="58"/>
    350376        <source>View</source>
    351377        <translation>Ansicht</translation>
    352378    </message>
    353379    <message>
    354         <location filename="../mediendb.ui" line="61"/>
     380        <location filename="../mediendb.ui" line="64"/>
    355381        <source>Edit</source>
    356382        <translation>Bearbeiten</translation>
    357383    </message>
    358384    <message>
    359         <location filename="../mediendb.ui" line="75"/>
     385        <location filename="../mediendb.ui" line="78"/>
    360386        <source>Quit</source>
    361387        <translation>Beenden</translation>
     
    366392    </message>
    367393    <message>
    368         <location filename="../mediendb.ui" line="80"/>
     394        <location filename="../mediendb.ui" line="83"/>
    369395        <source>About MediaDB</source>
    370396        <translation>Über MediaDB</translation>
    371397    </message>
    372398    <message>
    373         <location filename="../mediendb.ui" line="85"/>
     399        <location filename="../mediendb.ui" line="88"/>
    374400        <source>About used Software</source>
    375401        <translation>Über benutzte Software</translation>
    376402    </message>
    377403    <message>
    378         <location filename="../mediendb.ui" line="93"/>
     404        <location filename="../mediendb.ui" line="96"/>
    379405        <source>F1</source>
    380406        <translation>F1</translation>
    381407    </message>
    382408    <message>
    383         <location filename="../mediendb.ui" line="98"/>
     409        <location filename="../mediendb.ui" line="101"/>
    384410        <source>About plugins</source>
    385411        <translation>Über Plugins</translation>
    386412    </message>
    387413    <message>
    388         <location filename="../mediendb.ui" line="103"/>
     414        <location filename="../mediendb.ui" line="106"/>
    389415        <source>Settings</source>
    390416        <translation>Einstellungen</translation>
    391417    </message>
    392418    <message>
    393         <location filename="../mediendb.ui" line="108"/>
     419        <location filename="../mediendb.ui" line="111"/>
    394420        <source>Manufacturers</source>
    395421        <translation>Hersteller</translation>
    396422    </message>
    397423    <message>
    398         <location filename="../mediendb.ui" line="113"/>
     424        <location filename="../mediendb.ui" line="116"/>
    399425        <source>Setup Wizard</source>
    400426        <translation>Einrichtungsassistent</translation>
    401427    </message>
    402428    <message>
    403         <location filename="../mediendb.ui" line="118"/>
     429        <location filename="../mediendb.ui" line="121"/>
    404430        <source>Genres</source>
    405431        <translation>Genres</translation>
    406432    </message>
    407433    <message>
    408         <location filename="../mediendb.ui" line="123"/>
     434        <location filename="../mediendb.ui" line="126"/>
    409435        <source>Material Persons</source>
    410436        <translation>Personen</translation>
    411437    </message>
    412438    <message>
    413         <location filename="../mediendb.ui" line="128"/>
     439        <location filename="../mediendb.ui" line="131"/>
    414440        <source>Roles</source>
    415441        <translation>Rollen</translation>
    416442    </message>
    417443    <message>
    418         <location filename="../mediendb.ui" line="133"/>
     444        <location filename="../mediendb.ui" line="136"/>
    419445        <source>User</source>
    420446        <translation>Nutzer</translation>
    421447    </message>
    422448    <message>
    423         <location filename="../mediendb.ui" line="138"/>
     449        <location filename="../mediendb.ui" line="141"/>
    424450        <source>Summary</source>
    425451        <translation>Zusammenfassung</translation>
    426452    </message>
    427453    <message>
    428         <location filename="../mediendb.ui" line="143"/>
     454        <location filename="../mediendb.ui" line="146"/>
    429455        <source>Projects</source>
    430456        <translation>Projekte</translation>
    431457    </message>
    432458    <message>
    433         <location filename="../mediendb.ui" line="148"/>
     459        <location filename="../mediendb.ui" line="151"/>
    434460        <source>Database Backups</source>
    435461        <translation>Datenbank Sicherung</translation>
    436462    </message>
    437463    <message>
     464        <location filename="../mediendb.ui" line="156"/>
     465        <source>MIN Types</source>
     466        <translation>MIN Typen</translation>
     467    </message>
     468    <message>
    438469        <source>Manufacturer</source>
    439470        <translation type="obsolete">Hersteller</translation>
     
    443474    <name>MedienDB</name>
    444475    <message>
    445         <location filename="../mediendb.cpp" line="178"/>
     476        <location filename="../mediendb.cpp" line="180"/>
    446477        <source>Plugin dir does not exist!
    447478%1</source>
     
    450481    </message>
    451482    <message>
    452         <location filename="../mediendb.cpp" line="185"/>
     483        <location filename="../mediendb.cpp" line="187"/>
    453484        <source>No files found at
    454485%1</source>
     
    464495    </message>
    465496    <message>
    466         <location filename="../mediendb.cpp" line="215"/>
     497        <location filename="../mediendb.cpp" line="217"/>
    467498        <source>While loading %1 an error occured:
    468499%2 %1</source>
     
    474505    </message>
    475506    <message>
    476         <location filename="../mediendb.cpp" line="228"/>
     507        <location filename="../mediendb.cpp" line="230"/>
    477508        <source>Plugin is not a MediaDB-plugin:
    478509 %1</source>
     
    481512    </message>
    482513    <message>
    483         <location filename="../mediendb.cpp" line="239"/>
    484         <location filename="../mediendb.cpp" line="265"/>
     514        <location filename="../mediendb.cpp" line="241"/>
     515        <location filename="../mediendb.cpp" line="267"/>
    485516        <source>Cannot initiate module
    486517 %1</source>
     
    489520    </message>
    490521    <message>
    491         <location filename="../mediendb.cpp" line="378"/>
     522        <location filename="../mediendb.cpp" line="380"/>
    492523        <source>MediaDB - SetupWizard</source>
    493524        <translation>MediaDB - Einrichtungsassistent</translation>
    494525    </message>
    495526    <message>
    496         <location filename="../mediendb.cpp" line="378"/>
     527        <location filename="../mediendb.cpp" line="380"/>
    497528        <source>Everything setted up already</source>
    498529        <translation>Es ist bereits alles eingerichtet</translation>
    499530    </message>
    500531    <message>
    501         <location filename="../mediendb.cpp" line="668"/>
     532        <location filename="../mediendb.cpp" line="681"/>
    502533        <source>Version: </source>
    503534        <translation>Version:</translation>
    504535    </message>
    505536    <message>
    506         <location filename="../mediendb.cpp" line="682"/>
     537        <location filename="../mediendb.cpp" line="695"/>
    507538        <source>Usage: mediadb [-u name] [-p password] [-s db-host] [-d db-name] [-t driver]</source>
    508539        <translation>Benutzung: mediadb [-u Name] [-p Passwort] [-s DB-Host] [-d DB-Name] [-t Treiber]</translation>
    509540    </message>
    510541    <message>
    511         <location filename="../mediendb.cpp" line="684"/>
     542        <location filename="../mediendb.cpp" line="697"/>
    512543        <source>For details see manpage &quot;mediadb&quot; (Execute man mediadb)</source>
    513544        <translation>FÃŒr Details schauen Sie bitte in die Manpage von &quot;mediadb&quot; (Befehl: man mediadb)</translation>
    514545    </message>
    515546    <message>
    516         <location filename="../mediendb.cpp" line="686"/>
     547        <location filename="../mediendb.cpp" line="699"/>
    517548        <source>username to connect to the database</source>
    518549        <translation>Benutzername zum Verbinden zur Datenbank</translation>
    519550    </message>
    520551    <message>
    521         <location filename="../mediendb.cpp" line="687"/>
     552        <location filename="../mediendb.cpp" line="700"/>
    522553        <source>password to connect to the database</source>
    523554        <translation>Passwort zum Verbinden zur Datenbank</translation>
    524555    </message>
    525556    <message>
    526         <location filename="../mediendb.cpp" line="688"/>
     557        <location filename="../mediendb.cpp" line="701"/>
    527558        <source>host where the database is running on</source>
    528559        <translation>Host, auf dem die Datenbankanwendung lÀuft</translation>
    529560    </message>
    530561    <message>
    531         <location filename="../mediendb.cpp" line="689"/>
     562        <location filename="../mediendb.cpp" line="702"/>
    532563        <source>name of the database which should be used</source>
    533564        <translation>Name der Datenbank</translation>
    534565    </message>
    535566    <message>
    536         <location filename="../mediendb.cpp" line="690"/>
     567        <location filename="../mediendb.cpp" line="703"/>
    537568        <source>Driver to connect to database (Should be QMYSQL)</source>
    538569        <translation>Treiber, welcher zur Kommunikation genutzt wird (Solle QMYSQL sein)</translation>
    539570    </message>
    540571    <message>
    541         <location filename="../mediendb.cpp" line="691"/>
     572        <location filename="../mediendb.cpp" line="704"/>
    542573        <source>Show the version and exit</source>
    543574        <translation>Zeige nur die Version der Anwendung</translation>
    544575    </message>
    545576    <message>
    546         <location filename="../mediendb.cpp" line="692"/>
     577        <location filename="../mediendb.cpp" line="705"/>
    547578        <source>Show this help and exit</source>
    548579        <translation>Zeige nur diese Hilfe</translation>
     
    604635    </message>
    605636    <message>
    606         <location filename="../modulestate.ui" line="325"/>
     637        <source>Close</source>
     638        <translation type="obsolete">Schließen</translation>
     639    </message>
     640</context>
     641<context>
     642    <name>ModuleStateDialog</name>
     643    <message>
     644        <location filename="../modulestatedialog.cpp" line="41"/>
     645        <source>Media- and Searchplugins</source>
     646        <translation>Media- und Suchplugins</translation>
     647    </message>
     648    <message>
     649        <location filename="../modulestatedialog.cpp" line="52"/>
     650        <source>MIN Validators</source>
     651        <translation>MIN Checker</translation>
     652    </message>
     653    <message>
     654        <location filename="../modulestatedialog.cpp" line="63"/>
    607655        <source>Close</source>
    608656        <translation>Schließen</translation>
  • branches/release-0.3.0-rc1/src/mediadb/searchwidget.cpp

    r227 r233  
    209209        }
    210210  if ( !eanEdit->text().isEmpty() ){
    211 //              constraint = SqlConstraint();
    212 //     constraint.setConstraint("ean LIKE ?" );
    213 //              constraint.addBindValue(QString("%%1%").arg ( Medium::convertEan(eanEdit->text() ) ) );
    214 //              constraints << constraint;
     211                constraint = SqlConstraint();
     212    constraint.setConstraint("id IN(SELECT DISTINCT materialsId FROM materialhasmins WHERE min LIKE ? ORDER BY materialsId)" );
     213                constraint.addBindValue(QString("%%1%").arg ( eanEdit->text() ) );
     214                constraints << constraint;
    215215                filledWidgets.append(eanEdit);
    216216        }
Note: See TracChangeset for help on using the changeset viewer.