summaryrefslogtreecommitdiff
path: root/plugins/warp/ui/shared/fetchdialog.h
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-10-07 14:32:48 -0400
committerMason Reed <mason@vector35.com>2025-10-07 14:33:34 -0400
commit4a227e0523391bc026bf96c3c31d44a39cac1701 (patch)
treecc603b899a446fb469a0be3ae4c2c77e6351c091 /plugins/warp/ui/shared/fetchdialog.h
parent3e24f6ab0b373d8718e26a19ac296044cc0d19c6 (diff)
[WARP] Format UI plugin
Diffstat (limited to 'plugins/warp/ui/shared/fetchdialog.h')
-rw-r--r--plugins/warp/ui/shared/fetchdialog.h48
1 files changed, 22 insertions, 26 deletions
diff --git a/plugins/warp/ui/shared/fetchdialog.h b/plugins/warp/ui/shared/fetchdialog.h
index a99eef19..c642d31e 100644
--- a/plugins/warp/ui/shared/fetchdialog.h
+++ b/plugins/warp/ui/shared/fetchdialog.h
@@ -13,49 +13,45 @@
class WarpFetchDialog : public QDialog
{
- Q_OBJECT
+ Q_OBJECT
- QComboBox *m_containerCombo;
+ QComboBox* m_containerCombo;
- QListWidget *m_tagsList;
- QPushButton *m_addTagBtn;
- QPushButton *m_removeTagBtn;
- QPushButton *m_resetTagBtn;
+ QListWidget* m_tagsList;
+ QPushButton* m_addTagBtn;
+ QPushButton* m_removeTagBtn;
+ QPushButton* m_resetTagBtn;
- QSpinBox *m_batchSize;
- QCheckBox *m_rerunMatcher;
- QCheckBox *m_clearProcessed;
+ QSpinBox* m_batchSize;
+ QCheckBox* m_rerunMatcher;
+ QCheckBox* m_clearProcessed;
- std::vector<Warp::Ref<Warp::Container> > m_containers;
+ std::vector<Warp::Ref<Warp::Container>> m_containers;
- std::shared_ptr<WarpFetcher> m_fetchProcessor;
- BinaryViewRef m_bv;
+ std::shared_ptr<WarpFetcher> m_fetchProcessor;
+ BinaryViewRef m_bv;
public:
- explicit WarpFetchDialog(BinaryViewRef bv,
- std::shared_ptr<WarpFetcher> fetchProcessor,
- QWidget *parent = nullptr);
+ explicit WarpFetchDialog(BinaryViewRef bv, std::shared_ptr<WarpFetcher> fetchProcessor, QWidget* parent = nullptr);
private slots:
- void onAddTag();
+ void onAddTag();
- void onRemoveTag();
+ void onRemoveTag();
- void onResetTags();
+ void onResetTags();
- void onAccept();
+ void onAccept();
- void onReject();
+ void onReject();
private:
- void populateContainers();
+ void populateContainers();
- std::vector<Warp::SourceTag> collectTags() const;
+ std::vector<Warp::SourceTag> collectTags() const;
- void runBatchedFetch(const std::optional<size_t> &containerIndex,
- const std::vector<Warp::SourceTag> &allowedTags,
- size_t batchSize,
- bool rerunMatcher);
+ void runBatchedFetch(const std::optional<size_t>& containerIndex, const std::vector<Warp::SourceTag>& allowedTags,
+ size_t batchSize, bool rerunMatcher);
};
void RegisterWarpFetchFunctionsCommand();