10 #include <QDragEnterEvent>
14 #include <QVBoxLayout>
23 mTextLabel->
setText(
"Open an existing project or create a new one by dropping a project folder or netlist file here.");
39 const QMimeData* mime_data =
event->mimeData();
42 event->acceptProposedAction();
60 const QMimeData* mime_data =
event->mimeData();
72 qDebug() <<
"zip file" <<
file;
85 "Import Project Failed",
86 "Failed to extract a HAL project from selected archive file.\n"
87 "You might want to uncompress the archive manually and try to fetchGateLibrary the project.");
99 log_warning(
"gui",
"directory {} is not a hal project.",
file.toStdString());
114 event->acceptProposedAction();
then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file
void importFile(QString filename)
void openProject(QString projPath)
static FileManager * get_instance()
static DirectoryStatus directoryStatus(const QString &pathname)
QString extractedProjectAbsolutePath() const
void setZippedFile(const QString &filename)
#define log_warning(channel,...)
QIcon getStyledSvgIcon(const QString &from_to_colors_enabled, const QString &svg_path, QString from_to_colors_disabled=QString())
void setSpacing(int spacing)
virtual bool event(QEvent *e) override
void setAlignment(Qt::Alignment)
void setPixmap(const QPixmap &)
void setText(const QString &)
void setWordWrap(bool on)
void setContentsMargins(int left, int top, int right, int bottom)
QMessageBox::StandardButton warning(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton)
bool hasUrls() const const
QList< QUrl > urls() const const
void setObjectName(const QString &name)
bool isEmpty() const const
virtual void polish(QWidget *widget)
virtual void unpolish(QWidget *widget)