estilo KDE
This commit is contained in:
parent
e79d5fa4dc
commit
bc9b7983d6
|
@ -101,6 +101,10 @@ SOURCE=.\ideqtwindow.cpp
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\kdestyle.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -113,6 +117,10 @@ SOURCE=.\moc_ideqtwindow.cpp
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\moc_kdestyle.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\moc_nuevo_propiedades.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -207,6 +215,39 @@ InputName=ideqtwindow
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\kdestyle.h
|
||||
|
||||
!IF "$(CFG)" == "ideQT - Win32 Release"
|
||||
|
||||
# PROP Ignore_Default_Tool 1
|
||||
# Begin Custom Build - Moc'ing $(InputName).h ...
|
||||
InputDir=.
|
||||
InputPath=.\kdestyle.h
|
||||
InputName=kdestyle
|
||||
|
||||
"$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
%qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "ideQT - Win32 Debug"
|
||||
|
||||
# PROP Ignore_Default_Tool 1
|
||||
# Begin Custom Build - Moc'ing $(InputName).h ...
|
||||
InputDir=.
|
||||
InputPath=.\kdestyle.h
|
||||
InputName=kdestyle
|
||||
|
||||
"$(InputDir)\moc_$(InputName).cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
%qtdir%\bin\moc.exe $(InputDir)\$(InputName).h -o $(InputDir)\moc_$(InputName).cpp
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -345,9 +386,5 @@ SOURCE=.\kwrite\kwdoc.h
|
|||
SOURCE=.\kwrite\kwview.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\readme.txt
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
|
|
Binary file not shown.
|
@ -6,40 +6,22 @@
|
|||
--------------------Configuration: ideQT - Win32 Debug--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP95.bat" with contents
|
||||
[
|
||||
@echo off
|
||||
%qtdir%\bin\moc.exe .\nuevo_propiedades.h -o .\moc_nuevo_propiedades.cpp
|
||||
]
|
||||
Creating command line "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP95.bat"
|
||||
Creating command line "rc.exe /l 0xc0a /fo"Debug/res.res" /d "_DEBUG" "D:\ediv\ideQT\res.rc""
|
||||
Moc'ing nuevo_propiedades.h ...
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP96.tmp" with contents
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP17C.tmp" with contents
|
||||
[
|
||||
/nologo /MD /W3 /Gm /GX /ZI /Od /I "d:\Qt\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /FR"Debug/" /Fp"Debug/ideQT.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
|
||||
"D:\ediv\ideQT\about.cpp"
|
||||
"D:\ediv\ideQT\ideqtwindow.cpp"
|
||||
"D:\ediv\ideQT\main.cpp"
|
||||
"D:\ediv\ideQT\moc_about.cpp"
|
||||
"D:\ediv\ideQT\moc_ideqtwindow.cpp"
|
||||
"D:\ediv\ideQT\moc_nuevo_propiedades.cpp"
|
||||
"D:\ediv\ideQT\moc_nuevoimpl.cpp"
|
||||
"D:\ediv\ideQT\moc_proyecto.cpp"
|
||||
"D:\ediv\ideQT\nuevo_propiedades.cpp"
|
||||
"D:\ediv\ideQT\nuevoimpl.cpp"
|
||||
"D:\ediv\ideQT\proyecto.cpp"
|
||||
"D:\ediv\ideQT\kwrite\highlight.cpp"
|
||||
"D:\ediv\ideQT\kwrite\kwdoc.cpp"
|
||||
"D:\ediv\ideQT\kdestyle.cpp"
|
||||
]
|
||||
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP96.tmp"
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP97.tmp" with contents
|
||||
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP17C.tmp"
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP17D.tmp" with contents
|
||||
[
|
||||
kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib wsock32.lib d:\Qt\lib\qt-mt230nc.lib d:\Qt\lib\qtmain.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/edivide.pdb" /debug /machine:I386 /out:"Debug/edivide.exe" /pdbtype:sept
|
||||
.\Debug\about.obj
|
||||
.\Debug\ideqtwindow.obj
|
||||
.\Debug\kdestyle.obj
|
||||
.\Debug\main.obj
|
||||
.\Debug\moc_about.obj
|
||||
.\Debug\moc_ideqtwindow.obj
|
||||
.\Debug\moc_kdestyle.obj
|
||||
.\Debug\moc_nuevo_propiedades.obj
|
||||
.\Debug\moc_nuevoimpl.obj
|
||||
.\Debug\moc_proyecto.obj
|
||||
|
@ -50,32 +32,21 @@ kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.li
|
|||
.\Debug\kwdoc.obj
|
||||
.\Debug\res.res
|
||||
]
|
||||
Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP97.tmp"
|
||||
Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP17D.tmp"
|
||||
<h3>Output Window</h3>
|
||||
Compiling resources...
|
||||
Compiling...
|
||||
about.cpp
|
||||
ideqtwindow.cpp
|
||||
main.cpp
|
||||
moc_about.cpp
|
||||
moc_ideqtwindow.cpp
|
||||
moc_nuevo_propiedades.cpp
|
||||
moc_nuevoimpl.cpp
|
||||
moc_proyecto.cpp
|
||||
nuevo_propiedades.cpp
|
||||
nuevoimpl.cpp
|
||||
proyecto.cpp
|
||||
highlight.cpp
|
||||
kwdoc.cpp
|
||||
kdestyle.cpp
|
||||
Linking...
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP99.tmp" with contents
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP17E.tmp" with contents
|
||||
[
|
||||
/nologo /o"Debug/ideQT.bsc"
|
||||
.\Debug\about.sbr
|
||||
.\Debug\ideqtwindow.sbr
|
||||
.\Debug\kdestyle.sbr
|
||||
.\Debug\main.sbr
|
||||
.\Debug\moc_about.sbr
|
||||
.\Debug\moc_ideqtwindow.sbr
|
||||
.\Debug\moc_kdestyle.sbr
|
||||
.\Debug\moc_nuevo_propiedades.sbr
|
||||
.\Debug\moc_nuevoimpl.sbr
|
||||
.\Debug\moc_proyecto.sbr
|
||||
|
@ -84,7 +55,7 @@ Creating temporary file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP99.tmp" with cont
|
|||
.\Debug\proyecto.sbr
|
||||
.\Debug\highlight.sbr
|
||||
.\Debug\kwdoc.sbr]
|
||||
Creating command line "bscmake.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP99.tmp"
|
||||
Creating command line "bscmake.exe @C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\RSP17E.tmp"
|
||||
Creating browse info file...
|
||||
<h3>Output Window</h3>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 7.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gif2h", "gif2h\gif2h.vcproj", "{29668928-86D2-4EF1-823D-64BC139B3F24}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gif2h", "gif2h\gif2h.vcproj", "{3B5DEF22-6D9F-4A9D-8E22-891FC9735431}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ideQT", "ideQT.vcproj", "{79BBCF95-8FCC-4490-846B-E39B69E2E9BD}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ideQT", "ideQT.vcproj", "{6B5067D3-8030-4746-9855-2A5F70C1F1E7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
|
@ -11,14 +11,14 @@ Global
|
|||
GlobalSection(ProjectDependencies) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{29668928-86D2-4EF1-823D-64BC139B3F24}.Debug.ActiveCfg = Debug|Win32
|
||||
{29668928-86D2-4EF1-823D-64BC139B3F24}.Debug.Build.0 = Debug|Win32
|
||||
{29668928-86D2-4EF1-823D-64BC139B3F24}.Release.ActiveCfg = Release|Win32
|
||||
{29668928-86D2-4EF1-823D-64BC139B3F24}.Release.Build.0 = Release|Win32
|
||||
{79BBCF95-8FCC-4490-846B-E39B69E2E9BD}.Debug.ActiveCfg = Debug|Win32
|
||||
{79BBCF95-8FCC-4490-846B-E39B69E2E9BD}.Debug.Build.0 = Debug|Win32
|
||||
{79BBCF95-8FCC-4490-846B-E39B69E2E9BD}.Release.ActiveCfg = Release|Win32
|
||||
{79BBCF95-8FCC-4490-846B-E39B69E2E9BD}.Release.Build.0 = Release|Win32
|
||||
{3B5DEF22-6D9F-4A9D-8E22-891FC9735431}.Debug.ActiveCfg = Debug|Win32
|
||||
{3B5DEF22-6D9F-4A9D-8E22-891FC9735431}.Debug.Build.0 = Debug|Win32
|
||||
{3B5DEF22-6D9F-4A9D-8E22-891FC9735431}.Release.ActiveCfg = Release|Win32
|
||||
{3B5DEF22-6D9F-4A9D-8E22-891FC9735431}.Release.Build.0 = Release|Win32
|
||||
{6B5067D3-8030-4746-9855-2A5F70C1F1E7}.Debug.ActiveCfg = Debug|Win32
|
||||
{6B5067D3-8030-4746-9855-2A5F70C1F1E7}.Debug.Build.0 = Debug|Win32
|
||||
{6B5067D3-8030-4746-9855-2A5F70C1F1E7}.Release.ActiveCfg = Release|Win32
|
||||
{6B5067D3-8030-4746-9855-2A5F70C1F1E7}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
|
|
Binary file not shown.
|
@ -22,13 +22,14 @@
|
|||
Optimization="0"
|
||||
AdditionalIncludeDirectories="$(QTDIR)\include"
|
||||
PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS,QT_DLL,QT_THREAD_SUPPORT"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Debug/ideQT.pch"
|
||||
AssemblerListingLocation=".\Debug/"
|
||||
ObjectFile=".\Debug/"
|
||||
ProgramDataBaseFileName=".\Debug/"
|
||||
BrowseInformation="1"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="4"
|
||||
|
@ -128,19 +129,70 @@
|
|||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;for;f90">
|
||||
<File
|
||||
RelativePath=".\about.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ideqtwindow.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\kdestyle.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\main.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\moc_about.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\moc_ideqtwindow.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\moc_kdestyle.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\moc_nuevo_propiedades.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\moc_nuevoimpl.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\moc_proyecto.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\nuevo_propiedades.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\nuevoimpl.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\proyecto.cpp">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;fi;fd">
|
||||
<File
|
||||
RelativePath=".\about.h">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ideqtwindow.h">
|
||||
<FileConfiguration
|
||||
|
@ -158,6 +210,93 @@
|
|||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\kdestyle.h">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\main.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\nuevo_propiedades.h">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\nuevoimpl.h">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\proyecto.h">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
Description="Moc'ing $(InputName).h ..."
|
||||
CommandLine="%qtdir%\bin\moc.exe $(InputDir)$(InputName).h -o $(InputDir)moc_$(InputName).cpp
|
||||
"
|
||||
Outputs="$(InputDir)moc_$(InputName).cpp"/>
|
||||
</FileConfiguration>
|
||||
|
@ -173,9 +312,25 @@
|
|||
RelativePath=".\res.rc">
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\readme.txt">
|
||||
</File>
|
||||
<Filter
|
||||
Name="kwrite"
|
||||
Filter="">
|
||||
<File
|
||||
RelativePath=".\kwrite\highlight.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\kwrite\highlight.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\kwrite\kwdoc.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\kwrite\kwdoc.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\kwrite\kwview.h">
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
#include <qtoolbutton.h>
|
||||
#include <qpopupmenu.h>
|
||||
#include <qaction.h>
|
||||
#include <qplatinumstyle.h>
|
||||
//#include <qplatinumstyle.h>
|
||||
#include "kdestyle.h"
|
||||
#include <qmessagebox.h>
|
||||
#include <qiconset.h>
|
||||
|
||||
|
@ -58,7 +59,8 @@ ideQTWindow::ideQTWindow( QWidget* parent, const char* name, WFlags f )
|
|||
QPixmap *iconoe=pillagif(ediv_icon);
|
||||
setIcon(*iconoe);
|
||||
|
||||
qApp->setStyle( new QPlatinumStyle );
|
||||
// qApp->setStyle( new QPlatinumStyle );
|
||||
qApp->setStyle( new KDEStyle );
|
||||
|
||||
mdi = new QWorkspace( this, "workspace" );
|
||||
mdi->setBackgroundMode( PaletteDark );
|
||||
|
|
1483
ediv/ideQT/kdestyle.cpp
Normal file
1483
ediv/ideQT/kdestyle.cpp
Normal file
File diff suppressed because it is too large
Load diff
177
ediv/ideQT/kdestyle.h
Normal file
177
ediv/ideQT/kdestyle.h
Normal file
|
@ -0,0 +1,177 @@
|
|||
#ifndef B2STYLE_H
|
||||
#define B2STYLE_H
|
||||
|
||||
//#include <kstyle.h>
|
||||
#include <qplatinumstyle.h>
|
||||
#include <qpainter.h>
|
||||
#include <qdrawutil.h>
|
||||
#include <qpalette.h>
|
||||
#include <qwidget.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qscrollbar.h>
|
||||
#include <qpixmap.h>
|
||||
#include <limits.h>
|
||||
|
||||
/*-
|
||||
B2Style (C)2000 Daniel M. Duley <mosfet@kde.org>
|
||||
Animated menu code based on code by Mario Weilguni <mweilguni@kde.org>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
//class KDEAniMenuPrivate;
|
||||
|
||||
class KDEAniMenu : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
KDEAniMenu(QPopupMenu *menu);
|
||||
~KDEAniMenu();
|
||||
protected:
|
||||
void scrollIn();
|
||||
protected slots:
|
||||
void slotDestroyFake();
|
||||
void slotFinished();
|
||||
private:
|
||||
bool eventFilter(QObject *obj, QEvent *ev);
|
||||
|
||||
QPopupMenu *mnu;
|
||||
QWidget *widget;
|
||||
// KDEAniMenuPrivate *d;
|
||||
};
|
||||
|
||||
//class KDEStylePrivate;
|
||||
|
||||
class KDEStyle : public QPlatinumStyle
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
KDEStyle();
|
||||
~KDEStyle();
|
||||
virtual void polish(QWidget *w);
|
||||
virtual void unPolish(QWidget *w);
|
||||
virtual void polish(QPalette &p);
|
||||
void drawButton(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool sunken = FALSE,
|
||||
const QBrush *fill = 0 );
|
||||
void drawButtonMask(QPainter *p, int x, int y, int w, int h);
|
||||
void drawComboButtonMask(QPainter *p, int x, int y, int w, int h);
|
||||
QRect buttonRect(int x, int y, int w, int h);
|
||||
void drawBevelButton(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool sunken = FALSE,
|
||||
const QBrush *fill = 0 );
|
||||
void drawPushButton(QPushButton *btn, QPainter *p);
|
||||
virtual void drawPushButtonLabel (QPushButton *btn, QPainter *p);
|
||||
void drawScrollBarControls(QPainter*, const QScrollBar*, int sliderStart,
|
||||
uint controls, uint activeControl );
|
||||
QStyle::ScrollControl scrollBarPointOver(const QScrollBar *sb,
|
||||
int sliderStart, const QPoint &p);
|
||||
void scrollBarMetrics(const QScrollBar *sb, int &sliderMin, int &sliderMax,
|
||||
int &sliderLength, int &buttonDim);
|
||||
QSize indicatorSize() const;
|
||||
void drawIndicator(QPainter* p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, int state, bool down = FALSE,
|
||||
bool enabled = TRUE );
|
||||
void drawIndicatorMask(QPainter *p, int x, int y, int w, int h, int);
|
||||
QSize exclusiveIndicatorSize() const;
|
||||
void drawExclusiveIndicator(QPainter* p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool on,
|
||||
bool down = FALSE, bool enabled = TRUE );
|
||||
void drawExclusiveIndicatorMask(QPainter *p, int x, int y, int w,
|
||||
int h, bool);
|
||||
void drawComboButton(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool sunken = FALSE,
|
||||
bool editable = FALSE, bool enabled = TRUE,
|
||||
const QBrush *fill = 0 );
|
||||
QRect comboButtonRect(int x, int y, int w, int h);
|
||||
QRect comboButtonFocusRect(int x, int y, int w, int h);
|
||||
int sliderLength() const;
|
||||
void drawArrow(QPainter *p, Qt::ArrowType type, bool down,
|
||||
int x, int y, int w, int h, const QColorGroup &g,
|
||||
bool enabled=true, const QBrush *fill = 0);
|
||||
void drawSlider(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, Orientation orient,
|
||||
bool tickAbove, bool tickBelow);
|
||||
void drawSliderMask(QPainter *p, int x, int y, int w, int h,
|
||||
Orientation orient, bool, bool);
|
||||
/* void drawKToolBar(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, KToolBarPos type,
|
||||
QBrush *fill=NULL);
|
||||
void drawKBarHandle(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g,
|
||||
KToolBarPos type, QBrush *fill=NULL);
|
||||
void drawKMenuBar(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool macMode,
|
||||
QBrush *fill=NULL);
|
||||
void drawKToolBarButton(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool sunken=false,
|
||||
bool raised = true, bool enabled = true,
|
||||
bool popup = false,
|
||||
KToolButtonType icontext = Icon,
|
||||
const QString& btext=QString::null,
|
||||
const QPixmap *icon=NULL,
|
||||
QFont *font=NULL, QWidget *btn=NULL);
|
||||
void drawKMenuItem(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool active,
|
||||
QMenuItem *item, QBrush *fill=NULL);*/
|
||||
void drawPopupMenuItem(QPainter *p, bool checkable, int maxpmw,
|
||||
int tab, QMenuItem *mi, const QPalette &pal,
|
||||
bool act, bool enabled, int x, int y, int w,
|
||||
int h);
|
||||
int popupMenuItemHeight(bool c, QMenuItem *mi, const QFontMetrics &fm);
|
||||
void drawKProgressBlock(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, QBrush *fill);
|
||||
void drawFocusRect(QPainter *p, const QRect &r, const QColorGroup &g,
|
||||
const QColor *pen, bool atBorder);
|
||||
int defaultFrameWidth() const {return(2);}
|
||||
void polishPopupMenu(QPopupMenu *mnu);
|
||||
void drawTab(QPainter *p, const QTabBar *tabBar, QTab *tab,
|
||||
bool selected);
|
||||
void drawTabMask( QPainter*, const QTabBar*, QTab*, bool selected );
|
||||
void tabbarMetrics(const QTabBar *t, int &hFrame, int &vFrame,
|
||||
int &overlap);
|
||||
|
||||
void drawSplitter(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, Orientation orient);
|
||||
int splitterWidth() const {return(6);}
|
||||
void drawPanel(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, bool sunken, int lineWidth,
|
||||
const QBrush *fill);
|
||||
void drawKickerAppletHandle(QPainter *p, int x, int y, int w, int h,
|
||||
const QColorGroup &g, QBrush *);
|
||||
bool eventFilter(QObject *obj, QEvent *ev);
|
||||
protected:
|
||||
void drawSBDeco(QPainter *p, const QRect &r, const QColorGroup &g,
|
||||
bool horiz);
|
||||
void drawSBButton(QPainter *p, const QRect &r, const QColorGroup &g,
|
||||
bool down=false);
|
||||
void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y,
|
||||
QBitmap *lightColor=0, QBitmap *midColor=0,
|
||||
QBitmap *midlightColor=0, QBitmap *darkColor=0,
|
||||
QBitmap *blackColor=0, QBitmap *whiteColor=0);
|
||||
private:
|
||||
QColorGroup radioOnGrp;
|
||||
QWidget *highlightWidget;
|
||||
void polish(QApplication *a) { QStyle::polish(a); }
|
||||
void unPolish(QApplication *a) {QStyle::unPolish(a); }
|
||||
|
||||
// KDEStylePrivate *d;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
** About meta object code from reading C++ file 'about.h'
|
||||
**
|
||||
** Created: Mon Jul 8 15:45:30 2002
|
||||
** Created: Wed Oct 9 23:31:05 2002
|
||||
** by: The Qt MOC ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
** ideQTWindow meta object code from reading C++ file 'ideqtwindow.h'
|
||||
**
|
||||
** Created: Fri Jul 12 23:18:31 2002
|
||||
** Created: Wed Oct 9 23:31:05 2002
|
||||
** by: The Qt MOC ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
|
|
130
ediv/ideQT/moc_kdestyle.cpp
Normal file
130
ediv/ideQT/moc_kdestyle.cpp
Normal file
|
@ -0,0 +1,130 @@
|
|||
/****************************************************************************
|
||||
** KDEAniMenu meta object code from reading C++ file 'kdestyle.h'
|
||||
**
|
||||
** Created: Wed Oct 9 23:31:04 2002
|
||||
** by: The Qt MOC ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#define Q_MOC_KDEAniMenu
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#define Q_MOC_OUTPUT_REVISION 8
|
||||
#elif Q_MOC_OUTPUT_REVISION != 8
|
||||
#error "Moc format conflict - please regenerate all moc files"
|
||||
#endif
|
||||
|
||||
#include "kdestyle.h"
|
||||
#include <qmetaobject.h>
|
||||
#include <qapplication.h>
|
||||
|
||||
#if defined(Q_SPARCWORKS_FUNCP_BUG)
|
||||
#define Q_AMPERSAND
|
||||
#else
|
||||
#define Q_AMPERSAND &
|
||||
#endif
|
||||
|
||||
|
||||
const char *KDEAniMenu::className() const
|
||||
{
|
||||
return "KDEAniMenu";
|
||||
}
|
||||
|
||||
QMetaObject *KDEAniMenu::metaObj = 0;
|
||||
|
||||
void KDEAniMenu::initMetaObject()
|
||||
{
|
||||
if ( metaObj )
|
||||
return;
|
||||
if ( strcmp(QObject::className(), "QObject") != 0 )
|
||||
badSuperclassWarning("KDEAniMenu","QObject");
|
||||
(void) staticMetaObject();
|
||||
}
|
||||
|
||||
#ifndef QT_NO_TRANSLATION
|
||||
QString KDEAniMenu::tr(const char* s)
|
||||
{
|
||||
return ((QNonBaseApplication*)qApp)->translate("KDEAniMenu",s);
|
||||
}
|
||||
|
||||
#endif // QT_NO_TRANSLATION
|
||||
QMetaObject* KDEAniMenu::staticMetaObject()
|
||||
{
|
||||
if ( metaObj )
|
||||
return metaObj;
|
||||
(void) QObject::staticMetaObject();
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
#endif // QT_NO_PROPERTIES
|
||||
typedef void(KDEAniMenu::*m1_t0)();
|
||||
typedef void(KDEAniMenu::*m1_t1)();
|
||||
m1_t0 v1_0 = Q_AMPERSAND KDEAniMenu::slotDestroyFake;
|
||||
m1_t1 v1_1 = Q_AMPERSAND KDEAniMenu::slotFinished;
|
||||
QMetaData *slot_tbl = QMetaObject::new_metadata(2);
|
||||
QMetaData::Access *slot_tbl_access = QMetaObject::new_metaaccess(2);
|
||||
slot_tbl[0].name = "slotDestroyFake()";
|
||||
slot_tbl[0].ptr = *((QMember*)&v1_0);
|
||||
slot_tbl_access[0] = QMetaData::Protected;
|
||||
slot_tbl[1].name = "slotFinished()";
|
||||
slot_tbl[1].ptr = *((QMember*)&v1_1);
|
||||
slot_tbl_access[1] = QMetaData::Protected;
|
||||
metaObj = QMetaObject::new_metaobject(
|
||||
"KDEAniMenu", "QObject",
|
||||
slot_tbl, 2,
|
||||
0, 0,
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
0, 0,
|
||||
0, 0,
|
||||
#endif // QT_NO_PROPERTIES
|
||||
0, 0 );
|
||||
metaObj->set_slot_access( slot_tbl_access );
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
#endif // QT_NO_PROPERTIES
|
||||
return metaObj;
|
||||
}
|
||||
|
||||
|
||||
const char *KDEStyle::className() const
|
||||
{
|
||||
return "KDEStyle";
|
||||
}
|
||||
|
||||
QMetaObject *KDEStyle::metaObj = 0;
|
||||
|
||||
void KDEStyle::initMetaObject()
|
||||
{
|
||||
if ( metaObj )
|
||||
return;
|
||||
if ( strcmp(QPlatinumStyle::className(), "QPlatinumStyle") != 0 )
|
||||
badSuperclassWarning("KDEStyle","QPlatinumStyle");
|
||||
(void) staticMetaObject();
|
||||
}
|
||||
|
||||
#ifndef QT_NO_TRANSLATION
|
||||
QString KDEStyle::tr(const char* s)
|
||||
{
|
||||
return ((QNonBaseApplication*)qApp)->translate("KDEStyle",s);
|
||||
}
|
||||
|
||||
#endif // QT_NO_TRANSLATION
|
||||
QMetaObject* KDEStyle::staticMetaObject()
|
||||
{
|
||||
if ( metaObj )
|
||||
return metaObj;
|
||||
(void) QPlatinumStyle::staticMetaObject();
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
#endif // QT_NO_PROPERTIES
|
||||
QMetaData::Access *slot_tbl_access = 0;
|
||||
metaObj = QMetaObject::new_metaobject(
|
||||
"KDEStyle", "QPlatinumStyle",
|
||||
0, 0,
|
||||
0, 0,
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
0, 0,
|
||||
0, 0,
|
||||
#endif // QT_NO_PROPERTIES
|
||||
0, 0 );
|
||||
metaObj->set_slot_access( slot_tbl_access );
|
||||
#ifndef QT_NO_PROPERTIES
|
||||
#endif // QT_NO_PROPERTIES
|
||||
return metaObj;
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
** Nuevo_Propiedades meta object code from reading C++ file 'nuevo_propiedades.h'
|
||||
**
|
||||
** Created: Mon Sep 9 19:11:49 2002
|
||||
** Created: Wed Oct 9 23:31:05 2002
|
||||
** by: The Qt MOC ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
** Nuevo meta object code from reading C++ file 'nuevoimpl.h'
|
||||
**
|
||||
** Created: Wed Jul 10 01:54:25 2002
|
||||
** Created: Wed Oct 9 23:31:05 2002
|
||||
** by: The Qt MOC ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
** Proyecto meta object code from reading C++ file 'proyecto.h'
|
||||
**
|
||||
** Created: Mon Jul 15 22:13:13 2002
|
||||
** Created: Wed Oct 9 23:31:05 2002
|
||||
** by: The Qt MOC ($Id$)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
|
|
Loading…
Reference in a new issue