mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
Mod doc set style de same
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
#include <QUndoStack>
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::ElementPropertiesWidget
|
||||
* Default constructor
|
||||
* @param elmt
|
||||
* @param parent
|
||||
*/
|
||||
@brief ElementPropertiesWidget::ElementPropertiesWidget
|
||||
Default constructor
|
||||
@param elmt
|
||||
@param parent
|
||||
*/
|
||||
ElementPropertiesWidget::ElementPropertiesWidget(Element *elmt, QWidget *parent) :
|
||||
AbstractElementPropertiesEditorWidget (parent),
|
||||
m_diagram (elmt->diagram()),
|
||||
@@ -48,13 +48,13 @@ ElementPropertiesWidget::ElementPropertiesWidget(Element *elmt, QWidget *parent)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::ElementPropertiesWidget
|
||||
* Same as default constructor, the edited element, is the parent element of @text.
|
||||
* The only difference with default constructor, is that the current tab is the tab for dynamic texts,
|
||||
* and the item in the tree that represent @text is expanded and selected.
|
||||
* @param text
|
||||
* @param parent
|
||||
*/
|
||||
@brief ElementPropertiesWidget::ElementPropertiesWidget
|
||||
Same as default constructor, the edited element, is the parent element of @text.
|
||||
The only difference with default constructor, is that the current tab is the tab for dynamic texts,
|
||||
and the item in the tree that represent @text is expanded and selected.
|
||||
@param text
|
||||
@param parent
|
||||
*/
|
||||
ElementPropertiesWidget::ElementPropertiesWidget(DynamicElementTextItem *text, QWidget *parent) :
|
||||
AbstractElementPropertiesEditorWidget (parent),
|
||||
m_tab (nullptr),
|
||||
@@ -69,13 +69,13 @@ ElementPropertiesWidget::ElementPropertiesWidget(DynamicElementTextItem *text, Q
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::ElementPropertiesWidget
|
||||
* Same as default constructor, the edited element, is the parent element of @group.
|
||||
* The only difference with default constructor, is that the current tab is the tab for dynamic texts,
|
||||
* and the item in the tree that represent @group is expanded and selected.
|
||||
* @param group
|
||||
* @param parent
|
||||
*/
|
||||
@brief ElementPropertiesWidget::ElementPropertiesWidget
|
||||
Same as default constructor, the edited element, is the parent element of @group.
|
||||
The only difference with default constructor, is that the current tab is the tab for dynamic texts,
|
||||
and the item in the tree that represent @group is expanded and selected.
|
||||
@param group
|
||||
@param parent
|
||||
*/
|
||||
ElementPropertiesWidget::ElementPropertiesWidget(ElementTextItemGroup *group, QWidget *parent) :
|
||||
AbstractElementPropertiesEditorWidget (parent),
|
||||
m_tab (nullptr),
|
||||
@@ -91,10 +91,10 @@ ElementPropertiesWidget::ElementPropertiesWidget(ElementTextItemGroup *group, QW
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::setElement
|
||||
* Set @element to be the edited element
|
||||
* @param element
|
||||
*/
|
||||
@brief ElementPropertiesWidget::setElement
|
||||
Set @element to be the edited element
|
||||
@param element
|
||||
*/
|
||||
void ElementPropertiesWidget::setElement(Element *element)
|
||||
{
|
||||
if (m_element == element) return;
|
||||
@@ -118,11 +118,11 @@ void ElementPropertiesWidget::setElement(Element *element)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::setDynamicText
|
||||
* convenience function: same as call : ElementPropertiesWidget::setElement, with parameter the parent element of @text.
|
||||
* Set the dynamics text tab as current tab, expand and select the item that represent @text
|
||||
* @param text
|
||||
*/
|
||||
@brief ElementPropertiesWidget::setDynamicText
|
||||
convenience function: same as call : ElementPropertiesWidget::setElement, with parameter the parent element of @text.
|
||||
Set the dynamics text tab as current tab, expand and select the item that represent @text
|
||||
@param text
|
||||
*/
|
||||
void ElementPropertiesWidget::setDynamicText(DynamicElementTextItem *text)
|
||||
{
|
||||
if(text->parentElement())
|
||||
@@ -141,11 +141,11 @@ void ElementPropertiesWidget::setDynamicText(DynamicElementTextItem *text)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::setTextsGroup
|
||||
* Conveniance function : same as call : ElementPropertiesWidget::setElement, with parameter the parent element of @group.
|
||||
* Set the dynamics text tab as current tab, expand and select the item that represent @group
|
||||
* @param group
|
||||
*/
|
||||
@brief ElementPropertiesWidget::setTextsGroup
|
||||
Conveniance function : same as call : ElementPropertiesWidget::setElement, with parameter the parent element of @group.
|
||||
Set the dynamics text tab as current tab, expand and select the item that represent @group
|
||||
@param group
|
||||
*/
|
||||
void ElementPropertiesWidget::setTextsGroup(ElementTextItemGroup *group)
|
||||
{
|
||||
if(group->parentItem() && group->parentItem()->type() == Element::Type)
|
||||
@@ -164,10 +164,10 @@ void ElementPropertiesWidget::setTextsGroup(ElementTextItemGroup *group)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::apply
|
||||
* Apply the new properties by pushing an undo command
|
||||
* to the parent project's undo stack of element
|
||||
*/
|
||||
@brief ElementPropertiesWidget::apply
|
||||
Apply the new properties by pushing an undo command
|
||||
to the parent project's undo stack of element
|
||||
*/
|
||||
void ElementPropertiesWidget::apply()
|
||||
{
|
||||
QList <QUndoCommand *> undo_list;
|
||||
@@ -191,9 +191,9 @@ void ElementPropertiesWidget::apply()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::reset
|
||||
* Reset the edited properties
|
||||
*/
|
||||
@brief ElementPropertiesWidget::reset
|
||||
Reset the edited properties
|
||||
*/
|
||||
void ElementPropertiesWidget::reset() {
|
||||
foreach (PropertiesEditorWidget *pew, m_list_editor) pew->reset();
|
||||
}
|
||||
@@ -210,9 +210,9 @@ bool ElementPropertiesWidget::setLiveEdit(bool live_edit)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::findInPanel
|
||||
* If m_element is a custom element, emit findElementRequired
|
||||
*/
|
||||
@brief ElementPropertiesWidget::findInPanel
|
||||
If m_element is a custom element, emit findElementRequired
|
||||
*/
|
||||
void ElementPropertiesWidget::findInPanel()
|
||||
{
|
||||
if (m_element && m_diagram)
|
||||
@@ -223,9 +223,9 @@ void ElementPropertiesWidget::findInPanel()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::editElement
|
||||
* If m_element is a custom element, emit findElementRequired and editElementRequired
|
||||
*/
|
||||
@brief ElementPropertiesWidget::editElement
|
||||
If m_element is a custom element, emit findElementRequired and editElementRequired
|
||||
*/
|
||||
void ElementPropertiesWidget::editElement()
|
||||
{
|
||||
if (m_element && m_diagram)
|
||||
@@ -237,9 +237,9 @@ void ElementPropertiesWidget::editElement()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::build
|
||||
* Build the content of this widget
|
||||
*/
|
||||
@brief ElementPropertiesWidget::build
|
||||
Build the content of this widget
|
||||
*/
|
||||
void ElementPropertiesWidget::buildGui()
|
||||
{
|
||||
m_tab = new QTabWidget(this);
|
||||
@@ -249,9 +249,9 @@ void ElementPropertiesWidget::buildGui()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::updateUi
|
||||
* Update the content of this widget
|
||||
*/
|
||||
@brief ElementPropertiesWidget::updateUi
|
||||
Update the content of this widget
|
||||
*/
|
||||
void ElementPropertiesWidget::updateUi()
|
||||
{
|
||||
//We keep the current title of the tab, to return to the same tab
|
||||
@@ -317,9 +317,9 @@ void ElementPropertiesWidget::updateUi()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::addGeneralWidget
|
||||
* Add or update the general widget on this tab widget
|
||||
*/
|
||||
@brief ElementPropertiesWidget::addGeneralWidget
|
||||
Add or update the general widget on this tab widget
|
||||
*/
|
||||
void ElementPropertiesWidget::addGeneralWidget()
|
||||
{
|
||||
int index = m_tab->currentIndex();
|
||||
@@ -334,9 +334,9 @@ void ElementPropertiesWidget::addGeneralWidget()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementPropertiesWidget::generalWidget
|
||||
* @return build and return the "general" widget
|
||||
*/
|
||||
@brief ElementPropertiesWidget::generalWidget
|
||||
@return build and return the "general" widget
|
||||
*/
|
||||
QWidget *ElementPropertiesWidget::generalWidget()
|
||||
{
|
||||
QString description_string(tr("Élement\n"));
|
||||
|
||||
Reference in New Issue
Block a user