~ubuntu-branches/ubuntu/karmic/gnash/karmic

« back to all changes in this revision

Viewing changes to gui/kde.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2008-10-13 14:29:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081013142949-f6qdvnu4mn05ltdc
Tags: 0.8.4~~bzr9980-0ubuntu1
* new upstream release 0.8.4 (LP: #240325)
* ship new lib usr/lib/gnash/libmozsdk.so.* in mozilla-plugin-gnash
  - update debian/mozilla-plugin-gnash.install
* ship new lib usr/lib/gnash/libgnashnet.so.* in gnash-common
  - update debian/gnash-common.install
* add basic debian/build_head script to build latest CVS head packages.
  - add debian/build_head
* new sound architecture requires build depend on libsdl1.2-dev
  - update debian/control
* head build script now has been completely migrated to bzr (upstream +
  ubuntu)
  - update debian/build_head
* disable kde gui until klash/qt4 has been fixed; keep kde packages as empty
  packages for now.
  - update debian/rules
  - debian/klash.install
  - debian/klash.links
  - debian/klash.manpages
  - debian/konqueror-plugin-gnash.install
* drop libkonq5-dev build dependency accordingly
  - update debian/control
* don't install headers manually anymore. gnash doesnt provide a -dev
  package after all
  - update debian/rules
* update libs installed in gnash-common; libgnashserver-*.so is not available
  anymore (removed); in turn we add the new libgnashcore-*.so
  - update debian/gnash-common.install
* use -Os for optimization and properly pass CXXFLAGS=$(CFLAGS) to configure
  - update debian/rules
* touch firefox .autoreg in postinst of mozilla plugin
  - update debian/mozilla-plugin-gnash.postinst
* link gnash in ubufox plugins directory for the plugin alternative switcher
  - add debian/mozilla-plugin-gnash.links
* suggest ubufox accordingly
  - update debian/control
* add new required build-depends on libgif-dev
  - update debian/control
* add Xb-Npp-Description and Xb-Npp-File as new plugin database meta data
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include "gui.h"
44
44
#include "kdesup.h"
45
45
#include "klash.moc"
 
46
#include "utility.h" // for PIXELS_TO_TWIPS 
46
47
 
47
48
using namespace std;
48
49
 
287
288
int
288
289
KdeGui::qtToGnashModifier(Qt::ButtonState state)
289
290
{
290
 
    int modifier = gnash::key::MOD_NONE;
 
291
    int modifier = gnash::key::GNASH_MOD_NONE;
291
292
 
292
293
    if (state & Qt::ShiftButton) {
293
 
        modifier = modifier | gnash::key::MOD_SHIFT;
 
294
        modifier = modifier | gnash::key::GNASH_MOD_SHIFT;
294
295
    }
295
296
    if (state & Qt::ControlButton) {
296
 
        modifier = modifier | gnash::key::MOD_CONTROL;
 
297
        modifier = modifier | gnash::key::GNASH_MOD_CONTROL;
297
298
    }
298
299
    if (state & Qt::AltButton) {
299
 
       modifier = modifier | gnash::key::MOD_ALT;
 
300
       modifier = modifier | gnash::key::GNASH_MOD_ALT;
300
301
    }
301
302
 
302
303
    return modifier;
335
336
qwidget::menuitem_restart_callback()
336
337
{
337
338
//    GNASH_REPORT_FUNCTION;
338
 
    _godfather->menu_restart();
 
339
    _godfather->restart();
339
340
}
340
341
 
341
342
/// \brief force redraw of current frame
359
360
qwidget::menuitem_play_callback()
360
361
{
361
362
//    GNASH_REPORT_FUNCTION;
362
 
    _godfather->menu_play();
 
363
    _godfather->play();
363
364
}
364
365
 
365
366
/// \brief toggle that's playing or paused.
367
368
qwidget::menuitem_pause_callback()
368
369
{
369
370
//    GNASH_REPORT_FUNCTION;
370
 
    _godfather->menu_pause();
 
371
    _godfather->pause();
371
372
}
372
373
 
373
374
/// \brief stop the movie that's playing.
375
376
qwidget::menuitem_stop_callback()
376
377
{
377
378
//    GNASH_REPORT_FUNCTION;
378
 
    _godfather->menu_stop();
 
379
    _godfather->stop();
379
380
}
380
381
 
381
382
/// \brief step forward 1 frame
423
424
    assert(_godfather);
424
425
    QPoint position = event->pos();
425
426
 
426
 
    int newX = static_cast<int> (position.x() / _godfather->getXScale());
427
 
    int newY = static_cast<int> (position.y() / _godfather->getYScale());
428
 
 
429
 
    _godfather->notify_mouse_moved(newX, newY);
 
427
    _godfather->notify_mouse_moved(position.x(), position.y());
430
428
}
431
429
 
432
430
qwidget::qwidget(KdeGui* godfather)