void ToDo::setSummary(iCalProperty& p) { set(&summary, p); removeProperty(TEXT("SUMMARY")); if(summary) { insertProperty(getVPropertyFromiCalProperty(TEXT("SUMMARY"), summary)); } }
void ToDo::setCompleted(iCalProperty& p) { set(&completed, p); removeProperty(TEXT("COMPLETED")); if(completed) { insertProperty(getVPropertyFromiCalProperty(TEXT("COMPLETED"), completed)); } }
void ToDo::setSequence(iCalProperty& p) { set(&seq, p); removeProperty(TEXT("SEQUENCE")); if(seq) { insertProperty(getVPropertyFromiCalProperty(TEXT("SEQUENCE"), seq)); } }
void ToDo::setStatus(iCalProperty& p) { set(&status, p); removeProperty(TEXT("STATUS")); if(status) { insertProperty(getVPropertyFromiCalProperty(TEXT("STATUS"), status)); } }
void ToDo::setPriority(iCalProperty& p) { set(&priority, p); removeProperty(TEXT("PRIORITY")); if(priority) { insertProperty(getVPropertyFromiCalProperty(TEXT("PRIORITY"), priority)); } }
void ToDo::setDtStamp(iCalProperty& p) { set(&dtStamp, p); removeProperty(TEXT("DTSTAMP")); if(dtStamp) { insertProperty(getVPropertyFromiCalProperty(TEXT("DTSTAMP"), dtStamp)); } }
void ToDo::setLocation(iCalProperty& p) { set(&location, p); removeProperty(TEXT("LOCATION")); if(location) { insertProperty(getVPropertyFromiCalProperty(TEXT("LOCATION"), location)); } }
void ToDo::setRecurID(iCalProperty& p) { set(&recurID, p); removeProperty(TEXT("RECURRENCE-ID")); if(recurID) { insertProperty(getVPropertyFromiCalProperty(TEXT("RECURRENCE-ID"), recurID)); } }
void ToDo::setGeo(iCalProperty& p) { set(&geo, p); removeProperty(TEXT("GEO")); if(geo) { insertProperty(getVPropertyFromiCalProperty(TEXT("GEO"), geo)); } }
void ToDo::setLastMod(iCalProperty& p) { set(&lastMod, p); removeProperty(TEXT("LAST-MODIFIED")); if(lastMod) { insertProperty(getVPropertyFromiCalProperty(TEXT("LAST-MODIFIED"), lastMod)); } }
void ToDo::setDtStart(iCalProperty& p) { set(&dtStart, p); removeProperty(TEXT("DTSTART")); if(dtStart) { insertProperty(getVPropertyFromiCalProperty(TEXT("DTSTART"), dtStart)); } }
void ToDo::setDescription(iCalProperty& p) { set(&description, p); removeProperty(TEXT("DESCRIPTION")); if(description) { insertProperty(getVPropertyFromiCalProperty(TEXT("DESCRIPTION"), description)); } }
void ToDo::setCreated(iCalProperty& p) { set(&created, p); removeProperty(TEXT("CREATED")); if(created) { insertProperty(getVPropertyFromiCalProperty(TEXT("CREATED"), created)); } }
void ToDo::setClass(iCalProperty& p) { set(&classEvent, p); removeProperty(TEXT("CLASS")); if(classEvent) { insertProperty(getVPropertyFromiCalProperty(TEXT("CLASS"), classEvent)); } }
void ToDo::setOrganizer(iCalProperty& p) { set(&organizer, p); removeProperty(TEXT("ORGANIZER")); if(organizer) { insertProperty(getVPropertyFromiCalProperty(TEXT("ORGANIZER"), organizer)); } }
void ToDo::setUrl(iCalProperty& p) { set(&url, p); removeProperty(TEXT("URL")); if(url) { insertProperty(getVPropertyFromiCalProperty(TEXT("URL"), url)); } }
void ToDo::setUid(iCalProperty& p) { set(&uid, p); removeProperty(TEXT("UID")); if(uid) { insertProperty(getVPropertyFromiCalProperty(TEXT("UID"), uid)); } }
void MetaInfoReader::elementEnd() { switch (parserState()) { case ParsingMetaInfo: setParserState(Finished); break; case ParsingType: setParserState(ParsingMetaInfo); break; case ParsingItemLibrary: insertItemLibraryEntry(); setParserState((ParsingType)); break; case ParsingProperty: insertProperty(); setParserState(ParsingItemLibrary); break; case ParsingQmlSource: setParserState(ParsingItemLibrary); break; case ParsingDocument: case Finished: case Undefined: setParserState(Error); addError(tr("Illegal state while parsing"), currentSourceLocation()); case Error: default: return; } }
void ToDo::setPercent(iCalProperty& p) { set(&percent, p); removeProperty(TEXT("PERCENT-COMPLETE")); if(percent) { insertProperty(getVPropertyFromiCalProperty(TEXT("PERCENT-COMPLETE"), percent)); } }
void DesignWidget::setInitialContent() { ui.author_edit->setText("Winston Smith"); ui.email_edit->setText("*****@*****.**"); ui.className_edit->setText("MyClass"); int propRows = 5; ui.properties_table->setRowCount(propRows); insertProperty(0, "QString", "name", false); insertProperty(1, "int", "age", true); insertProperty(2, "QColor", "furColor", false); insertProperty(3, "bool", "pedigree", true); insertProperty(4, "QString", "owner", false); QList<QStringList> args; m_methodModel = new MethodModel(this); insertMethod("public", false, "QString", "getResult", true ); args << ( QStringList() << "QString" << "silly" ); args << ( QStringList() << "int" << "number" << "9" ); insertMethod("public slots", false, "void", "somethingStupid", false, args ); insertMethod("protected", false, "void", "reset", false ); args.clear(); args << ( QStringList() << "int" << "var" ); args << ( QStringList() << "QString" << "input" << "QString()" ); insertMethod("protected", false, "QModelIndex", "findIndex", true, args ); insertMethod("protected", true, "void", "clear", false ); insertMethod("private", false, "void", "internalMethod", true ); ui.methods_table->setModel(m_methodModel); connect( ui.methods_table->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), SLOT(setArgsRootIndex(QModelIndex))); m_argsModel = new ArgsModel(this); m_argsModel->setSourceModel(m_methodModel); setArgsRootIndex(QModelIndex()); connect( ui.pushButton, SIGNAL(clicked(bool)), SIGNAL(generateClicked(bool))); }
void ToDo::setRRule(ArrayList& list) { if (rRule) { rRule->clear(); } else { rRule = new ArrayList(); } removeAllProperies(TEXT("RRULE")); int s = list.size(); for (int i=0; i<s; ++i) { rRule->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("RRULE"), (iCalProperty*)list[i])); } }
void ToDo::setResources(ArrayList& list) { if (resources) { resources->clear(); } else { resources = new ArrayList(); } removeAllProperies(TEXT("RESOURCES")); int s = list.size(); for (int i=0; i<s; ++i) { resources->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("RESOURCES"), (iCalProperty*)list[i])); } }
void ToDo::setRelated(ArrayList& list) { if (related) { related->clear(); } else { related = new ArrayList(); } removeAllProperies(TEXT("RELATED")); int s = list.size(); for (int i=0; i<s; ++i) { related->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("RELATED"), (iCalProperty*)list[i])); } }
void ToDo::setRStatus(ArrayList& list) { if (rStatus) { rStatus->clear(); } else { rStatus = new ArrayList(); } removeAllProperies(TEXT("REQUEST-STATUS")); int s = list.size(); for (int i=0; i<s; ++i) { rStatus->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("REQUEST-STATUS"), (iCalProperty*)list[i])); } }
void ToDo::setExDate(ArrayList& list) { if (exDate) { exDate->clear(); } else { exDate = new ArrayList(); } removeAllProperies(TEXT("EXDATE")); int s = list.size(); for (int i=0; i<s; ++i) { exDate->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("EXDATE"), (iCalProperty*)list[i])); } }
void ToDo::setContact(ArrayList& list) { if (contact) { contact->clear(); } else { contact = new ArrayList(); } removeAllProperies(TEXT("CONTACT")); int s = list.size(); for (int i=0; i<s; ++i) { contact->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("CONTACT"), (iCalProperty*)list[i])); } }
void ToDo::setCategories(ArrayList& list) { if (categories) { categories->clear(); } else { categories = new ArrayList(); } removeAllProperies(TEXT("CATEGORIES")); int s = list.size(); for (int i=0; i<s; ++i) { categories->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("CATEGORIES"), (iCalProperty*)list[i])); } }
void ToDo::setAttendee(ArrayList& list) { if (attendee) { attendee->clear(); } else { attendee = new ArrayList(); } removeAllProperies(TEXT("ATTENDEE")); int s = list.size(); for (int i=0; i<s; ++i) { attendee->add(*list[i]); insertProperty(getVPropertyFromiCalProperty(TEXT("ATTENDEE"), (iCalProperty*)list[i])); } }
void ToDo::setDuration(iCalProperty& p) { set(&duration, p); removeProperty(TEXT("DURATION")); if(duration) { insertProperty(getVPropertyFromiCalProperty(TEXT("DURATON"), duration)); if(due) { delete due; due = NULL; } if(containsProperty(TEXT("DUE"))) removeProperty(TEXT("DUE")); } }
void ToDo::setXProp(ArrayList& list) { if (xProp) { xProp->clear(); } else { xProp = new ArrayList(); } for(int i = 0, m = propertiesCount(); i < m ; i++) if(wcsstr(getProperty(i)->getName(),TEXT("X-")) == getProperty(i)->getName()) { removeProperty(i); --i; --m; } int s = list.size(); for (int j=0; j<s; ++j) { xProp->add(*list[j]); insertProperty(new VProperty( ((WKeyValuePair*)list[j])->getKey(), ((WKeyValuePair*)list[j])->getValue())); } }