1
/***************************************************************************
2
qgsdelattrdialog.cpp - description
5
copyright : (C) 2005 by Marco Hugentobler
6
email : marco.hugentobler@autoform.ch
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#include "qgsdelattrdialog.h"
23
QgsDelAttrDialog::QgsDelAttrDialog(QHeader* header): QgsDelAttrDialogBase()
25
QObject::connect((QObject*)mOkButton, SIGNAL(clicked()), this, SLOT(accept()));
26
QObject::connect((QObject*)mCancelButton, SIGNAL(clicked()), this, SLOT(reject()));
28
//insert attribute names into the QListView
32
for(int i=1;i<header->count();++i)
34
listBox2->insertItem(header->label(i));
39
const std::list<QString>* QgsDelAttrDialog::selectedAttributes()
41
mSelectedItems.clear();
42
for(int i=0;i<listBox2->numRows();++i)
44
if(listBox2->isSelected(i))
46
mSelectedItems.push_back(listBox2->text(i));
49
return &mSelectedItems;