Browse Source

conversion to the cmake building system

Signed-off-by: gregory guy <g-gregory@gmx.fr>
pull/1/head
Gregory Guy 5 months ago
parent
commit
d4155deb8d
Signed by: gregory guy <g-gregory@gmx.fr> GPG Key ID: 6EFE0EF249A874C0

+ 83
- 0
CMakeLists.txt View File

@@ -0,0 +1,83 @@
1
+############################################
2
+#                                          #
3
+#  Improvements and feedbacks are welcome  #
4
+#                                          #
5
+#  This file is released under GPL >= 3    #
6
+#                                          #
7
+############################################
8
+
9
+
10
+cmake_minimum_required( VERSION 2.8 )
11
+
12
+
13
+#### general package setup
14
+
15
+project( kshutdown )
16
+set( VERSION R14.1.0 )
17
+
18
+
19
+#### include essential cmake modules
20
+
21
+include( FindPkgConfig          )
22
+include( CheckFunctionExists    )
23
+include( CheckIncludeFile       )
24
+include( CheckLibraryExists     )
25
+include( CheckCSourceCompiles   )
26
+include( CheckCXXSourceCompiles )
27
+
28
+
29
+#### include our cmake modules
30
+
31
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
32
+include( TDEMacros )
33
+
34
+
35
+##### setup install paths
36
+
37
+include( TDESetupPaths )
38
+tde_setup_paths( )
39
+
40
+
41
+##### optional stuff
42
+
43
+option( WITH_ALL_OPTIONS "Enable all optional support" OFF                                          )
44
+option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
45
+
46
+
47
+##### user requested modules
48
+
49
+option( BUILD_ALL "Build all" ON                                     )
50
+option( BUILD_EXTRAS "Build extras" ${BUILD_ALL}                     )
51
+option( BUILD_DOC "Build documentation" ${BUILD_ALL}                 )
52
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL}         )
53
+
54
+
55
+##### configure checks
56
+
57
+include( ConfigureChecks.cmake )
58
+
59
+
60
+###### global compiler settings
61
+
62
+add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
63
+
64
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
65
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
66
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
67
+
68
+
69
+##### directories
70
+
71
+add_subdirectory( ${PROJECT_NAME}  )
72
+add_subdirectory( kshutdownlockout )
73
+add_subdirectory( karamba          )
74
+add_subdirectory( sounds           )
75
+add_subdirectory( pics             )
76
+tde_conditional_add_subdirectory( BUILD_EXTRAS extras   )
77
+tde_conditional_add_subdirectory( BUILD_DOC doc         )
78
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) 
79
+
80
+
81
+##### write configure files
82
+
83
+configure_file( config.h.cmake config.h @ONLY )

+ 44
- 0
ConfigureChecks.cmake View File

@@ -0,0 +1,44 @@
1
+###########################################
2
+#                                         #
3
+#  Improvements and feedback are welcome  #
4
+#                                         #
5
+#  This file is released under GPL >= 3   #
6
+#                                         #
7
+###########################################
8
+
9
+
10
+# required stuff
11
+find_package( TQt )
12
+find_package( TDE )
13
+
14
+tde_setup_architecture_flags( )
15
+
16
+include(TestBigEndian)
17
+test_big_endian(WORDS_BIGENDIAN)
18
+
19
+
20
+##### check for gcc visibility support
21
+
22
+if( WITH_GCC_VISIBILITY )
23
+  if( NOT UNIX )
24
+    tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
25
+  endif( NOT UNIX )
26
+  set( __KDE_HAVE_GCC_VISIBILITY 1 )
27
+  set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
28
+  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
29
+endif( WITH_GCC_VISIBILITY )
30
+
31
+
32
+##### gettext
33
+
34
+if( BUILD_TRANSLATIONS )
35
+  include( FindGettext )
36
+  if( GETTEXT_FOUND )
37
+    set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE} 
38
+      CACHE FILEPATH "path to msgfmt executable" )
39
+  endif( GETTEXT_FOUND )
40
+  
41
+  if( NOT MSGFMT_EXECUTABLE )
42
+    tde_message_fatal( "msgfmt is required but was not found on your system." )
43
+  endif( NOT MSGFMT_EXECUTABLE )
44
+endif( BUILD_TRANSLATIONS )

+ 8
- 0
config.h.cmake View File

@@ -0,0 +1,8 @@
1
+#define VERSION "@VERSION@"
2
+
3
+// Defined if you have fvisibility and fvisibility-inlines-hidden support.
4
+#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
5
+
6
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
7
+   significant byte first (like Motorola and SPARC, unlike Intel). */
8
+#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@

+ 1
- 0
doc/CMakeLists.txt View File

@@ -0,0 +1 @@
1
+tde_auto_add_subdirectories( )

+ 1
- 0
doc/de/CMakeLists.txt View File

@@ -0,0 +1 @@
1
+tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG de )

+ 1
- 0
doc/kshutdown/CMakeLists.txt View File

@@ -0,0 +1 @@
1
+tde_create_handbook( DESTINATION ${PROJECT_NAME} )

+ 5
- 0
doc/man/CMakeLists.txt View File

@@ -0,0 +1,5 @@
1
+INSTALL(
2
+    FILES ${PROJECT_NAME}.1
3
+    DESTINATION ${MAN_INSTALL_DIR}/man1
4
+    COMPONENT doc
5
+)

+ 115
- 0
doc/man/kshutdown.1 View File

@@ -0,0 +1,115 @@
1
+.\"                                      Hey, EMACS: -*- nroff -*-
2
+.\" First parameter, NAME, should be all caps
3
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4
+.\" other parameters are allowed: see man(7), man(1)
5
+.TH KSHUTDOWN 1 "avril 14, 2005"
6
+.\" Please adjust this date whenever revising the manpage.
7
+.\"
8
+.\" Some roff macros, for reference:
9
+.\" .nh        disable hyphenation
10
+.\" .hy        enable hyphenation
11
+.\" .ad l      left justify
12
+.\" .ad b      justify to both left and right margins
13
+.\" .nf        disable filling
14
+.\" .fi        enable filling
15
+.\" .br        insert line break
16
+.\" .sp <n>    insert n+1 empty lines
17
+.\" for manpage-specific macros, see man(7)
18
+.SH NAME
19
+kshutdown \- A Shut Down Utility for TDE
20
+.SH SYNOPSIS
21
+.B kshutdown
22
+.RI [ Qt-options ] 
23
+.RI [ TDE-options ] 
24
+.RI [ options ]
25
+.RI time
26
+.SH DESCRIPTION
27
+This manual page was written for the Debian distribution
28
+because the original program does not have a manual page.
29
+.PP
30
+This manual page documents briefly the
31
+.B kshutdown
32
+utility.
33
+.PP
34
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
35
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
36
+.\" respectively.
37
+.SH OPTIONS
38
+A summary of options is included below.
39
+
40
+.TP
41
+Generic options:
42
+.TP
43
+.B   \-\-help
44
+Show help about options
45
+.TP
46
+.B  \-\-help\-qt
47
+Show Qt specific options
48
+.TP
49
+.B  \-\-help\-tde
50
+Show TDE specific options
51
+.TP
52
+.B  \-\-help\-all
53
+Show all options
54
+.TP
55
+.B  \-\-author
56
+Show author information
57
+.TP
58
+.B  \-v, \-\-version
59
+Show version information
60
+.TP
61
+.B  \-\-license
62
+Show license information
63
+.TP
64
+.B  \-\-
65
+End of options
66
+
67
+.TP
68
+Options:
69
+.TP
70
+.B \-s, \-\-shutdown
71
+ Turn off computer
72
+.TP
73
+.B  \-h, \-\-halt
74
+Turn off computer
75
+.TP
76
+.B  \-r, \-\-reboot
77
+Restart computer
78
+.TP
79
+.B  \-k, \-\-lock
80
+Lock session
81
+.TP
82
+.B  \-l, \-\-logout
83
+End current session
84
+.TP
85
+.B  \-w, \-\-wizard
86
+Wizard
87
+.TP
88
+.B  \-\-standard
89
+Show standard logout dialog
90
+.TP
91
+.B  \-c, \-\-cancel
92
+Cancel an active action
93
+.TP
94
+.B  \-\-init
95
+Don't show window at startup
96
+.TP
97
+.B  \-\-test
98
+Enable test mode
99
+.TP
100
+.B  \-\-default
101
+Disable test mode
102
+
103
+.TP
104
+Arguments:
105
+.TP
106
+.B  time
107
+Time; Examples: 01:30 - absolute time (HH:MM); 10 - number of minutes to wait from now
108
+.SH AUTHOR
109
+kshutdown was written by Konrad Twardowski <kdtonline@poczta.onet.pl>.
110
+.PP
111
+This manual page was written by Romain Beauxis <toots@rastageeks.org>,
112
+for the Debian project  Permission is granted to copy, distribute and/or
113
+modify this document under the terms of the GNU General Public
114
+License, Version 2 any later version published by the Free Software Foundation.
115
+		  

+ 8
- 0
extras/CMakeLists.txt View File

@@ -0,0 +1,8 @@
1
+add_subdirectory( multimedia )
2
+add_subdirectory( shutdown )
3
+add_subdirectory( system )
4
+
5
+install(
6
+    FILES hibernate.desktop
7
+    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras
8
+)

+ 6
- 0
extras/multimedia/CMakeLists.txt View File

@@ -0,0 +1,6 @@
1
+file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop )
2
+
3
+install(
4
+    FILES ${_files} .directory
5
+    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia
6
+)

+ 6
- 0
extras/shutdown/CMakeLists.txt View File

@@ -0,0 +1,6 @@
1
+file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop )
2
+
3
+install(
4
+    FILES ${_files} .directory
5
+    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/shutdown
6
+)

+ 6
- 0
extras/system/CMakeLists.txt View File

@@ -0,0 +1,6 @@
1
+file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop )
2
+
3
+install(
4
+    FILES ${_files} .directory
5
+    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/system
6
+)

+ 8
- 0
karamba/CMakeLists.txt View File

@@ -0,0 +1,8 @@
1
+install(
2
+    FILES
3
+        ${PROJECT_NAME}-48x48.png
4
+        ${PROJECT_NAME}-classic-notext.theme
5
+        ${PROJECT_NAME}-classic-text.theme
6
+        
7
+  DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/karamba
8
+)

+ 57
- 0
kshutdown/CMakeLists.txt View File

@@ -0,0 +1,57 @@
1
+include_directories(
2
+  ${CMAKE_BINARY_DIR}
3
+  ${CMAKE_CURRENT_BINARY_DIR}
4
+  ${CMAKE_CURRENT_SOURCE_DIR}
5
+  ${TDE_INCLUDE_DIR}
6
+  ${TQT_INCLUDE_DIRS}
7
+)
8
+
9
+link_directories(
10
+  ${TQT_LIBRARY_DIRS}
11
+  ${TDE_LIB_DIR}
12
+)
13
+
14
+
15
+##### kshutdown (executable)
16
+
17
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
18
+
19
+  SOURCES
20
+        actions.cpp
21
+        appobserver.cpp
22
+        configuration.cpp
23
+        confirmation.cpp
24
+        extras.cpp
25
+        kshutdowniface_skel.cpp
26
+        links.cpp
27
+        mactioneditdialog.cpp
28
+        main.cpp
29
+        miscutils.cpp
30
+        mmainwindow.cpp
31
+        mmessagedialog.cpp
32
+        msettingsdialog.cpp
33
+        mstatstab.cpp
34
+        msystemtray.cpp
35
+        mtip.cpp
36
+        progressbar.cpp
37
+        systemconfig.cpp
38
+  LINK
39
+     tdecore-shared
40
+     tdeui-shared
41
+     tdeio-shared
42
+
43
+  DESTINATION ${BIN_INSTALL_DIR}
44
+)
45
+
46
+
47
+##### other data
48
+
49
+install(
50
+   FILES ${PROJECT_NAME}.upd
51
+   DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
52
+)
53
+
54
+install(
55
+    FILES ${PROJECT_NAME}.desktop
56
+    DESTINATION ${SHARE_INSTALL_PREFIX}/applications
57
+)

+ 3
- 2
kshutdown/actions.cpp View File

@@ -26,8 +26,8 @@
26 26
 #include "msystemtray.h"
27 27
 #include "systemconfig.h"
28 28
 
29
-#include <ntqimage.h>
30
-#include <ntqtimer.h>
29
+#include <tqimage.h>
30
+#include <tqtimer.h>
31 31
 
32 32
 #include <dcopclient.h>
33 33
 #include <kdebug.h>
@@ -453,3 +453,4 @@ void Action::slotShutDown()
453 453
 {
454 454
 	execConfirm(ShutDown);
455 455
 }
456
+#include "actions.moc"

+ 5
- 4
kshutdown/appobserver.cpp View File

@@ -26,10 +26,10 @@
26 26
 #include <errno.h>
27 27
 #include <signal.h>
28 28
 
29
-#include <ntqcombobox.h>
30
-#include <ntqlistbox.h>
31
-#include <ntqprocess.h>
32
-#include <ntqwhatsthis.h>
29
+#include <tqcombobox.h>
30
+#include <tqlistbox.h>
31
+#include <tqprocess.h>
32
+#include <tqwhatsthis.h>
33 33
 
34 34
 #include <kdebug.h>
35 35
 #include <kiconloader.h>
@@ -288,3 +288,4 @@ void AppObserver::slotRefresh()
288 288
 {
289 289
 	refresh();
290 290
 }
291
+#include "appobserver.moc"

+ 1
- 1
kshutdown/appobserver.h View File

@@ -22,7 +22,7 @@
22 22
 
23 23
 #include <sys/types.h>
24 24
 
25
-#include <ntqhbox.h>
25
+#include <tqhbox.h>
26 26
 
27 27
 class TQComboBox;
28 28
 class TQProcess;

+ 2
- 1
kshutdown/extras.cpp View File

@@ -23,7 +23,7 @@
23 23
 #include "miscutils.h"
24 24
 #include "mmainwindow.h"
25 25
 
26
-#include <ntqdir.h>
26
+#include <tqdir.h>
27 27
 
28 28
 #include <kdebug.h>
29 29
 #include <kdesktopfile.h>
@@ -307,3 +307,4 @@ void Extras::slotShowMenu()
307 307
 		buildMenu(_menu, *it);
308 308
 	}
309 309
 }
310
+#include "extras.moc"

+ 2
- 2
kshutdown/extras.h View File

@@ -20,8 +20,8 @@
20 20
 #ifndef __EXTRAS_H__
21 21
 #define __EXTRAS_H__
22 22
 
23
-#include <ntqobject.h>
24
-#include <ntqiconset.h>
23
+#include <tqobject.h>
24
+#include <tqiconset.h>
25 25
 
26 26
 class TDEPopupMenu;
27 27
 class KPushButton;

+ 1
- 1
kshutdown/kshutdowniface_skel.cpp View File

@@ -9,7 +9,7 @@
9 9
 #include "kshutdowniface.h"
10 10
 
11 11
 #include <kdatastream.h>
12
-#include <ntqasciidict.h>
12
+#include <tqasciidict.h>
13 13
 
14 14
 
15 15
 static const int KShutdownIface_fhash = 13;

+ 4
- 3
kshutdown/links.cpp View File

@@ -21,9 +21,9 @@
21 21
 #include "links.h"
22 22
 #include "miscutils.h"
23 23
 
24
-#include <ntqcombobox.h>
25
-#include <ntqfile.h>
26
-#include <ntqlabel.h>
24
+#include <tqcombobox.h>
25
+#include <tqfile.h>
26
+#include <tqlabel.h>
27 27
 
28 28
 #include <tdeapplication.h>
29 29
 #include <kdesktopfile.h>
@@ -208,3 +208,4 @@ void Links::slotAddRemoveLink() {
208 208
 	}
209 209
 	updateAddRemoveButton();
210 210
 }
211
+#include "links.moc"

+ 1
- 1
kshutdown/links.h View File

@@ -20,7 +20,7 @@
20 20
 #ifndef __LINKS_H__
21 21
 #define __LINKS_H__
22 22
 
23
-#include <ntqvbox.h>
23
+#include <tqvbox.h>
24 24
 
25 25
 class KPushButton;
26 26
 class TQComboBox;

+ 9
- 8
kshutdown/mactioneditdialog.cpp View File

@@ -22,14 +22,14 @@
22 22
 #include "miscutils.h"
23 23
 #include "mtip.h"
24 24
 
25
-#include <ntqcheckbox.h>
26
-#include <ntqcombobox.h>
27
-#include <ntqhbox.h>
28
-#include <ntqlabel.h>
29
-#include <ntqlayout.h>
30
-#include <ntqvbox.h>
31
-#include <ntqvgroupbox.h>
32
-#include <ntqwhatsthis.h>
25
+#include <tqcheckbox.h>
26
+#include <tqcombobox.h>
27
+#include <tqhbox.h>
28
+#include <tqlabel.h>
29
+#include <tqlayout.h>
30
+#include <tqvbox.h>
31
+#include <tqvgroupbox.h>
32
+#include <tqwhatsthis.h>
33 33
 
34 34
 #include <klineedit.h>
35 35
 #include <tdelocale.h>
@@ -223,3 +223,4 @@ void MActionEditDialog::slotTestCommandBeforeAction()
223 223
 		i_commandBeforeActionPause->value()
224 224
 	);
225 225
 }
226
+#include "mactioneditdialog.moc"

+ 1
- 1
kshutdown/main.cpp View File

@@ -24,7 +24,7 @@
24 24
 #include "mmainwindow.h"
25 25
 #include "msystemtray.h"
26 26
 
27
-#include <ntqfileinfo.h>
27
+#include <tqfileinfo.h>
28 28
 
29 29
 #include <tdeaboutdata.h>
30 30
 #include <tdecmdlineargs.h>

+ 3
- 3
kshutdown/miscutils.cpp View File

@@ -24,9 +24,9 @@
24 24
 #include "mmainwindow.h"
25 25
 #include "msystemtray.h"
26 26
 
27
-#include <ntqlayout.h>
28
-#include <ntqtooltip.h>
29
-#include <ntqwhatsthis.h>
27
+#include <tqlayout.h>
28
+#include <tqtooltip.h>
29
+#include <tqwhatsthis.h>
30 30
 
31 31
 #include <tdeaction.h>
32 32
 #include <kdebug.h>

+ 1
- 1
kshutdown/miscutils.h View File

@@ -20,7 +20,7 @@
20 20
 #ifndef __MISCUTILS_H__
21 21
 #define __MISCUTILS_H__
22 22
 
23
-#include <ntqdatetime.h>
23
+#include <tqdatetime.h>
24 24
 
25 25
 #include <kprocess.h>
26 26
 

+ 10
- 9
kshutdown/mmainwindow.cpp View File

@@ -30,15 +30,15 @@
30 30
 #include "progressbar.h"
31 31
 #include "systemconfig.h"
32 32
 
33
-#include <ntqdatetimeedit.h>
34
-#include <ntqfile.h>
35
-#include <ntqhbox.h>
36
-#include <ntqlabel.h>
37
-#include <ntqlayout.h>
38
-#include <ntqtimer.h>
39
-#include <ntqtooltip.h>
40
-#include <ntqvgroupbox.h>
41
-#include <ntqwhatsthis.h>
33
+#include <tqdatetimeedit.h>
34
+#include <tqfile.h>
35
+#include <tqhbox.h>
36
+#include <tqlabel.h>
37
+#include <tqlayout.h>
38
+#include <tqtimer.h>
39
+#include <tqtooltip.h>
40
+#include <tqvgroupbox.h>
41
+#include <tqwhatsthis.h>
42 42
 
43 43
 #include <dcopclient.h>
44 44
 #include <tdeaction.h>
@@ -952,3 +952,4 @@ bool MMainWindow::queryExit()
952 952
 
953 953
 	return true; // ok to exit
954 954
 }
955
+#include "mmainwindow.moc"

+ 1
- 1
kshutdown/mmainwindow.h View File

@@ -23,7 +23,7 @@
23 23
 #include "actions.h"
24 24
 #include "kshutdowniface.h"
25 25
 
26
-#include <ntqdatetime.h>
26
+#include <tqdatetime.h>
27 27
 
28 28
 #include <tdemainwindow.h>
29 29
 

+ 7
- 6
kshutdown/mmessagedialog.cpp View File

@@ -21,12 +21,12 @@
21 21
 #include "mmainwindow.h"
22 22
 #include "mmessagedialog.h"
23 23
 
24
-#include <ntqdatetime.h>
25
-#include <ntqhbox.h>
26
-#include <ntqlabel.h>
27
-#include <ntqlayout.h>
28
-#include <ntqlcdnumber.h>
29
-#include <ntqtimer.h>
24
+#include <tqdatetime.h>
25
+#include <tqhbox.h>
26
+#include <tqlabel.h>
27
+#include <tqlayout.h>
28
+#include <tqlcdnumber.h>
29
+#include <tqtimer.h>
30 30
 
31 31
 #include <kdebug.h>
32 32
 #include <kiconloader.h>
@@ -182,3 +182,4 @@ void MMessageDialog::slotCheckTime()
182 182
 void MMessageDialog::slotReject() {
183 183
 	done(Rejected);
184 184
 }
185
+#include "mmessagedialog.moc"

+ 12
- 11
kshutdown/msettingsdialog.cpp View File

@@ -28,17 +28,17 @@
28 28
 #include "mtip.h"
29 29
 #include "systemconfig.h"
30 30
 
31
-#include <ntqcheckbox.h>
32
-#include <ntqfile.h>
33
-#include <ntqhbox.h>
34
-#include <ntqhbuttongroup.h>
35
-#include <ntqheader.h>
36
-#include <ntqlabel.h>
37
-#include <ntqlayout.h>
38
-#include <ntqradiobutton.h>
39
-#include <ntqtooltip.h>
40
-#include <ntqvgroupbox.h>
41
-#include <ntqwhatsthis.h>
31
+#include <tqcheckbox.h>
32
+#include <tqfile.h>
33
+#include <tqhbox.h>
34
+#include <tqhbuttongroup.h>
35
+#include <tqheader.h>
36
+#include <tqlabel.h>
37
+#include <tqlayout.h>
38
+#include <tqradiobutton.h>
39
+#include <tqtooltip.h>
40
+#include <tqvgroupbox.h>
41
+#include <tqwhatsthis.h>
42 42
 
43 43
 #include <tdeconfigdialogmanager.h>
44 44
 #include <kiconloader.h>
@@ -620,3 +620,4 @@ void MSettingsDialog::slotDefault()
620 620
 	}
621 621
 	_configDialogManager->updateWidgets();
622 622
 }
623
+#include "msettingsdialog.moc"

+ 8
- 7
kshutdown/mstatstab.cpp View File

@@ -22,13 +22,13 @@
22 22
 #include "miscutils.h"
23 23
 #include "mstatstab.h"
24 24
 
25
-#include <ntqcheckbox.h>
26
-#include <ntqprocess.h>
27
-#include <ntqregexp.h>
28
-#include <ntqtextedit.h>
29
-#include <ntqvbox.h>
30
-#include <ntqvgroupbox.h>
31
-#include <ntqwhatsthis.h>
25
+#include <tqcheckbox.h>
26
+#include <tqprocess.h>
27
+#include <tqregexp.h>
28
+#include <tqtextedit.h>
29
+#include <tqvbox.h>
30
+#include <tqvgroupbox.h>
31
+#include <tqwhatsthis.h>
32 32
 
33 33
 #include <kiconloader.h>
34 34
 #include <tdelocale.h>
@@ -194,3 +194,4 @@ void MStatsTab::slotRefresh()
194 194
 		b_refresh->setEnabled(true);
195 195
 	}
196 196
 }
197
+#include "mstatstab.moc"

+ 2
- 1
kshutdown/msystemtray.cpp View File

@@ -22,7 +22,7 @@
22 22
 #include "mmainwindow.h"
23 23
 #include "msystemtray.h"
24 24
 
25
-#include <ntqtimer.h>
25
+#include <tqtimer.h>
26 26
 
27 27
 #include <tdeaction.h>
28 28
 #include <kdebug.h>
@@ -210,3 +210,4 @@ void MSystemTray::slotFlashTimeout()
210 210
 	if (_flashCount == 6)
211 211
 		_flashTimer->stop();
212 212
 }
213
+#include "msystemtray.moc"

+ 1
- 1
kshutdown/mtip.cpp View File

@@ -20,7 +20,7 @@
20 20
 #include "miscutils.h"
21 21
 #include "mtip.h"
22 22
 
23
-#include <ntqtooltip.h>
23
+#include <tqtooltip.h>
24 24
 
25 25
 #include <kiconloader.h>
26 26
 

+ 4
- 3
kshutdown/progressbar.cpp View File

@@ -17,9 +17,9 @@
17 17
 	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 18
 */
19 19
 
20
-#include <ntqapplication.h>
21
-#include <ntqdesktopwidget.h>
22
-#include <ntqpainter.h>
20
+#include <tqapplication.h>
21
+#include <tqdesktopwidget.h>
22
+#include <tqpainter.h>
23 23
 
24 24
 #include <tdeapplication.h>
25 25
 #include <kdebug.h>
@@ -151,3 +151,4 @@ void ProgressBar::slotSetBottomPosition() {
151 151
 void ProgressBar::slotSetTopPosition() {
152 152
 	setPosition(TOP);
153 153
 }
154
+#include "progressbar.moc"

+ 1
- 1
kshutdown/progressbar.h View File

@@ -20,7 +20,7 @@
20 20
 #ifndef __PROGRESSBAR_H__
21 21
 #define __PROGRESSBAR_H__
22 22
 
23
-#include <ntqwidget.h>
23
+#include <tqwidget.h>
24 24
 
25 25
 #include "progressbar.h"
26 26
 

+ 3
- 2
kshutdown/systemconfig.cpp View File

@@ -22,8 +22,8 @@
22 22
 #include "miscutils.h"
23 23
 #include "systemconfig.h"
24 24
 
25
-#include <ntqfileinfo.h>
26
-#include <ntqheader.h>
25
+#include <tqfileinfo.h>
26
+#include <tqheader.h>
27 27
 
28 28
 #include <tdeapplication.h>
29 29
 #include <kiconloader.h>
@@ -187,3 +187,4 @@ void SystemConfig::slotExecuted(TQListViewItem *item)
187 187
 		return;
188 188
 	}
189 189
 }
190
+#include "systemconfig.moc"

+ 35
- 0
kshutdownlockout/CMakeLists.txt View File

@@ -0,0 +1,35 @@
1
+include_directories(
2
+  ${CMAKE_BINARY_DIR}
3
+  ${CMAKE_CURRENT_BINARY_DIR}
4
+  ${CMAKE_CURRENT_SOURCE_DIR}
5
+  ${TDE_INCLUDE_DIR}
6
+  ${TQT_INCLUDE_DIRS}
7
+)
8
+
9
+link_directories(
10
+  ${TQT_LIBRARY_DIRS}
11
+  ${TDE_LIB_DIR}
12
+)
13
+
14
+
15
+##### kshutdownlockout_panelapplet (kpart)
16
+
17
+tde_add_kpart( kshutdownlockout_panelapplet AUTOMOC
18
+
19
+  SOURCES
20
+        lockout.cpp
21
+  LINK
22
+     tdecore-shared
23
+     tdeui-shared
24
+     tdeio-shared
25
+
26
+  DESTINATION ${PLUGIN_INSTALL_DIR}
27
+)
28
+
29
+
30
+##### other data
31
+
32
+install(
33
+    FILES kshutdownlockout.desktop
34
+    DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
35
+)

+ 4
- 3
kshutdownlockout/lockout.cpp View File

@@ -33,9 +33,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 33
 
34 34
 #include "lockout.h"
35 35
 
36
-#include <ntqlayout.h>
37
-#include <ntqtoolbutton.h>
38
-#include <ntqtooltip.h>
36
+#include <tqlayout.h>
37
+#include <tqtoolbutton.h>
38
+#include <tqtooltip.h>
39 39
 
40 40
 #include <dcopclient.h>
41 41
 #include <tdeaction.h>
@@ -234,3 +234,4 @@ void Lockout::slotShowKShutDown() {
234 234
 void Lockout::slotShutDown() {
235 235
 	runCommand("kshutdown --init --confirm --shutdown");
236 236
 }
237
+#include "lockout.moc"

+ 1
- 0
pics/CMakeLists.txt View File

@@ -0,0 +1 @@
1
+tde_install_icons()

+ 5
- 0
po/CMakeLists.txt View File

@@ -0,0 +1,5 @@
1
+file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
2
+
3
+if( _srcs )
4
+   tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
5
+endif( )

+ 13
- 0
sounds/CMakeLists.txt View File

@@ -0,0 +1,13 @@
1
+install(
2
+    FILES
3
+        COPYRIGHT
4
+        1m.ogg
5
+        5m.ogg
6
+
7
+    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/sounds
8
+)
9
+
10
+install(
11
+    FILES eventsrc
12
+    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
13
+)

Loading…
Cancel
Save