You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
80 lines
2.3 KiB
/***************************************************************************
|
|
replacedialog.h - description
|
|
-------------------
|
|
begin : Sat Aug 18 2001
|
|
copyright : (C) 2001 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 REPLACEDIALOG_H
|
|
#define REPLACEDIALOG_H
|
|
|
|
// QT includes
|
|
#include <kdialogbase.h>
|
|
#include <tqvaluelist.h>
|
|
|
|
// Own includes
|
|
#include "batchrenamer.h"
|
|
|
|
class TQCheckBox;
|
|
class TQGridLayout;
|
|
class TQGridLayout;
|
|
class TQLabel;
|
|
class TQLineEdit;
|
|
class KPushButton;
|
|
class TQListViewItem;
|
|
class TDEListView;
|
|
class ReplaceDialog : public KDialogBase
|
|
{
|
|
TQ_OBJECT
|
|
|
|
|
|
public:
|
|
ReplaceDialog( TQValueList<replacestrings> & r, TQWidget* parent = 0 );
|
|
~ReplaceDialog();
|
|
|
|
TQValueList<replacestrings> getList();
|
|
|
|
private slots:
|
|
void add();
|
|
void moveFocus();
|
|
void remove();
|
|
void invokeRegEdit();
|
|
void enableControls();
|
|
void slotEdit();
|
|
|
|
private:
|
|
void reset();
|
|
|
|
TQLabel* TextLabel1;
|
|
TQLineEdit* text2;
|
|
TQLabel* TextLabel2;
|
|
TQLineEdit* text1;
|
|
TDEListView* list;
|
|
TQCheckBox* checkReg;
|
|
|
|
KPushButton* buttonAdd;
|
|
KPushButton* buttonRemove;
|
|
KPushButton* buttonEdit;
|
|
KPushButton* buttonRegEdit;
|
|
|
|
TQString encode( TQString s );
|
|
TQString decode( TQString s );
|
|
|
|
protected:
|
|
void resizeEvent( TQResizeEvent* e );
|
|
|
|
TQGridLayout* ReplaceDialogLayout;
|
|
};
|
|
|
|
#endif // REPLACEDIALOG_H
|