blob: 7c13b69a20bbd566992b65919f173ac63e29bf6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/***************************************************************************
mydirplugin.h - description
-------------------
begin : Tue Jan 29 2002
copyright : (C) 2002 by Dominik Seichter
email : domseichter@web.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef MYDIRPLUGIN_H
#define MYDIRPLUGIN_H
#include "batchrenamer.h"
#include "pluginloader.h"
#include "plugin.h"
#include "helpdialog.h"
class TQDir;
class TQHBoxLayout;
class TQGroupBox;
class TQLineEdit;
class TQPushButton;
class TQSpinBox;
class TQString;
class TQVBoxLayout;
class TQWidget;
class MyDirPlugin : public Plugin {
Q_OBJECT
public:
const TQString getName() const;
const TQString getAccelName() const;
const int type() const;
bool checkError();
void drawInterface( TQWidget* w, TQVBoxLayout* l );
void fillStructure();
TQString processFile( BatchRenamer*, int, TQString token, int );
void finished();
const TQPixmap getIcon() const;
private slots:
void chooseDir();
protected:
int fpd; // files per dir
int filecounter;
int dircounter;
TQString dir;
TQString curdir;
TQDir* d;
TQLineEdit* outputdir;
TQPushButton* buttonDir;
TQSpinBox* spinFiles;
TQSpinBox* spinStart;
TQGroupBox* groupOutput;
TQHBoxLayout* groupOutputLayout;
TQGroupBox* groupNumber;
TQHBoxLayout* groupNumberLayout;
};
#endif
|