ControlWidget.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include <QWidget>
7 #include <QString>
8 #include <filesystem>
9 
10 
11 class QPushButton;
12 
13 
15 {
16 
17  class ControlWidget : public QWidget
18  {
19  Q_OBJECT
20  using This = ControlWidget;
21 
22  public:
23 
24  ControlWidget();
25 
26 
27  void
29  QString directory,
30  const std::vector<wm::Memory> memoryData,
31  std::string* outStatus = nullptr);
32 
33  std::map<std::filesystem::path, wm::Memory>
35  QString directory,
36  const armem::client::QueryInput& queryInput,
37  std::string* outStatus = nullptr);
38 
39 
40  signals:
41 
42  void requestedLoadFromDisk(QString directory);
43  void requestedStoreOnDisk(QString directory);
44 
45 
46  private slots:
47 
48  QString chooseDirectoryDialog();
49 
50 
51  signals:
52 
53 
54  private:
55 
56  QPushButton* _loadFromDiskButton;
57  QPushButton* _storeOnDiskButton;
58 
59  QString _latestDirectory;
60 
61  };
62 
63 }
armarx::armem::gui::disk::ControlWidget::storeOnDisk
void storeOnDisk(QString directory, const std::vector< wm::Memory > memoryData, std::string *outStatus=nullptr)
Definition: ControlWidget.cpp:78
armarx::armem::gui::disk::ControlWidget
Definition: ControlWidget.h:17
forward_declarations.h
armarx::armem::gui::disk::ControlWidget::requestedStoreOnDisk
void requestedStoreOnDisk(QString directory)
Query.h
armarx::armem::gui::disk::ControlWidget::ControlWidget
ControlWidget()
Definition: ControlWidget.cpp:19
armarx::armem::client::QueryInput
A query for parts of a memory.
Definition: Query.h:23
armarx::armem::gui::disk::ControlWidget::loadFromDisk
std::map< std::filesystem::path, wm::Memory > loadFromDisk(QString directory, const armem::client::QueryInput &queryInput, std::string *outStatus=nullptr)
Definition: ControlWidget.cpp:121
armarx::armem::gui::disk::ControlWidget::requestedLoadFromDisk
void requestedLoadFromDisk(QString directory)
armarx::armem::gui::disk
Definition: ControlWidget.cpp:16