mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-28 09:27:18 +00:00
refactoring of plasmoid
This commit is contained in:
parent
b1e455b976
commit
1366852a62
@ -37,16 +37,6 @@ protected:
|
|||||||
private:
|
private:
|
||||||
// configuration
|
// configuration
|
||||||
QMap<QString, QString> configuration;
|
QMap<QString, QString> configuration;
|
||||||
// // enable check external IP
|
|
||||||
// QString checkExtIP;
|
|
||||||
// // path to netctl command
|
|
||||||
// QString cmd;
|
|
||||||
// // command to check external IP
|
|
||||||
// QString extIpCmd;
|
|
||||||
// // path to ip command
|
|
||||||
// QString ipCmd;
|
|
||||||
// // path to directory with network device configuration
|
|
||||||
// QString netDir;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,9 +127,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Browse</string>
|
<string>Browse</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="default">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -163,9 +160,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Browse</string>
|
<string>Browse</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="default">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -577,9 +571,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Browse</string>
|
<string>Browse</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="default">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -613,9 +604,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Browse</string>
|
<string>Browse</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="default">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -57,6 +57,12 @@ Netctl::~Netctl()
|
|||||||
|
|
||||||
void Netctl::init()
|
void Netctl::init()
|
||||||
{
|
{
|
||||||
|
info[QString("name")] = QString("N\\A");
|
||||||
|
info[QString("status")] = QString("N\\A");
|
||||||
|
info[QString("intIp")] = QString("N\\A");
|
||||||
|
info[QString("extIp")] = QString("N\\A");
|
||||||
|
info[QString("interfaces")] = QString("lo");
|
||||||
|
|
||||||
netctlEngine = dataEngine(QString("netctl"));
|
netctlEngine = dataEngine(QString("netctl"));
|
||||||
createActions();
|
createActions();
|
||||||
// generate ui
|
// generate ui
|
||||||
@ -97,18 +103,38 @@ void Netctl::updateInterface(bool setShown)
|
|||||||
|
|
||||||
|
|
||||||
// context menu
|
// context menu
|
||||||
|
void Netctl::enableProfileAutoloadSlot()
|
||||||
|
{
|
||||||
|
QProcess command;
|
||||||
|
QString commandLine, enableStatus;
|
||||||
|
if (info[QString("status")].contains(QString("enabled")))
|
||||||
|
enableStatus = QString(" disable ");
|
||||||
|
else
|
||||||
|
enableStatus = QString(" enable ");
|
||||||
|
if (useSudo)
|
||||||
|
commandLine = paths[QString("sudo")] + QString(" \"") + paths[QString("netctl")] +
|
||||||
|
enableStatus + info[QString("name")] + QString("\"");
|
||||||
|
else
|
||||||
|
commandLine = paths[QString("netctl")] + enableStatus + info[QString("name")];
|
||||||
|
command.startDetached(commandLine);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Netctl::startProfileSlot(QAction *profile)
|
void Netctl::startProfileSlot(QAction *profile)
|
||||||
{
|
{
|
||||||
QProcess command;
|
QProcess command;
|
||||||
QString commandLine;
|
QString commandLine;
|
||||||
commandLine = QString("");
|
commandLine = QString("");
|
||||||
if (status)
|
if (status)
|
||||||
commandLine = netctlPath + QString(" stop ") + profileName + QString(" && ");
|
commandLine = paths[QString("netctl")] + QString(" stop ") +
|
||||||
|
info[QString("name")] + QString(" && ");
|
||||||
if (useSudo)
|
if (useSudo)
|
||||||
commandLine = sudoPath + QString(" \"") + commandLine +
|
commandLine = paths[QString("sudo")] + QString(" \"") + commandLine +
|
||||||
netctlPath + QString(" start ") + profile->text().remove(QString("&")) + QString("\"");
|
paths[QString("netctl")] + QString(" start ") +
|
||||||
|
profile->text().remove(QString("&")) + QString("\"");
|
||||||
else
|
else
|
||||||
commandLine = commandLine + netctlPath + QString(" start ") + profile->text().remove(QString("&"));
|
commandLine = commandLine + paths[QString("netctl")] + QString(" start ") +
|
||||||
|
profile->text().remove(QString("&"));
|
||||||
command.startDetached(commandLine);
|
command.startDetached(commandLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,9 +144,10 @@ void Netctl::stopProfileSlot()
|
|||||||
QProcess command;
|
QProcess command;
|
||||||
QString commandLine;
|
QString commandLine;
|
||||||
if (useSudo)
|
if (useSudo)
|
||||||
commandLine = sudoPath + QString(" \"") + netctlPath + QString(" stop ") + profileName + QString("\"");
|
commandLine = paths[QString("sudo")] + QString(" \"") + paths[QString("netctl")] +
|
||||||
|
QString(" stop ") + info[QString("name")] + QString("\"");
|
||||||
else
|
else
|
||||||
commandLine = netctlPath + QString(" stop ") + profileName;
|
commandLine = paths[QString("netctl")] + QString(" stop ") + info[QString("name")];
|
||||||
command.startDetached(commandLine);
|
command.startDetached(commandLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,66 +157,27 @@ void Netctl::restartProfileSlot()
|
|||||||
QProcess command;
|
QProcess command;
|
||||||
QString commandLine;
|
QString commandLine;
|
||||||
if (useSudo)
|
if (useSudo)
|
||||||
commandLine = sudoPath + QString(" \"") + netctlPath + QString(" restart ") + profileName + QString("\"");
|
commandLine = paths[QString("sudo")] + QString(" \"") + paths[QString("netctl")] +
|
||||||
|
QString(" restart ") + info[QString("name")] + QString("\"");
|
||||||
else
|
else
|
||||||
commandLine = netctlPath + QString(" restart ") + profileName;
|
commandLine = paths[QString("netctl")] + QString(" restart ") + info[QString("name")];
|
||||||
command.startDetached(commandLine);
|
command.startDetached(commandLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Netctl::enableProfileAutoloadSlot()
|
|
||||||
{
|
|
||||||
QProcess command;
|
|
||||||
QString commandLine, enableStatus;
|
|
||||||
if (profileStatus.contains(QString("enabled")))
|
|
||||||
enableStatus = QString(" disable ");
|
|
||||||
else
|
|
||||||
enableStatus = QString(" enable ");
|
|
||||||
if (useSudo)
|
|
||||||
commandLine = sudoPath + QString(" \"") + netctlPath + enableStatus + profileName + QString("\"");
|
|
||||||
else
|
|
||||||
commandLine = netctlPath + enableStatus + profileName;
|
|
||||||
command.startDetached(commandLine);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Netctl::createActions()
|
|
||||||
{
|
|
||||||
menuActions.clear();
|
|
||||||
|
|
||||||
startProfile = new QAction(i18n("Start profile"), this);
|
|
||||||
startProfileMenu = new QMenu(NULL);
|
|
||||||
startProfile->setMenu(startProfileMenu);
|
|
||||||
connect(startProfileMenu, SIGNAL(triggered(QAction *)), this, SLOT(startProfileSlot(QAction *)));
|
|
||||||
menuActions.append(startProfile);
|
|
||||||
|
|
||||||
stopProfile = new QAction(i18n("Stop profile"), this);
|
|
||||||
connect(stopProfile, SIGNAL(triggered(bool)), this, SLOT(stopProfileSlot()));
|
|
||||||
menuActions.append(stopProfile);
|
|
||||||
|
|
||||||
restartProfile = new QAction(i18n("Restart profile"), this);
|
|
||||||
connect(restartProfile, SIGNAL(triggered(bool)), this, SLOT(restartProfileSlot()));
|
|
||||||
menuActions.append(restartProfile);
|
|
||||||
|
|
||||||
enableProfileAutoload = new QAction(i18n("Enable profile"), this);
|
|
||||||
connect(enableProfileAutoload, SIGNAL(triggered(bool)), this, SLOT(enableProfileAutoloadSlot()));
|
|
||||||
menuActions.append(enableProfileAutoload);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
QList<QAction*> Netctl::contextualActions()
|
QList<QAction*> Netctl::contextualActions()
|
||||||
{
|
{
|
||||||
if (status) {
|
if (status) {
|
||||||
startProfile->setText(i18n("Start another profile"));
|
startProfile->setText(i18n("Start another profile"));
|
||||||
stopProfile->setVisible(true);
|
stopProfile->setVisible(true);
|
||||||
stopProfile->setText(i18n("Stop ") + profileName);
|
stopProfile->setText(i18n("Stop ") + info[QString("name")]);
|
||||||
restartProfile->setVisible(true);
|
restartProfile->setVisible(true);
|
||||||
restartProfile->setText(i18n("Restart ") + profileName);
|
restartProfile->setText(i18n("Restart ") + info[QString("name")]);
|
||||||
enableProfileAutoload->setVisible(true);
|
enableProfileAutoload->setVisible(true);
|
||||||
if (profileStatus.contains(QString("enabled")))
|
if (info[QString("status")].contains(QString("enabled")))
|
||||||
enableProfileAutoload->setText(i18n("Disable ") + profileName);
|
enableProfileAutoload->setText(i18n("Disable ") + info[QString("name")]);
|
||||||
else
|
else
|
||||||
enableProfileAutoload->setText(i18n("Enable ") + profileName);
|
enableProfileAutoload->setText(i18n("Enable ") + info[QString("name")]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
startProfile->setText(i18n("Start profile"));
|
startProfile->setText(i18n("Start profile"));
|
||||||
@ -208,14 +196,33 @@ QList<QAction*> Netctl::contextualActions()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// events
|
void Netctl::createActions()
|
||||||
void Netctl::showGui()
|
|
||||||
{
|
{
|
||||||
QProcess command;
|
menuActions.clear();
|
||||||
command.startDetached(guiPath);
|
|
||||||
|
startProfile = new QAction(i18n("Start profile"), this);
|
||||||
|
startProfileMenu = new QMenu(NULL);
|
||||||
|
startProfile->setMenu(startProfileMenu);
|
||||||
|
connect(startProfileMenu, SIGNAL(triggered(QAction *)), this,
|
||||||
|
SLOT(startProfileSlot(QAction *)));
|
||||||
|
menuActions.append(startProfile);
|
||||||
|
|
||||||
|
stopProfile = new QAction(i18n("Stop profile"), this);
|
||||||
|
connect(stopProfile, SIGNAL(triggered(bool)), this, SLOT(stopProfileSlot()));
|
||||||
|
menuActions.append(stopProfile);
|
||||||
|
|
||||||
|
restartProfile = new QAction(i18n("Restart profile"), this);
|
||||||
|
connect(restartProfile, SIGNAL(triggered(bool)), this, SLOT(restartProfileSlot()));
|
||||||
|
menuActions.append(restartProfile);
|
||||||
|
|
||||||
|
enableProfileAutoload = new QAction(i18n("Enable profile"), this);
|
||||||
|
connect(enableProfileAutoload, SIGNAL(triggered(bool)), this,
|
||||||
|
SLOT(enableProfileAutoloadSlot()));
|
||||||
|
menuActions.append(enableProfileAutoload);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// events
|
||||||
void Netctl::sendNotification(const QString eventId, const QString message)
|
void Netctl::sendNotification(const QString eventId, const QString message)
|
||||||
{
|
{
|
||||||
KNotification *notification = new KNotification(eventId);
|
KNotification *notification = new KNotification(eventId);
|
||||||
@ -227,6 +234,13 @@ void Netctl::sendNotification(const QString eventId, const QString message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Netctl::showGui()
|
||||||
|
{
|
||||||
|
QProcess command;
|
||||||
|
command.startDetached(paths[QString("gui")]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// data engine interaction
|
// data engine interaction
|
||||||
void Netctl::connectToEngine()
|
void Netctl::connectToEngine()
|
||||||
{
|
{
|
||||||
@ -235,36 +249,18 @@ void Netctl::connectToEngine()
|
|||||||
netctlEngine->connectSource(QString("currentProfile"), this, autoUpdateInterval);
|
netctlEngine->connectSource(QString("currentProfile"), this, autoUpdateInterval);
|
||||||
netctlEngine->connectSource(QString("statusString"), this, autoUpdateInterval);
|
netctlEngine->connectSource(QString("statusString"), this, autoUpdateInterval);
|
||||||
updateInterface(false);
|
updateInterface(false);
|
||||||
if (showBigInterface) {
|
if (bigInterface[QString("main")]) {
|
||||||
if (showExtIp)
|
if (bigInterface[QString("extIp")])
|
||||||
netctlEngine->connectSource(QString("extIp"), this, autoUpdateInterval);
|
netctlEngine->connectSource(QString("extIp"), this, autoUpdateInterval);
|
||||||
if (showIntIp)
|
if (bigInterface[QString("intIp")])
|
||||||
netctlEngine->connectSource(QString("intIp"), this, autoUpdateInterval);
|
netctlEngine->connectSource(QString("intIp"), this, autoUpdateInterval);
|
||||||
if (showNetDev)
|
if (bigInterface[QString("netDev")])
|
||||||
netctlEngine->connectSource(QString("interfaces"), this, autoUpdateInterval);
|
netctlEngine->connectSource(QString("interfaces"), this, autoUpdateInterval);
|
||||||
updateInterface(true);
|
updateInterface(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Netctl::disconnectFromEngine()
|
|
||||||
{
|
|
||||||
netctlEngine->disconnectSource(QString("profiles"), this);
|
|
||||||
netctlEngine->disconnectSource(QString("statusBool"), this);
|
|
||||||
netctlEngine->disconnectSource(QString("currentProfile"), this);
|
|
||||||
netctlEngine->disconnectSource(QString("statusString"), this);
|
|
||||||
if (showBigInterface) {
|
|
||||||
if (showExtIp)
|
|
||||||
netctlEngine->disconnectSource(QString("extIp"), this);
|
|
||||||
if (showIntIp)
|
|
||||||
netctlEngine->disconnectSource(QString("intIp"), this);
|
|
||||||
if (showNetDev)
|
|
||||||
netctlEngine->disconnectSource(QString("interfaces"), this);
|
|
||||||
}
|
|
||||||
updateInterface(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Netctl::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
void Netctl::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
||||||
{
|
{
|
||||||
if (data.keys().count() == 0)
|
if (data.keys().count() == 0)
|
||||||
@ -274,28 +270,28 @@ void Netctl::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Da
|
|||||||
value = QString("N\\A");
|
value = QString("N\\A");
|
||||||
|
|
||||||
if (sourceName == QString("currentProfile")) {
|
if (sourceName == QString("currentProfile")) {
|
||||||
profileName = value;
|
info[QString("name")] = value;
|
||||||
|
|
||||||
// update text
|
// update text
|
||||||
QStringList text;
|
QStringList text;
|
||||||
text.append(profileName + QString(" ") + profileStatus);
|
text.append(info[QString("name")] + QString(" ") + info[QString("status")]);
|
||||||
if (showIntIp)
|
if (bigInterface[QString("intIp")])
|
||||||
text.append(intIp);
|
text.append(info[QString("intIp")]);
|
||||||
if (showExtIp)
|
if (bigInterface[QString("extIp")])
|
||||||
text.append(extIp);
|
text.append(info[QString("extIp")]);
|
||||||
if (showNetDev)
|
if (bigInterface[QString("netDev")])
|
||||||
text.append(interfaces);
|
text.append(info[QString("interfaces")]);
|
||||||
if (showBigInterface)
|
if (bigInterface[QString("main")])
|
||||||
textLabel->setText(formatLine[0] + text.join(QString("<br>")) + formatLine[1]);
|
textLabel->setText(formatLine[0] + text.join(QString("<br>")) + formatLine[1]);
|
||||||
}
|
}
|
||||||
else if (sourceName == QString("extIp")) {
|
else if (sourceName == QString("extIp")) {
|
||||||
extIp = value;
|
info[QString("extIp")] = value;
|
||||||
}
|
}
|
||||||
else if (sourceName == QString("intIp")) {
|
else if (sourceName == QString("intIp")) {
|
||||||
intIp = value;
|
info[QString("intIp")] = value;
|
||||||
}
|
}
|
||||||
else if (sourceName == QString("interfaces")) {
|
else if (sourceName == QString("interfaces")) {
|
||||||
interfaces = value;
|
info[QString("interfaces")] = value;
|
||||||
}
|
}
|
||||||
else if (sourceName == QString("profiles")) {
|
else if (sourceName == QString("profiles")) {
|
||||||
profileList = value.split(QString(","));
|
profileList = value.split(QString(","));
|
||||||
@ -303,51 +299,69 @@ void Netctl::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Da
|
|||||||
else if (sourceName == QString("statusBool")) {
|
else if (sourceName == QString("statusBool")) {
|
||||||
if (value == QString("true")) {
|
if (value == QString("true")) {
|
||||||
status = true;
|
status = true;
|
||||||
iconWidget->setIcon(activeIconPath);
|
iconWidget->setIcon(paths[QString("active")]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
iconWidget->setIcon(inactiveIconPath);
|
iconWidget->setIcon(paths[QString("inactive")]);
|
||||||
status = false;
|
status = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (sourceName == QString("statusString")) {
|
else if (sourceName == QString("statusString")) {
|
||||||
profileStatus = QString("(") + value + QString(")");
|
info[QString("status")] = QString("(") + value + QString(")");
|
||||||
}
|
}
|
||||||
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Netctl::disconnectFromEngine()
|
||||||
|
{
|
||||||
|
netctlEngine->disconnectSource(QString("profiles"), this);
|
||||||
|
netctlEngine->disconnectSource(QString("statusBool"), this);
|
||||||
|
netctlEngine->disconnectSource(QString("currentProfile"), this);
|
||||||
|
netctlEngine->disconnectSource(QString("statusString"), this);
|
||||||
|
if (bigInterface[QString("main")]) {
|
||||||
|
if (bigInterface[QString("extIp")])
|
||||||
|
netctlEngine->disconnectSource(QString("extIp"), this);
|
||||||
|
if (bigInterface[QString("intIp")])
|
||||||
|
netctlEngine->disconnectSource(QString("intIp"), this);
|
||||||
|
if (bigInterface[QString("netDev")])
|
||||||
|
netctlEngine->disconnectSource(QString("interfaces"), this);
|
||||||
|
}
|
||||||
|
updateInterface(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// configuration interface
|
// configuration interface
|
||||||
void Netctl::selectGuiExe()
|
|
||||||
{
|
|
||||||
KUrl guiUrl = KFileDialog::getOpenUrl(KUrl(), "*");
|
|
||||||
if (!guiUrl.isEmpty())
|
|
||||||
uiConfig.lineEdit_gui->setText(guiUrl.path());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Netctl::selectNetctlExe()
|
|
||||||
{
|
|
||||||
KUrl netctlUrl = KFileDialog::getOpenUrl(KUrl(), "*");
|
|
||||||
if (!netctlUrl.isEmpty())
|
|
||||||
uiConfig.lineEdit_netctl->setText(netctlUrl.path());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Netctl::selectActiveIcon()
|
void Netctl::selectActiveIcon()
|
||||||
{
|
{
|
||||||
KUrl activeIconUrl = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!activeIconUrl.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_activeIcon->setText(activeIconUrl.path());
|
uiConfig.lineEdit_activeIcon->setText(url.path());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Netctl::selectGuiExe()
|
||||||
|
{
|
||||||
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
|
if (!url.isEmpty())
|
||||||
|
uiConfig.lineEdit_gui->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Netctl::selectInactiveIcon()
|
void Netctl::selectInactiveIcon()
|
||||||
{
|
{
|
||||||
KUrl inactiveIconUrl = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!inactiveIconUrl.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_inactiveIcon->setText(inactiveIconUrl.path());
|
uiConfig.lineEdit_inactiveIcon->setText(url.path());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Netctl::selectNetctlExe()
|
||||||
|
{
|
||||||
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
|
if (!url.isEmpty())
|
||||||
|
uiConfig.lineEdit_netctl->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -355,35 +369,42 @@ void Netctl::createConfigurationInterface(KConfigDialog *parent)
|
|||||||
{
|
{
|
||||||
QWidget *configwin = new QWidget;
|
QWidget *configwin = new QWidget;
|
||||||
uiConfig.setupUi(configwin);
|
uiConfig.setupUi(configwin);
|
||||||
QString text = QString(NAME) + " - " + QString(VERSION) + "\n" + "(c) " + QString(DATE) + " " + QString(AUTHOR);
|
QString text = QString(NAME) + " - " + QString(VERSION) + "\n" + "(c) " +
|
||||||
|
QString(DATE) + " " + QString(AUTHOR);
|
||||||
uiConfig.label_info->setText(text);
|
uiConfig.label_info->setText(text);
|
||||||
|
|
||||||
uiConfig.spinBox_autoUpdate->setValue(autoUpdateInterval);
|
uiConfig.spinBox_autoUpdate->setValue(autoUpdateInterval);
|
||||||
uiConfig.lineEdit_gui->setText(guiPath);
|
uiConfig.lineEdit_gui->setText(paths[QString("gui")]);
|
||||||
uiConfig.lineEdit_netctl->setText(netctlPath);
|
uiConfig.lineEdit_netctl->setText(paths[QString("netctl")]);
|
||||||
if (useSudo)
|
if (useSudo)
|
||||||
uiConfig.checkBox_sudo->setCheckState(Qt::Checked);
|
uiConfig.checkBox_sudo->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_sudo->setCheckState(Qt::Unchecked);
|
uiConfig.checkBox_sudo->setCheckState(Qt::Unchecked);
|
||||||
uiConfig.lineEdit_sudo->setText(sudoPath);
|
uiConfig.lineEdit_sudo->setText(paths[QString("sudo")]);
|
||||||
if (showBigInterface)
|
if (bigInterface[QString("main")])
|
||||||
uiConfig.checkBox_showBigInterface->setCheckState(Qt::Checked);
|
uiConfig.checkBox_showBigInterface->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showBigInterface->setCheckState(Qt::Unchecked);
|
uiConfig.checkBox_showBigInterface->setCheckState(Qt::Unchecked);
|
||||||
if (showNetDev)
|
if (bigInterface[QString("netDev")])
|
||||||
uiConfig.checkBox_showNetDev->setCheckState(Qt::Checked);
|
uiConfig.checkBox_showNetDev->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showNetDev->setCheckState(Qt::Unchecked);
|
uiConfig.checkBox_showNetDev->setCheckState(Qt::Unchecked);
|
||||||
if (showExtIp)
|
if (bigInterface[QString("extIp")])
|
||||||
uiConfig.checkBox_showExtIp->setCheckState(Qt::Checked);
|
uiConfig.checkBox_showExtIp->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showExtIp->setCheckState(Qt::Unchecked);
|
uiConfig.checkBox_showExtIp->setCheckState(Qt::Unchecked);
|
||||||
if (showIntIp)
|
if (bigInterface[QString("intIp")])
|
||||||
uiConfig.checkBox_showIntIp->setCheckState(Qt::Checked);
|
uiConfig.checkBox_showIntIp->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showIntIp->setCheckState(Qt::Unchecked);
|
uiConfig.checkBox_showIntIp->setCheckState(Qt::Unchecked);
|
||||||
setBigInterface();
|
setBigInterface();
|
||||||
|
|
||||||
|
KConfigGroup cg = config();
|
||||||
|
QString fontFamily = cg.readEntry("fontFamily", "Terminus");
|
||||||
|
int fontSize = cg.readEntry("fontSize", 10);
|
||||||
|
QString fontColor = cg.readEntry("fontColor", "#000000");
|
||||||
|
int fontWeight = cg.readEntry("fontWeight", 400);
|
||||||
|
QString fontStyle = cg.readEntry("fontStyle", "normal");
|
||||||
QFont font = QFont(fontFamily, 12, 400, FALSE);
|
QFont font = QFont(fontFamily, 12, 400, FALSE);
|
||||||
uiConfig.fontComboBox_font->setCurrentFont(font);
|
uiConfig.fontComboBox_font->setCurrentFont(font);
|
||||||
uiConfig.spinBox_fontSize->setValue(fontSize);
|
uiConfig.spinBox_fontSize->setValue(fontSize);
|
||||||
@ -393,12 +414,13 @@ void Netctl::createConfigurationInterface(KConfigDialog *parent)
|
|||||||
uiConfig.comboBox_fontStyle->setCurrentIndex(0);
|
uiConfig.comboBox_fontStyle->setCurrentIndex(0);
|
||||||
else if (fontStyle == "italic")
|
else if (fontStyle == "italic")
|
||||||
uiConfig.comboBox_fontStyle->setCurrentIndex(1);
|
uiConfig.comboBox_fontStyle->setCurrentIndex(1);
|
||||||
uiConfig.lineEdit_activeIcon->setText(activeIconPath);
|
uiConfig.lineEdit_activeIcon->setText(paths[QString("active")]);
|
||||||
uiConfig.lineEdit_inactiveIcon->setText(inactiveIconPath);
|
uiConfig.lineEdit_inactiveIcon->setText(paths[QString("inactive")]);
|
||||||
|
|
||||||
parent->addPage(configwin, i18n("Netctl plasmoid"), Applet::icon());
|
parent->addPage(configwin, i18n("Netctl plasmoid"), Applet::icon());
|
||||||
|
|
||||||
connect(uiConfig.checkBox_showBigInterface, SIGNAL(stateChanged(int)), this, SLOT(setBigInterface()));
|
connect(uiConfig.checkBox_showBigInterface, SIGNAL(stateChanged(int)), this,
|
||||||
|
SLOT(setBigInterface()));
|
||||||
connect(uiConfig.checkBox_sudo, SIGNAL(stateChanged(int)), this, SLOT(setSudo()));
|
connect(uiConfig.checkBox_sudo, SIGNAL(stateChanged(int)), this, SLOT(setSudo()));
|
||||||
|
|
||||||
connect(uiConfig.pushButton_gui, SIGNAL(clicked()), this, SLOT(selectGuiExe()));
|
connect(uiConfig.pushButton_gui, SIGNAL(clicked()), this, SLOT(selectGuiExe()));
|
||||||
@ -456,22 +478,24 @@ void Netctl::configChanged()
|
|||||||
KConfigGroup cg = config();
|
KConfigGroup cg = config();
|
||||||
|
|
||||||
autoUpdateInterval = cg.readEntry("autoUpdateInterval", 1000);
|
autoUpdateInterval = cg.readEntry("autoUpdateInterval", 1000);
|
||||||
guiPath = cg.readEntry("guiPath", "/usr/bin/netctl-gui");
|
paths[QString("gui")] = cg.readEntry("guiPath", "/usr/bin/netctl-gui");
|
||||||
netctlPath = cg.readEntry("netctlPath", "/usr/bin/netctl");
|
paths[QString("netctl")] = cg.readEntry("netctlPath", "/usr/bin/netctl");
|
||||||
useSudo = cg.readEntry("useSudo", true);
|
useSudo = cg.readEntry("useSudo", true);
|
||||||
sudoPath = cg.readEntry("sudoPath", "/usr/bin/kdesu -c");
|
paths[QString("sudo")] = cg.readEntry("sudoPath", "/usr/bin/kdesu -c");
|
||||||
showBigInterface = cg.readEntry("showBigInterface", true);
|
bigInterface[QString("main")] = cg.readEntry("showBigInterface", true);
|
||||||
showNetDev = cg.readEntry("showNetDev", true);
|
bigInterface[QString("extIp")] = cg.readEntry("showExtIp", false);
|
||||||
showExtIp = cg.readEntry("showExtIp", false);
|
bigInterface[QString("netDev")] = cg.readEntry("showNetDev", true);
|
||||||
showIntIp = cg.readEntry("showIntIp", true);
|
bigInterface[QString("intIp")] = cg.readEntry("showIntIp", true);
|
||||||
|
|
||||||
fontFamily = cg.readEntry("fontFamily", "Terminus");
|
QString fontFamily = cg.readEntry("fontFamily", "Terminus");
|
||||||
fontSize = cg.readEntry("fontSize", 10);
|
int fontSize = cg.readEntry("fontSize", 10);
|
||||||
fontColor = cg.readEntry("fontColor", "#000000");
|
QString fontColor = cg.readEntry("fontColor", "#000000");
|
||||||
fontWeight = cg.readEntry("fontWeight", 400);
|
int fontWeight = cg.readEntry("fontWeight", 400);
|
||||||
fontStyle = cg.readEntry("fontStyle", "normal");
|
QString fontStyle = cg.readEntry("fontStyle", "normal");
|
||||||
activeIconPath = cg.readEntry("activeIconPath", "/usr/share/icons/hicolor/64x64/apps/netctl-idle.png");
|
paths[QString("active")] = cg.readEntry("activeIconPath",
|
||||||
inactiveIconPath = cg.readEntry("inactiveIconPath", "/usr/share/icons/hicolor/64x64/apps/netctl-offline.png");
|
"/usr/share/icons/hicolor/64x64/apps/netctl-idle.png");
|
||||||
|
paths[QString("inactive")] = cg.readEntry("inactiveIconPath",
|
||||||
|
"/usr/share/icons/hicolor/64x64/apps/netctl-offline.png");
|
||||||
|
|
||||||
formatLine[0] = ("<p align=\"center\"><span style=\" font-family:'" + fontFamily + \
|
formatLine[0] = ("<p align=\"center\"><span style=\" font-family:'" + fontFamily + \
|
||||||
"'; font-style:" + fontStyle + \
|
"'; font-style:" + fontStyle + \
|
||||||
|
@ -41,8 +41,8 @@ public:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
// events
|
// events
|
||||||
void showGui();
|
|
||||||
void sendNotification(const QString eventId, const QString message);
|
void sendNotification(const QString eventId, const QString message);
|
||||||
|
void showGui();
|
||||||
// dataengine
|
// dataengine
|
||||||
void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);
|
void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);
|
||||||
// configuration interface
|
// configuration interface
|
||||||
@ -55,15 +55,15 @@ private slots:
|
|||||||
// ui
|
// ui
|
||||||
void updateInterface(bool setHidden);
|
void updateInterface(bool setHidden);
|
||||||
// configuration interface
|
// configuration interface
|
||||||
void selectGuiExe();
|
|
||||||
void selectNetctlExe();
|
|
||||||
void selectActiveIcon();
|
void selectActiveIcon();
|
||||||
|
void selectGuiExe();
|
||||||
void selectInactiveIcon();
|
void selectInactiveIcon();
|
||||||
|
void selectNetctlExe();
|
||||||
// context menu
|
// context menu
|
||||||
|
void enableProfileAutoloadSlot();
|
||||||
void startProfileSlot(QAction *profile);
|
void startProfileSlot(QAction *profile);
|
||||||
void stopProfileSlot();
|
void stopProfileSlot();
|
||||||
void restartProfileSlot();
|
void restartProfileSlot();
|
||||||
void enableProfileAutoloadSlot();
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void createConfigurationInterface(KConfigDialog *parent);
|
void createConfigurationInterface(KConfigDialog *parent);
|
||||||
@ -77,21 +77,16 @@ private:
|
|||||||
// text
|
// text
|
||||||
Plasma::Label *textLabel;
|
Plasma::Label *textLabel;
|
||||||
bool status;
|
bool status;
|
||||||
QString profileName;
|
QMap<QString, QString> info;
|
||||||
QString profileStatus;
|
|
||||||
QString intIp;
|
|
||||||
QString extIp;
|
|
||||||
QString interfaces;
|
|
||||||
QStringList profileList;
|
QStringList profileList;
|
||||||
QStringList formatLine;
|
|
||||||
// context menu
|
// context menu
|
||||||
void createActions();
|
void createActions();
|
||||||
QList<QAction*> menuActions;
|
QList<QAction*> menuActions;
|
||||||
QAction *startProfile;
|
|
||||||
QMenu *startProfileMenu;
|
QMenu *startProfileMenu;
|
||||||
|
QAction *enableProfileAutoload;
|
||||||
|
QAction *startProfile;
|
||||||
QAction *stopProfile;
|
QAction *stopProfile;
|
||||||
QAction *restartProfile;
|
QAction *restartProfile;
|
||||||
QAction *enableProfileAutoload;
|
|
||||||
// data engine
|
// data engine
|
||||||
Plasma::DataEngine *netctlEngine;
|
Plasma::DataEngine *netctlEngine;
|
||||||
void connectToEngine();
|
void connectToEngine();
|
||||||
@ -102,21 +97,10 @@ private:
|
|||||||
Ui::ConfigWindow uiConfig;
|
Ui::ConfigWindow uiConfig;
|
||||||
// configuration
|
// configuration
|
||||||
int autoUpdateInterval;
|
int autoUpdateInterval;
|
||||||
QString guiPath;
|
QMap<QString, bool> bigInterface;
|
||||||
QString netctlPath;
|
QStringList formatLine;
|
||||||
|
QMap<QString, QString> paths;
|
||||||
bool useSudo;
|
bool useSudo;
|
||||||
QString sudoPath;
|
|
||||||
bool showBigInterface;
|
|
||||||
bool showNetDev;
|
|
||||||
bool showExtIp;
|
|
||||||
bool showIntIp;
|
|
||||||
QString fontFamily;
|
|
||||||
int fontSize;
|
|
||||||
QString fontColor;
|
|
||||||
int fontWeight;
|
|
||||||
QString fontStyle;
|
|
||||||
QString activeIconPath;
|
|
||||||
QString inactiveIconPath;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
K_EXPORT_PLASMA_APPLET(netctl, Netctl)
|
K_EXPORT_PLASMA_APPLET(netctl, Netctl)
|
||||||
|
@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
|
||||||
"POT-Creation-Date: 2014-04-06 12:31+0400\n"
|
"POT-Creation-Date: 2014-04-06 18:45+0400\n"
|
||||||
"PO-Revision-Date: 2014-04-06 12:33+0400\n"
|
"PO-Revision-Date: 2014-04-06 12:33+0400\n"
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||||
@ -18,43 +18,43 @@ msgstr ""
|
|||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||||
"X-Generator: Lokalize 1.5\n"
|
"X-Generator: Lokalize 1.5\n"
|
||||||
|
|
||||||
#: netctl.cpp:160 netctl.cpp:195
|
#: netctl.cpp:171
|
||||||
msgid "Start profile"
|
|
||||||
msgstr "Start profile"
|
|
||||||
|
|
||||||
#: netctl.cpp:166
|
|
||||||
msgid "Stop profile"
|
|
||||||
msgstr "Stop profile"
|
|
||||||
|
|
||||||
#: netctl.cpp:170
|
|
||||||
msgid "Restart profile"
|
|
||||||
msgstr "Restart profile"
|
|
||||||
|
|
||||||
#: netctl.cpp:174
|
|
||||||
msgid "Enable profile"
|
|
||||||
msgstr "Enable profile"
|
|
||||||
|
|
||||||
#: netctl.cpp:183
|
|
||||||
msgid "Start another profile"
|
msgid "Start another profile"
|
||||||
msgstr "Start another profile"
|
msgstr "Start another profile"
|
||||||
|
|
||||||
#: netctl.cpp:185
|
#: netctl.cpp:173
|
||||||
msgid "Stop "
|
msgid "Stop "
|
||||||
msgstr "Stop "
|
msgstr "Stop "
|
||||||
|
|
||||||
#: netctl.cpp:187
|
#: netctl.cpp:175
|
||||||
msgid "Restart "
|
msgid "Restart "
|
||||||
msgstr "Restart "
|
msgstr "Restart "
|
||||||
|
|
||||||
#: netctl.cpp:190
|
#: netctl.cpp:178
|
||||||
msgid "Disable "
|
msgid "Disable "
|
||||||
msgstr "Disable "
|
msgstr "Disable "
|
||||||
|
|
||||||
#: netctl.cpp:192
|
#: netctl.cpp:180
|
||||||
msgid "Enable "
|
msgid "Enable "
|
||||||
msgstr "Enable "
|
msgstr "Enable "
|
||||||
|
|
||||||
#: netctl.cpp:399
|
#: netctl.cpp:183 netctl.cpp:203
|
||||||
|
msgid "Start profile"
|
||||||
|
msgstr "Start profile"
|
||||||
|
|
||||||
|
#: netctl.cpp:210
|
||||||
|
msgid "Stop profile"
|
||||||
|
msgstr "Stop profile"
|
||||||
|
|
||||||
|
#: netctl.cpp:214
|
||||||
|
msgid "Restart profile"
|
||||||
|
msgstr "Restart profile"
|
||||||
|
|
||||||
|
#: netctl.cpp:218
|
||||||
|
msgid "Enable profile"
|
||||||
|
msgstr "Enable profile"
|
||||||
|
|
||||||
|
#: netctl.cpp:420
|
||||||
msgid "Netctl plasmoid"
|
msgid "Netctl plasmoid"
|
||||||
msgstr "Netctl plasmoid"
|
msgstr "Netctl plasmoid"
|
||||||
|
|
||||||
@ -78,146 +78,146 @@ msgstr "Path to GUI"
|
|||||||
|
|
||||||
#. i18n: file: configwindow.ui:128
|
#. i18n: file: configwindow.ui:128
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
||||||
#. i18n: file: configwindow.ui:164
|
#. i18n: file: configwindow.ui:161
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
||||||
#. i18n: file: configwindow.ui:578
|
#. i18n: file: configwindow.ui:572
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
||||||
#. i18n: file: configwindow.ui:614
|
#. i18n: file: configwindow.ui:605
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
||||||
#. i18n: file: configwindow.ui:128
|
#. i18n: file: configwindow.ui:128
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
||||||
#. i18n: file: configwindow.ui:164
|
#. i18n: file: configwindow.ui:161
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
||||||
#. i18n: file: configwindow.ui:578
|
#. i18n: file: configwindow.ui:572
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
||||||
#. i18n: file: configwindow.ui:614
|
#. i18n: file: configwindow.ui:605
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
||||||
#: po/rc.cpp:12 po/rc.cpp:18 po/rc.cpp:78 po/rc.cpp:84 rc.cpp:12 rc.cpp:18
|
#: po/rc.cpp:12 po/rc.cpp:18 po/rc.cpp:78 po/rc.cpp:84 rc.cpp:12 rc.cpp:18
|
||||||
#: rc.cpp:78 rc.cpp:84
|
#: rc.cpp:78 rc.cpp:84
|
||||||
msgid "Browse"
|
msgid "Browse"
|
||||||
msgstr "Browse"
|
msgstr "Browse"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:148
|
#. i18n: file: configwindow.ui:145
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_netctl)
|
#. i18n: ectx: property (text), widget (QLabel, label_netctl)
|
||||||
#: po/rc.cpp:15 rc.cpp:15
|
#: po/rc.cpp:15 rc.cpp:15
|
||||||
msgid "Path to netctl"
|
msgid "Path to netctl"
|
||||||
msgstr "Path to netctl"
|
msgstr "Path to netctl"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:184
|
#. i18n: file: configwindow.ui:178
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo)
|
||||||
#: po/rc.cpp:21 rc.cpp:21
|
#: po/rc.cpp:21 rc.cpp:21
|
||||||
msgid "Use sudo for netctl"
|
msgid "Use sudo for netctl"
|
||||||
msgstr "Use sudo for netctl"
|
msgstr "Use sudo for netctl"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:199
|
#. i18n: file: configwindow.ui:193
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showBigInterface)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showBigInterface)
|
||||||
#: po/rc.cpp:24 rc.cpp:24
|
#: po/rc.cpp:24 rc.cpp:24
|
||||||
msgid "Show more detailed interface"
|
msgid "Show more detailed interface"
|
||||||
msgstr "Show more detailed interface"
|
msgstr "Show more detailed interface"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:209
|
#. i18n: file: configwindow.ui:203
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showNetDev)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showNetDev)
|
||||||
#: po/rc.cpp:27 rc.cpp:27
|
#: po/rc.cpp:27 rc.cpp:27
|
||||||
msgid "Show network devices"
|
msgid "Show network devices"
|
||||||
msgstr "Show network devices"
|
msgstr "Show network devices"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:219
|
#. i18n: file: configwindow.ui:213
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showExtIp)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showExtIp)
|
||||||
#: po/rc.cpp:30 rc.cpp:30
|
#: po/rc.cpp:30 rc.cpp:30
|
||||||
msgid "Show external IP"
|
msgid "Show external IP"
|
||||||
msgstr "Show external IP"
|
msgstr "Show external IP"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:229
|
#. i18n: file: configwindow.ui:223
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showIntIp)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showIntIp)
|
||||||
#: po/rc.cpp:33 rc.cpp:33
|
#: po/rc.cpp:33 rc.cpp:33
|
||||||
msgid "Show internal IP"
|
msgid "Show internal IP"
|
||||||
msgstr "Show internal IP"
|
msgstr "Show internal IP"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:253
|
#. i18n: file: configwindow.ui:247
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, tabAppearance)
|
#. i18n: ectx: attribute (title), widget (QWidget, tabAppearance)
|
||||||
#: po/rc.cpp:36 rc.cpp:36
|
#: po/rc.cpp:36 rc.cpp:36
|
||||||
msgid "Appearance"
|
msgid "Appearance"
|
||||||
msgstr "Appearance"
|
msgstr "Appearance"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:267
|
#. i18n: file: configwindow.ui:261
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||||
#: po/rc.cpp:39 rc.cpp:39
|
#: po/rc.cpp:39 rc.cpp:39
|
||||||
msgid "Font"
|
msgid "Font"
|
||||||
msgstr "Font"
|
msgstr "Font"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:299
|
#. i18n: file: configwindow.ui:293
|
||||||
#. i18n: ectx: property (toolTip), widget (QFontComboBox, fontComboBox_font)
|
#. i18n: ectx: property (toolTip), widget (QFontComboBox, fontComboBox_font)
|
||||||
#: po/rc.cpp:42 rc.cpp:42
|
#: po/rc.cpp:42 rc.cpp:42
|
||||||
msgid "Set font family"
|
msgid "Set font family"
|
||||||
msgstr "Set font family"
|
msgstr "Set font family"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:316
|
#. i18n: file: configwindow.ui:310
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||||
#: po/rc.cpp:45 rc.cpp:45
|
#: po/rc.cpp:45 rc.cpp:45
|
||||||
msgid "Font size"
|
msgid "Font size"
|
||||||
msgstr "Font size"
|
msgstr "Font size"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:348
|
#. i18n: file: configwindow.ui:342
|
||||||
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontSize)
|
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontSize)
|
||||||
#: po/rc.cpp:48 rc.cpp:48
|
#: po/rc.cpp:48 rc.cpp:48
|
||||||
msgid "Set font size"
|
msgid "Set font size"
|
||||||
msgstr "Set font size"
|
msgstr "Set font size"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:377
|
#. i18n: file: configwindow.ui:371
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColor)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontColor)
|
||||||
#: po/rc.cpp:51 rc.cpp:51
|
#: po/rc.cpp:51 rc.cpp:51
|
||||||
msgid "Font color"
|
msgid "Font color"
|
||||||
msgstr "Font color"
|
msgstr "Font color"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:409
|
#. i18n: file: configwindow.ui:403
|
||||||
#. i18n: ectx: property (toolTip), widget (KColorCombo, kcolorcombo_fontColor)
|
#. i18n: ectx: property (toolTip), widget (KColorCombo, kcolorcombo_fontColor)
|
||||||
#: po/rc.cpp:54 rc.cpp:54
|
#: po/rc.cpp:54 rc.cpp:54
|
||||||
msgid "Set font color"
|
msgid "Set font color"
|
||||||
msgstr "Set font color"
|
msgstr "Set font color"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:426
|
#. i18n: file: configwindow.ui:420
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeight)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontWeight)
|
||||||
#: po/rc.cpp:57 rc.cpp:57
|
#: po/rc.cpp:57 rc.cpp:57
|
||||||
msgid "Font weight"
|
msgid "Font weight"
|
||||||
msgstr "Font weight"
|
msgstr "Font weight"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:458
|
#. i18n: file: configwindow.ui:452
|
||||||
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontWeight)
|
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontWeight)
|
||||||
#: po/rc.cpp:60 rc.cpp:60
|
#: po/rc.cpp:60 rc.cpp:60
|
||||||
msgid "Set font weight"
|
msgid "Set font weight"
|
||||||
msgstr "Set font weight"
|
msgstr "Set font weight"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:490
|
#. i18n: file: configwindow.ui:484
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyle)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontStyle)
|
||||||
#: po/rc.cpp:63 rc.cpp:63
|
#: po/rc.cpp:63 rc.cpp:63
|
||||||
msgid "Font style"
|
msgid "Font style"
|
||||||
msgstr "Font style"
|
msgstr "Font style"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:522
|
#. i18n: file: configwindow.ui:516
|
||||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:66 rc.cpp:66
|
#: po/rc.cpp:66 rc.cpp:66
|
||||||
msgid "Set font style"
|
msgid "Set font style"
|
||||||
msgstr "Set font style"
|
msgstr "Set font style"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:526
|
#. i18n: file: configwindow.ui:520
|
||||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:69 rc.cpp:69
|
#: po/rc.cpp:69 rc.cpp:69
|
||||||
msgid "normal"
|
msgid "normal"
|
||||||
msgstr "normal"
|
msgstr "normal"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:531
|
#. i18n: file: configwindow.ui:525
|
||||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:72 rc.cpp:72
|
#: po/rc.cpp:72 rc.cpp:72
|
||||||
msgid "italic"
|
msgid "italic"
|
||||||
msgstr "italic"
|
msgstr "italic"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:562
|
#. i18n: file: configwindow.ui:556
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_activeIcon)
|
#. i18n: ectx: property (text), widget (QLabel, label_activeIcon)
|
||||||
#: po/rc.cpp:75 rc.cpp:75
|
#: po/rc.cpp:75 rc.cpp:75
|
||||||
msgid "Active icon"
|
msgid "Active icon"
|
||||||
msgstr "Active icon"
|
msgstr "Active icon"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:598
|
#. i18n: file: configwindow.ui:589
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon)
|
||||||
#: po/rc.cpp:81 rc.cpp:81
|
#: po/rc.cpp:81 rc.cpp:81
|
||||||
msgid "Inactive icon"
|
msgid "Inactive icon"
|
||||||
@ -232,4 +232,3 @@ msgstr "Evgeniy Alekseev"
|
|||||||
msgctxt "EMAIL OF TRANSLATORS"
|
msgctxt "EMAIL OF TRANSLATORS"
|
||||||
msgid "Your emails"
|
msgid "Your emails"
|
||||||
msgstr "esalexeev@gmail.com"
|
msgstr "esalexeev@gmail.com"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
|
||||||
"POT-Creation-Date: 2014-04-06 12:31+0400\n"
|
"POT-Creation-Date: 2014-04-06 18:45+0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -17,43 +17,43 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
"Content-Type: text/plain; charset=CHARSET\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: netctl.cpp:160 netctl.cpp:195
|
#: netctl.cpp:171
|
||||||
msgid "Start profile"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: netctl.cpp:166
|
|
||||||
msgid "Stop profile"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: netctl.cpp:170
|
|
||||||
msgid "Restart profile"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: netctl.cpp:174
|
|
||||||
msgid "Enable profile"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: netctl.cpp:183
|
|
||||||
msgid "Start another profile"
|
msgid "Start another profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: netctl.cpp:185
|
#: netctl.cpp:173
|
||||||
msgid "Stop "
|
msgid "Stop "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: netctl.cpp:187
|
#: netctl.cpp:175
|
||||||
msgid "Restart "
|
msgid "Restart "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: netctl.cpp:190
|
#: netctl.cpp:178
|
||||||
msgid "Disable "
|
msgid "Disable "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: netctl.cpp:192
|
#: netctl.cpp:180
|
||||||
msgid "Enable "
|
msgid "Enable "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: netctl.cpp:399
|
#: netctl.cpp:183 netctl.cpp:203
|
||||||
|
msgid "Start profile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: netctl.cpp:210
|
||||||
|
msgid "Stop profile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: netctl.cpp:214
|
||||||
|
msgid "Restart profile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: netctl.cpp:218
|
||||||
|
msgid "Enable profile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: netctl.cpp:420
|
||||||
msgid "Netctl plasmoid"
|
msgid "Netctl plasmoid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -77,146 +77,146 @@ msgstr ""
|
|||||||
|
|
||||||
#. i18n: file: configwindow.ui:128
|
#. i18n: file: configwindow.ui:128
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
||||||
#. i18n: file: configwindow.ui:164
|
#. i18n: file: configwindow.ui:161
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
||||||
#. i18n: file: configwindow.ui:578
|
#. i18n: file: configwindow.ui:572
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
||||||
#. i18n: file: configwindow.ui:614
|
#. i18n: file: configwindow.ui:605
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
||||||
#. i18n: file: configwindow.ui:128
|
#. i18n: file: configwindow.ui:128
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
||||||
#. i18n: file: configwindow.ui:164
|
#. i18n: file: configwindow.ui:161
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
||||||
#. i18n: file: configwindow.ui:578
|
#. i18n: file: configwindow.ui:572
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
||||||
#. i18n: file: configwindow.ui:614
|
#. i18n: file: configwindow.ui:605
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
||||||
#: po/rc.cpp:12 po/rc.cpp:18 po/rc.cpp:78 po/rc.cpp:84 rc.cpp:12 rc.cpp:18
|
#: po/rc.cpp:12 po/rc.cpp:18 po/rc.cpp:78 po/rc.cpp:84 rc.cpp:12 rc.cpp:18
|
||||||
#: rc.cpp:78 rc.cpp:84
|
#: rc.cpp:78 rc.cpp:84
|
||||||
msgid "Browse"
|
msgid "Browse"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:148
|
#. i18n: file: configwindow.ui:145
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_netctl)
|
#. i18n: ectx: property (text), widget (QLabel, label_netctl)
|
||||||
#: po/rc.cpp:15 rc.cpp:15
|
#: po/rc.cpp:15 rc.cpp:15
|
||||||
msgid "Path to netctl"
|
msgid "Path to netctl"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:184
|
#. i18n: file: configwindow.ui:178
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo)
|
||||||
#: po/rc.cpp:21 rc.cpp:21
|
#: po/rc.cpp:21 rc.cpp:21
|
||||||
msgid "Use sudo for netctl"
|
msgid "Use sudo for netctl"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:199
|
#. i18n: file: configwindow.ui:193
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showBigInterface)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showBigInterface)
|
||||||
#: po/rc.cpp:24 rc.cpp:24
|
#: po/rc.cpp:24 rc.cpp:24
|
||||||
msgid "Show more detailed interface"
|
msgid "Show more detailed interface"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:209
|
#. i18n: file: configwindow.ui:203
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showNetDev)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showNetDev)
|
||||||
#: po/rc.cpp:27 rc.cpp:27
|
#: po/rc.cpp:27 rc.cpp:27
|
||||||
msgid "Show network devices"
|
msgid "Show network devices"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:219
|
#. i18n: file: configwindow.ui:213
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showExtIp)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showExtIp)
|
||||||
#: po/rc.cpp:30 rc.cpp:30
|
#: po/rc.cpp:30 rc.cpp:30
|
||||||
msgid "Show external IP"
|
msgid "Show external IP"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:229
|
#. i18n: file: configwindow.ui:223
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showIntIp)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showIntIp)
|
||||||
#: po/rc.cpp:33 rc.cpp:33
|
#: po/rc.cpp:33 rc.cpp:33
|
||||||
msgid "Show internal IP"
|
msgid "Show internal IP"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:253
|
#. i18n: file: configwindow.ui:247
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, tabAppearance)
|
#. i18n: ectx: attribute (title), widget (QWidget, tabAppearance)
|
||||||
#: po/rc.cpp:36 rc.cpp:36
|
#: po/rc.cpp:36 rc.cpp:36
|
||||||
msgid "Appearance"
|
msgid "Appearance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:267
|
#. i18n: file: configwindow.ui:261
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||||
#: po/rc.cpp:39 rc.cpp:39
|
#: po/rc.cpp:39 rc.cpp:39
|
||||||
msgid "Font"
|
msgid "Font"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:299
|
#. i18n: file: configwindow.ui:293
|
||||||
#. i18n: ectx: property (toolTip), widget (QFontComboBox, fontComboBox_font)
|
#. i18n: ectx: property (toolTip), widget (QFontComboBox, fontComboBox_font)
|
||||||
#: po/rc.cpp:42 rc.cpp:42
|
#: po/rc.cpp:42 rc.cpp:42
|
||||||
msgid "Set font family"
|
msgid "Set font family"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:316
|
#. i18n: file: configwindow.ui:310
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||||
#: po/rc.cpp:45 rc.cpp:45
|
#: po/rc.cpp:45 rc.cpp:45
|
||||||
msgid "Font size"
|
msgid "Font size"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:348
|
#. i18n: file: configwindow.ui:342
|
||||||
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontSize)
|
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontSize)
|
||||||
#: po/rc.cpp:48 rc.cpp:48
|
#: po/rc.cpp:48 rc.cpp:48
|
||||||
msgid "Set font size"
|
msgid "Set font size"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:377
|
#. i18n: file: configwindow.ui:371
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColor)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontColor)
|
||||||
#: po/rc.cpp:51 rc.cpp:51
|
#: po/rc.cpp:51 rc.cpp:51
|
||||||
msgid "Font color"
|
msgid "Font color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:409
|
#. i18n: file: configwindow.ui:403
|
||||||
#. i18n: ectx: property (toolTip), widget (KColorCombo, kcolorcombo_fontColor)
|
#. i18n: ectx: property (toolTip), widget (KColorCombo, kcolorcombo_fontColor)
|
||||||
#: po/rc.cpp:54 rc.cpp:54
|
#: po/rc.cpp:54 rc.cpp:54
|
||||||
msgid "Set font color"
|
msgid "Set font color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:426
|
#. i18n: file: configwindow.ui:420
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeight)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontWeight)
|
||||||
#: po/rc.cpp:57 rc.cpp:57
|
#: po/rc.cpp:57 rc.cpp:57
|
||||||
msgid "Font weight"
|
msgid "Font weight"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:458
|
#. i18n: file: configwindow.ui:452
|
||||||
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontWeight)
|
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontWeight)
|
||||||
#: po/rc.cpp:60 rc.cpp:60
|
#: po/rc.cpp:60 rc.cpp:60
|
||||||
msgid "Set font weight"
|
msgid "Set font weight"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:490
|
#. i18n: file: configwindow.ui:484
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyle)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontStyle)
|
||||||
#: po/rc.cpp:63 rc.cpp:63
|
#: po/rc.cpp:63 rc.cpp:63
|
||||||
msgid "Font style"
|
msgid "Font style"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:522
|
#. i18n: file: configwindow.ui:516
|
||||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:66 rc.cpp:66
|
#: po/rc.cpp:66 rc.cpp:66
|
||||||
msgid "Set font style"
|
msgid "Set font style"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:526
|
#. i18n: file: configwindow.ui:520
|
||||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:69 rc.cpp:69
|
#: po/rc.cpp:69 rc.cpp:69
|
||||||
msgid "normal"
|
msgid "normal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:531
|
#. i18n: file: configwindow.ui:525
|
||||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:72 rc.cpp:72
|
#: po/rc.cpp:72 rc.cpp:72
|
||||||
msgid "italic"
|
msgid "italic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:562
|
#. i18n: file: configwindow.ui:556
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_activeIcon)
|
#. i18n: ectx: property (text), widget (QLabel, label_activeIcon)
|
||||||
#: po/rc.cpp:75 rc.cpp:75
|
#: po/rc.cpp:75 rc.cpp:75
|
||||||
msgid "Active icon"
|
msgid "Active icon"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:598
|
#. i18n: file: configwindow.ui:589
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon)
|
||||||
#: po/rc.cpp:81 rc.cpp:81
|
#: po/rc.cpp:81 rc.cpp:81
|
||||||
msgid "Inactive icon"
|
msgid "Inactive icon"
|
||||||
|
@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
|
||||||
"POT-Creation-Date: 2014-04-06 12:31+0400\n"
|
"POT-Creation-Date: 2014-04-06 18:45+0400\n"
|
||||||
"PO-Revision-Date: 2014-04-06 12:32+0400\n"
|
"PO-Revision-Date: 2014-04-06 12:32+0400\n"
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||||
@ -18,43 +18,43 @@ msgstr ""
|
|||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||||
"X-Generator: Lokalize 1.5\n"
|
"X-Generator: Lokalize 1.5\n"
|
||||||
|
|
||||||
#: netctl.cpp:160 netctl.cpp:195
|
#: netctl.cpp:171
|
||||||
msgid "Start profile"
|
|
||||||
msgstr "Запустить профиль"
|
|
||||||
|
|
||||||
#: netctl.cpp:166
|
|
||||||
msgid "Stop profile"
|
|
||||||
msgstr "Остановить профиль"
|
|
||||||
|
|
||||||
#: netctl.cpp:170
|
|
||||||
msgid "Restart profile"
|
|
||||||
msgstr "Перезапустить профиль"
|
|
||||||
|
|
||||||
#: netctl.cpp:174
|
|
||||||
msgid "Enable profile"
|
|
||||||
msgstr "Включить профиль"
|
|
||||||
|
|
||||||
#: netctl.cpp:183
|
|
||||||
msgid "Start another profile"
|
msgid "Start another profile"
|
||||||
msgstr "Запустить другой профиль"
|
msgstr "Запустить другой профиль"
|
||||||
|
|
||||||
#: netctl.cpp:185
|
#: netctl.cpp:173
|
||||||
msgid "Stop "
|
msgid "Stop "
|
||||||
msgstr "Остановить "
|
msgstr "Остановить "
|
||||||
|
|
||||||
#: netctl.cpp:187
|
#: netctl.cpp:175
|
||||||
msgid "Restart "
|
msgid "Restart "
|
||||||
msgstr "Перезапустить "
|
msgstr "Перезапустить "
|
||||||
|
|
||||||
#: netctl.cpp:190
|
#: netctl.cpp:178
|
||||||
msgid "Disable "
|
msgid "Disable "
|
||||||
msgstr "Отключить "
|
msgstr "Отключить "
|
||||||
|
|
||||||
#: netctl.cpp:192
|
#: netctl.cpp:180
|
||||||
msgid "Enable "
|
msgid "Enable "
|
||||||
msgstr "Включить "
|
msgstr "Включить "
|
||||||
|
|
||||||
#: netctl.cpp:399
|
#: netctl.cpp:183 netctl.cpp:203
|
||||||
|
msgid "Start profile"
|
||||||
|
msgstr "Запустить профиль"
|
||||||
|
|
||||||
|
#: netctl.cpp:210
|
||||||
|
msgid "Stop profile"
|
||||||
|
msgstr "Остановить профиль"
|
||||||
|
|
||||||
|
#: netctl.cpp:214
|
||||||
|
msgid "Restart profile"
|
||||||
|
msgstr "Перезапустить профиль"
|
||||||
|
|
||||||
|
#: netctl.cpp:218
|
||||||
|
msgid "Enable profile"
|
||||||
|
msgstr "Включить профиль"
|
||||||
|
|
||||||
|
#: netctl.cpp:420
|
||||||
msgid "Netctl plasmoid"
|
msgid "Netctl plasmoid"
|
||||||
msgstr "Netctl plasmoid"
|
msgstr "Netctl plasmoid"
|
||||||
|
|
||||||
@ -78,146 +78,146 @@ msgstr "Путь к GUI"
|
|||||||
|
|
||||||
#. i18n: file: configwindow.ui:128
|
#. i18n: file: configwindow.ui:128
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
||||||
#. i18n: file: configwindow.ui:164
|
#. i18n: file: configwindow.ui:161
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
||||||
#. i18n: file: configwindow.ui:578
|
#. i18n: file: configwindow.ui:572
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
||||||
#. i18n: file: configwindow.ui:614
|
#. i18n: file: configwindow.ui:605
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
||||||
#. i18n: file: configwindow.ui:128
|
#. i18n: file: configwindow.ui:128
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui)
|
||||||
#. i18n: file: configwindow.ui:164
|
#. i18n: file: configwindow.ui:161
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl)
|
||||||
#. i18n: file: configwindow.ui:578
|
#. i18n: file: configwindow.ui:572
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon)
|
||||||
#. i18n: file: configwindow.ui:614
|
#. i18n: file: configwindow.ui:605
|
||||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
|
||||||
#: po/rc.cpp:12 po/rc.cpp:18 po/rc.cpp:78 po/rc.cpp:84 rc.cpp:12 rc.cpp:18
|
#: po/rc.cpp:12 po/rc.cpp:18 po/rc.cpp:78 po/rc.cpp:84 rc.cpp:12 rc.cpp:18
|
||||||
#: rc.cpp:78 rc.cpp:84
|
#: rc.cpp:78 rc.cpp:84
|
||||||
msgid "Browse"
|
msgid "Browse"
|
||||||
msgstr "Обзор"
|
msgstr "Обзор"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:148
|
#. i18n: file: configwindow.ui:145
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_netctl)
|
#. i18n: ectx: property (text), widget (QLabel, label_netctl)
|
||||||
#: po/rc.cpp:15 rc.cpp:15
|
#: po/rc.cpp:15 rc.cpp:15
|
||||||
msgid "Path to netctl"
|
msgid "Path to netctl"
|
||||||
msgstr "Путь к netctl"
|
msgstr "Путь к netctl"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:184
|
#. i18n: file: configwindow.ui:178
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo)
|
||||||
#: po/rc.cpp:21 rc.cpp:21
|
#: po/rc.cpp:21 rc.cpp:21
|
||||||
msgid "Use sudo for netctl"
|
msgid "Use sudo for netctl"
|
||||||
msgstr "Использовать sudo для netctl"
|
msgstr "Использовать sudo для netctl"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:199
|
#. i18n: file: configwindow.ui:193
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showBigInterface)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showBigInterface)
|
||||||
#: po/rc.cpp:24 rc.cpp:24
|
#: po/rc.cpp:24 rc.cpp:24
|
||||||
msgid "Show more detailed interface"
|
msgid "Show more detailed interface"
|
||||||
msgstr "Показать более детальный интерфейс"
|
msgstr "Показать более детальный интерфейс"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:209
|
#. i18n: file: configwindow.ui:203
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showNetDev)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showNetDev)
|
||||||
#: po/rc.cpp:27 rc.cpp:27
|
#: po/rc.cpp:27 rc.cpp:27
|
||||||
msgid "Show network devices"
|
msgid "Show network devices"
|
||||||
msgstr "Показать сетевые устройства"
|
msgstr "Показать сетевые устройства"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:219
|
#. i18n: file: configwindow.ui:213
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showExtIp)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showExtIp)
|
||||||
#: po/rc.cpp:30 rc.cpp:30
|
#: po/rc.cpp:30 rc.cpp:30
|
||||||
msgid "Show external IP"
|
msgid "Show external IP"
|
||||||
msgstr "Показать внешний IP"
|
msgstr "Показать внешний IP"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:229
|
#. i18n: file: configwindow.ui:223
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showIntIp)
|
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showIntIp)
|
||||||
#: po/rc.cpp:33 rc.cpp:33
|
#: po/rc.cpp:33 rc.cpp:33
|
||||||
msgid "Show internal IP"
|
msgid "Show internal IP"
|
||||||
msgstr "Показать внутренний IP"
|
msgstr "Показать внутренний IP"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:253
|
#. i18n: file: configwindow.ui:247
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, tabAppearance)
|
#. i18n: ectx: attribute (title), widget (QWidget, tabAppearance)
|
||||||
#: po/rc.cpp:36 rc.cpp:36
|
#: po/rc.cpp:36 rc.cpp:36
|
||||||
msgid "Appearance"
|
msgid "Appearance"
|
||||||
msgstr "Внешний вид"
|
msgstr "Внешний вид"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:267
|
#. i18n: file: configwindow.ui:261
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||||
#: po/rc.cpp:39 rc.cpp:39
|
#: po/rc.cpp:39 rc.cpp:39
|
||||||
msgid "Font"
|
msgid "Font"
|
||||||
msgstr "Шрифт"
|
msgstr "Шрифт"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:299
|
#. i18n: file: configwindow.ui:293
|
||||||
#. i18n: ectx: property (toolTip), widget (QFontComboBox, fontComboBox_font)
|
#. i18n: ectx: property (toolTip), widget (QFontComboBox, fontComboBox_font)
|
||||||
#: po/rc.cpp:42 rc.cpp:42
|
#: po/rc.cpp:42 rc.cpp:42
|
||||||
msgid "Set font family"
|
msgid "Set font family"
|
||||||
msgstr "Укажите шрифт"
|
msgstr "Укажите шрифт"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:316
|
#. i18n: file: configwindow.ui:310
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||||
#: po/rc.cpp:45 rc.cpp:45
|
#: po/rc.cpp:45 rc.cpp:45
|
||||||
msgid "Font size"
|
msgid "Font size"
|
||||||
msgstr "Размер шрифта"
|
msgstr "Размер шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:348
|
#. i18n: file: configwindow.ui:342
|
||||||
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontSize)
|
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontSize)
|
||||||
#: po/rc.cpp:48 rc.cpp:48
|
#: po/rc.cpp:48 rc.cpp:48
|
||||||
msgid "Set font size"
|
msgid "Set font size"
|
||||||
msgstr "Укажите размер шрифта"
|
msgstr "Укажите размер шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:377
|
#. i18n: file: configwindow.ui:371
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColor)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontColor)
|
||||||
#: po/rc.cpp:51 rc.cpp:51
|
#: po/rc.cpp:51 rc.cpp:51
|
||||||
msgid "Font color"
|
msgid "Font color"
|
||||||
msgstr "Цвет шрифта"
|
msgstr "Цвет шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:409
|
#. i18n: file: configwindow.ui:403
|
||||||
#. i18n: ectx: property (toolTip), widget (KColorCombo, kcolorcombo_fontColor)
|
#. i18n: ectx: property (toolTip), widget (KColorCombo, kcolorcombo_fontColor)
|
||||||
#: po/rc.cpp:54 rc.cpp:54
|
#: po/rc.cpp:54 rc.cpp:54
|
||||||
msgid "Set font color"
|
msgid "Set font color"
|
||||||
msgstr "Укажите цвет шрифта"
|
msgstr "Укажите цвет шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:426
|
#. i18n: file: configwindow.ui:420
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeight)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontWeight)
|
||||||
#: po/rc.cpp:57 rc.cpp:57
|
#: po/rc.cpp:57 rc.cpp:57
|
||||||
msgid "Font weight"
|
msgid "Font weight"
|
||||||
msgstr "Толщина шрифта"
|
msgstr "Толщина шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:458
|
#. i18n: file: configwindow.ui:452
|
||||||
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontWeight)
|
#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontWeight)
|
||||||
#: po/rc.cpp:60 rc.cpp:60
|
#: po/rc.cpp:60 rc.cpp:60
|
||||||
msgid "Set font weight"
|
msgid "Set font weight"
|
||||||
msgstr "Укажите ширину шрифта"
|
msgstr "Укажите ширину шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:490
|
#. i18n: file: configwindow.ui:484
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyle)
|
#. i18n: ectx: property (text), widget (QLabel, label_fontStyle)
|
||||||
#: po/rc.cpp:63 rc.cpp:63
|
#: po/rc.cpp:63 rc.cpp:63
|
||||||
msgid "Font style"
|
msgid "Font style"
|
||||||
msgstr "Стиль шрифта"
|
msgstr "Стиль шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:522
|
#. i18n: file: configwindow.ui:516
|
||||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:66 rc.cpp:66
|
#: po/rc.cpp:66 rc.cpp:66
|
||||||
msgid "Set font style"
|
msgid "Set font style"
|
||||||
msgstr "Укажите стиль шрифта"
|
msgstr "Укажите стиль шрифта"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:526
|
#. i18n: file: configwindow.ui:520
|
||||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:69 rc.cpp:69
|
#: po/rc.cpp:69 rc.cpp:69
|
||||||
msgid "normal"
|
msgid "normal"
|
||||||
msgstr "normal"
|
msgstr "normal"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:531
|
#. i18n: file: configwindow.ui:525
|
||||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle)
|
||||||
#: po/rc.cpp:72 rc.cpp:72
|
#: po/rc.cpp:72 rc.cpp:72
|
||||||
msgid "italic"
|
msgid "italic"
|
||||||
msgstr "italic"
|
msgstr "italic"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:562
|
#. i18n: file: configwindow.ui:556
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_activeIcon)
|
#. i18n: ectx: property (text), widget (QLabel, label_activeIcon)
|
||||||
#: po/rc.cpp:75 rc.cpp:75
|
#: po/rc.cpp:75 rc.cpp:75
|
||||||
msgid "Active icon"
|
msgid "Active icon"
|
||||||
msgstr "Иконка активного подключения"
|
msgstr "Иконка активного подключения"
|
||||||
|
|
||||||
#. i18n: file: configwindow.ui:598
|
#. i18n: file: configwindow.ui:589
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon)
|
#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon)
|
||||||
#: po/rc.cpp:81 rc.cpp:81
|
#: po/rc.cpp:81 rc.cpp:81
|
||||||
msgid "Inactive icon"
|
msgid "Inactive icon"
|
||||||
@ -232,4 +232,3 @@ msgstr "Evgeniy Alekseev"
|
|||||||
msgctxt "EMAIL OF TRANSLATORS"
|
msgctxt "EMAIL OF TRANSLATORS"
|
||||||
msgid "Your emails"
|
msgid "Your emails"
|
||||||
msgstr "esalexeev@gmail.com"
|
msgstr "esalexeev@gmail.com"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user