You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.5 KiB
C++
75 lines
1.5 KiB
C++
#ifndef HIDDEN_FILE_DIALOG_H
|
|
#define HIDDEN_FILE_DIALOG_H
|
|
|
|
#include <tqapplication.h>
|
|
#include <tqdialog.h>
|
|
#include <tqlayout.h>
|
|
#include <tqvbox.h>
|
|
#include <tqbuttongroup.h>
|
|
#include <tqlabel.h>
|
|
#include <tqlineedit.h>
|
|
#include <tqcheckbox.h>
|
|
#include <tqradiobutton.h>
|
|
#include <tqpushbutton.h>
|
|
#include <tqtooltip.h>
|
|
|
|
#include "tdeglobal.h"
|
|
|
|
class TDECORE_EXPORT Customize_TDEStringMatcher_Dialog : public TQDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
Customize_TDEStringMatcher_Dialog (
|
|
TQStringList initPatternList,
|
|
bool initPatternIsRegex,
|
|
bool initPatternIsCaseInsensitive,
|
|
TQString dialogTitle = TQString("Define String Matching Criteria")
|
|
);
|
|
|
|
int result();
|
|
|
|
TQStringList getPatternList();
|
|
bool isPatternRegex();
|
|
bool isPatternCaseInsensitive();
|
|
|
|
protected:
|
|
|
|
bool event( TQEvent * e );
|
|
|
|
private slots:
|
|
|
|
void setExitDisposition(int buttonNum );
|
|
void exitOK();
|
|
void exitCancel();
|
|
|
|
private:
|
|
|
|
TQLabel *patterns_label;
|
|
#define MAX_PATTERNS 10
|
|
TQLineEdit *le_Patterns[MAX_PATTERNS] ;
|
|
|
|
TQButtonGroup *bg_Options;
|
|
TQCheckBox *cb_patternIsRegex;
|
|
TQCheckBox *cb_patternIsCaseInsensitive;
|
|
|
|
TQButtonGroup *bg_Disposition;
|
|
TQRadioButton *rb_Disposition;
|
|
|
|
TQPushButton *pb_OK;
|
|
TQPushButton *pb_Apply;
|
|
TQPushButton *pb_Reload;
|
|
TQPushButton *pb_Cancel;
|
|
|
|
unsigned short maxPatterns ;
|
|
TQStringList patternList;
|
|
bool patternIsRegex;
|
|
bool patternIsCaseInsensitive;
|
|
|
|
int dialogResult;
|
|
|
|
};
|
|
|
|
#endif
|