void CharacterCreateSeane::calc(void){ childCalc(); inputCalc(); if( this->inputName.size() == 0 ){ inputCharacterName(); }else if( getHierarchicalNum() < 10 ){ switch( getHierarchical() ){ case INIT: switch( getHierarchicalNum() ){ case 0: setInputObject( new FaceSelectWindow() ); addChild( new MessageWindow( 200, 300, 240, "上下で変更、Zキーで決定。") ); break; case 1: setInputObject( new ListRequestWindow( 0, 0, 200, 10, CTYPE ) ); break; case 2: case 3: case 4: case 5: case 6: setInputObject( new ListRequestWindow( 0, 0, 200, 10, CELEMENT ) ); break; case 7: //この人作っていいですかYESNO break; } setHierarchical( SELECT ); break; case SELECT: setHierarchical( window->getInputResult() ); if( getHierarchicalNum() == 0 ){ } if( getHierarchical() >= 0 ){ addHierarchical(); deleteChild(); if( getHerarchicalNum() == 7 ){ //キャラクターデータ生成 } } break; case CANSEL: deleteHierarchical(); break; default: break; } } }
bool CQJsonModel:: load(const QString &filename) { filename_ = filename; //--- // parse file into array of fields json_ = new CJson; if (! json_->loadFile(filename.toStdString(), jsonValue_)) { std::cerr << "Parse failed" << std::endl; return false; } //--- if (isRootHierarchical(hierName_, hierColumns_)) setHierarchical(true); //--- resetColumnTypes(); return true; }
CertListView::CertListView( QWidget * parent, const char * name, WFlags f ) : Kleo::KeyListView( new TestColumnStrategy(), 0, parent, name, f ) { setHierarchical( true ); setRootIsDecorated( true ); }