diff options
Diffstat (limited to 'src/collections')
-rw-r--r-- | src/collections/bibtexcollection.cpp | 208 | ||||
-rw-r--r-- | src/collections/boardgamecollection.cpp | 32 | ||||
-rw-r--r-- | src/collections/bookcollection.cpp | 72 | ||||
-rw-r--r-- | src/collections/cardcollection.cpp | 38 | ||||
-rw-r--r-- | src/collections/coincollection.cpp | 40 | ||||
-rw-r--r-- | src/collections/comicbookcollection.cpp | 48 | ||||
-rw-r--r-- | src/collections/filecatalog.cpp | 36 | ||||
-rw-r--r-- | src/collections/gamecollection.cpp | 36 | ||||
-rw-r--r-- | src/collections/musiccollection.cpp | 50 | ||||
-rw-r--r-- | src/collections/stampcollection.cpp | 42 | ||||
-rw-r--r-- | src/collections/videocollection.cpp | 82 | ||||
-rw-r--r-- | src/collections/winecollection.cpp | 36 |
12 files changed, 360 insertions, 360 deletions
diff --git a/src/collections/bibtexcollection.cpp b/src/collections/bibtexcollection.cpp index 3e580bb..dbe34ff 100644 --- a/src/collections/bibtexcollection.cpp +++ b/src/collections/bibtexcollection.cpp @@ -31,21 +31,21 @@ BibtexCollection::BibtexCollection(bool addFields_, const TQString& title_ /*=nu if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("author")); + setDefaultGroupField(TQString::tqfromLatin1("author")); // Bibtex has some default macros for the months - addMacro(TQString::fromLatin1("jan"), TQString()); - addMacro(TQString::fromLatin1("feb"), TQString()); - addMacro(TQString::fromLatin1("mar"), TQString()); - addMacro(TQString::fromLatin1("apr"), TQString()); - addMacro(TQString::fromLatin1("may"), TQString()); - addMacro(TQString::fromLatin1("jun"), TQString()); - addMacro(TQString::fromLatin1("jul"), TQString()); - addMacro(TQString::fromLatin1("aug"), TQString()); - addMacro(TQString::fromLatin1("sep"), TQString()); - addMacro(TQString::fromLatin1("oct"), TQString()); - addMacro(TQString::fromLatin1("nov"), TQString()); - addMacro(TQString::fromLatin1("dec"), TQString()); + addMacro(TQString::tqfromLatin1("jan"), TQString()); + addMacro(TQString::tqfromLatin1("feb"), TQString()); + addMacro(TQString::tqfromLatin1("mar"), TQString()); + addMacro(TQString::tqfromLatin1("apr"), TQString()); + addMacro(TQString::tqfromLatin1("may"), TQString()); + addMacro(TQString::tqfromLatin1("jun"), TQString()); + addMacro(TQString::tqfromLatin1("jul"), TQString()); + addMacro(TQString::tqfromLatin1("aug"), TQString()); + addMacro(TQString::tqfromLatin1("sep"), TQString()); + addMacro(TQString::tqfromLatin1("oct"), TQString()); + addMacro(TQString::tqfromLatin1("nov"), TQString()); + addMacro(TQString::tqfromLatin1("dec"), TQString()); } Tellico::Data::FieldVec BibtexCollection::defaultFields() { @@ -53,189 +53,189 @@ Tellico::Data::FieldVec BibtexCollection::defaultFields() { FieldPtr field; /******************* General ****************************/ - field = new Field(TQString::fromLatin1("title"), i18n("Title")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("title")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("title")); field->setCategory(i18n("General")); field->setFlags(Field::NoDelete); field->setFormatFlag(Field::FormatTitle); list.append(field); TQStringList types; - types << TQString::fromLatin1("article") << TQString::fromLatin1("book") - << TQString::fromLatin1("booklet") << TQString::fromLatin1("inbook") - << TQString::fromLatin1("incollection") << TQString::fromLatin1("inproceedings") - << TQString::fromLatin1("manual") << TQString::fromLatin1("mastersthesis") - << TQString::fromLatin1("misc") << TQString::fromLatin1("phdthesis") - << TQString::fromLatin1("proceedings") << TQString::fromLatin1("techreport") - << TQString::fromLatin1("unpublished") << TQString::fromLatin1("periodical") - << TQString::fromLatin1("conference"); - field = new Field(TQString::fromLatin1("entry-type"), i18n("Entry Type"), types); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("entry-type")); + types << TQString::tqfromLatin1("article") << TQString::tqfromLatin1("book") + << TQString::tqfromLatin1("booklet") << TQString::tqfromLatin1("inbook") + << TQString::tqfromLatin1("incollection") << TQString::tqfromLatin1("inproceedings") + << TQString::tqfromLatin1("manual") << TQString::tqfromLatin1("mastersthesis") + << TQString::tqfromLatin1("misc") << TQString::tqfromLatin1("phdthesis") + << TQString::tqfromLatin1("proceedings") << TQString::tqfromLatin1("techreport") + << TQString::tqfromLatin1("unpublished") << TQString::tqfromLatin1("periodical") + << TQString::tqfromLatin1("conference"); + field = new Field(TQString::tqfromLatin1("entry-type"), i18n("Entry Type"), types); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("entry-type")); field->setCategory(i18n(bibtex_general)); field->setFlags(Field::AllowGrouped | Field::NoDelete); field->setDescription(i18n("These entry types are specific to bibtex. See the bibtex documentation.")); list.append(field); - field = new Field(TQString::fromLatin1("author"), i18n("Author")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("author")); + field = new Field(TQString::tqfromLatin1("author"), i18n("Author")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("author")); field->setCategory(i18n(bibtex_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("bibtex-key"), i18n("Bibtex Key")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("key")); + field = new Field(TQString::tqfromLatin1("bibtex-key"), i18n("Bibtex Key")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("key")); field->setCategory(i18n("General")); field->setFlags(Field::NoDelete); list.append(field); - field = new Field(TQString::fromLatin1("booktitle"), i18n("Book Title")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("booktitle")); + field = new Field(TQString::tqfromLatin1("booktitle"), i18n("Book Title")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("booktitle")); field->setCategory(i18n(bibtex_general)); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("editor"), i18n("Editor")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("editor")); + field = new Field(TQString::tqfromLatin1("editor"), i18n("Editor")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("editor")); field->setCategory(i18n(bibtex_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("organization"), i18n("Organization")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("organization")); + field = new Field(TQString::tqfromLatin1("organization"), i18n("Organization")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("organization")); field->setCategory(i18n(bibtex_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); -// field = new Field(TQString::fromLatin1("institution"), i18n("Institution")); -// field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("institution")); +// field = new Field(TQString::tqfromLatin1("institution"), i18n("Institution")); +// field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("institution")); // field->setCategory(i18n(bibtex_general)); // field->setFlags(Field::AllowDelete); // field->setFormatFlag(Field::FormatTitle); // list.append(field); /******************* Publishing ****************************/ - field = new Field(TQString::fromLatin1("publisher"), i18n("Publisher")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("publisher")); + field = new Field(TQString::tqfromLatin1("publisher"), i18n("Publisher")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("publisher")); field->setCategory(i18n(bibtex_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("address"), i18n("Address")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("address")); + field = new Field(TQString::tqfromLatin1("address"), i18n("Address")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("address")); field->setCategory(i18n(bibtex_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("edition"), i18n("Edition")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("edition")); + field = new Field(TQString::tqfromLatin1("edition"), i18n("Edition")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("edition")); field->setCategory(i18n(bibtex_publishing)); field->setFlags(Field::AllowCompletion); list.append(field); // don't make it a nuumber, it could have latex processing commands in it - field = new Field(TQString::fromLatin1("pages"), i18n("Pages")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("pages")); + field = new Field(TQString::tqfromLatin1("pages"), i18n("Pages")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("pages")); field->setCategory(i18n(bibtex_publishing)); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Year"), Field::Number); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("year")); + field = new Field(TQString::tqfromLatin1("year"), i18n("Year"), Field::Number); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("year")); field->setCategory(i18n(bibtex_publishing)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("isbn"), i18n("ISBN#")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("isbn")); + field = new Field(TQString::tqfromLatin1("isbn"), i18n("ISBN#")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("isbn")); field->setCategory(i18n(bibtex_publishing)); field->setDescription(i18n("International Standard Book Number")); list.append(field); - field = new Field(TQString::fromLatin1("journal"), i18n("Journal")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("journal")); + field = new Field(TQString::tqfromLatin1("journal"), i18n("Journal")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("journal")); field->setCategory(i18n(bibtex_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("doi"), i18n("DOI")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("doi")); + field = new Field(TQString::tqfromLatin1("doi"), i18n("DOI")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("doi")); field->setCategory(i18n(bibtex_publishing)); field->setDescription(i18n("Digital Object Identifier")); list.append(field); // could make this a string list, but since bibtex import could have funky values // keep it an editbox - field = new Field(TQString::fromLatin1("month"), i18n("Month")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("month")); + field = new Field(TQString::tqfromLatin1("month"), i18n("Month")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("month")); field->setCategory(i18n(bibtex_publishing)); field->setFlags(Field::AllowCompletion); list.append(field); - field = new Field(TQString::fromLatin1("number"), i18n("Number"), Field::Number); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("number")); + field = new Field(TQString::tqfromLatin1("number"), i18n("Number"), Field::Number); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("number")); field->setCategory(i18n(bibtex_publishing)); list.append(field); - field = new Field(TQString::fromLatin1("howpublished"), i18n("How Published")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("howpublished")); + field = new Field(TQString::tqfromLatin1("howpublished"), i18n("How Published")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("howpublished")); field->setCategory(i18n(bibtex_publishing)); list.append(field); -// field = new Field(TQString::fromLatin1("school"), i18n("School")); -// field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("school")); +// field = new Field(TQString::tqfromLatin1("school"), i18n("School")); +// field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("school")); // field->setCategory(i18n(bibtex_publishing)); // field->setFlags(Field::AllowCompletion | Field::AllowGrouped); // list.append(field); /******************* Classification ****************************/ - field = new Field(TQString::fromLatin1("chapter"), i18n("Chapter"), Field::Number); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("chapter")); + field = new Field(TQString::tqfromLatin1("chapter"), i18n("Chapter"), Field::Number); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("chapter")); field->setCategory(i18n(bibtex_misc)); list.append(field); - field = new Field(TQString::fromLatin1("series"), i18n("Series")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("series")); + field = new Field(TQString::tqfromLatin1("series"), i18n("Series")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("series")); field->setCategory(i18n(bibtex_misc)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("volume"), i18n("Volume"), Field::Number); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("volume")); + field = new Field(TQString::tqfromLatin1("volume"), i18n("Volume"), Field::Number); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("volume")); field->setCategory(i18n(bibtex_misc)); list.append(field); - field = new Field(TQString::fromLatin1("crossref"), i18n("Cross-Reference")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("crossref")); + field = new Field(TQString::tqfromLatin1("crossref"), i18n("Cross-Reference")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("crossref")); field->setCategory(i18n(bibtex_misc)); list.append(field); -// field = new Field(TQString::fromLatin1("annote"), i18n("Annotation")); -// field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("annote")); +// field = new Field(TQString::tqfromLatin1("annote"), i18n("Annotation")); +// field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("annote")); // field->setCategory(i18n(bibtex_misc)); // list.append(field); - field = new Field(TQString::fromLatin1("keyword"), i18n("Keywords")); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("keywords")); + field = new Field(TQString::tqfromLatin1("keyword"), i18n("Keywords")); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("keywords")); field->setCategory(i18n(bibtex_misc)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("url"), i18n("URL"), Field::URL); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("url")); + field = new Field(TQString::tqfromLatin1("url"), i18n("URL"), Field::URL); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("url")); field->setCategory(i18n(bibtex_misc)); list.append(field); - field = new Field(TQString::fromLatin1("abstract"), i18n("Abstract"), Data::Field::Para); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("abstract")); + field = new Field(TQString::tqfromLatin1("abstract"), i18n("Abstract"), Data::Field::Para); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("abstract")); list.append(field); - field = new Field(TQString::fromLatin1("note"), i18n("Notes"), Field::Para); - field->setProperty(TQString::fromLatin1("bibtex"), TQString::fromLatin1("note")); + field = new Field(TQString::tqfromLatin1("note"), i18n("Notes"), Field::Para); + field->setProperty(TQString::tqfromLatin1("bibtex"), TQString::tqfromLatin1("note")); list.append(field); return list; @@ -248,7 +248,7 @@ bool BibtexCollection::addField(FieldPtr field_) { // myDebug() << "BibtexCollection::addField()" << endl; bool success = Collection::addField(field_); if(success) { - TQString bibtex = field_->property(TQString::fromLatin1("bibtex")); + TQString bibtex = field_->property(TQString::tqfromLatin1("bibtex")); if(!bibtex.isEmpty()) { m_bibtexFieldDict.insert(bibtex, field_); } @@ -263,13 +263,13 @@ bool BibtexCollection::modifyField(FieldPtr newField_) { // myDebug() << "BibtexCollection::modifyField()" << endl; bool success = Collection::modifyField(newField_); FieldPtr oldField = fieldByName(newField_->name()); - TQString oldBibtex = oldField->property(TQString::fromLatin1("bibtex")); - TQString newBibtex = newField_->property(TQString::fromLatin1("bibtex")); + TQString oldBibtex = oldField->property(TQString::tqfromLatin1("bibtex")); + TQString newBibtex = newField_->property(TQString::tqfromLatin1("bibtex")); if(!oldBibtex.isEmpty()) { success &= m_bibtexFieldDict.remove(oldBibtex); } if(!newBibtex.isEmpty()) { - oldField->setProperty(TQString::fromLatin1("bibtex"), newBibtex); + oldField->setProperty(TQString::tqfromLatin1("bibtex"), newBibtex); m_bibtexFieldDict.insert(newBibtex, oldField); } return success; @@ -281,7 +281,7 @@ bool BibtexCollection::deleteField(FieldPtr field_, bool force_) { } // myDebug() << "BibtexCollection::deleteField()" << endl; bool success = true; - TQString bibtex = field_->property(TQString::fromLatin1("bibtex")); + TQString bibtex = field_->property(TQString::tqfromLatin1("bibtex")); if(!bibtex.isEmpty()) { success &= m_bibtexFieldDict.remove(bibtex); } @@ -295,28 +295,28 @@ Tellico::Data::FieldPtr BibtexCollection::fieldByBibtexName(const TQString& bibt // same as BookCollection::sameEntry() int BibtexCollection::sameEntry(Data::EntryPtr entry1_, Data::EntryPtr entry2_) const { // equal isbn's or lccn's are easy, give it a weight of 100 - if(Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("isbn"), this) > 0 || - Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("lccn"), this) > 0 || - Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("doi"), this) > 0 || - Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("pmid"), this) > 0 || - Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("arxiv"), this) > 0) { + if(Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("isbn"), this) > 0 || + Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("lccn"), this) > 0 || + Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("doi"), this) > 0 || + Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("pmid"), this) > 0 || + Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("arxiv"), this) > 0) { return 100; // good match } - int res = 3*Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("title"), this); + int res = 3*Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("title"), this); // if(res == 0) { // myDebug() << "BookCollection::sameEntry() - different titles for " << entry1_->title() << " vs. " // << entry2_->title() << endl; // } - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("author"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("cr_year"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("pub_year"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("binding"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("author"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("cr_year"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("pub_year"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("binding"), this); return res; } // static Tellico::Data::CollPtr BibtexCollection::convertBookCollection(CollPtr coll_) { - const TQString bibtex = TQString::fromLatin1("bibtex"); + const TQString bibtex = TQString::tqfromLatin1("bibtex"); KSharedPtr<BibtexCollection> coll = new BibtexCollection(false, coll_->title()); FieldVec fields = coll_->fields(); for(FieldVec::Iterator fIt = fields.begin(); fIt != fields.end(); ++fIt) { @@ -344,17 +344,17 @@ Tellico::Data::CollPtr BibtexCollection::convertBookCollection(CollPtr coll_) { || name == Latin1Literal("series")) { field->setProperty(bibtex, name); } else if(name == Latin1Literal("series_num")) { - field->setProperty(bibtex, TQString::fromLatin1("number")); + field->setProperty(bibtex, TQString::tqfromLatin1("number")); } else if(name == Latin1Literal("pur_price")) { - field->setProperty(bibtex, TQString::fromLatin1("price")); + field->setProperty(bibtex, TQString::tqfromLatin1("price")); } else if(name == Latin1Literal("cr_year")) { - field->setProperty(bibtex, TQString::fromLatin1("year")); + field->setProperty(bibtex, TQString::tqfromLatin1("year")); } else if(name == Latin1Literal("bibtex-id")) { - field->setProperty(bibtex, TQString::fromLatin1("key")); + field->setProperty(bibtex, TQString::tqfromLatin1("key")); } else if(name == Latin1Literal("keyword")) { - field->setProperty(bibtex, TQString::fromLatin1("keywords")); + field->setProperty(bibtex, TQString::tqfromLatin1("keywords")); } else if(name == Latin1Literal("comments")) { - field->setProperty(bibtex, TQString::fromLatin1("note")); + field->setProperty(bibtex, TQString::tqfromLatin1("note")); } coll->addField(field); } @@ -365,14 +365,14 @@ Tellico::Data::CollPtr BibtexCollection::convertBookCollection(CollPtr coll_) { if(!coll->hasField(it->name()) && (it->flags() & Field::NoDelete)) { // but don't add a Bibtex Key if there's already a bibtex-id if(it->property(bibtex) != Latin1Literal("key") - || !coll->hasField(TQString::fromLatin1("bibtex-id"))) { + || !coll->hasField(TQString::tqfromLatin1("bibtex-id"))) { coll->addField(it); } } } // set the entry-type to book - FieldPtr field = coll->fieldByBibtexName(TQString::fromLatin1("entry-type")); + FieldPtr field = coll->fieldByBibtexName(TQString::tqfromLatin1("entry-type")); TQString entryTypeName; if(field) { entryTypeName = field->name(); @@ -385,7 +385,7 @@ Tellico::Data::CollPtr BibtexCollection::convertBookCollection(CollPtr coll_) { Data::EntryPtr entry = new Entry(*entryIt); entry->setCollection(coll.data()); if(!entryTypeName.isEmpty()) { - entry->setField(entryTypeName, TQString::fromLatin1("book")); + entry->setField(entryTypeName, TQString::tqfromLatin1("book")); } newEntries.append(entry); } diff --git a/src/collections/boardgamecollection.cpp b/src/collections/boardgamecollection.cpp index 2f09199..ac7fe69 100644 --- a/src/collections/boardgamecollection.cpp +++ b/src/collections/boardgamecollection.cpp @@ -27,82 +27,82 @@ BoardGameCollection::BoardGameCollection(bool addFields_, const TQString& title_ if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("genre")); + setDefaultGroupField(TQString::tqfromLatin1("genre")); } Tellico::Data::FieldVec BoardGameCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title")); field->setCategory(i18n(boardgame_general)); field->setFlags(Field::NoDelete); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("genre"), i18n("Genre")); + field = new Field(TQString::tqfromLatin1("genre"), i18n("Genre")); field->setCategory(i18n(boardgame_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("mechanism"), i18n("Mechanism")); + field = new Field(TQString::tqfromLatin1("mechanism"), i18n("Mechanism")); field->setCategory(i18n(boardgame_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Release Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Release Year"), Field::Number); field->setCategory(i18n(boardgame_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("publisher"), i18n("Publisher")); + field = new Field(TQString::tqfromLatin1("publisher"), i18n("Publisher")); field->setCategory(i18n(boardgame_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("designer"), i18n("Designer")); + field = new Field(TQString::tqfromLatin1("designer"), i18n("Designer")); field->setCategory(i18n(boardgame_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("num-player"), i18n("Number of Players"), Field::Number); + field = new Field(TQString::tqfromLatin1("num-player"), i18n("Number of Players"), Field::Number); field->setCategory(i18n(boardgame_general)); field->setFlags(Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("description"), i18n("Description"), Field::Para); + field = new Field(TQString::tqfromLatin1("description"), i18n("Description"), Field::Para); list.append(field); - field = new Field(TQString::fromLatin1("rating"), i18n("Rating"), Field::Rating); + field = new Field(TQString::tqfromLatin1("rating"), i18n("Rating"), Field::Rating); field->setCategory(i18n(boardgame_personal)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(boardgame_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(boardgame_personal)); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(boardgame_personal)); list.append(field); - field = new Field(TQString::fromLatin1("loaned"), i18n("Loaned"), Field::Bool); + field = new Field(TQString::tqfromLatin1("loaned"), i18n("Loaned"), Field::Bool); field->setCategory(i18n(boardgame_personal)); list.append(field); - field = new Field(TQString::fromLatin1("cover"), i18n("Cover"), Field::Image); + field = new Field(TQString::tqfromLatin1("cover"), i18n("Cover"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); field->setCategory(i18n(boardgame_personal)); list.append(field); diff --git a/src/collections/bookcollection.cpp b/src/collections/bookcollection.cpp index 72ff534..21c5d90 100644 --- a/src/collections/bookcollection.cpp +++ b/src/collections/bookcollection.cpp @@ -29,31 +29,31 @@ BookCollection::BookCollection(bool addFields_, const TQString& title_ /*=null*/ if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("author")); + setDefaultGroupField(TQString::tqfromLatin1("author")); } Tellico::Data::FieldVec BookCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title")); field->setCategory(i18n("General")); field->setFlags(Field::NoDelete); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("subtitle"), i18n("Subtitle")); + field = new Field(TQString::tqfromLatin1("subtitle"), i18n("Subtitle")); field->setCategory(i18n(book_general)); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("author"), i18n("Author")); + field = new Field(TQString::tqfromLatin1("author"), i18n("Author")); field->setCategory(i18n(book_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("editor"), i18n("Editor")); + field = new Field(TQString::tqfromLatin1("editor"), i18n("Editor")); field->setCategory(i18n(book_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); @@ -62,119 +62,119 @@ Tellico::Data::FieldVec BookCollection::defaultFields() { TQStringList binding; binding << i18n("Hardback") << i18n("Paperback") << i18n("Trade Paperback") << i18n("E-Book") << i18n("Magazine") << i18n("Journal"); - field = new Field(TQString::fromLatin1("binding"), i18n("Binding"), binding); + field = new Field(TQString::tqfromLatin1("binding"), i18n("Binding"), binding); field->setCategory(i18n(book_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(book_general)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(book_general)); list.append(field); - field = new Field(TQString::fromLatin1("publisher"), i18n("Publisher")); + field = new Field(TQString::tqfromLatin1("publisher"), i18n("Publisher")); field->setCategory(i18n(book_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("edition"), i18n("Edition")); + field = new Field(TQString::tqfromLatin1("edition"), i18n("Edition")); field->setCategory(i18n(book_publishing)); field->setFlags(Field::AllowCompletion); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("cr_year"), i18n("Copyright Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("cr_year"), i18n("Copyright Year"), Field::Number); field->setCategory(i18n(book_publishing)); field->setFlags(Field::AllowGrouped | Field::AllowMultiple); list.append(field); - field = new Field(TQString::fromLatin1("pub_year"), i18n("Publication Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("pub_year"), i18n("Publication Year"), Field::Number); field->setCategory(i18n(book_publishing)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("isbn"), i18n("ISBN#")); + field = new Field(TQString::tqfromLatin1("isbn"), i18n("ISBN#")); field->setCategory(i18n(book_publishing)); field->setDescription(i18n("International Standard Book Number")); list.append(field); - field = new Field(TQString::fromLatin1("lccn"), i18n("LCCN#")); + field = new Field(TQString::tqfromLatin1("lccn"), i18n("LCCN#")); field->setCategory(i18n(book_publishing)); field->setDescription(i18n("Library of Congress Control Number")); list.append(field); - field = new Field(TQString::fromLatin1("pages"), i18n("Pages"), Field::Number); + field = new Field(TQString::tqfromLatin1("pages"), i18n("Pages"), Field::Number); field->setCategory(i18n(book_publishing)); list.append(field); - field = new Field(TQString::fromLatin1("translator"), i18n("Translator")); + field = new Field(TQString::tqfromLatin1("translator"), i18n("Translator")); field->setCategory(i18n(book_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("language"), i18n("Language")); + field = new Field(TQString::tqfromLatin1("language"), i18n("Language")); field->setCategory(i18n(book_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped | Field::AllowMultiple); list.append(field); - field = new Field(TQString::fromLatin1("genre"), i18n("Genre")); + field = new Field(TQString::tqfromLatin1("genre"), i18n("Genre")); field->setCategory(i18n(book_classification)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); // in document versions < 3, this was "keywords" and not "keyword" // but the title didn't change, only the name - field = new Field(TQString::fromLatin1("keyword"), i18n("Keywords")); + field = new Field(TQString::tqfromLatin1("keyword"), i18n("Keywords")); field->setCategory(i18n(book_classification)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("series"), i18n("Series")); + field = new Field(TQString::tqfromLatin1("series"), i18n("Series")); field->setCategory(i18n(book_classification)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("series_num"), i18n("Series Number"), Field::Number); + field = new Field(TQString::tqfromLatin1("series_num"), i18n("Series Number"), Field::Number); field->setCategory(i18n(book_classification)); list.append(field); TQStringList cond; cond << i18n("New") << i18n("Used"); - field = new Field(TQString::fromLatin1("condition"), i18n("Condition"), cond); + field = new Field(TQString::tqfromLatin1("condition"), i18n("Condition"), cond); field->setCategory(i18n(book_classification)); list.append(field); - field = new Field(TQString::fromLatin1("signed"), i18n("Signed"), Field::Bool); + field = new Field(TQString::tqfromLatin1("signed"), i18n("Signed"), Field::Bool); field->setCategory(i18n(book_personal)); list.append(field); - field = new Field(TQString::fromLatin1("read"), i18n("Read"), Field::Bool); + field = new Field(TQString::tqfromLatin1("read"), i18n("Read"), Field::Bool); field->setCategory(i18n(book_personal)); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(book_personal)); list.append(field); - field = new Field(TQString::fromLatin1("loaned"), i18n("Loaned"), Field::Bool); + field = new Field(TQString::tqfromLatin1("loaned"), i18n("Loaned"), Field::Bool); field->setCategory(i18n(book_personal)); list.append(field); - field = new Field(TQString::fromLatin1("rating"), i18n("Rating"), Field::Rating); + field = new Field(TQString::tqfromLatin1("rating"), i18n("Rating"), Field::Rating); field->setCategory(i18n(book_personal)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("cover"), i18n("Front Cover"), Field::Image); + field = new Field(TQString::tqfromLatin1("cover"), i18n("Front Cover"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); field->setCategory(i18n(book_personal)); list.append(field); @@ -183,19 +183,19 @@ Tellico::Data::FieldVec BookCollection::defaultFields() { int BookCollection::sameEntry(Data::EntryPtr entry1_, Data::EntryPtr entry2_) const { // equal isbn's or lccn's are easy, give it a weight of 100 - if(Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("isbn"), this) > 0 || - Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("lccn"), this) > 0) { + if(Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("isbn"), this) > 0 || + Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("lccn"), this) > 0) { return 100; // good match } - int res = 3*Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("title"), this); + int res = 3*Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("title"), this); // if(res == 0) { // myDebug() << "BookCollection::sameEntry() - different titles for " << entry1_->title() << " vs. " // << entry2_->title() << endl; // } - res += 2*Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("author"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("cr_year"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("pub_year"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("binding"), this); + res += 2*Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("author"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("cr_year"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("pub_year"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("binding"), this); return res; } diff --git a/src/collections/cardcollection.cpp b/src/collections/cardcollection.cpp index f0f045d..815f5f9 100644 --- a/src/collections/cardcollection.cpp +++ b/src/collections/cardcollection.cpp @@ -27,92 +27,92 @@ CardCollection::CardCollection(bool addFields_, const TQString& title_ /*=null*/ if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("series")); + setDefaultGroupField(TQString::tqfromLatin1("series")); } Tellico::Data::FieldVec CardCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title"), Field::Dependent); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title"), Field::Dependent); field->setCategory(i18n(card_general)); - field->setDescription(TQString::fromLatin1("%{year} %{brand} %{player}")); + field->setDescription(TQString::tqfromLatin1("%{year} %{brand} %{player}")); field->setFlags(Field::NoDelete); list.append(field); - field = new Field(TQString::fromLatin1("player"), i18n("Player")); + field = new Field(TQString::tqfromLatin1("player"), i18n("Player")); field->setCategory(i18n(card_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("team"), i18n("Team")); + field = new Field(TQString::tqfromLatin1("team"), i18n("Team")); field->setCategory(i18n(card_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("brand"), i18n("Brand")); + field = new Field(TQString::tqfromLatin1("brand"), i18n("Brand")); field->setCategory(i18n(card_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); // might not be totally numeric! - field = new Field(TQString::fromLatin1("number"), i18n("Card Number")); + field = new Field(TQString::tqfromLatin1("number"), i18n("Card Number")); field->setCategory(i18n(card_general)); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Year"), Field::Number); field->setCategory(i18n(card_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("series"), i18n("Series")); + field = new Field(TQString::tqfromLatin1("series"), i18n("Series")); field->setCategory(i18n(card_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("type"), i18n("Card Type")); + field = new Field(TQString::tqfromLatin1("type"), i18n("Card Type")); field->setCategory(i18n(card_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(card_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(card_personal)); list.append(field); - field = new Field(TQString::fromLatin1("location"), i18n("Location")); + field = new Field(TQString::tqfromLatin1("location"), i18n("Location")); field->setCategory(i18n(card_personal)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(card_personal)); list.append(field); - field = new Field(TQString::fromLatin1("keyword"), i18n("Keywords")); + field = new Field(TQString::tqfromLatin1("keyword"), i18n("Keywords")); field->setCategory(i18n(card_personal)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("quantity"), i18n("Quantity"), Field::Number); + field = new Field(TQString::tqfromLatin1("quantity"), i18n("Quantity"), Field::Number); field->setCategory(i18n(card_personal)); list.append(field); - field = new Field(TQString::fromLatin1("front"), i18n("Front Image"), Field::Image); + field = new Field(TQString::tqfromLatin1("front"), i18n("Front Image"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("back"), i18n("Back Image"), Field::Image); + field = new Field(TQString::tqfromLatin1("back"), i18n("Back Image"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); list.append(field); return list; diff --git a/src/collections/coincollection.cpp b/src/collections/coincollection.cpp index 19499db..d3a7e01 100644 --- a/src/collections/coincollection.cpp +++ b/src/collections/coincollection.cpp @@ -27,54 +27,54 @@ CoinCollection::CoinCollection(bool addFields_, const TQString& title_ /*=null*/ if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("denomination")); + setDefaultGroupField(TQString::tqfromLatin1("denomination")); } Tellico::Data::FieldVec CoinCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title"), Field::Dependent); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title"), Field::Dependent); field->setCategory(i18n(coin_general)); // not i18n() - field->setDescription(TQString::fromLatin1("%{year}%{mintmark} %{type} %{denomination}")); + field->setDescription(TQString::tqfromLatin1("%{year}%{mintmark} %{type} %{denomination}")); field->setFlags(Field::NoDelete); list.append(field); - field = new Field(TQString::fromLatin1("type"), i18n("Type")); + field = new Field(TQString::tqfromLatin1("type"), i18n("Type")); field->setCategory(i18n(coin_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatTitle); list.append(field); /* TRANSLATORS: denomination refers to the monetary value. */ - field = new Field(TQString::fromLatin1("denomination"), i18n("Denomination")); + field = new Field(TQString::tqfromLatin1("denomination"), i18n("Denomination")); field->setCategory(i18n(coin_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Year"), Field::Number); field->setCategory(i18n(coin_general)); field->setFlags(Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("mintmark"), i18n("Mint Mark")); + field = new Field(TQString::tqfromLatin1("mintmark"), i18n("Mint Mark")); field->setCategory(i18n(coin_general)); field->setFlags(Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("country"), i18n("Country")); + field = new Field(TQString::tqfromLatin1("country"), i18n("Country")); field->setCategory(i18n(coin_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("set"), i18n("Coin Set"), Field::Bool); + field = new Field(TQString::tqfromLatin1("set"), i18n("Coin Set"), Field::Bool); field->setCategory(i18n(coin_general)); list.append(field); - TQStringList grade = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")), + TQStringList grade = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")), i18n("Coin grade levels - " "Proof-65,Proof-60,Mint State-65,Mint State-60," "Almost Uncirculated-55,Almost Uncirculated-50," @@ -85,47 +85,47 @@ Tellico::Data::FieldVec CoinCollection::defaultFields() { "Extremely Fine-40,Very Fine-30,Very Fine-20,Fine-12," "Very Good-8,Good-4,Fair"), false); - field = new Field(TQString::fromLatin1("grade"), i18n("Grade"), grade); + field = new Field(TQString::tqfromLatin1("grade"), i18n("Grade"), grade); field->setCategory(i18n(coin_general)); field->setFlags(Field::AllowGrouped); list.append(field); - TQStringList service = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")), + TQStringList service = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")), i18n("Coin grading services - " "PCGS,NGC,ANACS,ICG,ASA,PCI", "PCGS,NGC,ANACS,ICG,ASA,PCI"), false); - field = new Field(TQString::fromLatin1("service"), i18n("Grading Service"), service); + field = new Field(TQString::tqfromLatin1("service"), i18n("Grading Service"), service); field->setCategory(i18n(coin_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(coin_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(coin_personal)); list.append(field); - field = new Field(TQString::fromLatin1("location"), i18n("Location")); + field = new Field(TQString::tqfromLatin1("location"), i18n("Location")); field->setCategory(i18n(coin_personal)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(coin_personal)); list.append(field); - field = new Field(TQString::fromLatin1("obverse"), i18n("Obverse"), Field::Image); + field = new Field(TQString::tqfromLatin1("obverse"), i18n("Obverse"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("reverse"), i18n("Reverse"), Field::Image); + field = new Field(TQString::tqfromLatin1("reverse"), i18n("Reverse"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); field->setCategory(i18n(coin_personal)); list.append(field); diff --git a/src/collections/comicbookcollection.cpp b/src/collections/comicbookcollection.cpp index e7b7a61..36e31a4 100644 --- a/src/collections/comicbookcollection.cpp +++ b/src/collections/comicbookcollection.cpp @@ -29,125 +29,125 @@ ComicBookCollection::ComicBookCollection(bool addFields_, const TQString& title_ if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("series")); + setDefaultGroupField(TQString::tqfromLatin1("series")); } Tellico::Data::FieldVec ComicBookCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title")); field->setCategory(i18n(comic_general)); field->setFlags(Field::NoDelete); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("subtitle"), i18n("Subtitle")); + field = new Field(TQString::tqfromLatin1("subtitle"), i18n("Subtitle")); field->setCategory(i18n(comic_general)); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("writer"), i18n("Writer")); + field = new Field(TQString::tqfromLatin1("writer"), i18n("Writer")); field->setCategory(i18n(comic_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("artist"), i18n("Comic Book Illustrator", "Artist")); + field = new Field(TQString::tqfromLatin1("artist"), i18n("Comic Book Illustrator", "Artist")); field->setCategory(i18n(comic_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("series"), i18n("Series")); + field = new Field(TQString::tqfromLatin1("series"), i18n("Series")); field->setCategory(i18n(comic_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("issue"), i18n("Issue"), Field::Number); + field = new Field(TQString::tqfromLatin1("issue"), i18n("Issue"), Field::Number); field->setCategory(i18n(comic_general)); field->setFlags(Field::AllowMultiple); list.append(field); - field = new Field(TQString::fromLatin1("publisher"), i18n("Publisher")); + field = new Field(TQString::tqfromLatin1("publisher"), i18n("Publisher")); field->setCategory(i18n(comic_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("edition"), i18n("Edition")); + field = new Field(TQString::tqfromLatin1("edition"), i18n("Edition")); field->setCategory(i18n(comic_publishing)); field->setFlags(Field::AllowCompletion); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("pub_year"), i18n("Publication Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("pub_year"), i18n("Publication Year"), Field::Number); field->setCategory(i18n(comic_publishing)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pages"), i18n("Pages"), Field::Number); + field = new Field(TQString::tqfromLatin1("pages"), i18n("Pages"), Field::Number); field->setCategory(i18n(comic_publishing)); list.append(field); - field = new Field(TQString::fromLatin1("country"), i18n("Country")); + field = new Field(TQString::tqfromLatin1("country"), i18n("Country")); field->setCategory(i18n(comic_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped | Field::AllowMultiple); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("language"), i18n("Language")); + field = new Field(TQString::tqfromLatin1("language"), i18n("Language")); field->setCategory(i18n(comic_publishing)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped | Field::AllowMultiple); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("genre"), i18n("Genre")); + field = new Field(TQString::tqfromLatin1("genre"), i18n("Genre")); field->setCategory(i18n(comic_classification)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("keyword"), i18n("Keywords")); + field = new Field(TQString::tqfromLatin1("keyword"), i18n("Keywords")); field->setCategory(i18n(comic_classification)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); - TQStringList cond = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")), + TQStringList cond = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")), i18n("Comic book grade levels - " "Mint,Near Mint,Very Fine,Fine,Very Good,Good,Fair,Poor", "Mint,Near Mint,Very Fine,Fine,Very Good,Good,Fair,Poor"), false); - field = new Field(TQString::fromLatin1("condition"), i18n("Condition"), cond); + field = new Field(TQString::tqfromLatin1("condition"), i18n("Condition"), cond); field->setCategory(i18n(comic_classification)); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(comic_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(comic_personal)); list.append(field); - field = new Field(TQString::fromLatin1("signed"), i18n("Signed"), Field::Bool); + field = new Field(TQString::tqfromLatin1("signed"), i18n("Signed"), Field::Bool); field->setCategory(i18n(comic_personal)); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(comic_personal)); list.append(field); - field = new Field(TQString::fromLatin1("loaned"), i18n("Loaned"), Field::Bool); + field = new Field(TQString::tqfromLatin1("loaned"), i18n("Loaned"), Field::Bool); field->setCategory(i18n(comic_personal)); list.append(field); - field = new Field(TQString::fromLatin1("cover"), i18n("Front Cover"), Field::Image); + field = new Field(TQString::tqfromLatin1("cover"), i18n("Front Cover"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); field->setCategory(i18n(comic_personal)); list.append(field); diff --git a/src/collections/filecatalog.cpp b/src/collections/filecatalog.cpp index fcb0a02..cf67e2d 100644 --- a/src/collections/filecatalog.cpp +++ b/src/collections/filecatalog.cpp @@ -26,77 +26,77 @@ FileCatalog::FileCatalog(bool addFields_, const TQString& title_ /*=null*/) if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("volume")); + setDefaultGroupField(TQString::tqfromLatin1("volume")); } Tellico::Data::FieldVec FileCatalog::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Name")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Name")); field->setCategory(i18n(file_general)); field->setFlags(Field::NoDelete); list.append(field); - field = new Field(TQString::fromLatin1("url"), i18n("URL"), Field::URL); + field = new Field(TQString::tqfromLatin1("url"), i18n("URL"), Field::URL); field->setCategory(i18n(file_general)); list.append(field); - field = new Field(TQString::fromLatin1("description"), i18n("Description")); + field = new Field(TQString::tqfromLatin1("description"), i18n("Description")); field->setCategory(i18n(file_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("volume"), i18n("Volume")); + field = new Field(TQString::tqfromLatin1("volume"), i18n("Volume")); field->setCategory(i18n(file_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("folder"), i18n("Folder")); + field = new Field(TQString::tqfromLatin1("folder"), i18n("Folder")); field->setCategory(i18n(file_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("mimetype"), i18n("Mimetype")); + field = new Field(TQString::tqfromLatin1("mimetype"), i18n("Mimetype")); field->setCategory(i18n(file_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("size"), i18n("Size")); + field = new Field(TQString::tqfromLatin1("size"), i18n("Size")); field->setCategory(i18n(file_general)); list.append(field); - field = new Field(TQString::fromLatin1("permissions"), i18n("Permissions")); + field = new Field(TQString::tqfromLatin1("permissions"), i18n("Permissions")); field->setCategory(i18n(file_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("owner"), i18n("Owner")); + field = new Field(TQString::tqfromLatin1("owner"), i18n("Owner")); field->setCategory(i18n(file_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("group"), i18n("Group")); + field = new Field(TQString::tqfromLatin1("group"), i18n("Group")); field->setCategory(i18n(file_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); // these dates are string fields, not dates, since the time is included - field = new Field(TQString::fromLatin1("created"), i18n("Created")); + field = new Field(TQString::tqfromLatin1("created"), i18n("Created")); field->setCategory(i18n(file_general)); list.append(field); - field = new Field(TQString::fromLatin1("modified"), i18n("Modified")); + field = new Field(TQString::tqfromLatin1("modified"), i18n("Modified")); field->setCategory(i18n(file_general)); list.append(field); - field = new Field(TQString::fromLatin1("metainfo"), i18n("Meta Info"), Field::Table); - field->setProperty(TQString::fromLatin1("columns"), TQChar('2')); - field->setProperty(TQString::fromLatin1("column1"), i18n("Property")); - field->setProperty(TQString::fromLatin1("column2"), i18n("Value")); + field = new Field(TQString::tqfromLatin1("metainfo"), i18n("Meta Info"), Field::Table); + field->setProperty(TQString::tqfromLatin1("columns"), TQChar('2')); + field->setProperty(TQString::tqfromLatin1("column1"), i18n("Property")); + field->setProperty(TQString::tqfromLatin1("column2"), i18n("Value")); list.append(field); - field = new Field(TQString::fromLatin1("icon"), i18n("Icon"), Field::Image); + field = new Field(TQString::tqfromLatin1("icon"), i18n("Icon"), Field::Image); list.append(field); return list; diff --git a/src/collections/gamecollection.cpp b/src/collections/gamecollection.cpp index 4e9cf28..d218247 100644 --- a/src/collections/gamecollection.cpp +++ b/src/collections/gamecollection.cpp @@ -27,14 +27,14 @@ GameCollection::GameCollection(bool addFields_, const TQString& title_ /*=null*/ if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("platform")); + setDefaultGroupField(TQString::tqfromLatin1("platform")); } Tellico::Data::FieldVec GameCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title")); field->setCategory(i18n(game_general)); field->setFlags(Field::NoDelete); field->setFormatFlag(Field::FormatTitle); @@ -46,77 +46,77 @@ Tellico::Data::FieldVec GameCollection::defaultFields() { << i18n("Nintendo Wii") << i18n("Nintendo DS") << i18n("GameCube") << i18n("Dreamcast") << i18n("Game Boy Advance") << i18n("Game Boy Color") << i18n("Game Boy") << i18n("Windows Platform", "Windows") << i18n("Mac OS") << i18n("Linux"); - field = new Field(TQString::fromLatin1("platform"), i18n("Platform"), platform); + field = new Field(TQString::tqfromLatin1("platform"), i18n("Platform"), platform); field->setCategory(i18n(game_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("genre"), i18n("Genre")); + field = new Field(TQString::tqfromLatin1("genre"), i18n("Genre")); field->setCategory(i18n(game_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Release Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Release Year"), Field::Number); field->setCategory(i18n(game_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("publisher"), i18n("Games - Publisher", "Publisher")); + field = new Field(TQString::tqfromLatin1("publisher"), i18n("Games - Publisher", "Publisher")); field->setCategory(i18n(game_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("developer"), i18n("Developer")); + field = new Field(TQString::tqfromLatin1("developer"), i18n("Developer")); field->setCategory(i18n(game_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - TQStringList cert = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")), + TQStringList cert = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")), i18n("Video game ratings - " "Unrated, Adults Only, Mature, Teen, Everyone, Early Childhood, Pending", "Unrated, Adults Only, Mature, Teen, Everyone, Early Childhood, Pending"), false); - field = new Field(TQString::fromLatin1("certification"), i18n("ESRB Rating"), cert); + field = new Field(TQString::tqfromLatin1("certification"), i18n("ESRB Rating"), cert); field->setCategory(i18n(game_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("description"), i18n("Description"), Field::Para); + field = new Field(TQString::tqfromLatin1("description"), i18n("Description"), Field::Para); list.append(field); - field = new Field(TQString::fromLatin1("rating"), i18n("Personal Rating"), Field::Rating); + field = new Field(TQString::tqfromLatin1("rating"), i18n("Personal Rating"), Field::Rating); field->setCategory(i18n(game_personal)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("completed"), i18n("Completed"), Field::Bool); + field = new Field(TQString::tqfromLatin1("completed"), i18n("Completed"), Field::Bool); field->setCategory(i18n(game_personal)); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(game_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(game_personal)); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(game_personal)); list.append(field); - field = new Field(TQString::fromLatin1("loaned"), i18n("Loaned"), Field::Bool); + field = new Field(TQString::tqfromLatin1("loaned"), i18n("Loaned"), Field::Bool); field->setCategory(i18n(game_personal)); list.append(field); - field = new Field(TQString::fromLatin1("cover"), i18n("Cover"), Field::Image); + field = new Field(TQString::tqfromLatin1("cover"), i18n("Cover"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); field->setCategory(i18n(game_personal)); list.append(field); diff --git a/src/collections/musiccollection.cpp b/src/collections/musiccollection.cpp index 8d992b8..fde5a04 100644 --- a/src/collections/musiccollection.cpp +++ b/src/collections/musiccollection.cpp @@ -27,14 +27,14 @@ MusicCollection::MusicCollection(bool addFields_, const TQString& title_ /*=null if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("artist")); + setDefaultGroupField(TQString::tqfromLatin1("artist")); } Tellico::Data::FieldVec MusicCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Album")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Album")); field->setCategory(i18n(music_general)); field->setFlags(Field::NoDelete | Field::AllowCompletion); field->setFormatFlag(Field::FormatTitle); @@ -42,73 +42,73 @@ Tellico::Data::FieldVec MusicCollection::defaultFields() { TQStringList media; media << i18n("Compact Disc") << i18n("DVD") << i18n("Cassette") << i18n("Vinyl"); - field = new Field(TQString::fromLatin1("medium"), i18n("Medium"), media); + field = new Field(TQString::tqfromLatin1("medium"), i18n("Medium"), media); field->setCategory(i18n(music_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("artist"), i18n("Artist")); + field = new Field(TQString::tqfromLatin1("artist"), i18n("Artist")); field->setCategory(i18n(music_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped | Field::AllowMultiple); field->setFormatFlag(Field::FormatTitle); // don't use FormatName list.append(field); - field = new Field(TQString::fromLatin1("label"), i18n("Label")); + field = new Field(TQString::tqfromLatin1("label"), i18n("Label")); field->setCategory(i18n(music_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped | Field::AllowMultiple); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Year"), Field::Number); field->setCategory(i18n(music_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("genre"), i18n("Genre")); + field = new Field(TQString::tqfromLatin1("genre"), i18n("Genre")); field->setCategory(i18n(music_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("track"), i18n("Tracks"), Field::Table); + field = new Field(TQString::tqfromLatin1("track"), i18n("Tracks"), Field::Table); field->setFormatFlag(Field::FormatTitle); - field->setProperty(TQString::fromLatin1("columns"), TQChar('3')); - field->setProperty(TQString::fromLatin1("column1"), i18n("Title")); - field->setProperty(TQString::fromLatin1("column2"), i18n("Artist")); - field->setProperty(TQString::fromLatin1("column3"), i18n("Length")); + field->setProperty(TQString::tqfromLatin1("columns"), TQChar('3')); + field->setProperty(TQString::tqfromLatin1("column1"), i18n("Title")); + field->setProperty(TQString::tqfromLatin1("column2"), i18n("Artist")); + field->setProperty(TQString::tqfromLatin1("column3"), i18n("Length")); list.append(field); - field = new Field(TQString::fromLatin1("rating"), i18n("Rating"), Field::Rating); + field = new Field(TQString::tqfromLatin1("rating"), i18n("Rating"), Field::Rating); field->setCategory(i18n(music_personal)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(music_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(music_personal)); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(music_personal)); list.append(field); - field = new Field(TQString::fromLatin1("loaned"), i18n("Loaned"), Field::Bool); + field = new Field(TQString::tqfromLatin1("loaned"), i18n("Loaned"), Field::Bool); field->setCategory(i18n(music_personal)); list.append(field); - field = new Field(TQString::fromLatin1("keyword"), i18n("Keywords")); + field = new Field(TQString::tqfromLatin1("keyword"), i18n("Keywords")); field->setCategory(i18n(music_personal)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("cover"), i18n("Cover"), Field::Image); + field = new Field(TQString::tqfromLatin1("cover"), i18n("Cover"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); field->setCategory(i18n(music_personal)); list.append(field); @@ -117,15 +117,15 @@ Tellico::Data::FieldVec MusicCollection::defaultFields() { int MusicCollection::sameEntry(Data::EntryPtr entry1_, Data::EntryPtr entry2_) const { // not enough for title to be equal, must also have another field - int res = 2*Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("title"), this); + int res = 2*Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("title"), this); // if(res == 0) { // myDebug() << "MusicCollection::sameEntry() - different titles for " << entry1_->title() << " vs. " // << entry2_->title() << endl; // } - res += 2*Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("artist"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("year"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("label"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("medium"), this); + res += 2*Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("artist"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("year"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("label"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("medium"), this); return res; } diff --git a/src/collections/stampcollection.cpp b/src/collections/stampcollection.cpp index c41f806..f5b8e0c 100644 --- a/src/collections/stampcollection.cpp +++ b/src/collections/stampcollection.cpp @@ -28,103 +28,103 @@ StampCollection::StampCollection(bool addFields_, const TQString& title_ /*=null if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("denomination")); + setDefaultGroupField(TQString::tqfromLatin1("denomination")); } Tellico::Data::FieldVec StampCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title"), Field::Dependent); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title"), Field::Dependent); field->setCategory(i18n(stamp_general)); - field->setDescription(TQString::fromLatin1("%{year} %{description} %{denomination}")); + field->setDescription(TQString::tqfromLatin1("%{year} %{description} %{denomination}")); field->setFlags(Field::NoDelete); list.append(field); - field = new Field(TQString::fromLatin1("description"), i18n("Description")); + field = new Field(TQString::tqfromLatin1("description"), i18n("Description")); field->setCategory(i18n(stamp_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatTitle); list.append(field); - field = new Field(TQString::fromLatin1("denomination"), i18n("Denomination")); + field = new Field(TQString::tqfromLatin1("denomination"), i18n("Denomination")); field->setCategory(i18n(stamp_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("country"), i18n("Country")); + field = new Field(TQString::tqfromLatin1("country"), i18n("Country")); field->setCategory(i18n(stamp_general)); field->setFormatFlag(Field::FormatPlain); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Issue Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Issue Year"), Field::Number); field->setCategory(i18n(stamp_general)); field->setFlags(Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("color"), i18n("Color")); + field = new Field(TQString::tqfromLatin1("color"), i18n("Color")); field->setCategory(i18n(stamp_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("scott"), i18n("Scott#")); + field = new Field(TQString::tqfromLatin1("scott"), i18n("Scott#")); field->setCategory(i18n(stamp_general)); list.append(field); - TQStringList grade = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")), + TQStringList grade = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")), i18n("Stamp grade levels - " "Superb,Extremely Fine,Very Fine,Fine,Average,Poor", "Superb,Extremely Fine,Very Fine,Fine,Average,Poor"), false); - field = new Field(TQString::fromLatin1("grade"), i18n("Grade"), grade); + field = new Field(TQString::tqfromLatin1("grade"), i18n("Grade"), grade); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("cancelled"), i18n("Cancelled"), Field::Bool); + field = new Field(TQString::tqfromLatin1("cancelled"), i18n("Cancelled"), Field::Bool); field->setCategory(i18n(stamp_condition)); list.append(field); /* TRANSLATORS: See http://en.wikipedia.org/wiki/Stamp_hinge */ - field = new Field(TQString::fromLatin1("hinged"), i18n("Hinged")); + field = new Field(TQString::tqfromLatin1("hinged"), i18n("Hinged")); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("centering"), i18n("Centering")); + field = new Field(TQString::tqfromLatin1("centering"), i18n("Centering")); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("gummed"), i18n("Gummed")); + field = new Field(TQString::tqfromLatin1("gummed"), i18n("Gummed")); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(stamp_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(stamp_personal)); list.append(field); - field = new Field(TQString::fromLatin1("location"), i18n("Location")); + field = new Field(TQString::tqfromLatin1("location"), i18n("Location")); field->setCategory(i18n(stamp_personal)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(stamp_personal)); list.append(field); - field = new Field(TQString::fromLatin1("image"), i18n("Image"), Field::Image); + field = new Field(TQString::tqfromLatin1("image"), i18n("Image"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); list.append(field); return list; diff --git a/src/collections/videocollection.cpp b/src/collections/videocollection.cpp index 06f3a6a..d8ac081 100644 --- a/src/collections/videocollection.cpp +++ b/src/collections/videocollection.cpp @@ -29,14 +29,14 @@ VideoCollection::VideoCollection(bool addFields_, const TQString& title_ /*=null if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("genre")); + setDefaultGroupField(TQString::tqfromLatin1("genre")); } Tellico::Data::FieldVec VideoCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title")); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title")); field->setCategory(i18n("General")); field->setFlags(Field::NoDelete); field->setFormatFlag(Field::FormatTitle); @@ -44,27 +44,27 @@ Tellico::Data::FieldVec VideoCollection::defaultFields() { TQStringList media; media << i18n("DVD") << i18n("VHS") << i18n("VCD") << i18n("DivX") << i18n("Blu-ray") << i18n("HD DVD"); - field = new Field(TQString::fromLatin1("medium"), i18n("Medium"), media); + field = new Field(TQString::tqfromLatin1("medium"), i18n("Medium"), media); field->setCategory(i18n(video_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Production Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Production Year"), Field::Number); field->setCategory(i18n(video_general)); field->setFlags(Field::AllowGrouped); list.append(field); - TQStringList cert = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")), + TQStringList cert = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")), i18n("Movie ratings - " "G (USA),PG (USA),PG-13 (USA),R (USA), U (USA)", "G (USA),PG (USA),PG-13 (USA),R (USA), U (USA)"), false); - field = new Field(TQString::fromLatin1("certification"), i18n("Certification"), cert); + field = new Field(TQString::tqfromLatin1("certification"), i18n("Certification"), cert); field->setCategory(i18n(video_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("genre"), i18n("Genre")); + field = new Field(TQString::tqfromLatin1("genre"), i18n("Genre")); field->setCategory(i18n(video_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); @@ -79,12 +79,12 @@ Tellico::Data::FieldVec VideoCollection::defaultFields() { << i18n("Region 6") << i18n("Region 7") << i18n("Region 8"); - field = new Field(TQString::fromLatin1("region"), i18n("Region"), region); + field = new Field(TQString::tqfromLatin1("region"), i18n("Region"), region); field->setCategory(i18n(video_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("nationality"), i18n("Nationality")); + field = new Field(TQString::tqfromLatin1("nationality"), i18n("Nationality")); field->setCategory(i18n(video_general)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); @@ -92,127 +92,127 @@ Tellico::Data::FieldVec VideoCollection::defaultFields() { TQStringList format; format << i18n("NTSC") << i18n("PAL") << i18n("SECAM"); - field = new Field(TQString::fromLatin1("format"), i18n("Format"), format); + field = new Field(TQString::tqfromLatin1("format"), i18n("Format"), format); field->setCategory(i18n(video_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("cast"), i18n("Cast"), Field::Table); - field->setProperty(TQString::fromLatin1("columns"), TQChar('2')); - field->setProperty(TQString::fromLatin1("column1"), i18n("Actor/Actress")); - field->setProperty(TQString::fromLatin1("column2"), i18n("Role")); + field = new Field(TQString::tqfromLatin1("cast"), i18n("Cast"), Field::Table); + field->setProperty(TQString::tqfromLatin1("columns"), TQChar('2')); + field->setProperty(TQString::tqfromLatin1("column1"), i18n("Actor/Actress")); + field->setProperty(TQString::tqfromLatin1("column2"), i18n("Role")); field->setFormatFlag(Field::FormatName); field->setFlags(Field::AllowGrouped); field->setDescription(i18n("A table for the cast members, along with the roles they play")); list.append(field); - field = new Field(TQString::fromLatin1("director"), i18n("Director")); + field = new Field(TQString::tqfromLatin1("director"), i18n("Director")); field->setCategory(i18n(video_people)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("producer"), i18n("Producer")); + field = new Field(TQString::tqfromLatin1("producer"), i18n("Producer")); field->setCategory(i18n(video_people)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("writer"), i18n("Writer")); + field = new Field(TQString::tqfromLatin1("writer"), i18n("Writer")); field->setCategory(i18n(video_people)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("composer"), i18n("Composer")); + field = new Field(TQString::tqfromLatin1("composer"), i18n("Composer")); field->setCategory(i18n(video_people)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatName); list.append(field); - field = new Field(TQString::fromLatin1("studio"), i18n("Studio")); + field = new Field(TQString::tqfromLatin1("studio"), i18n("Studio")); field->setCategory(i18n(video_people)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("language"), i18n("Language Tracks")); + field = new Field(TQString::tqfromLatin1("language"), i18n("Language Tracks")); field->setCategory(i18n(video_features)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("subtitle"), i18n("Subtitle Languages")); + field = new Field(TQString::tqfromLatin1("subtitle"), i18n("Subtitle Languages")); field->setCategory(i18n(video_features)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("audio-track"), i18n("Audio Tracks")); + field = new Field(TQString::tqfromLatin1("audio-track"), i18n("Audio Tracks")); field->setCategory(i18n(video_features)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("running-time"), i18n("Running Time"), Field::Number); + field = new Field(TQString::tqfromLatin1("running-time"), i18n("Running Time"), Field::Number); field->setCategory(i18n(video_features)); field->setDescription(i18n("The running time of the video (in minutes)")); list.append(field); - field = new Field(TQString::fromLatin1("aspect-ratio"), i18n("Aspect Ratio")); + field = new Field(TQString::tqfromLatin1("aspect-ratio"), i18n("Aspect Ratio")); field->setCategory(i18n(video_features)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("widescreen"), i18n("Widescreen"), Field::Bool); + field = new Field(TQString::tqfromLatin1("widescreen"), i18n("Widescreen"), Field::Bool); field->setCategory(i18n(video_features)); list.append(field); TQStringList color; color << i18n("Color") << i18n("Black & White"); - field = new Field(TQString::fromLatin1("color"), i18n("Color Mode"), color); + field = new Field(TQString::tqfromLatin1("color"), i18n("Color Mode"), color); field->setCategory(i18n(video_features)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("directors-cut"), i18n("Director's Cut"), Field::Bool); + field = new Field(TQString::tqfromLatin1("directors-cut"), i18n("Director's Cut"), Field::Bool); field->setCategory(i18n(video_features)); list.append(field); - field = new Field(TQString::fromLatin1("plot"), i18n("Plot Summary"), Field::Para); + field = new Field(TQString::tqfromLatin1("plot"), i18n("Plot Summary"), Field::Para); list.append(field); - field = new Field(TQString::fromLatin1("rating"), i18n("Personal Rating"), Field::Rating); + field = new Field(TQString::tqfromLatin1("rating"), i18n("Personal Rating"), Field::Rating); field->setCategory(i18n(video_personal)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(video_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(video_personal)); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(video_personal)); list.append(field); - field = new Field(TQString::fromLatin1("loaned"), i18n("Loaned"), Field::Bool); + field = new Field(TQString::tqfromLatin1("loaned"), i18n("Loaned"), Field::Bool); field->setCategory(i18n(video_personal)); list.append(field); - field = new Field(TQString::fromLatin1("keyword"), i18n("Keywords")); + field = new Field(TQString::tqfromLatin1("keyword"), i18n("Keywords")); field->setCategory(i18n(video_personal)); field->setFlags(Field::AllowCompletion | Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("cover"), i18n("Cover"), Field::Image); + field = new Field(TQString::tqfromLatin1("cover"), i18n("Cover"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); list.append(field); return list; @@ -221,15 +221,15 @@ Tellico::Data::FieldVec VideoCollection::defaultFields() { int VideoCollection::sameEntry(Data::EntryPtr entry1_, Data::EntryPtr entry2_) const { // not enough for title to be equal, must also have another field // ever possible for a studio to do two movies with identical titles? - int res = 3*Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("title"), this); + int res = 3*Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("title"), this); // if(res == 0) { // myDebug() << "VideoCollection::sameEntry() - different titles for " << entry1_->title() << " vs. " // << entry2_->title() << endl; // } - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("year"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("director"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("studio"), this); - res += Entry::compareValues(entry1_, entry2_, TQString::fromLatin1("medium"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("year"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("director"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("studio"), this); + res += Entry::compareValues(entry1_, entry2_, TQString::tqfromLatin1("medium"), this); return res; } diff --git a/src/collections/winecollection.cpp b/src/collections/winecollection.cpp index 433188f..bab7617 100644 --- a/src/collections/winecollection.cpp +++ b/src/collections/winecollection.cpp @@ -27,91 +27,91 @@ WineCollection::WineCollection(bool addFields_, const TQString& title_ /*=null*/ if(addFields_) { addFields(defaultFields()); } - setDefaultGroupField(TQString::fromLatin1("type")); + setDefaultGroupField(TQString::tqfromLatin1("type")); } Tellico::Data::FieldVec WineCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title"), Field::Dependent); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title"), Field::Dependent); field->setCategory(i18n(wine_general)); - field->setDescription(TQString::fromLatin1("%{vintage} %{producer} %{varietal}")); + field->setDescription(TQString::tqfromLatin1("%{vintage} %{producer} %{varietal}")); field->setFlags(Field::NoDelete); list.append(field); - field = new Field(TQString::fromLatin1("producer"), i18n("Producer")); + field = new Field(TQString::tqfromLatin1("producer"), i18n("Producer")); field->setCategory(i18n(wine_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("appellation"), i18n("Appellation")); + field = new Field(TQString::tqfromLatin1("appellation"), i18n("Appellation")); field->setCategory(i18n(wine_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("varietal"), i18n("Varietal")); + field = new Field(TQString::tqfromLatin1("varietal"), i18n("Varietal")); field->setCategory(i18n(wine_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("vintage"), i18n("Vintage"), Field::Number); + field = new Field(TQString::tqfromLatin1("vintage"), i18n("Vintage"), Field::Number); field->setCategory(i18n(wine_general)); field->setFlags(Field::AllowGrouped); list.append(field); TQStringList type; type << i18n("Red Wine") << i18n("White Wine") << i18n("Sparkling Wine"); - field = new Field(TQString::fromLatin1("type"), i18n("Type"), type); + field = new Field(TQString::tqfromLatin1("type"), i18n("Type"), type); field->setCategory(i18n(wine_general)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("country"), i18n("Country")); + field = new Field(TQString::tqfromLatin1("country"), i18n("Country")); field->setCategory(i18n(wine_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); field->setFormatFlag(Field::FormatPlain); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(wine_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(wine_personal)); list.append(field); - field = new Field(TQString::fromLatin1("location"), i18n("Location")); + field = new Field(TQString::tqfromLatin1("location"), i18n("Location")); field->setCategory(i18n(wine_personal)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("quantity"), i18n("Quantity"), Field::Number); + field = new Field(TQString::tqfromLatin1("quantity"), i18n("Quantity"), Field::Number); field->setCategory(i18n(wine_personal)); list.append(field); - field = new Field(TQString::fromLatin1("drink-by"), i18n("Drink By"), Field::Number); + field = new Field(TQString::tqfromLatin1("drink-by"), i18n("Drink By"), Field::Number); field->setCategory(i18n(wine_personal)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("rating"), i18n("Rating"), Field::Rating); + field = new Field(TQString::tqfromLatin1("rating"), i18n("Rating"), Field::Rating); field->setCategory(i18n(wine_personal)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(wine_personal)); list.append(field); - field = new Field(TQString::fromLatin1("label"), i18n("Label Image"), Field::Image); + field = new Field(TQString::tqfromLatin1("label"), i18n("Label Image"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); list.append(field); return list; |