diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt index 327a432..f0350e1 100644 --- a/sources/CMakeLists.txt +++ b/sources/CMakeLists.txt @@ -6,6 +6,9 @@ cmake_policy (SET CMP0011 NEW) cmake_policy (SET CMP0015 NEW) project (netctl-gui) +set (PROJECT_AUTHOR "Evgeniy Alekseev") +set (PROJECT_CONTACT "esalexeev@gmail.com") +set (PROJECT_LICENSE "GPLv3") set (PROJECT_VERSION_MAJOR 1) set (PROJECT_VERSION_MINOR 2) set (PROJECT_VERSION_PATCH 0) diff --git a/sources/gui/CMakeLists.txt b/sources/gui/CMakeLists.txt index dca2880..4b17b55 100644 --- a/sources/gui/CMakeLists.txt +++ b/sources/gui/CMakeLists.txt @@ -15,5 +15,10 @@ set (TARGETS "") set (HEADERS "") add_subdirectory (${SUBPROJECT_SOURCE_DIR}) +# build man +file (GLOB SUBPROJECT_MAN_IN *.1) +file (RELATIVE_PATH SUBPROJECT_MAN ${CMAKE_SOURCE_DIR} ${SUBPROJECT_MAN_IN}) +configure_file (${SUBPROJECT_MAN_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_MAN}) install (FILES ${SUBPROJECT}.desktop DESTINATION share/applications/) +install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_MAN} DESTINATION share/man/man1/) diff --git a/sources/gui/netctl-gui.1 b/sources/gui/netctl-gui.1 new file mode 100644 index 0000000..96f8ed3 --- /dev/null +++ b/sources/gui/netctl-gui.1 @@ -0,0 +1,57 @@ +.TH netctl-gui 1 "@CURRENT_DATE@" "version @PROJECT_VERSION@" "USER COMMANDS" +.SH NAME +netctl-gui is a graphical interface for netctl +.SH SYNOPSIS +.B netctl-gui +[ --about ] [ --netctl-auto ] [ --settings ] + [ -e ESSID | --essid ESSID ] [ -o PROFILE | --open PROFILE ] + [ -s PROFILE | --select PROFILE ] + [ -d | --debug ] [ --default ] [ -t NUM | --tab NUM ] + [ -v | --version ] [ -i | --info ] [ -h | --help] +.SH DESCRIPTION +Graphical user interface for netctl written on C++ using Qt toolkit. Provides shared library for interaction with netctl and Plasmoid and DataEngine for KDE. +.SH OPTIONS +.TP +--about +show about window +.TP +--netctl-auto +show netctl-auto window +.TP +--settings +show settings window +.TP +-e, --essid ESSID +select ESSID ESSID. This option will set tab to 3 automatically +.TP +-o, --open PROFILE +open profile PROFILE. This option will set tab to 2 automatically. +.TP +-s, --select PROFILE +select profile PROFILE. This option will set tab to 1 automatically. +.TP +-d, --debug +print debug information +.TP +--default +start with default settings +.TP +-t, --tab NUM +open a tab with number NUM +.TP +-v, --version +show version and exit +.TP +-i, --info +show build information and exit +.TP +-h, --help +show this help and exit +.SH FILES +.TP +$HOME/.config/netctl-gui.conf +Configuration file +.SH AUTHOR +@PROJECT_AUTHOR@ <\fI@PROJECT_CONTACT@\fR> +.SH LICENSE +This software is licensed under @PROJECT_LICENSE@ diff --git a/sources/gui/src/about.ui b/sources/gui/src/about.ui index 1b82898..f3b640c 100644 --- a/sources/gui/src/about.ui +++ b/sources/gui/src/about.ui @@ -6,8 +6,8 @@ 0 0 - 394 - 294 + 392 + 292 @@ -61,6 +61,9 @@ Qt::AlignCenter + + true + Qt::TextBrowserInteraction diff --git a/sources/gui/src/aboutwindow.cpp b/sources/gui/src/aboutwindow.cpp index 7724598..64aa693 100644 --- a/sources/gui/src/aboutwindow.cpp +++ b/sources/gui/src/aboutwindow.cpp @@ -59,7 +59,7 @@ void AboutWindow::createText() QString("%2
").arg(QString(BUGTRACKER)).arg(QApplication::translate("AboutWindow", "Bugtracker")) + QString("%2
").arg(QString(TRANSLATION)).arg(QApplication::translate("AboutWindow", "Translation issue")) +\ QString("%2").arg(QString(AUR_PACKAGES)).arg(QApplication::translate("AboutWindow", "AUR packages"))); - uiAbout->label_license->setText(QString("© %1 %2
").arg(QString(DATE)).arg(QString(AUTHOR)) + + uiAbout->label_license->setText(QString("© %1 %3
").arg(QString(DATE)).arg(QString(EMAIL)).arg(QString(AUTHOR)) + QApplication::translate("AboutWindow", "This software is licensed under %1").arg(QString(LICENSE)) + QString("
")); } diff --git a/sources/plasmoid/netctl.cpp b/sources/plasmoid/netctl.cpp index 20ba517..2ecd7f7 100644 --- a/sources/plasmoid/netctl.cpp +++ b/sources/plasmoid/netctl.cpp @@ -671,7 +671,7 @@ void Netctl::createConfigurationInterface(KConfigDialog *parent) QString("%2
").arg(QString(BUGTRACKER)).arg(i18n("Bugtracker")) + QString("%2
").arg(QString(TRANSLATION)).arg(i18n("Translation issue")) + QString("%2").arg(QString(AUR_PACKAGES)).arg(i18n("AUR packages"))); - uiAboutConfig.label_license->setText(QString("© %1 %2
").arg(QString(DATE)).arg(QString(AUTHOR)) + + uiAboutConfig.label_license->setText(QString("© %1 %3
").arg(QString(DATE)).arg(QString(EMAIL)).arg(QString(AUTHOR)) + i18n("This software is licensed under %1", QString(LICENSE)) + QString("
")); diff --git a/sources/version.h.in b/sources/version.h.in index cfd3afc..c8e04ef 100644 --- a/sources/version.h.in +++ b/sources/version.h.in @@ -3,8 +3,9 @@ #define NAME "Netctl Graphical Interface" #define VERSION "@PROJECT_VERSION@" -#define AUTHOR "Evgeniy Alekseev" -#define LICENSE "GPLv3" +#define AUTHOR "@PROJECT_AUTHOR@" +#define EMAIL "@PROJECT_CONTACT@" +#define LICENSE "@PROJECT_LICENSE@" #define HOMEPAGE "http://arcanis.name/projects/netctl-gui/" #define REPOSITORY "https://github.com/arcan1s/netctl-gui"