diff options
author | Max Horn | 2002-11-14 13:46:35 +0000 |
---|---|---|
committer | Max Horn | 2002-11-14 13:46:35 +0000 |
commit | e1527333449774ec9ed36756db2459e3c8b0b30d (patch) | |
tree | 9254bf4bc62bf9a4715d6fd4e2c53654193a2632 /gui/browser.cpp | |
parent | d7a8f1902e17a14e5c8d0c970f9bf0900c2e5b75 (diff) | |
download | scummvm-rg350-e1527333449774ec9ed36756db2459e3c8b0b30d.tar.gz scummvm-rg350-e1527333449774ec9ed36756db2459e3c8b0b30d.tar.bz2 scummvm-rg350-e1527333449774ec9ed36756db2459e3c8b0b30d.zip |
added completly useless non functional browser dialog skeleton. Just to show Endy I really have started working on it finally <g>
svn-id: r5547
Diffstat (limited to 'gui/browser.cpp')
-rw-r--r-- | gui/browser.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp new file mode 100644 index 0000000000..dd20b6c01c --- /dev/null +++ b/gui/browser.cpp @@ -0,0 +1,51 @@ +/* ScummVM - Scumm Interpreter + * Copyright (C) 2002 The ScummVM project + * + * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Header$ + */ + +#include "browser.h" +#include "newgui.h" +#include "ListWidget.h" + +#include "backends/fs/fs.h" + +/* We want to use this as a general directory selector at some point... possible uses + * - to select the data dir for a game + * - to select the place where save games are stored + * - others??? + */ + +BrowserDialog::BrowserDialog(NewGui *gui) + : Dialog(gui, 50, 20, 320-2*50, 200-2*20) +{ + // Headline - TODO: should be customizable during creation time + new StaticTextWidget(this, 10, 10, _w-2*10, kLineHeight, + "Select directory with game data", kTextAlignCenter); + + // Add file list + _fileList = new ListWidget(this, 10, 20, _w-2*10, _h-20-24-10); + + // Buttons + addButton(10, _h-24, "Go up", kCloseCmd, 0); + addButton(_w-2*(kButtonWidth+10), _h-24, "Cancel", kCloseCmd, 0); + addButton(_w-(kButtonWidth+10), _h-24, "Choose", kCloseCmd, 0); + + // TODO - populate list item, implement buttons, etc. etc. + // TODO - will the choose button select the directory we are currrently in?!? + // TODO - double clicking an item should traverse into that directory +} |