Example #1
0
void ToDo::setSummary(iCalProperty& p) {
    set(&summary, p);
    removeProperty(TEXT("SUMMARY"));
    if(summary) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("SUMMARY"), summary));
    }
}
Example #2
0
void ToDo::setCompleted(iCalProperty& p) {
    set(&completed, p);
    removeProperty(TEXT("COMPLETED"));
    if(completed) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("COMPLETED"), completed));
    }
}
Example #3
0
void ToDo::setSequence(iCalProperty& p) {
    set(&seq, p);
    removeProperty(TEXT("SEQUENCE"));
    if(seq) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("SEQUENCE"), seq));
    }
}
Example #4
0
void ToDo::setStatus(iCalProperty& p) {
    set(&status, p);
    removeProperty(TEXT("STATUS"));
    if(status) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("STATUS"), status));
    }
}
Example #5
0
void ToDo::setPriority(iCalProperty& p) {
    set(&priority, p);
    removeProperty(TEXT("PRIORITY"));
    if(priority) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("PRIORITY"), priority));
    }
}
Example #6
0
void ToDo::setDtStamp(iCalProperty& p) {
    set(&dtStamp, p);
    removeProperty(TEXT("DTSTAMP"));
    if(dtStamp) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("DTSTAMP"), dtStamp));
    }
}
Example #7
0
void ToDo::setLocation(iCalProperty& p) {
    set(&location, p);
    removeProperty(TEXT("LOCATION"));
    if(location) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("LOCATION"), location));
    }
}
Example #8
0
void ToDo::setRecurID(iCalProperty& p) {
    set(&recurID, p);
    removeProperty(TEXT("RECURRENCE-ID"));
    if(recurID) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("RECURRENCE-ID"), recurID));
    }
}
Example #9
0
void ToDo::setGeo(iCalProperty& p) {
    set(&geo, p);
    removeProperty(TEXT("GEO"));
    if(geo) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("GEO"), geo));
    }
}
Example #10
0
void ToDo::setLastMod(iCalProperty& p) {
    set(&lastMod, p);
    removeProperty(TEXT("LAST-MODIFIED"));
    if(lastMod) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("LAST-MODIFIED"), lastMod));
    }
}
Example #11
0
void ToDo::setDtStart(iCalProperty& p) {
    set(&dtStart, p);
    removeProperty(TEXT("DTSTART"));
    if(dtStart) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("DTSTART"), dtStart));
    }
}
Example #12
0
void ToDo::setDescription(iCalProperty& p) {
    set(&description, p);
    removeProperty(TEXT("DESCRIPTION"));
    if(description) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("DESCRIPTION"), description));
    }
}
Example #13
0
void ToDo::setCreated(iCalProperty& p) {
    set(&created, p);
    removeProperty(TEXT("CREATED"));
    if(created) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("CREATED"), created));
    }
}
Example #14
0
void ToDo::setClass(iCalProperty& p) {
    set(&classEvent, p);
    removeProperty(TEXT("CLASS"));
    if(classEvent) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("CLASS"), classEvent));
    }
}
Example #15
0
void ToDo::setOrganizer(iCalProperty& p) {
    set(&organizer, p);
    removeProperty(TEXT("ORGANIZER"));
    if(organizer) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("ORGANIZER"), organizer));
    }
}
Example #16
0
void ToDo::setUrl(iCalProperty& p) {
    set(&url, p);
    removeProperty(TEXT("URL"));
    if(url) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("URL"), url));
    }
}
Example #17
0
void ToDo::setUid(iCalProperty& p) {
    set(&uid, p);
    removeProperty(TEXT("UID"));
    if(uid) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("UID"), uid));
    }
}
Example #18
0
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;
    }
}
Example #19
0
void ToDo::setPercent(iCalProperty& p) {
    set(&percent, p);
    removeProperty(TEXT("PERCENT-COMPLETE"));
    if(percent) {
        insertProperty(getVPropertyFromiCalProperty(TEXT("PERCENT-COMPLETE"), percent));
    }
}
Example #20
0
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)));
}
Example #21
0
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]));
    }
}
Example #22
0
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]));
    }
}
Example #23
0
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]));
    }
}
Example #24
0
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]));
    }
}
Example #25
0
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]));
    }
}
Example #26
0
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]));
    }
}
Example #27
0
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]));
    }
}
Example #28
0
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]));
    }
}
Example #29
0
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"));
    }
}
Example #30
0
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()));
    }
}