ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

recorderdialog.h

Go to the documentation of this file.
00001 /* ScummVM - Graphic Adventure Engine
00002  *
00003  * ScummVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the COPYRIGHT
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #ifndef GUI_RECORDER_DIALOG_H
00024 #define GUI_RECORDER_DIALOG_H
00025 #include "common/stream.h"
00026 #include "common/recorderfile.h"
00027 #include "gui/dialog.h"
00028 namespace GUI {
00029 
00030 class ListWidget;
00031 class GraphicsWidget;
00032 class ButtonWidget;
00033 class CommandSender;
00034 class ContainerWidget;
00035 class StaticTextWidget;
00036 
00037 class RecorderDialog : public GUI::Dialog {
00038     using GUI::Dialog::runModal;
00039 
00040 private:
00041     bool _firstScreenshotUpdate;
00042     Common::PlaybackFile _playbackFile;
00043     Common::String _target;
00044     Common::String _filename;
00045     int _currentScreenshot;
00046     int _screenShotsCount;
00047     Common::Array<Common::PlaybackFile::PlaybackFileHeader> _fileHeaders;
00048     GUI::ListWidget *_list;
00049     GUI::ContainerWidget *_container;
00050     GUI::GraphicsWidget *_gfxWidget;
00051     GUI::StaticTextWidget *_currentScreenshotText;
00052     GUI::StaticTextWidget *_authorText;
00053     GUI::StaticTextWidget *_notesText;
00054     GUI::ButtonWidget *_editButton;
00055     GUI::ButtonWidget *_deleteButton;
00056     GUI::ButtonWidget *_playbackButton;
00057 
00058     void updateList();
00059     void updateScreenShotsText();
00060     void updateSelection(bool redraw);
00061     void updateScreenshot();
00062 public:
00063     Common::String _author;
00064     Common::String _name;
00065     Common::String _notes;
00066     enum DialogResult {
00067         kRecordDialogClose,
00068         kRecordDialogRecord,
00069         kRecordDialogPlayback
00070     };
00071     RecorderDialog();
00072     ~RecorderDialog();
00073 
00074     virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
00075     virtual void reflowLayout();
00076 
00077     int runModal(Common::String &target);
00078     const Common::String getFileName() {return _filename;}
00079 };
00080 
00081 }  // End of namespace GUI
00082 
00083 
00084 #endif


Generated on Sat May 18 2019 05:01:17 for ResidualVM by doxygen 1.7.1
curved edge   curved edge