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

« back to all changes in this revision

Viewing changes to core/utilities/cameragui/widgets/renamecustomizer.h

  • 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:
1
 
/* ============================================================
2
 
 *
3
 
 * This file is a part of digiKam project
4
 
 * http://www.digikam.org
5
 
 *
6
 
 * Date        : 2004-09-19
7
 
 * Description : a options group to set renaming files
8
 
 *               operations during camera downloading
9
 
 *
10
 
 * Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
11
 
 * Copyright (C) 2006-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
 
 * Copyright (C)      2011 by Andi Clemens <andi dot clemens at googlemail dot com>
13
 
 *
14
 
 * This program is free software; you can redistribute it
15
 
 * and/or modify it under the terms of the GNU General
16
 
 * Public License as published by the Free Software Foundation;
17
 
 * either version 2, or (at your option)
18
 
 * any later version.
19
 
 *
20
 
 * This program is distributed in the hope that it will be useful,
21
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 
 * GNU General Public License for more details.
24
 
 *
25
 
 * ============================================================ */
26
 
 
27
 
#ifndef RENAMECUSTOMIZER_H
28
 
#define RENAMECUSTOMIZER_H
29
 
 
30
 
// Qt includes
31
 
 
32
 
#include <QMap>
33
 
#include <QRegExp>
34
 
#include <QWidget>
35
 
 
36
 
class QDateTime;
37
 
 
38
 
class KLineEdit;
39
 
 
40
 
namespace Digikam
41
 
{
42
 
 
43
 
class AdvancedRenameManager;
44
 
 
45
 
class RenameCustomizer : public QWidget
46
 
{
47
 
    Q_OBJECT
48
 
 
49
 
public:
50
 
 
51
 
    enum Case
52
 
    {
53
 
        NONE = 0,
54
 
        UPPER,
55
 
        LOWER
56
 
    };
57
 
 
58
 
    RenameCustomizer(QWidget* parent, const QString& cameraTitle);
59
 
    ~RenameCustomizer();
60
 
 
61
 
    void    setUseDefault(bool val);
62
 
    bool    useDefault() const;
63
 
    QString newName(const QString& fileName, const QDateTime& date) const;
64
 
    Case    changeCase() const;
65
 
 
66
 
    int     startIndex() const;
67
 
    void    setStartIndex(int startIndex);
68
 
    void    reset();
69
 
 
70
 
    AdvancedRenameManager* renameManager() const;
71
 
 
72
 
Q_SIGNALS:
73
 
 
74
 
    void signalChanged();
75
 
 
76
 
public Q_SLOTS:
77
 
 
78
 
    void restoreFocus();
79
 
 
80
 
private:
81
 
 
82
 
    void readSettings();
83
 
    void saveSettings();
84
 
 
85
 
private Q_SLOTS:
86
 
 
87
 
    void slotRadioButtonClicked(int);
88
 
    void slotRenameOptionsChanged();
89
 
 
90
 
private:
91
 
 
92
 
    class RenameCustomizerPriv;
93
 
    RenameCustomizerPriv* const d;
94
 
};
95
 
 
96
 
}  // namespace Digikam
97
 
 
98
 
#endif /* RENAMECUSTOMIZER_H */