mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 01:40:13 +00:00
Implemented land removal.
This commit is contained in:
parent
b2a094cf4f
commit
95e27a511c
2 changed files with 11 additions and 0 deletions
|
@ -95,6 +95,7 @@ TileEditorMainWindow::TileEditorMainWindow(QWidget *parent)
|
||||||
connect(m_ui->tileSetDownTB, SIGNAL(clicked()), this, SLOT(onTileSetDown()));
|
connect(m_ui->tileSetDownTB, SIGNAL(clicked()), this, SLOT(onTileSetDown()));
|
||||||
|
|
||||||
connect(m_ui->landAddTB, SIGNAL(clicked()), this, SLOT(onLandAdd()));
|
connect(m_ui->landAddTB, SIGNAL(clicked()), this, SLOT(onLandAdd()));
|
||||||
|
connect(m_ui->landRemoveTB, SIGNAL(clicked()), this, SLOT(onLandRemove()));
|
||||||
|
|
||||||
connect(m_ui->tileSetLV->selectionModel(),
|
connect(m_ui->tileSetLV->selectionModel(),
|
||||||
SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
|
SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
|
||||||
|
@ -359,6 +360,15 @@ void TileEditorMainWindow::onLandAdd()
|
||||||
m_ui->landLW->addItem( name );
|
m_ui->landLW->addItem( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TileEditorMainWindow::onLandRemove()
|
||||||
|
{
|
||||||
|
QListWidgetItem *item = m_ui->landLW->currentItem();
|
||||||
|
if( item == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
delete item;
|
||||||
|
}
|
||||||
|
|
||||||
void TileEditorMainWindow::onActionAddTile(int tabId)
|
void TileEditorMainWindow::onActionAddTile(int tabId)
|
||||||
{
|
{
|
||||||
QFileDialog::Options options;
|
QFileDialog::Options options;
|
||||||
|
|
|
@ -55,6 +55,7 @@ public Q_SLOTS:
|
||||||
void onTileSetDown();
|
void onTileSetDown();
|
||||||
|
|
||||||
void onLandAdd();
|
void onLandAdd();
|
||||||
|
void onLandRemove();
|
||||||
|
|
||||||
void changeActiveTileSet(const QModelIndex &newIndex, const QModelIndex &oldIndex);
|
void changeActiveTileSet(const QModelIndex &newIndex, const QModelIndex &oldIndex);
|
||||||
void onZoomFactor(int level);
|
void onZoomFactor(int level);
|
||||||
|
|
Loading…
Reference in a new issue