Added cmake build files

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 1 year ago
parent b89fb39eb9
commit 889fb9a029
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -0,0 +1,82 @@
############################################
# #
# Improvements and feedbacks are welcome #
# #
# This file is released under GPL >= 3 #
# #
############################################
cmake_minimum_required( VERSION 3.1 )
#### general package setup
project( kommando )
#### include essential cmake modules
include( FindPkgConfig )
include( CheckFunctionExists )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
#### include our cmake modules
include( TDEMacros )
##### set version number
tde_set_project_version( )
##### setup install paths
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )
##### global compiler settings
add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
##### source directories
add_subdirectory( src )
tde_conditional_add_project_docs( BUILD_DOC )
#tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,26 @@
###########################################
# #
# Improvements and feedback are welcome #
# #
# This file is released under GPL >= 3 #
# #
###########################################
# required stuff
find_package( TQt )
find_package( TDE )
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
##### check for gcc visibility support
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )

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

6
debian/changelog vendored

@ -1,3 +1,9 @@
kommando-trinity (0.5.2) unstable; urgency=low
* Trinity version
-- Michele Calgaro <michele.calgaro@yahoo.it> Sun, 23 Jul 2023 11:50:46 +0900
kommando (0.5.1-2) unstable; urgency=low
* Upload to unstable

@ -0,0 +1,74 @@
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### autostart file #####
#tde_create_translated_desktop(
# SOURCE polkit-agent-tde.desktop
# DESTINATION ${AUTOSTART_INSTALL_DIR} )
##### kommando (shared)
tde_add_library( kommando SHARED AUTOMOC
SOURCES
menulistviewitem.cpp configuration.cpp menu.cpp
commandobutton.cpp roundbutton.cpp kommandoview.cpp
VERSION 1.0.0
LINK tdecore-shared tdeio-shared
DESTINATION ${LIB_INSTALL_DIR}
)
##### kommandod (kded module)
tde_add_kpart( kded_kommandod AUTOMOC
SOURCES kommandod.cpp kommandod.skel kommando.cpp
LINK tdeinit_kded-shared Xmu kommando-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kcm_kommando (kpart)
tde_add_kpart( kcm_kommando MODULE AUTOMOC
SOURCES configdialogimpl.cpp configdialog.ui kcmkommando.cpp servicemenu.cpp
LINK
tdeinit_kded-shared tdecore-shared tdeui-shared Xmu kommando-shared
tdeio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data ################################
#tde_create_translated_desktop(
# SOURCE mediamanager.desktop
# DESTINATION ${SERVICES_INSTALL_DIR}/kded
# PO_DIR tdeioslave-desktops
#)
#
#tde_create_translated_desktop(
# SOURCE mediabackend.desktop
# DESTINATION ${AUTOSTART_INSTALL_DIR}
# PO_DIR tdeioslave-desktops
#)
install(
FILES kommandod.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kded
)
install(
FILES kommando.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)

@ -25,7 +25,7 @@
class CommandoButton : public RoundButton
{
Q_OBJECT
TQ_OBJECT
public:
CommandoButton(TQWidget* parent,unsigned short rad= 32);
@ -40,7 +40,7 @@ class CommandoButton : public RoundButton
class SubmenuButton : public RoundButton
{
Q_OBJECT
TQ_OBJECT
public:
SubmenuButton(TQWidget* parent, unsigned short rad= 32);
SubmenuButton(TQWidget* parent, Menu* submenu, unsigned short rad= 32);

@ -30,14 +30,14 @@
#include <tdeapplication.h>
#include <dcopclient.h>
#include <ntqslider.h>
#include <ntqcombobox.h>
#include <ntqregexp.h>
#include <ntqspinbox.h>
#include <ntqlineedit.h>
#include <ntqmessagebox.h>
#include <ntqcheckbox.h>
#include <ntqwidgetstack.h>
#include <tqslider.h>
#include <tqcombobox.h>
#include <tqregexp.h>
#include <tqspinbox.h>
#include <tqlineedit.h>
#include <tqmessagebox.h>
#include <tqcheckbox.h>
#include <tqwidgetstack.h>
#include "menulistviewitem.h"
#include "servicemenu.h"

@ -27,7 +27,7 @@
#include "configdialog.h"
#include <ntqptrlist.h>
#include <tqptrlist.h>
#include "kommandoview.h"
@ -43,7 +43,7 @@ class TDEShortcut;
class ConfigDialogImpl : public ConfigDialog
{
Q_OBJECT
TQ_OBJECT
public:
ConfigDialogImpl(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0);

@ -19,10 +19,10 @@
***************************************************************************/
#include "configuration.h"
#include <ntqfile.h>
#include <ntqwidgetstack.h>
#include <ntqobjectlist.h>
#include <ntqdir.h>
#include <tqfile.h>
#include <tqwidgetstack.h>
#include <tqobjectlist.h>
#include <tqdir.h>
#include <kstandarddirs.h>
#include <kshell.h>

@ -20,7 +20,7 @@
#ifndef CONFIG_H
#define CONFIG_H
#include <ntqdom.h>
#include <tqdom.h>
#include <menulistviewitem.h>
#include "kommando.h"
@ -29,7 +29,7 @@
class TQWidgetStack;
class Config{
class KDE_EXPORT Config{
public:
static Config& getSingleton(){
static Config instance;

@ -19,7 +19,7 @@
***************************************************************************/
#include <ntqlayout.h>
#include <tqlayout.h>
#include <tdelocale.h>
#include <tdeglobal.h>
@ -36,10 +36,10 @@ static const char description[] =
static const char version[] = "0.5.2";
typedef KGenericFactory<KCMKommando, TQWidget> kommandoFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kommando, kommandoFactory("kcmkommando"))
K_EXPORT_COMPONENT_FACTORY( kcm_kommando, kommandoFactory("kommando"))
KCMKommando::KCMKommando(TQWidget *parent, const char *name, const TQStringList&)
: TDECModule(parent, name), about(0), configDialog(0)
: TDECModule(kommandoFactory::instance(), parent, name), about(0), configDialog(0)
{
about = new TDEAboutData("kommando", I18N_NOOP("Kommando"), version, description,
TDEAboutData::License_GPL, "(C) 2005 Daniel Stöckel", 0, 0, "the_docter@gmx.net");

@ -29,7 +29,7 @@ class TDEAboutData;
class KCMKommando: public TDECModule
{
Q_OBJECT
TQ_OBJECT
public:
KCMKommando( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() );

@ -1,14 +1,17 @@
[Desktop Entry]
Encoding=UTF-8
Name=Kommando
Exec=tdecmshell kommando
Icon=kommando
Type=Application
Categories=Qt;TDE;X-TDE-settings-desktop;
Keywords=Kommando;wheel;menu
X-TDE-ModuleType=Library
Encoding=UTF-8
X-TDE-Library=kommando
X-TDE-ParentApp=kcontrol
Comment=A WheelMenu for KDE
Comment[de]=Ein Kreismenü für KDE
Name=Kommando
Comment=A WheelMenu for TDE
Comment[de]=Ein Kreismenü für TDE
Comment[it]=Un menu circolare per TDE
Categories=Qt;TDE;X-TDE-settings-desktop;
Keywords=Kommando;wheel;menu

@ -22,8 +22,8 @@
#ifndef _KOMMANDO_H_
#define _KOMMANDO_H_
#include <ntqwidget.h>
#include <ntqptrlist.h>
#include <tqwidget.h>
#include <tqptrlist.h>
#include <kpixmap.h>
@ -31,7 +31,7 @@
class Kommando : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
Kommando();

@ -18,10 +18,10 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <ntqmessagebox.h>
#include <ntqdir.h>
#include <tqmessagebox.h>
#include <tqdir.h>
#include <tdelocale.h>
#include <ntqmessagebox.h>
#include <tqmessagebox.h>
#include <kdebug.h>
#include "kommandod.h"

@ -29,7 +29,7 @@
class KommandoDaemon : public KDEDModule
{
Q_OBJECT
TQ_OBJECT
K_DCOP
public:

@ -20,12 +20,13 @@
#ifndef KOMMANDOVIEW_H
#define KOMMANDOVIEW_H
#include <ntqlistview.h>
#include <tqlistview.h>
#include <kdemacros.h>
/**
@author Daniel Stöckel <the_docter@gmx.net>
*/
class KommandoView : public TQListView
class KDE_EXPORT KommandoView : public TQListView
{
public:
KommandoView(TQWidget* parent, const TQString& name);
@ -37,7 +38,7 @@ class KommandoView : public TQListView
TQString m_AppName;
};
class KommandoViewList : public TQPtrList<KommandoView>
class KDE_EXPORT KommandoViewList : public TQPtrList<KommandoView>
{
public:
KommandoViewList(bool autoDelete = false);

@ -20,8 +20,8 @@
#ifndef MENU_H
#define MENU_H
#include <ntqbuttongroup.h>
#include <ntqptrlist.h>
#include <tqbuttongroup.h>
#include <tqptrlist.h>
#include "roundbutton.h"
@ -31,7 +31,7 @@ class RoundButton;
class Menu : public TQButtonGroup
{
Q_OBJECT
TQ_OBJECT
public:
Menu(Menu* parentMenu=NULL, const TQString& appName="");
virtual ~Menu();

@ -20,9 +20,10 @@
#ifndef MENULISTVIEWITEM_H
#define MENULISTVIEWITEM_H
#include <ntqlistview.h>
#include <tqlistview.h>
#include <kdemacros.h>
class MenuListViewItem : public TQListViewItem
class KDE_EXPORT MenuListViewItem : public TQListViewItem
{
public:
enum ItemType{Menu,Button};

@ -22,7 +22,7 @@
#include <kiconloader.h>
#include <kpixmapeffect.h>
#include <ntqbitmap.h>
#include <tqbitmap.h>
#include "kommando.h"

@ -20,17 +20,17 @@
#ifndef ROUNDBUTTON_H
#define ROUNDBUTTON_H
#include <ntqbutton.h>
#include <ntqpainter.h>
#include <tqbutton.h>
#include <tqpainter.h>
#include <kiconeffect.h>
#include <kpixmap.h>
#include <cassert>
class Menu;
class RoundButton : public TQButton //well, there were round buttons in the begining at least *g*
class KDE_EXPORT RoundButton : public TQButton //well, there were round buttons in the begining at least *g*
{
Q_OBJECT
TQ_OBJECT
public:
enum Type {Round, Commando, Submenu};
RoundButton( TQWidget* parent=0, unsigned short rad= 32, const char* name= 0, WFlags f = 0);

@ -21,7 +21,7 @@
#include <tdeglobal.h>
#include <tdelocale.h>
#include <ntqimage.h>
#include <tqimage.h>
#include <kiconloader.h>
#include <kservicegroup.h>
#include <tdesycoca.h>

@ -32,7 +32,7 @@ class KServiceGroup;
*/
class ServiceMenu : public TDEPopupMenu
{
Q_OBJECT
TQ_OBJECT
public:
ServiceMenu(TQObject *receiver, const char *slotActivatedItem,
const char *slotActivatedGroup, TQWidget *parent = 0, const char *name = 0);

Loading…
Cancel
Save