mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 23:47:21 +00:00
added man page
This commit is contained in:
parent
ea522b3864
commit
39b8ff834f
@ -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)
|
||||
|
@ -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/)
|
||||
|
57
sources/gui/netctl-gui.1
Normal file
57
sources/gui/netctl-gui.1
Normal file
@ -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@
|
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>394</width>
|
||||
<height>294</height>
|
||||
<width>392</width>
|
||||
<height>292</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
@ -61,6 +61,9 @@
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
|
@ -59,7 +59,7 @@ void AboutWindow::createText()
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(BUGTRACKER)).arg(QApplication::translate("AboutWindow", "Bugtracker")) +
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(TRANSLATION)).arg(QApplication::translate("AboutWindow", "Translation issue")) +\
|
||||
QString("<a href=\"%1\">%2</a>").arg(QString(AUR_PACKAGES)).arg(QApplication::translate("AboutWindow", "AUR packages")));
|
||||
uiAbout->label_license->setText(QString("<small>© %1 %2<br>").arg(QString(DATE)).arg(QString(AUTHOR)) +
|
||||
uiAbout->label_license->setText(QString("<small>© %1 <a href=\"mailto:%2\">%3</a><br>").arg(QString(DATE)).arg(QString(EMAIL)).arg(QString(AUTHOR)) +
|
||||
QApplication::translate("AboutWindow", "This software is licensed under %1").arg(QString(LICENSE)) +
|
||||
QString("</small>"));
|
||||
}
|
||||
|
@ -671,7 +671,7 @@ void Netctl::createConfigurationInterface(KConfigDialog *parent)
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(BUGTRACKER)).arg(i18n("Bugtracker")) +
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(TRANSLATION)).arg(i18n("Translation issue")) +
|
||||
QString("<a href=\"%1\">%2</a>").arg(QString(AUR_PACKAGES)).arg(i18n("AUR packages")));
|
||||
uiAboutConfig.label_license->setText(QString("<small>© %1 %2<br>").arg(QString(DATE)).arg(QString(AUTHOR)) +
|
||||
uiAboutConfig.label_license->setText(QString("<small>© %1 <a href=\"mailto:%2\">%3</a><br>").arg(QString(DATE)).arg(QString(EMAIL)).arg(QString(AUTHOR)) +
|
||||
i18n("This software is licensed under %1", QString(LICENSE)) +
|
||||
QString("</small>"));
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user