Skip to content

Commit ff9a281

Browse files
committed
Change project directory structure.
Change project directory structure according to application structure. Change 'nox' configuration option to something more meaningful 'nogui'. Rename 'Icons' folder to 'icons' (similar to other folders). Partially add 'nowebui' option support. Remove QConf project file.
1 parent e4c7f52 commit ff9a281

797 files changed

Lines changed: 840 additions & 828 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.tx/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mode = developer
1111

1212

1313
[qbittorrent.qbittorrentdesktop_master]
14-
source_file = src/Icons/qBittorrent.desktop
14+
source_file = src/icons/qBittorrent.desktop
1515
source_lang = en
1616
type = DESKTOP
1717
minimum_perc = 23

AUTHORS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Contributors:
1717
* Nick Tiskov <daymansmail@gmail.com>
1818

1919
Code from other projects:
20-
* files src/qtsingleapp/* src/lineedit/*
20+
* files src/qtsingleapplication/* src/lineedit/*
2121
copyright: Nokia Corporation
2222
license: LGPL
2323

@@ -34,7 +34,7 @@ Code from other projects:
3434
license: GPLv2/3
3535

3636
Images Authors:
37-
* files: src/Icons/*.png
37+
* files: src/icons/*.png
3838
copyright: Gnome Icon Theme
3939
license: GPLv2
4040
url: http://ftp.acc.umu.se/pub/GNOME/sources/gnome-icon-theme
@@ -44,21 +44,21 @@ Images Authors:
4444
license: LGPL
4545
url: http://www.oxygen-icons.org
4646

47-
* files: src/Icons/flags/*.png
47+
* files: src/icons/flags/*.png
4848
copyright: Mark James <mjames@gmail.com>
4949
license: Public Domain
5050
url: http://www.famfamfam.com
5151

52-
* files: src/Icons/skin/*.png
52+
* files: src/icons/skin/*.png
5353
files: src/menuicons/YYxYY/*.png
5454
copyright: Mateusz Tobola <tobejodok@qbittorrent.org>
5555
license: GPLv2
5656

57-
* file: src/Icons/skin/tabs.gif
57+
* file: src/icons/skin/tabs.gif
5858
copyright: Greg Houston <gregory.houston@gmail.com>
5959
license: MIT
6060

61-
* file: src/Icons/skin/qbittorrent_mono*
61+
* file: src/icons/skin/qbittorrent_mono*
6262
copyright: Daniel Eguren <deguren@gmail.com>
6363
license: LGPL
6464

@@ -77,12 +77,12 @@ Images Authors:
7777
* file: src/search_engine/engines/torrentreactor.png
7878
copyright: Downloaded from torrentreactor.net
7979

80-
* file: src/Icons/oxygen/checked.png
80+
* file: src/icons/oxygen/checked.png
8181
copyright: Victor Buinsky <allok.victor@gmail.com>
8282

8383
Translations authors:
8484
* files: src/lang/*.ts
85-
* file: src/Icons/qBittorrent.desktop
85+
* file: src/icons/qBittorrent.desktop
8686
copyright:
8787
- Arabic: SDERAWI (abz8868@msn.com), sn51234 (nesseyan@gmail.com) and Ibrahim Saed ibraheem_alex(Transifex)
8888
- Armenian: Hrant Ohanyan (hrantohanyan@mail.am)

configure

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@ with_geoip_database_embedded
717717
with_qtsingleapplication
718718
enable_debug
719719
enable_gui
720+
enable_webui
720721
enable_qt_dbus
721722
with_boost
722723
with_boost_libdir
@@ -1367,6 +1368,7 @@ Optional Features:
13671368
--disable-silent-rules verbose build output (undo: "make V=0")
13681369
--enable-debug Enable debug build
13691370
--disable-gui Disable the GUI for headless running. Disables
1371+
--disable-webui Disable the WebUI.
13701372
QtDBus and the GeoIP Database.
13711373
--disable-qt-dbus Disable use of QtDBus (GUI only)
13721374
@@ -4199,6 +4201,14 @@ else
41994201
fi
42004202

42014203

4204+
# Check whether --enable-webui was given.
4205+
if test "${enable_webui+set}" = set; then :
4206+
enableval=$enable_webui;
4207+
else
4208+
enable_webui=yes
4209+
fi
4210+
4211+
42024212
# Check whether --enable-qt-dbus was given.
42034213
if test "${enable_qt_dbus+set}" = set; then :
42044214
enableval=$enable_qt_dbus;
@@ -4370,19 +4380,36 @@ case "x$enable_gui" in #(
43704380
"xyes") :
43714381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43724382
$as_echo "yes" >&6; }
4373-
QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nox" ;; #(
4383+
QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui" ;; #(
43744384
"xno") :
43754385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43764386
$as_echo "no" >&6; }
43774387
enable_qt_dbus=no
43784388
enable_geoip_database=no
4379-
QBT_ADD_CONFIG="$QBT_ADD_CONFIG nox" ;; #(
4389+
QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui" ;; #(
43804390
*) :
43814391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
43824392
$as_echo "$enable_gui" >&6; }
43834393
as_fn_error $? "Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
43844394
esac
43854395

4396+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
4397+
$as_echo_n "checking whether to enable the WebUI... " >&6; }
4398+
case "x$enable_webui" in #(
4399+
"xyes") :
4400+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4401+
$as_echo "yes" >&6; }
4402+
QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui" ;; #(
4403+
"xno") :
4404+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405+
$as_echo "no" >&6; }
4406+
QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui" ;; #(
4407+
*) :
4408+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
4409+
$as_echo "$enable_webui" >&6; }
4410+
as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4411+
esac
4412+
43864413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt5 should be enabled" >&5
43874414
$as_echo_n "checking whether Qt5 should be enabled... " >&6; }
43884415
case "x$with_qt5" in #(

configure.ac

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ AC_ARG_ENABLE(gui,
4242
[],
4343
[enable_gui=yes])
4444

45+
AC_ARG_ENABLE(webui,
46+
[AS_HELP_STRING([--disable-webui],
47+
[Disable the WebUI.])],
48+
[],
49+
[enable_webui=yes])
50+
4551
AC_ARG_ENABLE(qt-dbus,
4652
[AS_HELP_STRING([--disable-qt-dbus],
4753
[Disable use of QtDBus (GUI only)])],
@@ -78,15 +84,26 @@ AC_MSG_CHECKING([whether to enable the GUI])
7884
AS_CASE(["x$enable_gui"],
7985
["xyes"],
8086
[AC_MSG_RESULT([yes])
81-
QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nox"],
87+
QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui"],
8288
["xno"],
8389
[AC_MSG_RESULT([no])
8490
enable_qt_dbus=[no]
8591
enable_geoip_database=[no]
86-
QBT_ADD_CONFIG="$QBT_ADD_CONFIG nox"],
92+
QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui"],
8793
[AC_MSG_RESULT([$enable_gui])
8894
AC_MSG_ERROR([Unknown option "$enable_gui". Use either "yes" or "no".])])
8995

96+
AC_MSG_CHECKING([whether to enable the WebUI])
97+
AS_CASE(["x$enable_webui"],
98+
["xyes"],
99+
[AC_MSG_RESULT([yes])
100+
QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui"],
101+
["xno"],
102+
[AC_MSG_RESULT([no])
103+
QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui"],
104+
[AC_MSG_RESULT([$enable_webui])
105+
AC_MSG_ERROR([Unknown option "$enable_webui". Use either "yes" or "no".])])
106+
90107
AC_MSG_CHECKING([whether Qt5 should be enabled])
91108
AS_CASE(["x$with_qt5"],
92109
["xno"],
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)