Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kdevelop and KStyles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jeropa
n00b
n00b


Joined: 10 May 2002
Posts: 12
Location: Winnipeg

PostPosted: Fri Jun 14, 2002 5:50 pm    Post subject: Kdevelop and KStyles Reply with quote

Hi All,

I was going to start working on developing a KStyle. I used the KDE Desktop Theme template in KDevelop. That seems to go fine, but when I select "Make" from the Build menu, I get a whole bunch of errors.

I guess my question is: Should the newly created project compile right off the bat?

Well, here's my compilation output in case anyone feels adventerous. I poked around in the mentioned files and couldn't see anything wrong.

Code:

cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make all-recursive
make[1]: Entering directory `/home/jeremy/source/smooth'
cd . && \
/bin/sh /home/jeremy/source/smooth/admin/missing --run automake --foreign ./Makefile
cd . && perl admin/am_edit Makefile.in
cd . && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=Makefile /bin/sh ./config.status
fast creating Makefile
config.status: executing default-1 commands
make[1]: Leaving directory `/home/jeremy/source/smooth'
make[1]: Entering directory `/home/jeremy/source/smooth'
Making all in smooth
make[2]: Entering directory `/home/jeremy/source/smooth/smooth'
cd .. && \
/bin/sh /home/jeremy/source/smooth/admin/missing --run automake --gnu smooth/Makefile
cd .. && perl admin/am_edit smooth/Makefile.in
cd .. && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=smooth/Makefile /bin/sh ./config.status
fast creating smooth/Makefile
config.status: executing default-1 commands
make[2]: Leaving directory `/home/jeremy/source/smooth/smooth'
make[2]: Entering directory `/home/jeremy/source/smooth/smooth'
source='smooth.cpp' object='smooth.lo' libtool=yes \
depfile='.deps/smooth.Plo' tmpdepfile='.deps/smooth.TPlo' \
depmode=gcc /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new -c -o smooth.lo `test -f smooth.cpp || echo './'`smooth.cpp
In file included from smooth.cpp:31:
smooth.h:89: syntax error before `('
smooth.h:220: type specifier omitted for parameter
smooth.h:232: type specifier omitted for parameter
smooth.h:260: type specifier omitted for parameter
smooth.h:260: `Icon' was not declared in this scope
smooth.cpp: In method `void Smooth::polish(QApplication *)':
smooth.cpp:54: no matching function for call to `Smooth::polish (QApplication *&)'
/usr/kde/3/include/kstyle.h:262: candidates are: void KStyle::polish(QWidget *)
smooth.cpp: In method `void Smooth::polish(QPalette &)':
smooth.cpp:60: no matching function for call to `Smooth::polish (QPalette &)'
/usr/kde/3/include/kstyle.h:262: candidates are: void KStyle::polish(QWidget *)
smooth.cpp: In method `void Smooth::unPolish(QApplication *)':
smooth.cpp:66: no matching function for call to `Smooth::unPolish (QApplication *&)'
/usr/kde/3/include/kstyle.h:263: candidates are: void KStyle::unPolish(QWidget *)
smooth.cpp: In method `void Smooth::drawButton(QPainter *, int, int, int, int, const QColorGroup &, bool = false, const QBrush * = 0)':
smooth.cpp:94: no method `KStyle::drawButton'
smooth.cpp: In method `class QRect Smooth::buttonRect(int, int, int, int)':
smooth.cpp:100: no method `KStyle::buttonRect'
smooth.cpp:101: warning: control reaches end of non-void function `Smooth::buttonRect(int, int, int, int)'
smooth.cpp: In method `void Smooth::drawBevelButton(QPainter *, int, int, int, int, const QColorGroup &, bool = false, const QBrush * = 0)':
smooth.cpp:116: no method `KStyle::drawBevelButton'
smooth.cpp: In method `void Smooth::drawPushButton(QPushButton *, QPainter *)':
smooth.cpp:122: no method `KStyle::drawPushButton'
smooth.cpp: In method `void Smooth::drawPushButtonLabel(QPushButton *, QPainter *)':
smooth.cpp:128: no method `KStyle::drawPushButtonLabel'
smooth.cpp: In method `void Smooth::drawScrollBarControls(QPainter *, const QScrollBar *, int, unsigned int, unsigned int)':
smooth.cpp:141: no method `KStyle::drawScrollBarControls'
smooth.cpp: At top level:
smooth.cpp:145: syntax error before `::'
smooth.cpp:164: cannot declare member function `Smooth::scrollBarMetrics' within `QStyle'
smooth.cpp:164: syntax error before `{'
smooth.cpp:170: cannot declare member function `Smooth::indicatorSize' within `QStyle'
smooth.cpp:170: syntax error before `{'
smooth.cpp:187: cannot declare member function `Smooth::drawIndicator' within `QStyle'
smooth.cpp:187: syntax error before `{'
smooth.cpp:193: cannot declare member function `Smooth::exclusiveIndicatorSize' within `QStyle'
smooth.cpp:193: syntax error before `{'
smooth.cpp:210: cannot declare member function `Smooth::drawExclusiveIndicator' within `QStyle'
smooth.cpp:210: syntax error before `{'
smooth.cpp:224: cannot declare member function `Smooth::drawIndicatorMask' within `QStyle'
smooth.cpp:224: syntax error before `{'
smooth.cpp:238: cannot declare member function `Smooth::drawExclusiveIndicatorMask' within `QStyle'
smooth.cpp:238: syntax error before `{'
smooth.cpp:256: cannot declare member function `Smooth::drawComboButton' within `QStyle'
smooth.cpp:256: syntax error before `{'
smooth.cpp:262: cannot declare member function `Smooth::comboButtonRect' within `QStyle'
smooth.cpp:262: syntax error before `{'
smooth.cpp:268: cannot declare member function `Smooth::comboButtonFocusRect' within `QStyle'
smooth.cpp:268: syntax error before `{'
smooth.cpp:274: cannot declare member function `Smooth::sliderLength' within `QStyle'
smooth.cpp:274: syntax error before `{'
smooth.cpp:290: cannot declare member function `Smooth::drawSliderGroove' within `QStyle'
smooth.cpp:290: syntax error before `{'
smooth.cpp:308: cannot declare member function `Smooth::drawArrow' within `QStyle'
smooth.cpp:308: syntax error before `{'
smooth.cpp:325: cannot declare member function `Smooth::drawSlider' within `QStyle'
smooth.cpp:325: syntax error before `{'
smooth.cpp:338: type specifier omitted for parameter
smooth.cpp:338: parse error before `,'
smooth.cpp:341: cannot declare member function `Smooth::drawKToolBar' within `QStyle'
smooth.cpp:341: syntax error before `{'
smooth.cpp:354: type specifier omitted for parameter
smooth.cpp:354: parse error before `,'
smooth.cpp:357: cannot declare member function `Smooth::drawKBarHandle' within `QStyle'
smooth.cpp:357: syntax error before `{'
smooth.cpp:373: cannot declare member function `Smooth::drawKMenuBar' within `QStyle'
smooth.cpp:373: syntax error before `{'
smooth.cpp:390: type specifier omitted for parameter
smooth.cpp:390: parse error before `,'
smooth.cpp:396: cannot declare member function `Smooth::drawKToolBarButton' within `QStyle'
smooth.cpp:396: syntax error before `{'
smooth.cpp:430: cannot declare member function `Smooth::drawKMenuItem' within `QStyle'
smooth.cpp:430: syntax error before `{'
smooth.cpp:450: cannot declare member function `Smooth::drawPopupMenuItem' within `QStyle'
smooth.cpp:450: syntax error before `{'
smooth.cpp:465: cannot declare member function `Smooth::drawKProgressBlock' within `QStyle'
smooth.cpp:465: syntax error before `{'
smooth.cpp:478: cannot declare member function `Smooth::drawFocusRect' within `QStyle'
smooth.cpp:478: syntax error before `{'
smooth.cpp:495: cannot declare member function `Smooth::drawPanel' within `QStyle'
smooth.cpp:495: syntax error before `{'
smooth.cpp:511: cannot declare member function `Smooth::drawPopupPanel' within `QStyle'
smooth.cpp:511: syntax error before `{'
smooth.cpp:528: cannot declare member function `Smooth::drawSeparator' within `QStyle'
smooth.cpp:528: syntax error before `{'
smooth.cpp:540: cannot declare member function `Smooth::drawTab' within `QStyle'
smooth.cpp:540: syntax error before `{'
smooth.cpp:552: cannot declare member function `Smooth::drawTabMask' within `QStyle'
smooth.cpp:552: syntax error before `{'
smooth.cpp:567: cannot declare member function `Smooth::drawKickerHandle' within `QStyle'
smooth.cpp:567: syntax error before `{'
smooth.cpp:582: cannot declare member function `Smooth::drawKickerAppletHandle' within `QStyle'
smooth.cpp:582: syntax error before `{'
smooth.cpp:600: cannot declare member function `Smooth::drawKickerTaskButton' within `QStyle'
smooth.cpp:600: syntax error before `{'
smooth.cpp:606: cannot declare member function `Smooth::eventFilter' within `QStyle'
smooth.cpp:606: syntax error before `{'
make[2]: *** [smooth.lo] Error 1
make[2]: Leaving directory `/home/jeremy/source/smooth/smooth'
make[1]: Leaving directory `/home/jeremy/source/smooth'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** failed ***

_________________
- Jeropa
Back to top
View user's profile Send private message
TomorrowPlusX
Apprentice
Apprentice


Joined: 07 May 2002
Posts: 168
Location: Washington DC, USA

PostPosted: Fri Jun 28, 2002 7:46 pm    Post subject: I've had this problem Reply with quote

I wrote the GONX style for KDE 2.x, using the KDevelop template to autogenerate a project. When I moved over to KDE 3, I made a new project from KStyle template in KDevelop -- and noticed they hand't updated it.

Here's my GONX style, btw:
http://www.kde-look.org/content/show.php?content=790

I wanted to port it to KDE3, but never got around to it.

Anyhow, it's easy to make a compileable, installable project -- just keep the automake/conf/etc scripts KDevelop puts together, and update the your headers to reflect the updated QT3.0 QStyle and KDE 3.0 KStyle apis. You also have to edit a .desktop file to refer to the right libs and such. Finally, you also have to ./configure it with a few params such that it will install the style plugin libs into $KDEDIR/lib/???/styles

If you want, I'll send you a tar.gz I put together using the sources for light3. I mucked with it a bit, but had more important work to do (robotics).
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Tue Jun 24, 2003 2:41 pm    Post subject: Reply with quote

What version of kdevelop are you using? If you're using kdevelop-cvs (gideon), then I think the template is Qt 3.x/KDE 3.x based.

The problem with the stable Kdevelop is that the template is KDE2/Qt2 based. Qt 3.x had a completely new Styles API (written by the author of blackbox :)), and as such, Kstyles had to change to. The kdevelop-stable for kde3 was pretty much a blind port of the kdevelop to kde3 to keep things working. Actual development has been pretty much in the unstable (cvs-head) version.

My suggestion is to base your style on an existing style (kde-look.org has a good list of them)

I'm currently porting the web style from qt2 to qt3, and I'm pretty much starting from the Highcolor qstyle.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum