コード例 #1
0
void CalendarCondition::doRestore(const QVariantMap& data)
{
    setNoAllDay(data[KEY_NO_ALL_DAY].toBool());
    setAlarm(data[KEY_ALARM].toBool());
    setRecurring(data[KEY_RECURRING].toBool());
    setCollectionId(data[KEY_COLLECTION].toString());
    setKeyword(data[KEY_KEYWORD].toString());
}
コード例 #2
0
void StyleContext::setFeature(const Feature& _feature) {

    m_feature = &_feature;

    if (m_keywordGeom != m_feature->geometryType) {
        setKeyword(key_geom, s_geometryStrings[m_feature->geometryType]);
        m_keywordGeom = m_feature->geometryType;
    }
}
コード例 #3
0
//copy constructor for the text object
text::text(const text &textSource){

    //copy all of the items over from the source to the
    //current object
    setTitle(textSource.getTitle());
    setAuthor(textSource.getAuthor());
    setRating(textSource.getRating());
    setKeyword(textSource.getKeyword());
    strcpy(response, textSource.getResponse());
   
}
コード例 #4
0
ファイル: Executive.cpp プロジェクト: vafaabdul/FileCatalog
//start of processing the user commands
void Executive::startProcessing(int argc,char** argv){

	cat->isRecurse(false);
	FileSystem::Directory::setCurrentDirectory(".");
	std::string path = FileSystem::Directory::getCurrentDirectory();

	if (argc < 2){
		cat->addPattern("*.*");
		cat->storeFile(path);
		display->displayResult(cat);
		newTextSearch();
		return ;
	}
	int t = 0;
	for (int j = 1; j < argc; ++j)
	{
		if ((argv[j][0] != '/') && (t == 0))
		{
			path = argv[j];
			FileSystem::Directory::setCurrentDirectory(path);
			path = FileSystem::Directory::getCurrentDirectory();
			t = t + 1;
		}
		if ((argv[j][0] == '/') && (argv[j][1] == 's'))
			cat->isRecurse(true);

		if ((argv[j][0] == '/') && (argv[j][1] == 'd'))
			isFindDuplicates( true);
		
		if ((argv[j][0] == '/') && (argv[j][1] == 'f')){

			istextSearch(true);
			std::string tmp = argv[j+1];
			tmp = tmp.substr(1, tmp.length() - 2);
			setKeyword(tmp);
		}
		else
			cat->addPattern(argv[j]);	
	}

	cat->storeFile(path);
	display->displayResult(cat);

	if (getFindDuplicates())
		cat->findDuplicates();

	if (getTextSearch())
		doTextSearch();
	newTextSearch();
}
コード例 #5
0
void StyleContext::setKeywordZoom(int _zoom) {
    if (m_keywordZoom != _zoom) {
        setKeyword(key_zoom, _zoom);
        m_keywordZoom = _zoom;
    }
}