~ubuntu-branches/debian/sid/v4l-utils/sid

« back to all changes in this revision

Viewing changes to utils/qv4l2-qt3/general-tab.h

  • Committer: Bazaar Package Importer
  • Author(s): Gregor Jasny
  • Date: 2010-05-07 20:48:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100507204834-ga01cxhz3fekk47r
Tags: 0.8.0-1
* New upstream version
* Switch to 3.0 (quilt) source format
* Re-enable pristine-tar
* Split utils package into command line and the Qt based qv4l2
  (Closes: #576422)
* Update upstream URL

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* qv4l2: a control panel controlling v4l2 devices.
2
 
 *
3
 
 * Copyright (C) 2006 Hans Verkuil <hverkuil@xs4all.nl>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or
6
 
 * modify it under the terms of the GNU General Public License
7
 
 * as published by the Free Software Foundation; either version 2
8
 
 * of the License, or (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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
 
 */
19
 
 
20
 
 
21
 
#ifndef GENERAL_TAB_H
22
 
#define GENERAL_TAB_H
23
 
 
24
 
#include <sys/time.h>
25
 
#include <linux/videodev2.h>
26
 
#include <qgrid.h>
27
 
 
28
 
class QComboBox;
29
 
class QSpinBox;
30
 
 
31
 
class GeneralTab: public QGrid
32
 
{
33
 
    Q_OBJECT
34
 
 
35
 
public:
36
 
    GeneralTab(const char *device, int fd, int n, QWidget *parent = 0);
37
 
    virtual ~GeneralTab() {}
38
 
 
39
 
private slots:
40
 
    void inputChanged(int);
41
 
    void outputChanged(int);
42
 
    void inputAudioChanged(int);
43
 
    void outputAudioChanged(int);
44
 
    void standardChanged(int);
45
 
    void freqTableChanged(int);
46
 
    void freqChannelChanged(int);
47
 
    void freqChanged(int);
48
 
 
49
 
private:
50
 
    void updateVideoInput();
51
 
    void updateVideoOutput();
52
 
    void updateAudioInput();
53
 
    void updateAudioOutput();
54
 
    void updateStandard();
55
 
    void updateFreq();
56
 
    void updateFreqChannel();
57
 
 
58
 
    int fd;
59
 
    struct v4l2_tuner tuner;
60
 
    struct v4l2_capability querycap;
61
 
 
62
 
    // General tab
63
 
    QComboBox *videoInput;
64
 
    QComboBox *videoOutput;
65
 
    QComboBox *audioInput;
66
 
    QComboBox *audioOutput;
67
 
    QComboBox *tvStandard;
68
 
    QSpinBox  *freq;
69
 
    QComboBox *freqTable;
70
 
    QComboBox *freqChannel;
71
 
};
72
 
 
73
 
#endif