~ubuntu-branches/ubuntu/karmic/digikam/karmic-backports

« back to all changes in this revision

Viewing changes to utilities/advancedrename/advancedrenamedialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Auto-Backport
  • Date: 2009-12-07 19:03:53 UTC
  • mfrom: (54.1.4 lucid)
  • Revision ID: james.westby@ubuntu.com-20091207190353-oara3lenjxymto3i
Tags: 2:1.0.0~rc-1ubuntu1~karmic1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
namespace Digikam
48
48
{
49
49
 
 
50
class Parser;
 
51
 
50
52
class AdvancedRenameListItemPriv;
51
53
 
52
54
class AdvancedRenameListItem : public QTreeWidgetItem
53
55
{
54
56
public:
55
57
 
 
58
    enum Column
 
59
    {
 
60
        OldName = 0,
 
61
        NewName
 
62
    };
 
63
 
 
64
public:
 
65
 
56
66
    AdvancedRenameListItem(QTreeWidget* view);
57
 
    AdvancedRenameListItem(QTreeWidget* view, const ImageInfo& info);
 
67
    AdvancedRenameListItem(QTreeWidget* view, const KUrl& info);
58
68
    virtual ~AdvancedRenameListItem();
59
69
 
60
 
    void setImageInfo(const ImageInfo& info);
61
 
    ImageInfo imageInfo() const;
 
70
    void setImageUrl(const KUrl& url);
 
71
    KUrl imageUrl() const;
62
72
 
63
 
    void setName(const QString& name);
 
73
    void setName(const QString& name, bool check = true);
64
74
    QString name() const;
65
75
 
66
 
    void setNewName(const QString& name);
 
76
    void setNewName(const QString& name, bool check = true);
67
77
    QString newName() const;
68
78
 
 
79
    void markInvalid(bool invalid);
 
80
    bool isInvalid();
 
81
 
69
82
private:
70
83
 
71
84
    AdvancedRenameListItemPriv* const d;
73
86
 
74
87
// --------------------------------------------------------
75
88
 
76
 
typedef QPair<ImageInfo, QString> NewNameInfo;
77
 
typedef QList<NewNameInfo>        NewNamesList;
 
89
typedef QPair<KUrl, QString> NewNameInfo;
 
90
typedef QList<NewNameInfo>   NewNamesList;
78
91
 
79
92
class AdvancedRenameDialogPriv;
80
93
 
106
119
private Q_SLOTS:
107
120
 
108
121
    void slotParseStringChanged(const QString&);
 
122
    void slotReturnPressed();
109
123
 
110
124
private:
111
125
 
112
126
    void initDialog(int count = 1);
 
127
    void readSettings();
 
128
    void writeSettings();
 
129
    bool checkNewNames();
113
130
 
114
131
private:
115
132