~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/gui/SnapshotDialog.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2013-06-28 09:53:13 UTC
  • mfrom: (1.3.6)
  • Revision ID: package-import@ubuntu.com-20130628095313-j8jkkgxpvx1t18ym
Tags: 3.9-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//============================================================================
 
2
//
 
3
//   SSSS    tt          lll  lll       
 
4
//  SS  SS   tt           ll   ll        
 
5
//  SS     tttttt  eeee   ll   ll   aaaa 
 
6
//   SSSS    tt   ee  ee  ll   ll      aa
 
7
//      SS   tt   eeeeee  ll   ll   aaaaa  --  "An Atari 2600 VCS Emulator"
 
8
//  SS  SS   tt   ee      ll   ll  aa  aa
 
9
//   SSSS     ttt  eeeee llll llll  aaaaa
 
10
//
 
11
// Copyright (c) 1995-2013 by Bradford W. Mott, Stephen Anthony
 
12
// and the Stella Team
 
13
//
 
14
// See the file "License.txt" for information on usage and redistribution of
 
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
16
//
 
17
// $Id: SnapshotDialog.hxx 2753 2013-06-21 12:15:32Z stephena $
 
18
//============================================================================
 
19
 
 
20
#ifndef SNAPSHOT_DIALOG_HXX
 
21
#define SNAPSHOT_DIALOG_HXX
 
22
 
 
23
class OSystem;
 
24
class GuiObject;
 
25
class DialogContainer;
 
26
class BrowserDialog;
 
27
class CheckboxWidget;
 
28
class PopUpWidget;
 
29
class EditTextWidget;
 
30
class SliderWidget;
 
31
class StaticTextWidget;
 
32
 
 
33
#include "Dialog.hxx"
 
34
#include "Command.hxx"
 
35
 
 
36
class SnapshotDialog : public Dialog
 
37
{
 
38
  public:
 
39
    SnapshotDialog(OSystem* osystem, DialogContainer* parent,
 
40
                   const GUI::Font& font, GuiObject* boss,
 
41
                   int max_w, int max_h);
 
42
    ~SnapshotDialog();
 
43
 
 
44
    void handleCommand(CommandSender* sender, int cmd, int data, int id);
 
45
 
 
46
  private:
 
47
    void loadConfig();
 
48
    void saveConfig();
 
49
    void setDefaults();
 
50
 
 
51
  private:
 
52
    enum {
 
53
      kChooseSnapSaveDirCmd = 'LOss', // snapshot dir (save files)
 
54
      kChooseSnapLoadDirCmd = 'LOsl', // snapshot dir (load files)
 
55
      kSnapSaveDirChosenCmd = 'snsc', // snap chosen (save files)
 
56
      kSnapLoadDirChosenCmd = 'snlc'  // snap chosen (load files)
 
57
    };
 
58
 
 
59
    BrowserDialog* myBrowser;
 
60
 
 
61
    // Config paths
 
62
    EditTextWidget* mySnapSavePath;
 
63
    EditTextWidget* mySnapLoadPath;
 
64
 
 
65
    PopUpWidget* mySnapName;
 
66
    PopUpWidget* mySnapInterval;
 
67
 
 
68
    CheckboxWidget* mySnapSingle;
 
69
    CheckboxWidget* mySnap1x;
 
70
};
 
71
 
 
72
#endif