mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-15 05:40:01 -05:00
Extract argument list to generic string list class and widget
To be used for http header support.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "file-selection.hpp"
|
||||
#include "string-list.hpp"
|
||||
|
||||
#include <obs-data.h>
|
||||
#include <obs-module.h>
|
||||
@@ -16,12 +17,12 @@ public:
|
||||
|
||||
std::string Path() const { return _path; }
|
||||
std::string WorkingDir() const { return _workingDirectory; }
|
||||
QStringList Args() const { return _args; }
|
||||
StringList Args() const { return _args; }
|
||||
|
||||
private:
|
||||
std::string _path = obs_module_text("AdvSceneSwitcher.enterPath");
|
||||
std::string _workingDirectory = "";
|
||||
QStringList _args;
|
||||
StringList _args;
|
||||
|
||||
friend class ProcessConfigEdit;
|
||||
};
|
||||
@@ -36,17 +37,12 @@ public:
|
||||
private slots:
|
||||
void PathChanged(const QString &);
|
||||
void ShowAdvancedSettingsClicked();
|
||||
void AddArg();
|
||||
void RemoveArg();
|
||||
void ArgUp();
|
||||
void ArgDown();
|
||||
void ArgItemClicked(QListWidgetItem *);
|
||||
void WorkingDirectoryChanged(const QString &);
|
||||
void ArgsChanged(const StringList &);
|
||||
signals:
|
||||
void ConfigChanged(const ProcessConfig &);
|
||||
|
||||
private:
|
||||
void SetArgListSize();
|
||||
void ShowAdvancedSettings(bool);
|
||||
|
||||
ProcessConfig _conf;
|
||||
@@ -54,10 +50,6 @@ private:
|
||||
FileSelection *_filePath;
|
||||
QPushButton *_showAdvancedSettings;
|
||||
QVBoxLayout *_advancedSettingsLayout;
|
||||
QListWidget *_argList;
|
||||
QPushButton *_addArg;
|
||||
QPushButton *_removeArg;
|
||||
QPushButton *_argUp;
|
||||
QPushButton *_argDown;
|
||||
StringListEdit *_argList;
|
||||
FileSelection *_workingDirectory;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user