diff options
| author | Mason Reed <mason@vector35.com> | 2025-10-12 22:46:54 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-10-12 22:50:20 -0400 |
| commit | 40f7d40e394657575001a8146d8233f1fc4356fd (patch) | |
| tree | a1dfac7f90bbd284119d0a3e10e205fe2e0303c1 /plugins/warp/ui/shared/misc.h | |
| parent | 49558b88ed5dacaac0bdf1946291bc37a4a88cb9 (diff) | |
[WARP] Improve UX surrounding removal of matched functions
- Adds Python API to remove matched function
- Adds command + UI actions to remove matched function
- Adds command + UI actions to ignore function in subsequent matches
Diffstat (limited to 'plugins/warp/ui/shared/misc.h')
| -rw-r--r-- | plugins/warp/ui/shared/misc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/warp/ui/shared/misc.h b/plugins/warp/ui/shared/misc.h index 9d187594..97adcab0 100644 --- a/plugins/warp/ui/shared/misc.h +++ b/plugins/warp/ui/shared/misc.h @@ -1,4 +1,6 @@ #pragma once +#include <QCheckBox> +#include <QDialog> #include <qmetatype.h> #include <QSortFilterProxyModel> #include <qstandarditemmodel.h> @@ -103,6 +105,20 @@ struct ParsedQuery } }; +// TODO: Consolidate with `WARP\\Remove Matched Function` plugin command? +class WarpRemoveMatchDialog : public QDialog +{ + Q_OBJECT +public: + explicit WarpRemoveMatchDialog(QWidget* parent, FunctionRef func); + + bool execute(); + +private: + FunctionRef m_func; + QCheckBox* m_ignoreCheck{nullptr}; +}; + constexpr const char* ALLOWED_TAGS_SETTING = "warp.fetcher.allowedSourceTags"; constexpr const char* BATCH_SIZE_SETTING = "warp.fetcher.fetchBatchSize"; |
