diff options
author | Vincent Reher <tde@4reher.org> | 2023-10-03 08:52:15 -0700 |
---|---|---|
committer | Vincent Reher <tde@4reher.org> | 2023-10-03 09:05:14 -0700 |
commit | 53a4f3cef248107cd0abfe89b9f7bc2199b7d11d (patch) | |
tree | e4fd257d78dee8cdd5e2f97b1caedb479d4b3ad9 /libkonq/update_tdestringmatcher_dialog.h | |
parent | 53ee298ff7d9427cee30fd1d0e89270168ef3813 (diff) | |
download | tdebase-issue/270/tdebase.tar.gz tdebase-issue/270/tdebase.zip |
Changes to bring code up to date and to synchronize with current changesissue/270/tdebase
in https://mirror.git.trinitydesktop.org/gitea/TDE/tdelibs/pulls/209.
Code now includes GUI enabling user to change TDEHiddenFileMatcher
for current KDirLister.
Signed-off-by: Vincent Reher <tde@4reher.org>
Diffstat (limited to 'libkonq/update_tdestringmatcher_dialog.h')
-rw-r--r-- | libkonq/update_tdestringmatcher_dialog.h | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/libkonq/update_tdestringmatcher_dialog.h b/libkonq/update_tdestringmatcher_dialog.h new file mode 100644 index 000000000..042542e7c --- /dev/null +++ b/libkonq/update_tdestringmatcher_dialog.h @@ -0,0 +1,118 @@ +#ifndef TDESTRINGMATCHER_DIALOG_H +#define TDESTRINGMATCHER_DIALOG_H + +#include <tqobject.h> +#include <tqdialog.h> + +#include <tdestringmatcher.h> +#include "update_tdestringmatcher.h" + +class TQDialog; +class TQBoxLayout; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGroupBox; +class TQButtonGroup; +class TQSpacerItem; +class TQLabel; +class TQListBox; +class TQListBoxItem; +class TQLineEdit; +class TQComboBox; +class TQPushButton; +class TQRadioButton; + +class TDEStringMatcher_UI : public TQDialog +{ + TQ_OBJECT + +public: + + TDEStringMatcher_UI( + TDEStringMatcher::MatchSpecList& data, + TQString title = "" + ); + ~TDEStringMatcher_UI(); + + UIresult getDialogResult(); + TDEStringMatcher::MatchSpecList& getMatchSpecs(); + +public slots: + +protected slots: + + virtual void displayItemText(); + virtual void editItemText(); + virtual void updateItemText(); + virtual void lineEditReturn(); + virtual void addItem(); + virtual void removeItem(); + + virtual void updatePatternType(int index ); + virtual void updateANCHandling(int index ); + virtual void updateWantMatch(int index ); + + virtual void setExitDisposition(int buttonNum ); + + virtual void accept(); + virtual void reject(); + +protected: + + // Keyboard event handlers + + bool event( TQEvent * e ); + class DialogEventHandler : public TQObject + { + protected: + bool eventFilter( TQObject *o, TQEvent *e ); + }; + + // Internal data + + TDEStringMatcher::MatchSpecList matchSpecs; + UIresult dialogResult; + + // Primary widgets + + TQLabel *patterns_label; + TQLabel *lbl_patternListHeader; + + TQListBox* lb_patternList; + TQLineEdit* le_editPattern; + + TQPushButton* pb_addPattern; + TQPushButton* pb_delPattern; + + TQComboBox* cb_patternType; + TQComboBox* cb_ancHandling; + TQComboBox* cb_expectMatch; + + TQButtonGroup *bg_Disposition; + TQRadioButton *rb_ApplyNoSave; + TQRadioButton *rb_ApplyAndSave; + TQRadioButton *rb_RestoreDefault; + + TQPushButton *pb_OK; + TQPushButton *pb_Cancel; + + // Layout, grouping, and spacing widgets + + TQVBoxLayout* main_vbl; + + TQHBoxLayout* sec1X_hbl; + TQVBoxLayout* sec1A_vbl; + + TQBoxLayout* sec1B_vbl; + TQGroupBox* sec1B1_vbx; + TQVBoxLayout *sec1B1_vbl; + TQGroupBox *sec1B2_vbx; + TQVBoxLayout *sec1B2_vbl; + TQSpacerItem* pad1B3; + TQVBoxLayout *sec1B4_vbl; + + TQHBoxLayout* sec2X_hbl; + TQSpacerItem* pad2_hb; +}; + +#endif |