mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Add the already selected tilesets to the land when editing.
--HG-- branch : gsoc2014-dfighter
This commit is contained in:
parent
ddc7961e9b
commit
c8914248db
3 changed files with 14 additions and 0 deletions
|
@ -20,6 +20,17 @@ void LandEditDialog::getSelectedTileSets( QStringList &l ) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LandEditDialog::setSelectedTileSets( QStringList &l )
|
||||||
|
{
|
||||||
|
tilesetLV->clear();
|
||||||
|
|
||||||
|
QStringListIterator itr( l );
|
||||||
|
while( itr.hasNext() )
|
||||||
|
{
|
||||||
|
tilesetLV->addItem( itr.next() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void LandEditDialog::setTileSets( const QStringList &l )
|
void LandEditDialog::setTileSets( const QStringList &l )
|
||||||
{
|
{
|
||||||
tilesetCB->clear();
|
tilesetCB->clear();
|
||||||
|
|
|
@ -13,6 +13,8 @@ public:
|
||||||
~LandEditDialog();
|
~LandEditDialog();
|
||||||
|
|
||||||
void getSelectedTileSets( QStringList &l ) const;
|
void getSelectedTileSets( QStringList &l ) const;
|
||||||
|
void setSelectedTileSets( QStringList &l );
|
||||||
|
|
||||||
void setTileSets( const QStringList &l );
|
void setTileSets( const QStringList &l );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -483,6 +483,7 @@ void TileEditorMainWindow::onLandEdit()
|
||||||
Land &l = m_lands[ r ];
|
Land &l = m_lands[ r ];
|
||||||
|
|
||||||
LandEditDialog d;
|
LandEditDialog d;
|
||||||
|
d.setSelectedTileSets( l.tilesets );
|
||||||
d.setTileSets( ts );
|
d.setTileSets( ts );
|
||||||
int result = d.exec();
|
int result = d.exec();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue