mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Port plFontConverter to Qt5
This commit is contained in:
@ -20,11 +20,11 @@ set(plLocalizationEditor_SOURCES
|
||||
plLocTreeView.cpp
|
||||
)
|
||||
|
||||
set(plLocalizationEditor_RESOURCES
|
||||
res/plLocalizationEditor.rc
|
||||
res/resource.h
|
||||
res/icon1.ico
|
||||
)
|
||||
if(WIN32)
|
||||
set(plLocalizationEditor_SOURCES ${plLocalizationEditor_SOURCES}
|
||||
res/plLocalizationEditor.rc
|
||||
)
|
||||
endif()
|
||||
|
||||
set(plLocalizationEditor_RCC_SOURCES
|
||||
res/plLocalizationEditor.qrc
|
||||
|
@ -54,10 +54,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include <vector>
|
||||
|
||||
// very simple validator for edit controls (and combo boxes) so that they only accept alphanumeric values
|
||||
class AlphaNumbericValidator : public QValidator
|
||||
class AlphaNumericValidator : public QValidator
|
||||
{
|
||||
public:
|
||||
AlphaNumbericValidator(QObject *parent = nullptr) : QValidator(parent) { }
|
||||
AlphaNumericValidator(QObject *parent = nullptr) : QValidator(parent) { }
|
||||
|
||||
virtual State validate(QString &input, int &pos) const override
|
||||
{
|
||||
@ -79,7 +79,7 @@ plAddElementDlg::plAddElementDlg(const plString &parentPath, QWidget *parent)
|
||||
fUI->setupUi(this);
|
||||
layout()->setSizeConstraint(QLayout::SetFixedSize);
|
||||
|
||||
AlphaNumbericValidator *validator = new AlphaNumbericValidator(this);
|
||||
AlphaNumericValidator *validator = new AlphaNumericValidator(this);
|
||||
fUI->fParentAge->setValidator(validator);
|
||||
fUI->fParentSet->setValidator(validator);
|
||||
fUI->fElementName->setValidator(validator);
|
||||
|
@ -27,7 +27,10 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Parent Age:</string>
|
||||
<string>Parent &Age:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>fParentAge</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -47,7 +50,10 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Parent Set:</string>
|
||||
<string>Parent &Set:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>fParentSet</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -67,7 +73,10 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Element Name:</string>
|
||||
<string>&Element Name:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>fElementName</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -27,7 +27,10 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Language</string>
|
||||
<string>&Language</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>fLanguage</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -56,7 +56,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
<string>&Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -66,7 +66,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Delete</string>
|
||||
<string>&Delete</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -82,7 +82,10 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="fTextPathLabel">
|
||||
<property name="text">
|
||||
<string>Text:</string>
|
||||
<string>&Text:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>fLocalizationText</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -0,0 +1 @@
|
||||
IDI_APPICON ICON DISCARDABLE "icon1.ico"
|
Reference in New Issue
Block a user