summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-02-15 19:15:52 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2009-02-15 19:15:52 +0100
commite6bd98e0a722a7f8aa3b971e1a4b0a69305be644 (patch)
tree9609ad01898ed9a357db0d05693c44d29540afde /src/screen.cpp
parent4cdafc5639f6a1460e91004414f6e64209463125 (diff)
general code cleaning
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
new file mode 100644
index 00000000..0e49ea32
--- /dev/null
+++ b/src/screen.cpp
@@ -0,0 +1,30 @@
+/***************************************************************************
+ * Copyright (C) 2008-2009 by Andrzej Rybczak *
+ * electricityispower@gmail.com *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
+ ***************************************************************************/
+
+#include "screen.h"
+
+void BasicScreen::Select(List *l)
+{
+ if (l->Empty())
+ return;
+ size_t i = l->Choice();
+ l->Select(i, !l->isSelected(i));
+}
+