~ubuntu-branches/ubuntu/wily/kipi-plugins/wily

« back to all changes in this revision

Viewing changes to removeredeyes/commonwidgets/storagesettingsbox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-12-13 12:14:45 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20101213121445-ukbi37gdnr50yzzi
Tags: 1.6.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
struct StorageSettingsBoxPriv
46
46
{
47
 
    StorageSettingsBoxPriv()
 
47
    StorageSettingsBoxPriv() :
 
48
        keywordCB(0),
 
49
        saveMethodCB(0),
 
50
        keywordLineEdit(0),
 
51
        saveMethodLineEdit(0)
48
52
    {
49
 
        saveMethodLineEdit   = 0;
50
 
        keywordLineEdit = 0;
51
53
    }
52
54
    QCheckBox*      keywordCB;
53
55
 
58
60
};
59
61
 
60
62
StorageSettingsBox::StorageSettingsBox(QWidget* parent)
61
 
                  : QGroupBox(parent), d(new StorageSettingsBoxPriv)
 
63
    : QGroupBox(parent), d(new StorageSettingsBoxPriv)
62
64
{
63
65
    setTitle(i18n("Storage Settings"));
64
66
 
65
67
    QString whatsThis = i18n("<p>These settings control the storage of the corrected images. "
66
 
            "There are three modes to choose from:</p>"
67
 
            "<p><ul>"
68
 
            "<li><b>Subfolder:</b> The corrected images will be saved in a subfolder "
69
 
            "under the current album path.</li>"
70
 
            "<li><b>Prefix:</b> A custom prefix will be added to the corrected image.</li>"
71
 
            "<li><b>Suffix:</b> A custom suffix will be added to the corrected image.</li>"
72
 
            "<li><b>Overwrite:</b> All original images will be replaced.</li>"
73
 
            "</ul></p>"
74
 
            "<p>Each of the three modes allows you to add an optional keyword to the image "
75
 
            "metadata.</p>");
 
68
                             "There are three modes to choose from:</p>"
 
69
                             "<p><ul>"
 
70
                             "<li><b>Subfolder:</b> The corrected images will be saved in a subfolder "
 
71
                             "under the current album path.</li>"
 
72
                             "<li><b>Prefix:</b> A custom prefix will be added to the corrected image.</li>"
 
73
                             "<li><b>Suffix:</b> A custom suffix will be added to the corrected image.</li>"
 
74
                             "<li><b>Overwrite:</b> All original images will be replaced.</li>"
 
75
                             "</ul></p>"
 
76
                             "<p>Each of the three modes allows you to add an optional keyword to the image "
 
77
                             "metadata.</p>");
76
78
    setWhatsThis(whatsThis);
77
79
 
78
80
    // ----------------------------------------------------------------
124
126
void StorageSettingsBox::buttonClicked(int mode)
125
127
{
126
128
    d->saveMethodLineEdit->setEnabled(true);
 
129
 
127
130
    if (mode == Overwrite)
 
131
    {
128
132
        d->saveMethodLineEdit->setEnabled(false);
 
133
    }
 
134
 
129
135
    emit settingsChanged();
130
136
}
131
137