Plasma Engine  2.0
Loading...
Searching...
No Matches
FileBrowserPropertyWidget.moc.h
1#pragma once
2
3#include <EditorFramework/EditorFrameworkDLL.h>
4#include <GuiFoundation/PropertyGrid/Implementation/PropertyWidget.moc.h>
5#include <QLineEdit>
6
8
9class PL_EDITORFRAMEWORK_DLL plQtFilePropertyWidget : public plQtStandardPropertyWidget
10{
11 Q_OBJECT
12
13public:
15 bool IsValidFileReference(plStringView sFile) const;
16 void SetReadOnly(bool bReadOnly = true) override;
17
18private Q_SLOTS:
19 void on_BrowseFile_clicked();
20
21protected slots:
22 void on_TextFinished_triggered();
23 void on_TextChanged_triggered(const QString& value);
24 void OnOpenExplorer();
25 void OnCustomAction();
26 void OnOpenFile();
27
28protected:
29 virtual void OnInit() override;
30 virtual void InternalSetValue(const plVariant& value) override;
31
32protected:
33 QHBoxLayout* m_pLayout = nullptr;
34 plQtFileLineEdit* m_pWidget = nullptr;
35 QToolButton* m_pButton = nullptr;
36};
37
39{
40 Q_OBJECT
41
42public:
44 bool IsValidFileReference(plStringView sFile) const;
45
46private Q_SLOTS:
47 void on_BrowseFile_clicked();
48
49protected slots:
50 void on_TextFinished_triggered();
51 void on_TextChanged_triggered(const QString& value);
52 void OnOpenExplorer();
53 void OnOpenFile();
54
55protected:
56 virtual void OnInit() override;
57 virtual void InternalSetValue(const plVariant& value) override;
58
59protected:
60 QHBoxLayout* m_pLayout = nullptr;
61 QLineEdit* m_pWidget = nullptr;
62 QToolButton* m_pButton = nullptr;
63};
Definition FileBrowserPropertyWidget.moc.h:39
A QLineEdit that is used by plQtFilePropertyWidget.
Definition QtFileLineEdit.moc.h:10
Definition FileBrowserPropertyWidget.moc.h:10
virtual void SetReadOnly(bool bReadOnly=true)
By default disables the widget, but can be overridden to make a widget more interactable (for example...
Definition PropertyBaseWidget.cpp:436
Base class for most 'simple' property type widgets. Implements some of the standard functionality.
Definition PropertyBaseWidget.moc.h:118
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44