~ubuntu-branches/ubuntu/oneiric/avidemux/oneiric-proposed

« back to all changes in this revision

Viewing changes to avidemux/ADM_userInterfaces/ADM_QT4/ADM_gui/Q_gui2.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-08-20 08:42:44 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090820084244-bhh15xxd7x2vbcuh
Tags: 1:2.5.1+repack-0ubuntu1
* New upstream bugfix release (LP: #416066):
  - Re-enabled several video and audio encoders (regression introduced
    in 2.5.0)
  - Updated the FFmpeg libraries
  - More video encoders are now plugins
  - DV video encoder now supports more profiles
  - Fixed loading and saving issues with LAME, x264 and Xvid options
    (regression introduced in 2.5.0)
  - Fraps video decoding support
  - Lowpass-5 mode added to libavcodec deinterlacer filter plugin
  - Fixed formatting of parameters for various filters on 64-bit platforms
  - Updated libass
  - Fixed sizing of the bitrate control on various video encoder configure
    windows (regression introduced in 2.5.0)
  - Improved filter dialog for GTK+ interface
  - New navigation icons for GTK+ interface
  - Fixed the behaviour of several GTK+ open/save dialogs (regression
    introduced in 2.5.0)
  - asharp filter's Block Adaptive mode can now be disabled using the Qt
    interface
  - Re-enabled the colour chooser dialog using the Qt interface (regression
    introduced in 2.5.0)
  - GCC 4.4 support
  - Fixed issues with CMake build scripts when using multiple make jobs
    (regression introduced in 2.5.0)
* Remove debian/patches dir and drop all patches, now applied by upstream.
* Drop quilt support.
* debian/libavidemux0.install: Also install missing libraries.
* Move debian/install to debian/avidemux.install.
* debian/rules:
  - Build the internal ffmpeg version properly (thanks to Christian Marillat).
  - A bit of cleanup.
* debian/control:
  - Bump Standards-Version.
  - Update Homepage field.
  - Adjust libavidemux0 short description.
  - gtk -> GTK, qt -> QT.
  - Set myself as Maintainer.
* Repack the tarball to remove the debian/ dir provided by upstream:
  - Create debian/README.source.
  - Update debian/watch.
  - Add get-orig-source target to debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <QtGui/QKeyEvent>
19
19
#include <QtGui/QGraphicsView>
20
20
 
 
21
#include "ADM_default.h"
21
22
#include "Q_gui2.h"
22
 
#include "ADM_default.h"
23
23
#include "ADM_toolkitQt.h"
24
24
#include "ADM_qslider.h"
25
25
#include "ADM_codecs/ADM_codec.h"
39
39
extern uint8_t UI_getPhysicalScreenSize(void* window, uint32_t *w,uint32_t *h);
40
40
extern int automation(void );
41
41
extern void HandleAction(Action a);
 
42
extern bool isVideoCodecConfigurable(void);
42
43
extern int encoderGetEncoderCount (void);
43
44
extern const char *encoderGetIndexedName (uint32_t i);
44
45
uint32_t audioEncoderGetNumberOfEncoders(void);
107
108
 
108
109
void MainWindow::comboChanged(int z)
109
110
{
110
 
        const char *source=qPrintable(sender()->objectName());
 
111
        if (sender() == ui.comboBoxVideo)
 
112
        {
 
113
                bool b = (ui.comboBoxVideo->currentIndex() != 0);
111
114
 
112
 
        if(!strcmp(source,"comboBoxVideo"))  
113
 
        {
114
 
                bool b=FALSE;
115
 
                if(ui.comboBoxVideo->currentIndex())
116
 
                {
117
 
                        b=TRUE;
118
 
                }
119
 
                ui.pushButtonVideoConf->setEnabled(b);
120
115
                ui.pushButtonVideoFilter->setEnabled(b);
121
 
                HandleAction (ACT_VideoCodecChanged) ;
 
116
                HandleAction (ACT_VideoCodecChanged);
 
117
 
 
118
                ui.pushButtonVideoConf->setEnabled(b && isVideoCodecConfigurable());
122
119
        }
123
 
        else if(!strcmp(source,"comboBoxAudio"))  
 
120
        else if (sender() == ui.comboBoxAudio)
124
121
        {
125
 
                bool b=FALSE;
126
 
                if(ui.comboBoxAudio->currentIndex())
127
 
                {
128
 
                        b=TRUE;
129
 
                }
 
122
                bool b = (ui.comboBoxAudio->currentIndex() != 0);
 
123
 
130
124
                ui.pushButtonAudioConf->setEnabled(b);
131
125
                ui.pushButtonAudioFilter->setEnabled(b);
132
 
                HandleAction (ACT_AudioCodecChanged) ;
 
126
                HandleAction(ACT_AudioCodecChanged);
133
127
        }
134
 
        else
135
 
                printf("From +: %s\n",source);
136
128
}
137
129
 
138
130
void MainWindow::sliderValueChanged(int u) 
255
247
        connect(ui.actionNext_intra_frame, SIGNAL(triggered()), this, SLOT(nextIntraFrame()));
256
248
 
257
249
        //ACT_VideoCodecChanged
258
 
        connect( ui.comboBoxVideo,SIGNAL(activated(int)),this,SLOT(comboChanged(int)));
259
 
        connect( ui.comboBoxAudio,SIGNAL(activated(int)),this,SLOT(comboChanged(int)));
 
250
        connect( ui.comboBoxVideo,SIGNAL(currentIndexChanged(int)),this,SLOT(comboChanged(int)));
 
251
        connect( ui.comboBoxAudio,SIGNAL(currentIndexChanged(int)),this,SLOT(comboChanged(int)));
260
252
 
261
253
        // Slider
262
254
        slider=ui.horizontalSlider;
1067
1059
 
1068
1060
void UI_setVideoCodec( int i)
1069
1061
{
1070
 
        int b=!!i;
1071
1062
        WIDGET(comboBoxVideo)->setCurrentIndex(i);
1072
 
 
1073
 
        WIDGET(pushButtonVideoConf)->setEnabled(b);
1074
 
        WIDGET(pushButtonVideoFilter)->setEnabled(b);
1075
1063
}
1076
1064
/**
1077
1065
    \fn     UI_getCurrentACodec(void)