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 namespace Ui {
10 class MainWindow;
11 }
12 
13 namespace librepcb {
14 
15 class DomElement;
16 
17 namespace library {
18 class Library;
19 }
20 
21 } // namespace librepcb
22 
23 class MainWindow : public QMainWindow {
24  Q_OBJECT
25 
26 public:
27  explicit MainWindow(QWidget* parent = 0);
28  ~MainWindow();
29 
30 private slots:
31 
35  void on_updateBtn_clicked();
36 
37 private:
38  template <typename ElementType>
39  void updateElements(const librepcb::library::Library& lib) noexcept;
40 
41  // Attributes
42  Ui::MainWindow* ui;
43  QString lastDir;
47 };
48 
49 #endif // MAINWINDOW_H
void on_clrLibraryBtn_clicked()
Definition: mainwindow.cpp:77
Ui::MainWindow * ui
Definition: mainwindow.h:24
MainWindow(QWidget *parent=0)
void on_addDirectoryBtn_clicked()
Definition: mainwindow.cpp:57
The Library class represents a library directory.
Definition: library.h:49
int elementCount
Definition: mainwindow.h:44
void updateElements(const librepcb::library::Library &lib) noexcept
int ignoreCount
Definition: mainwindow.h:45
void on_updateBtn_clicked()
Definition: mainwindow.cpp:81
void on_removeDirectoryBtn_clicked()
Definition: mainwindow.cpp:73
Definition: mainwindow.h:10
int errorCount
Definition: mainwindow.h:46
QString lastDir
Definition: mainwindow.h:43