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 __TOC_EDIT_VIEW_H__
21 #define __TOC_EDIT_VIEW_H__
22 
23 class TocEdit;
24 
25 class TocEditView {
26 public:
27   TocEditView(TocEdit *);
28   ~TocEditView();
29 
30   TocEdit *tocEdit() const;
31 
32   void sampleMarker(unsigned long);
33   bool sampleMarker(unsigned long *) const;
34 
35   void sampleSelect(unsigned long, unsigned long);
36   void sampleSelectAll();
37   bool sampleSelection(unsigned long *, unsigned long *) const;
38   bool sampleSelectionClear();
39 
40   void sampleViewFull();
41   void sampleViewUpdate();
42   void sampleViewInclude(unsigned long, unsigned long);
43   void sampleView(unsigned long *, unsigned long *) const;
44   bool sampleView(unsigned long smin, unsigned long smax);
45 
46   void trackSelection(int);
47   int trackSelection(int *) const;
48 
49   void indexSelection(int);
50   int indexSelection(int *) const;
51 
52 private:
53   TocEdit *tocEdit_;
54 
55   bool sampleMarkerValid_;
56   unsigned long sampleMarker_;
57 
58   bool sampleSelectionValid_;
59   unsigned long sampleSelectionMin_;
60   unsigned long sampleSelectionMax_;
61 
62   unsigned long sampleViewMin_;
63   unsigned long sampleViewMax_;
64 
65   int trackSelectionValid_;
66   int trackSelection_;
67 
68   int indexSelectionValid_;
69   int indexSelection_;
70 
71 };
72 
73 #endif
74