void NetHackQtMenuWindow::All()
{
+ if (how != PICK_ANY)
+ return;
+
for (int i=0; i<itemcount; i++) {
QTableWidgetItem *count = table->item(i, 0);
if (count != NULL) count->setText("");
}
void NetHackQtMenuWindow::ChooseNone()
{
+ if (how != PICK_ANY)
+ return;
+
for (int i=0; i<itemcount; i++) {
QTableWidgetItem *count = table->item(i, 0);
if (count != NULL) count->setText("");
}
void NetHackQtMenuWindow::Invert()
{
+ if (how != PICK_ANY)
+ return;
+
for (int i=0; i<itemcount; i++) {
QTableWidgetItem *count = table->item(i, 0);
if (count != NULL) count->setText("");
}
void NetHackQtMenuWindow::Search()
{
+ if (how != PICK_NONE)
+ return;
+
NetHackQtStringRequestor requestor(this, "Search for:");
char line[256];
if (requestor.Get(line)) {