- update some project template icons.
- add icon info for project icon
|
@ -110,6 +110,7 @@ void ProjectTemplate::readTemplateFile(const QString &fileName)
|
|||
mName = fromByteArray(mIni->GetValue("Template", "Name", ""));
|
||||
if (mDescription.isEmpty())
|
||||
mDescription = fromByteArray(mIni->GetValue("Template", "Description", ""));
|
||||
mIconInfo=fromByteArray(mIni->GetValue("Template", "IconInfo", ""));
|
||||
|
||||
mOptions.icon = mIni->GetValue("Project", "Icon", "");
|
||||
mOptions.type = static_cast<ProjectType>(mIni->GetLongValue("Project", "Type", 0)); // default = gui
|
||||
|
@ -253,3 +254,13 @@ void ProjectTemplate::setVersion(int newVersion)
|
|||
mVersion = newVersion;
|
||||
}
|
||||
|
||||
QString ProjectTemplate::iconInfo() const
|
||||
{
|
||||
return mIconInfo;
|
||||
}
|
||||
|
||||
void ProjectTemplate::setIconInfo(const QString &newIconInfo)
|
||||
{
|
||||
mIconInfo = newIconInfo;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,9 @@ public:
|
|||
|
||||
void setVersion(int newVersion);
|
||||
|
||||
QString iconInfo() const;
|
||||
void setIconInfo(const QString &newIconInfo);
|
||||
|
||||
private:
|
||||
QString mFileName;
|
||||
ProjectOptions mOptions;
|
||||
|
@ -72,6 +75,7 @@ private:
|
|||
QString mCategory;
|
||||
QString mName;
|
||||
QString mIcon; // icon in project form
|
||||
QString mIconInfo;
|
||||
PSimpleIni mIni;
|
||||
int mVersion;
|
||||
};
|
||||
|
|
|
@ -5463,6 +5463,14 @@
|
|||
<source>Choose directory</source>
|
||||
<translation>Escolher pasta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Icon Info:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TextLabel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>NewProjectUnitDialog</name>
|
||||
|
@ -5881,6 +5889,30 @@
|
|||
<source>Set Encoding for the executable:</source>
|
||||
<translation>Definir codificação para o executável:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Wrong Compiler Type</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Compiler %1 can't compile a microcontroller project.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Compiler %1 can only compile microcontroller project.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Change Project Compiler Set</source>
|
||||
<translation type="unfinished">Alterar o compilador do projeto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Change the project's compiler set will lose all custom compiler set options.</source>
|
||||
<translation type="unfinished">Alterar o compilador do projeto resultará na perda de todas as opções personalizadas para compilação.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Do you really want to do that?</source>
|
||||
<translation type="unfinished">Quer mesmo fazer isso?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectDLLHostWidget</name>
|
||||
|
@ -7185,6 +7217,53 @@
|
|||
<translation type="unfinished">Impossível remover o antigo arquivo executável "%1".</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SDCCProjectCompiler</name>
|
||||
<message>
|
||||
<source>Building makefile...</source>
|
||||
<translation type="unfinished">Montando makefile ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Filename: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Can't open '%1' for write!</source>
|
||||
<translation type="unfinished">Impossível abrir '%1' para gravar!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Compiling project changes...</source>
|
||||
<translation type="unfinished">Compilando alterações em projeto ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Project Filename: %1</source>
|
||||
<translation type="unfinished">- Nome de arquivo de projeto: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Compiler Set Name: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Make program '%1' doesn't exists!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please check the "program" page of compiler settings.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Processing makefile:</source>
|
||||
<translation type="unfinished">Processando makefile:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- makefile processer: %1</source>
|
||||
<translation type="unfinished">- Processador do makefile: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Command: %1 %2</source>
|
||||
<translation type="unfinished">- Comando: %1 %2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SearchDialog</name>
|
||||
<message>
|
||||
|
|
|
@ -5188,6 +5188,14 @@
|
|||
<source>Choose directory</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Icon Info:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TextLabel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>NewProjectUnitDialog</name>
|
||||
|
@ -5570,6 +5578,30 @@
|
|||
<source>Set Encoding for the executable:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Wrong Compiler Type</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Compiler %1 can't compile a microcontroller project.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Compiler %1 can only compile microcontroller project.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Change Project Compiler Set</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Change the project's compiler set will lose all custom compiler set options.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Do you really want to do that?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ProjectDLLHostWidget</name>
|
||||
|
@ -6635,6 +6667,53 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SDCCProjectCompiler</name>
|
||||
<message>
|
||||
<source>Building makefile...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Filename: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Can't open '%1' for write!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Compiling project changes...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Project Filename: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Compiler Set Name: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Make program '%1' doesn't exists!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please check the "program" page of compiler settings.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Processing makefile:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- makefile processer: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>- Command: %1 %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SearchDialog</name>
|
||||
<message>
|
||||
|
|
|
@ -255,11 +255,18 @@ void NewProjectDialog::on_lstTemplates_currentItemChanged(QListWidgetItem *curre
|
|||
ui->rdCProject->setChecked(true);
|
||||
}
|
||||
}
|
||||
if (t->iconInfo().isEmpty()) {
|
||||
ui->panelIconInfo->setVisible(false);
|
||||
} else {
|
||||
ui->panelIconInfo->setVisible(true);
|
||||
ui->lblIconInfo->setText(t->iconInfo());
|
||||
}
|
||||
} else {
|
||||
ui->lblDescription->setText("");
|
||||
ui->rdCProject->setChecked(false);
|
||||
ui->rdCppProject->setChecked(false);
|
||||
ui->chkMakeDefaultLanguage->setChecked(false);
|
||||
ui->panelIconInfo->setVisible(false);
|
||||
}
|
||||
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(
|
||||
current && !ui->txtProjectName->text().isEmpty()
|
||||
|
|
|
@ -136,6 +136,44 @@
|
|||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="panelIconInfo" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Icon Info:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lblIconInfo">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_3" native="true">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 66 KiB |
|
@ -3,6 +3,7 @@ ver=2
|
|||
Name=DLL
|
||||
Name[zh_CN]=动态链接库
|
||||
Icon=DLL.ico
|
||||
IconInfo=<a href="https://www.flaticon.com/free-icons/dll" title="dll icons">Dll icons created by Freepik - Flaticon</a>
|
||||
Description=A Dynamic Link Library (DLL)
|
||||
Description[zh_CN]=动态链接库(DLL)
|
||||
Category=Basic
|
||||
|
|
|
@ -3,6 +3,7 @@ ver=2
|
|||
Name=MCS51
|
||||
Name[zh_CN]=MCS51
|
||||
Icon=microcontroller.ico
|
||||
IconInfo=<a href="https://www.flaticon.com/free-icons/microcontroller" title="microcontroller icons">Microcontroller icons created by Eucalyp - Flaticon</a>
|
||||
Description=A simple MCS51 program
|
||||
Description[zh_CN]=MCS51单片机程序
|
||||
Category=SDCC
|
||||
|
|