LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mainwindow.h
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
5 
6 #include <QtCore>
7 #include <QtWidgets>
8 
9 #include <memory>
10 
11 namespace Ui {
12 class MainWindow;
13 }
14 
15 namespace librepcb {
16 
17 class DomElement;
18 class TransactionalFileSystem;
19 
20 namespace library {
21 class Library;
22 }
23 
24 } // namespace librepcb
25 
26 class MainWindow : public QMainWindow {
27  Q_OBJECT
28 
29 public:
30  explicit MainWindow(QWidget* parent = 0);
31  ~MainWindow();
32 
33 private slots:
34 
38  void on_updateBtn_clicked();
39 
40 private:
41  template <typename ElementType>
42  void updateElements(std::shared_ptr<librepcb::TransactionalFileSystem> fs,
43  const librepcb::library::Library& lib) noexcept;
44 
45  // Attributes
46  Ui::MainWindow* ui;
47  QString lastDir;
51 };
52 
53 #endif // MAINWINDOW_H
void on_clrLibraryBtn_clicked()
Definition: mainwindow.cpp:78
Ui::MainWindow * ui
Definition: mainwindow.h:24
MainWindow(QWidget *parent=0)
void on_addDirectoryBtn_clicked()
Definition: mainwindow.cpp:58
The Library class represents a library directory.
Definition: library.h:49
int elementCount
Definition: mainwindow.h:48
int ignoreCount
Definition: mainwindow.h:49
void on_updateBtn_clicked()
Definition: mainwindow.cpp:82
void updateElements(std::shared_ptr< librepcb::TransactionalFileSystem > fs, const librepcb::library::Library &lib) noexcept
void on_removeDirectoryBtn_clicked()
Definition: mainwindow.cpp:74
Definition: mainwindow.h:10
int errorCount
Definition: mainwindow.h:50
QString lastDir
Definition: mainwindow.h:47