~ubuntu-branches/ubuntu/utopic/cdrdao/utopic

« back to all changes in this revision

Viewing changes to xdao/AddSilenceDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-06-24 22:33:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040624223316-534onzugaeeyq61j
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  cdrdao - write audio CD-Rs in disc-at-once mode
 
2
 *
 
3
 *  Copyright (C) 1998-2000  Andreas Mueller <mueller@daneb.ping.de>
 
4
 *
 
5
 *  This program is free software; you can redistribute it and/or modify
 
6
 *  it under the terms of the GNU General Public License as published by
 
7
 *  the Free Software Foundation; either version 2 of the License, or
 
8
 *  (at your option) any later version.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 */
 
19
 
 
20
#ifndef __ADD_SILENCE_DIALOG_H__
 
21
#define __ADD_SILENCE_DIALOG_H__
 
22
 
 
23
#include <gtkmm.h>
 
24
#include <gtk/gtk.h>
 
25
 
 
26
class TocEditView;
 
27
 
 
28
class AddSilenceDialog : public Gtk::Dialog
 
29
{
 
30
public:
 
31
  enum Mode { M_APPEND, M_INSERT };
 
32
 
 
33
  AddSilenceDialog();
 
34
  ~AddSilenceDialog();
 
35
 
 
36
  void start(TocEditView *);
 
37
  void stop();
 
38
 
 
39
  void mode(Mode);
 
40
  void update(unsigned long level, TocEditView *);
 
41
 
 
42
  bool on_delete_event(GdkEventAny*);
 
43
 
 
44
private:
 
45
  TocEditView *tocEditView_;
 
46
  bool active_;
 
47
  Mode mode_;
 
48
 
 
49
  Gtk::Button *applyButton_;
 
50
 
 
51
  Gtk::Entry minutes_;
 
52
  Gtk::Entry seconds_;
 
53
  Gtk::Entry frames_;
 
54
  Gtk::Entry samples_;
 
55
 
 
56
  void clearAction();
 
57
  void closeAction();
 
58
  void applyAction();
 
59
};
 
60
 
 
61
#endif