Add Asteroid widget theme to kdelibs

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1244309 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent f0b1722fbf
commit 102d191fa7

@ -10,6 +10,7 @@
################################################# #################################################
add_subdirectory( plastik ) add_subdirectory( plastik )
add_subdirectory( asteroid )
add_subdirectory( highcolor ) add_subdirectory( highcolor )
add_subdirectory( highcontrast ) add_subdirectory( highcontrast )
add_subdirectory( themes ) add_subdirectory( themes )

@ -1,4 +1,4 @@
SUBDIRS = plastik highcolor highcontrast themes light kthemestyle riscos utils keramik SUBDIRS = asteroid plastik highcolor highcontrast themes light kthemestyle riscos utils keramik
#kstyles should not be included in the apidocs #kstyles should not be included in the apidocs
#include $(top_srcdir)/admin/Doxyfile.am #include $(top_srcdir)/admin/Doxyfile.am

@ -0,0 +1,46 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_definitions(
-DQT_PLUGIN
)
include_directories(
${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/kdecore
${CMAKE_SOURCE_DIR}/kdefx
${CMAKE_SOURCE_DIR}/kdecore
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES asteroid.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes )
##### asteroid ###################################
set( target asteroid )
set( ${target}_SRCS
asteroid.cpp
)
tde_add_kpart( ${target} AUTOMOC
SOURCES ${${target}_SRCS}
LINK kdefx-shared
DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles
)

@ -0,0 +1,18 @@
# Yaaay poorly-documented hackish magical software!
# (re: autoconf and automake and friends,
# not my own software, of course) -clee
AM_CPPFLAGS = -DQT_PLUGIN
METASOURCES = AUTO
INCLUDES = $(all_includes)
noinst_HEADERS = asteroid.h
kde_style_LTLIBRARIES = asteroid.la
asteroid_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
asteroid_la_LIBADD = -lkdefx
asteroid_la_SOURCES = asteroid.cpp
themercdir = $(kde_datadir)/kstyle/themes
themerc_DATA = asteroid.themerc

File diff suppressed because it is too large Load Diff

@ -0,0 +1,111 @@
/*
* Copyright 2003, Chris Lee <clee@kde.org>
*
* See LICENSE for details about copyright.
*/
#ifndef __ASTEROID_H
#define __ASTEROID_H
#include <kstyle.h>
class AsteroidStyle : public KStyle
{
Q_OBJECT
TQ_OBJECT
public:
AsteroidStyle();
virtual ~AsteroidStyle();
void polish(TQWidget *);
void unPolish(TQWidget *);
void renderSliderHandle(TQPainter *p,
const TQRect &r,
const TQColorGroup &g,
const bool mouseOver,
const bool horizontal,
const bool enabled) const;
void renderMenuBlendPixmap(KPixmap &,
const TQColorGroup &,
const TQPopupMenu *) const;
void drawKStylePrimitive(KStylePrimitive,
TQPainter *,
const TQWidget *,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
const TQStyleOption & = TQStyleOption::Default) const;
void tqdrawPrimitive(TQ_PrimitiveElement,
TQPainter *,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
const TQStyleOption & = TQStyleOption::Default) const;
void tqdrawControl(TQ_ControlElement,
TQPainter *,
const TQWidget *,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
const TQStyleOption & = TQStyleOption::Default) const;
void tqdrawControlMask(TQ_ControlElement,
TQPainter *,
const TQWidget *,
const TQRect &,
const TQStyleOption &) const;
void tqdrawComplexControl(TQ_ComplexControl,
TQPainter *,
const TQWidget *,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
SCFlags controls = SC_All,
SCFlags active = SC_None,
const TQStyleOption & = TQStyleOption::Default) const;
void tqdrawComplexControlMask(TQ_ComplexControl,
TQPainter *,
const TQWidget *,
const TQRect &r,
const TQStyleOption & = TQStyleOption::Default) const;
int tqpixelMetric(PixelMetric, const TQWidget * = 0) const;
int kPixelMetric( KStylePixelMetric kpm, const TQWidget* /* widget */) const;
TQRect subRect(SubRect, const TQWidget *) const;
TQRect querySubControlMetrics(TQ_ComplexControl,
const TQWidget *,
SubControl,
const TQStyleOption & = TQStyleOption::Default) const;
TQSize sizeFromContents(ContentsType,
const TQWidget *,
const TQSize &,
const TQStyleOption &) const;
protected:
bool eventFilter(TQObject *, TQEvent *);
protected slots:
void paletteChanged();
private:
AsteroidStyle(const AsteroidStyle &);
AsteroidStyle &operator = (const AsteroidStyle &);
/* Settings not needed yet. */
// TQSettings *settings;
bool backwards;
};
#endif /* __ASTEROID_H */

@ -0,0 +1,8 @@
[Misc]
Name=Asteroid style
Name[en]=Asteroid style
Comment=Windows 2000 (codename: Asteroid) appearance
Comment[en]=Windows 2000 (codename: Asteroid) appearance
[KDE]
WidgetStyle=Asteroid
Loading…
Cancel
Save