~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/debianscreenshots/plugin_debianscreenshots.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                   parent, "Debian Screenshots Export")
63
63
{
64
64
    kDebug(AREA_CODE_LOADING) << "Plugin_DebianScreenshots plugin loaded";
65
 
}
66
 
 
67
 
void Plugin_DebianScreenshots::setup(QWidget* widget)
 
65
 
 
66
    setUiBaseName("kipiplugin_debianscreenshotsui.rc");
 
67
    setupXML();
 
68
}
 
69
 
 
70
Plugin_DebianScreenshots::~Plugin_DebianScreenshots()
 
71
{
 
72
}
 
73
 
 
74
void Plugin_DebianScreenshots::setup(QWidget* const widget)
68
75
{
69
76
    m_dlgExport = 0;
70
77
 
71
78
    Plugin::setup(widget);
72
 
 
73
79
    KIconLoader::global()->addAppDir("kipiplugin_debianscreenshots");
74
 
 
75
 
    m_actionExport = actionCollection()->addAction("debianscreenshotsexport");
 
80
    setupActions();
 
81
 
 
82
    if (!interface())
 
83
    {
 
84
        kError() << "Kipi interface is null!";
 
85
        return;
 
86
    }
 
87
 
 
88
    m_actionExport->setEnabled(true);
 
89
}
 
90
 
 
91
void Plugin_DebianScreenshots::setupActions()
 
92
{
 
93
    setDefaultCategory(ExportPlugin);
 
94
 
 
95
    m_actionExport = new KAction(this);
76
96
    m_actionExport->setText(i18n("Export to &Debian Screenshots..."));
77
97
    m_actionExport->setIcon(KIcon("debianscreenshots"));
78
98
    m_actionExport->setShortcut(KShortcut(Qt::ALT+Qt::SHIFT+Qt::Key_D));
 
99
    m_actionExport->setEnabled(false);
79
100
 
80
101
    connect(m_actionExport, SIGNAL(triggered(bool)),
81
102
            this, SLOT(slotExport()) );
82
103
 
83
 
    addAction(m_actionExport);
84
 
 
85
 
    Interface* interface = dynamic_cast<Interface*>(parent());
86
 
    if (!interface)
87
 
    {
88
 
        kError() << "Kipi interface is null!";
89
 
        m_actionExport->setEnabled(false);
90
 
        return;
91
 
    }
92
 
 
93
 
    m_actionExport->setEnabled(true);
94
 
}
95
 
 
96
 
Plugin_DebianScreenshots::~Plugin_DebianScreenshots()
97
 
{
 
104
    addAction("debianscreenshotsexport", m_actionExport);
98
105
}
99
106
 
100
107
void Plugin_DebianScreenshots::slotExport()
118
125
    m_dlgExport->reactivate();
119
126
}
120
127
 
121
 
Category Plugin_DebianScreenshots::category(KAction*) const
122
 
{
123
 
    return ExportPlugin;
124
 
}
125
 
 
126
 
} // namespace KIPIDebianScreenshotsPlugin
 
 
b'\\ No newline at end of file'
 
128
} // namespace KIPIDebianScreenshotsPlugin