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 #include <librepcb/common/uuid.h>
6 
7 #include <QtCore>
8 #include <QtWidgets>
9 
10 namespace Ui {
11 class MainWindow;
12 }
13 
14 namespace parseagle {
15 class Symbol;
16 class Package;
17 class DeviceSet;
18 } // namespace parseagle
19 
20 namespace librepcb {
21 
22 namespace eagleimport {
23 class ConverterDb;
24 }
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  void on_inputBtn_clicked();
35  void on_outputBtn_clicked();
36  void on_btnAbort_clicked();
41  void on_toolButton_clicked();
46 
47 private:
48  enum class ConvertFileType_t {
52  };
53 
54  void reset();
55  void addError(const QString& msg,
56  const librepcb::FilePath& inputFile = librepcb::FilePath(),
57  int inputLine = 0);
60  const librepcb::FilePath& filepath);
62  const parseagle::Symbol& symbol);
64  const parseagle::Package& package);
66  const parseagle::DeviceSet& deviceSet);
67 
68  // Attributes
69  Ui::MainWindow* ui;
74 };
75 
76 } // namespace librepcb
77 
78 #endif // MAINWINDOW_H
void on_btnAbort_clicked()
Definition: mainwindow.cpp:275
void convertAllFiles(ConvertFileType_t type)
Definition: mainwindow.cpp:81
void addError(const QString &msg, const librepcb::FilePath &inputFile=librepcb::FilePath(), int inputLine=0)
Definition: mainwindow.cpp:75
~MainWindow()
Definition: mainwindow.cpp:44
void on_uuidListBtn_clicked()
Definition: mainwindow.cpp:366
void reset()
Definition: mainwindow.cpp:62
QString mlastInputDirectory
Definition: mainwindow.h:71
int mConvertedElementsCount
Definition: mainwindow.h:73
void on_toolButton_2_clicked()
Definition: mainwindow.cpp:316
void on_btnConvertDevices_clicked()
Definition: mainwindow.cpp:283
void on_btnConvertSymbols_clicked()
Definition: mainwindow.cpp:279
The ConverterDb class.
Definition: converterdb.h:47
void on_toolButton_3_clicked()
Definition: mainwindow.cpp:320
Definition: mainwindow.h:26
bool convertPackage(eagleimport::ConverterDb &db, const parseagle::Package &package)
Definition: mainwindow.cpp:191
void on_toolButton_4_clicked()
Definition: mainwindow.cpp:327
Ui::MainWindow * ui
Definition: mainwindow.h:69
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:130
bool convertDevice(eagleimport::ConverterDb &db, const parseagle::DeviceSet &deviceSet)
Definition: mainwindow.cpp:219
ConvertFileType_t
Definition: mainwindow.h:48
void on_btnPathsFromIni_clicked()
Definition: mainwindow.cpp:291
MainWindow(QWidget *parent=0)
Definition: mainwindow.cpp:27
bool mAbortConversion
Definition: mainwindow.h:70
void on_pushButton_2_clicked()
Definition: mainwindow.cpp:287
bool convertSymbol(eagleimport::ConverterDb &db, const parseagle::Symbol &symbol)
Definition: mainwindow.cpp:165
Definition: mainwindow.h:10
void convertFile(ConvertFileType_t type, eagleimport::ConverterDb &db, const librepcb::FilePath &filepath)
Definition: mainwindow.cpp:108
int mReadedElementsCount
Definition: mainwindow.h:72
void on_outputBtn_clicked()
Definition: mainwindow.cpp:270
void on_toolButton_clicked()
Definition: mainwindow.cpp:312
void on_inputBtn_clicked()
Definition: mainwindow.cpp:261