~ubuntu-branches/ubuntu/hardy/avidemux/hardy

« back to all changes in this revision

Viewing changes to avidemux/ADM_userInterfaces/ADM_QT4/ADM_dialogFactory/FAC_notch.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2007-12-18 13:53:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218135304-cdqec2lg2bglyz15
Tags: 1:2.4~preview3-0.0ubuntu1
* Upload to Ubuntu. (LP: #163287, LP: #126572)
* debian/changelog: re-added Ubuntu releases.
* debian/control:
  - Require debhelper >= 5.0.51 (for dh_icons) and imagemagick.
  - Build-depend on libsdl1.2-dev instead of libsdl-dev.
  - Build against newer libx264-dev. (LP: #138854)
  - Removed libamrnb-dev, not in Ubuntu yet.
* debian/rules:
  - Install all icon sizes, using convert (upstream installs none).
  - Added missing calls to dh_installmenu, dh_installman, dh_icons and
    dh_desktop.
* debian/menu, debian/avidemux-qt.menu:
  - Corrected package and executable names.
* debian/avidemux-common.install: Install icons.
* debian/avidemux.common.manpages: Install man/avidemux.1.
* debian/links, debian/avidemux-cli.links, debian/avidemux-gtk.links:
  - Link manpages to avidemux.1.gz.
* debian/install, debian/avidemux-qt.install, debian/avidemux-gtk.desktop,
  debian/avidemux-qt.desktop: Install desktop files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
  FAC_toggle.cpp
 
3
  Handle dialog factory element : Toggle
 
4
  (C) 2006 Mean Fixounet@free.fr 
 
5
***************************************************************************/
 
6
 
 
7
/***************************************************************************
 
8
 *                                                                         *
 
9
 *   This program is free software; you can redistribute it and/or modify  *
 
10
 *   it under the terms of the GNU General Public License as published by  *
 
11
 *   the Free Software Foundation; either version 2 of the License, or     *
 
12
 *   (at your option) any later version.                                   *
 
13
 *                                                                         *
 
14
 ***************************************************************************/
 
15
 
 
16
#include <config.h>
 
17
 
 
18
 
 
19
#include <string.h>
 
20
#include <stdio.h>
 
21
#include <stdlib.h>
 
22
#include <math.h>
 
23
 
 
24
#include <QDialog>
 
25
#include <QMessageBox>
 
26
#include <QGridLayout>
 
27
#include <QCheckBox>
 
28
 
 
29
#include "default.h"
 
30
#include "ADM_commonUI/DIA_factory.h"
 
31
#include "ADM_assert.h"
 
32
 
 
33
extern const char *shortkey(const char *);
 
34
 
 
35
diaElemNotch::diaElemNotch(uint32_t yes,const char *toggleTitle, const char *tip)
 
36
  : diaElem(ELEM_NOTCH)
 
37
{
 
38
  yesno=yes;
 
39
  paramTitle=toggleTitle;
 
40
  this->tip=tip;
 
41
}
 
42
 
 
43
diaElemNotch::~diaElemNotch()
 
44
{
 
45
  
 
46
}
 
47
void diaElemNotch::setMe(void *dialog, void *opaque,uint32_t line)
 
48
{
 
49
  QCheckBox *box=new QCheckBox(QString::fromUtf8(paramTitle),(QWidget *)dialog);
 
50
 QGridLayout *layout=(QGridLayout*) opaque;
 
51
 myWidget=(void *)box; 
 
52
 if( yesno)
 
53
 {
 
54
    box->setCheckState(Qt::Checked); 
 
55
 }
 
56
 box->show();
 
57
 layout->addWidget(box,line,0);
 
58
}
 
59
//******************************************************
 
60
 
 
61
//EOF