connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
- connect(urlED, SIGNAL(textChanged(const QString &)),
+ connect(targetED, SIGNAL(textChanged(const QString &)),
this, SLOT(changed_adaptor()));
connect(nameED, SIGNAL(textChanged(const QString &)),
this, SLOT(changed_adaptor()));
- connect(WebRB, SIGNAL(clicked()),
+ connect(webRB, SIGNAL(clicked()),
this, SLOT(changed_adaptor()));
- connect(EmailRB, SIGNAL(clicked()),
+ connect(emailRB, SIGNAL(clicked()),
this, SLOT(changed_adaptor()));
- connect(FileRB, SIGNAL(clicked()),
+ connect(fileRB, SIGNAL(clicked()),
this, SLOT(changed_adaptor()));
- setFocusProxy(urlED);
+ setFocusProxy(targetED);
bc().setOK(okPB);
bc().setCancel(closePB);
- bc().addReadOnly(urlED);
+ bc().addReadOnly(targetED);
bc().addReadOnly(nameED);
- bc().addReadOnly(WebRB);
- bc().addReadOnly(EmailRB);
- bc().addReadOnly(FileRB);
+ bc().addReadOnly(webRB);
+ bc().addReadOnly(emailRB);
+ bc().addReadOnly(fileRB);
}
void GuiHyperlink::updateContents()
{
- urlED->setText(toqstr(params_["target"]));
+ targetED->setText(toqstr(params_["target"]));
nameED->setText(toqstr(params_["name"]));
if (params_["type"] == "")
- WebRB->setChecked(true);
+ webRB->setChecked(true);
else if (params_["type"] == "mailto:")
- EmailRB->setChecked(true);
+ emailRB->setChecked(true);
else if (params_["type"] == "file:")
- FileRB->setChecked(true);
+ fileRB->setChecked(true);
bc().setValid(isValid());
}
void GuiHyperlink::applyView()
{
- params_["target"] = qstring_to_ucs4(urlED->text());
+ params_["target"] = qstring_to_ucs4(targetED->text());
params_["name"] = qstring_to_ucs4(nameED->text());
- if (WebRB->isChecked())
+ if (webRB->isChecked())
params_["type"] = qstring_to_ucs4("");
- else if (EmailRB->isChecked())
+ else if (emailRB->isChecked())
params_["type"] = qstring_to_ucs4("mailto:");
- else if (FileRB->isChecked())
+ else if (fileRB->isChecked())
params_["type"] = qstring_to_ucs4("file:");
params_.setCmdName("href");
}
bool GuiHyperlink::isValid()
{
- QString const u = urlED->text();
+ QString const u = targetED->text();
QString const n = nameED->text();
return !u.isEmpty() || !n.isEmpty();
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
- <widget class="QLabel" name="urlLA" >
+ <widget class="QLabel" name="targetLA" >
<property name="toolTip" >
<string>URL</string>
</property>
<string>&Target:</string>
</property>
<property name="buddy" >
- <cstring>urlED</cstring>
+ <cstring>targetED</cstring>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
- <widget class="QLineEdit" name="urlED" >
+ <widget class="QLineEdit" name="targetED" >
<property name="toolTip" >
<string>URL</string>
</property>
</widget>
</item>
<item row="2" column="1" >
- <widget class="QGroupBox" name="TypeGB" >
+ <widget class="QGroupBox" name="typeGB" >
<property name="toolTip" >
- <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
-p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
+ <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">specify the link target</p></body></html></string>
</property>
<property name="title" >
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
- <widget class="QRadioButton" name="WebRB" >
+ <widget class="QRadioButton" name="webRB" >
<property name="toolTip" >
- <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
-p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
+ <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">Link to the web or to every other target</p></body></html></string>
</property>
<property name="text" >
</widget>
</item>
<item row="0" column="1" >
- <widget class="QRadioButton" name="EmailRB" >
+ <widget class="QRadioButton" name="emailRB" >
<property name="toolTip" >
- <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
-p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
+ <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">Link to an email address</p></body></html></string>
</property>
<property name="text" >
</widget>
</item>
<item row="0" column="2" >
- <widget class="QRadioButton" name="FileRB" >
+ <widget class="QRadioButton" name="fileRB" >
<property name="toolTip" >
- <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
-p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
+ <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Link to a file</p></body></html></string>
</property>
<property name="text" >
</layout>
</widget>
<tabstops>
- <tabstop>urlED</tabstop>
+ <tabstop>targetED</tabstop>
<tabstop>nameED</tabstop>
- <tabstop>WebRB</tabstop>
- <tabstop>EmailRB</tabstop>
- <tabstop>FileRB</tabstop>
+ <tabstop>webRB</tabstop>
+ <tabstop>emailRB</tabstop>
+ <tabstop>fileRB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops>