mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
The "core" macro conditions and actions have been extracted out to the "base" plugin. The library now mostly contains functionality which is required across all plugins and (e.g. definitions for macro segments). The goal is to reduce the complexity and cross-dependencies and group the source files in a better way. This should relsove the "library limit of 65535 objects exceeded" build issue occuring in some Windows build environments.
41 lines
769 B
C++
41 lines
769 B
C++
#pragma once
|
|
#include "variable-line-edit.hpp"
|
|
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QWidget>
|
|
|
|
namespace advss {
|
|
|
|
class FileSelection : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum class Type {
|
|
READ,
|
|
WRITE,
|
|
FOLDER,
|
|
};
|
|
|
|
EXPORT
|
|
FileSelection(FileSelection::Type type = FileSelection::Type::READ,
|
|
QWidget *parent = 0);
|
|
EXPORT void SetPath(const StringVariable &);
|
|
EXPORT void SetPath(const QString &);
|
|
EXPORT QPushButton *Button() { return _browseButton; }
|
|
EXPORT static QString ValidPathOrDesktop(const QString &path);
|
|
|
|
private slots:
|
|
void BrowseButtonClicked();
|
|
void PathChange();
|
|
signals:
|
|
void PathChanged(const QString &);
|
|
|
|
private:
|
|
Type _type;
|
|
VariableLineEdit *_filePath;
|
|
QPushButton *_browseButton;
|
|
};
|
|
|
|
} // namespace advss
|