1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
|
//-*-C++-*-
/*
**************************************************************************
description
--------------------
copyright : (C) 2000-2002 by Andreas Zehender
email : zehender@kde.org
**************************************************************************
**************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
**************************************************************************/
#ifndef PMPART_H
#define PMPART_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <kapplication.h>
#include <kaccel.h>
#include <kurl.h>
#include <kparts/part.h>
#include <kparts/browserextension.h>
#include <tqstringlist.h>
#include <tqptrlist.h>
#include <tqvaluelist.h>
#include <kglobal.h>
#include <klocale.h>
#include "pmobject.h"
#include "pmcommandmanager.h"
#include "pmpartiface.h"
class PMView;
class PMShell;
class PMObjectDrag;
class PMScene;
class PMCamera;
class PMPovrayWidget;
class PMParser;
class PMBrowserExtension;
class PMSymbolTable;
class PMDeclare;
class PMPrototypeManager;
class PMInsertRuleSystem;
class PMIOManager;
class TQMimeSource;
class KAction;
class KSelectAction;
class PMComboAction;
class PMSpinBoxAction;
class PMLabelAction;
class KProcess;
/**
* The part for kpovmodeler (povray document)
*/
class PMPart : public KParts::ReadWritePart, virtual public PMPartIface
{
Q_OBJECT
public:
/**
* construtor of PMPart, calls all init functions to create the
* application.
*/
PMPart( TQWidget* parentWidget, const char* widgetName,
TQObject* parent, const char* name, bool readWrite,
PMShell* shell = 0 );
/**
* construtor of PMPart, calls all init functions to create the
* application. It does not create the main widget.
*/
PMPart( TQWidget* parentWidget, const char* widgetName,
TQObject* parent, const char* name, bool readWrite,
bool onlyCutPaste, PMShell* shell = 0 );
/**
* Destructor
*/
~PMPart( );
/**
* deletes the document's contents
*/
void deleteContents( );
/**
* initializes the document generally
*/
bool newDocument( );
/**
* closes the actual document
*/
void closeDocument( );
/**
* Exports the scene as povray code
*/
bool exportPovray( const KURL& url );
/**
* returns the toplevel object
*/
PMScene* scene( ) const { return m_pScene; }
/**
* Returns a pointer to the shell if there is one
*/
PMShell* shell( ) const { return m_pShell; }
/**
* saves settings
*/
void saveConfig( KConfig* cfg );
/**
* loads settings
*/
void restoreConfig( KConfig* cfg );
/**
* Updates the sorted list of selected objects if necessary and
* returns a reference to the list.
*/
const PMObjectList& selectedObjects( );
/**
* Executes the command cmd.
*
* All changes to the document have to be made
* with @ref PMCommand objects for undo/redo. Each slot that changes the
* document creates a PMCommand object and calls this function.
*
* If this function returns false, the command was not executed
* and the command object was deleted.
*/
bool executeCommand( PMCommand* cmd );
/**
* Checks, where the objects in list can be inserted, as child
* or as sibling of obj and asks the user if there is more than one
* possibility
*
* Returns PMIFirstChild, PMILastChild, PMISibling or 0, if the objects
* should not be inserted.*/
int whereToInsert( PMObject* obj, const PMObjectList& list );
/**
* Checks, where the objects in list can be inserted, as child
* or as sibling of obj and asks the user if there is more than one
* possibility
*
* Returns PMIFirstChild, PMILastChild, PMISibling or 0, if the objects
* should not be inserted.*/
int whereToInsert( PMObject* obj, const TQStringList& list );
/**
* Asks the user, where to insert new objects.
*
* Returns PMIFirstChild, PMILastChild, PMISibling or 0, if the objects
* should not be inserted.*/
int whereToInsert( PMObject* obj );
/**
* Returns the symbol table of this document
*/
PMSymbolTable* symbolTable( ) const { return m_pSymbolTable; }
/**
* Returns the first camera
*/
PMCamera* firstCamera( );
/**
* Returns an iterator to the list of cameras
*/
TQPtrListIterator<PMCamera> cameras( );
/**
* The active object
*/
PMObject* activeObject( ) const { return m_pActiveObject; }
/**
* The active object's name
*/
virtual TQString activeObjectName( );
/**
* Set the active object
*/
virtual bool setActiveObject( const TQString& name );
/**
* Get the valid properties of the currently active object
*/
virtual TQStringList getProperties( );
/**
* set a property on the active object
*/
virtual bool setProperty( const TQString& name, const PMVariant& value );
/**
* set a property on the active object
*/
virtual bool setProperty( const TQString& name, const TQString& value );
/**
* get a property on the active object
*/
virtual const PMVariant getProperty( const TQString& name );
/**
* get a property on the active object
*/
virtual const TQString getPropertyStr( const TQString& name );
/**
* List of control points of the active object
*/
PMControlPointList activeControlPoints( ) const { return m_controlPoints; }
/**
* Called when the user moves some objects in the tree view.
* If obj is 0, the user moved the objects to another document (remove)
*
* Returns true if successful.
*/
bool dragMoveSelectionTo( PMObject* obj );
/**
* Called when the user drags some objects onto the tree view
*
* Returns true if successful.
*/
bool drop( PMObject* obj, TQMimeSource* e );
/**
* Tries to parse the data and insert the parsed objects
* as child or siblings of object obj
*
* Type is the actions description for the undo/redo menu.
*/
bool insertFromParser( const TQString& type, PMParser* parser, PMObject* obj );
/**
* Returns a pointer to the prototype manager
*/
PMPrototypeManager* prototypeManager( ) const { return m_pPrototypeManager; }
/**
* Returns a pointer to the insert rules system
*/
PMInsertRuleSystem* insertRuleSystem( ) const { return m_pInsertRuleSystem; }
/**
* Returns a pointer to the IO formats manager for this part
*/
PMIOManager* ioManager( ) const { return m_pIOManager; }
public slots:
/**
* Opens the import file dialog
*/
void slotFileImport( );
/**
* Opens the export file dialog
*/
void slotFileExport( );
/**
* puts the marked text/object into the clipboard and removes the objects
*/
void slotEditCut( );
/**
* removes the selected object
*/
void slotEditDelete( );
/**
* puts the marked text/object into the clipboard
*/
void slotEditCopy( );
/**
* paste the clipboard into the document
*/
void slotEditPaste( );
/**
* undoes the last change
*/
void slotEditUndo( );
/**
* redoes the last undone command
*/
void slotEditRedo( );
/**
* Called when an object is changed.
* Mode is a bit combination of @ref PMChange constants
*/
void slotObjectChanged( PMObject* obj, const int mode, TQObject* sender );
/**
* Called when an id is changed
*/
void slotIDChanged( PMObject* obj, const TQString& oldID );
/**
* Inserts a new PMObject of type type
*/
void slotNewObject( const TQString& type );
/**
* Inserts a new PMObject of type type at position pos.
* pos can be one of:
* FirstChild
* LastChild
* Sibling
*/
void slotNewObject( const TQString& type, const TQString& pos );
/**
* Inserts the new PMObject. The object will be deleted if it can't be
* inserted or the user aborts the action
*/
void slotNewObject( PMObject* newObject, int insertAs = 0 );
/**
* List the known object types
*/
virtual TQStringList getObjectTypes( );
/**
* Adds transformations to the object and calls slotNewObject
* for it
*/
void slotNewTransformedObject( PMObject* o );
/**
* Inserts a new PMGlobalSettings
*/
void slotNewGlobalSettings( );
/**
* Inserts a new PMSkySphere
*/
void slotNewSkySphere( );
/**
* Inserts a new PMRainbow
*/
void slotNewRainbow( );
/**
* Inserts a new PMFog
*/
void slotNewFog( );
/**
* Inserts a new PMInterior
*/
void slotNewInterior( );
/**
* Inserts a new PMMedia
*/
void slotNewMedia( );
/**
* Inserts a new PMDensity
*/
void slotNewDensity( );
/**
* Inserts a new PMMaterial
*/
void slotNewMaterial( );
/**
* Inserts a new PMBox
*/
void slotNewBox( );
/**
* Inserts a new PMSphere
*/
void slotNewSphere( );
/**
* Inserts a new PMCylinder
*/
void slotNewCylinder( );
/**
* Inserts a new PMCone
*/
void slotNewCone( );
/**
* Inserts a new PMTorus
*/
void slotNewTorus( );
/**
* Inserts a new PMLathe
*/
void slotNewLathe( );
/**
* Inserts a new PMPrism
*/
void slotNewPrism( );
/**
* Inserts a new PMSurfaceOfRevolution
*/
void slotNewSurfaceOfRevolution( );
/**
* Inserts a new PMSuperquadricEllipsoid
*/
void slotNewSuperquadricEllipsoid( );
/**
* Inserts a new PMJuliaFractal
*/
void slotNewJuliaFractal( );
/**
* Inserts a new PMHeightField
*/
void slotNewHeightField( );
/**
* Inserts a new text object
*/
void slotNewText( );
/**
* Inserts a new PMBlob
*/
void slotNewBlob( );
/**
* Inserts a new PMBlobSphere
*/
void slotNewBlobSphere( );
/**
* Inserts a new PMBlobCylinder
*/
void slotNewBlobCylinder( );
/**
* Inserts a new PMPlane
*/
void slotNewPlane( );
/**
* Inserts a new PMPolynom
*/
void slotNewPolynom( );
/**
* Inserts a new PMDeclare
*/
void slotNewDeclare( );
/**
* Inserts a new PMObjectLink
*/
void slotNewObjectLink( );
/**
* Inserts a new PMCSG ( union )
*/
void slotNewUnion( );
/**
* Inserts a new PMCSG ( intersection )
*/
void slotNewIntersection( );
/**
* Inserts a new PMCSG ( difference )
*/
void slotNewDifference( );
/**
* Inserts a new PMCSG ( merge )
*/
void slotNewMerge( );
/**
* Inserts a new PMDisc
*/
void slotNewDisc( );
/**
* Inserts a new PMBicubicPatch
*/
void slotNewBicubicPatch( );
/**
* Inserts a new PMTriangle
*/
void slotNewTriangle( );
/**
* Inserts a new PMBoundedBy
*/
void slotNewBoundedBy( );
/**
* Inserts a new PMClippedBy
*/
void slotNewClippedBy( );
/**
* Inserts a new PMLight object
*/
void slotNewLight( );
/**
* Inserts a new PMLooksLike object
*/
void slotNewLooksLike( );
/**
* Inserts a new PMProjectedThrough object
*/
void slotNewProjectedThrough( );
/**
* Inserts a new PMCamera
*/
void slotNewCamera( );
/**
* Inserts a new PMTexture
*/
void slotNewTexture( );
/**
* Inserts a new PMPigment
*/
void slotNewPigment( );
/**
* Inserts a new PMNormal
*/
void slotNewNormal( );
/**
* Inserts a new PMSolidColor
*/
void slotNewSolidColor( );
/**
* Inserts a new PMTextureList
*/
void slotNewTextureList( );
/**
* Inserts a new PMColorList
*/
void slotNewColorList( );
/**
* Inserts a new PMPigmentList
*/
void slotNewPigmentList( );
/**
* Inserts a new PMNormalList
*/
void slotNewNormalList( );
/**
* Inserts a new PMDensityList
*/
void slotNewDensityList( );
/**
* Inserts a new PMFinish
*/
void slotNewFinish( );
/**
* Inserts a new PMPattern
*/
void slotNewPattern( );
/**
* Inserts a new PMBlendMapModifiers
*/
void slotNewBlendMapModifiers( );
/**
* Inserts a new PMTextureMap
*/
void slotNewTextureMap( );
/**
* Inserts a new PMMaterialMap
*/
void slotNewMaterialMap( );
/**
* Inserts a new PMColorMap
*/
void slotNewColorMap( );
/**
* Inserts a new PMPigmentMap
*/
void slotNewPigmentMap( );
/**
* Inserts a new PMNormalMap
*/
void slotNewNormalMap( );
/**
* Inserts a new PMBumpMap
*/
void slotNewBumpMap( );
/**
* Inserts a new PMSlopeMap
*/
void slotNewSlopeMap( );
/**
* Inserts a new PMDensityMap
*/
void slotNewDensityMap( );
/**
* Inserts a new PMSlope
*/
void slotNewSlope( );
/**
* Inserts a new PMWarp
*/
void slotNewWarp( );
/**
* Inserts a new PMImageMap
*/
void slotNewImageMap( );
/**
* Inserts a new PMQuickColor
*/
void slotNewQuickColor( );
/**
* Inserts a new PMTranslate
*/
void slotNewTranslate( );
/**
* Inserts a new PMRotate
*/
void slotNewRotate( );
/**
* Inserts a new PMScale
*/
void slotNewScale( );
/**
* Inserts a new PMPovrayMatrix
*/
void slotNewMatrix( );
/**
* Inserts a new PMComment
*/
void slotNewComment( );
/**
* Inserts a new PMRaw
*/
void slotNewRaw( );
// POV-Ray 3.5 objects
/**
* Inserts a new PMIsoSurfate
*/
void slotNewIsoSurface( );
/**
* Inserts a new PMRadiosity
*/
void slotNewRadiosity( );
/**
* Inserts a new PMGlobalPhotons
*/
void slotNewGlobalPhotons( );
/**
* Inserts a new PMPhotons
*/
void slotNewPhotons( );
/**
* Inserts a new PMLightGroup
*/
void slotNewLightGroup( );
/**
* Inserts a new PMInteriorTexture
*/
void slotNewInteriorTexture( );
/**
* Inserts a new PMSphereSweep
*/
void slotNewSphereSweep( );
/**
* Inserts a new PMMesh
*/
void slotNewMesh( );
/**
* Called when the clipboard contents changed
*/
void slotClipboardDataChanged( );
/**
* updates the undo/redo menu items
*/
void slotUpdateUndoRedo( const TQString& undo, const TQString& redo );
/**
* Starts rendering with povray
*/
virtual void slotRender( );
/**
* Opens the render settings
*/
void slotRenderSettings( );
/**
* Called when a render mode is selected
*/
void slotRenderMode( int index );
/**
* Called when the render modes combo action is plugged into the toolbar
*/
void slotRenderModeActionPlugged( );
/**
* Shows the render window
*/
void slotViewRenderWindow( );
/**
* Called when the visibility level has changed
*/
void slotVisibilityLevelChanged( int );
/**
* Called when the visibility level action is plugged into the toolbar
*/
void slotVisibilityActionPlugged( );
/**
* Called when the global detail level has changed
*/
void slotGlobalDetailLevelChanged( int level );
/**
* Opens the search library object dialog
*/
void slotSearchLibraryObject( );
/** */
virtual void setModified( );
/** */
virtual void setModified( bool modified );
/** Set the scene object. Must be used with extreme care. */
void setScene( PMScene* scene );
/**
* Emits the aboutToSave signal
*/
void slotAboutToSave( );
signals:
/**
* Signal that is emitted when an object is changed.
* Mode is a bit combination of @ref PMChange constants.
*/
void objectChanged( PMObject* obj, const int mode, TQObject* sender );
/**
* Signal that is emitted when the views have to be refreshed.
* Usually on newDocument or openDocument
*/
void refresh( );
/**
* Emitted when all views should delete all data
*/
void clear( );
/**
* Emitted, when the modified flag changes
*/
void modified( );
/**
* Emitted when the mouse is over a control point
*/
void controlPointMessage( const TQString& msg );
/**
* Emitted when the active render mode has changed
*/
void activeRenderModeChanged( );
/**
* Emitted before the scene is rendered.
*
* Views should ask the user to save pending changes.
*/
void aboutToRender( );
/**
* Emitted before the scene is saved or exported
*
* Views should ask the user to save pending changes.
*/
void aboutToSave( );
protected:
/**
* reimplemented from @ref KParts::ReadOnlyPart
*/
virtual bool openFile( );
/**
* reimplemented from @ref KParts::ReadOnlyPart
*/
virtual bool saveFile( );
/**
* Inits all actions
*/
void initActions( );
/**
* Inits only actions related to copy&paste.
* Required by the library browser.
*/
void initCopyPasteActions( );
/**
* creates the widget of the part instance and sets
* it as the view
*/
void initView( TQWidget* parent, const char* name );
/**
* initializes the documents contents
*/
void initDocument( );
/**
* clears the selection
*/
void clearSelection( );
private:
/**
* Disables all actions, that modify the part
*/
void disableReadWriteActions( );
/**
* Updates all "new object" actions
*/
void updateNewObjectActions( );
/**
* Finds a free id of the format <prefix><number>.
*
* Adds the object to the symbol table.
*
* Returns the number.
*/
unsigned int findNewID( const TQString& prefix, unsigned int firstNumber,
PMDeclare* obj );
/**
* Updates the list of cameras
*/
void updateCameraList( );
/**
* Generic drop/paste function
*/
bool pasteOrDrop( const TQString& type, TQMimeSource* mime, PMObject* obj );
/**
* Generic cut/delete/remove function
*/
bool removeSelection( const TQString& type );
/**
* Updates the render mode combo action
*/
void updateRenderModes( );
/**
* Updates the visibility level action
*/
void updateVisibilityLevel( );
/**
* Updates the control point list
*/
void updateControlPoints( PMObject* oldActive );
PMView* m_pView;
PMShell* m_pShell;
PMBrowserExtension* m_pExtension;
/**
* the selected objects, unsorted!
*/
PMObjectList m_selectedObjects;
/**
* the selected objects, sorted. This list is only created if necessary.
*/
PMObjectList m_sortedSelectedObjects;
/**
* true if the list m_sortedSelectedObjects is up to date
*/
bool m_sortedListUpToDate;
/**
* the active object
*/
PMObject* m_pActiveObject;
/**
* the new selection after a command was executed
*/
PMObject* m_pNewSelection;
/**
* List of all cameras
*/
TQPtrList<PMCamera> m_cameras;
/**
* true if the m_cameras list is up to date
*/
bool m_bCameraListUpToDate;
/**
* true if the clipboard data can be decoded
*/
bool m_canDecode;
/**
* Commands stack for undo and redo
*/
PMCommandManager m_commandManager;
/**
* The povray scene, top level object
*/
PMScene* m_pScene;
/**
* Number of added objects during the last executed command
*/
unsigned int m_numAddedObjects;
/**
* Number of insert errors during the last executed command
*/
unsigned int m_numInsertErrors;
/**
* Details of insert errors
*/
TQStringList m_insertErrorDetails;
/**
* The symbol table for this document
*/
PMSymbolTable* m_pSymbolTable;
/**
* The povray render window
*/
PMPovrayWidget* m_pPovrayWidget;
/**
* true if the new object actions have to be updated
*/
bool m_updateNewObjectActions;
/**
* Control points of the active object
*/
PMControlPointList m_controlPoints;
/**
* true if only copy'n'paste actions are available
*/
bool m_onlyCopyPaste;
// the actions
KAction* m_pImportAction;
KAction* m_pExportAction;
KAction* m_pCutAction;
KAction* m_pCopyAction;
KAction* m_pPasteAction;
KAction* m_pUndoAction;
KAction* m_pRedoAction;
KAction* m_pDeleteAction;
KAction* m_pNewGlobalSettingsAction;
KAction* m_pNewSkySphereAction;
KAction* m_pNewRainbowAction;
KAction* m_pNewFogAction;
KAction* m_pNewInteriorAction;
KAction* m_pNewMediaAction;
KAction* m_pNewDensityAction;
KAction* m_pNewMaterialAction;
KAction* m_pNewBoxAction;
KAction* m_pNewSphereAction;
KAction* m_pNewCylinderAction;
KAction* m_pNewConeAction;
KAction* m_pNewTorusAction;
KAction* m_pNewLatheAction;
KAction* m_pNewPrismAction;
KAction* m_pNewSurfaceOfRevolutionAction;
KAction* m_pNewSuperquadricEllipsoidAction;
KAction* m_pNewJuliaFractalAction;
KAction* m_pNewHeightFieldAction;
KAction* m_pNewTextAction;
KAction* m_pNewBlobAction;
KAction* m_pNewBlobSphereAction;
KAction* m_pNewBlobCylinderAction;
KAction* m_pNewPlaneAction;
KAction* m_pNewPolynomAction;
KAction* m_pNewDeclareAction;
KAction* m_pNewObjectLinkAction;
KAction* m_pNewUnionAction;
KAction* m_pNewDifferenceAction;
KAction* m_pNewIntersectionAction;
KAction* m_pNewMergeAction;
KAction* m_pNewBoundedByAction;
KAction* m_pNewClippedByAction;
KAction* m_pNewBicubicPatchAction;
KAction* m_pNewDiscAction;
KAction* m_pNewTriangleAction;
KAction* m_pNewLightAction;
KAction* m_pNewLooksLikeAction;
KAction* m_pNewProjectedThroughAction;
KAction* m_pNewCameraAction;
KAction* m_pNewTextureAction;
KAction* m_pNewPigmentAction;
KAction* m_pNewNormalAction;
KAction* m_pNewSolidColorAction;
KAction* m_pNewTextureListAction;
KAction* m_pNewColorListAction;
KAction* m_pNewPigmentListAction;
KAction* m_pNewNormalListAction;
KAction* m_pNewDensityListAction;
KAction* m_pNewFinishAction;
KAction* m_pNewPatternAction;
KAction* m_pNewBlendMapModifiersAction;
KAction* m_pNewTextureMapAction;
KAction* m_pNewMaterialMapAction;
KAction* m_pNewPigmentMapAction;
KAction* m_pNewColorMapAction;
KAction* m_pNewNormalMapAction;
KAction* m_pNewBumpMapAction;
KAction* m_pNewSlopeMapAction;
KAction* m_pNewDensityMapAction;
KAction* m_pNewSlopeAction;
KAction* m_pNewWarpAction;
KAction* m_pNewImageMapAction;
KAction* m_pNewQuickColorAction;
KAction* m_pNewTranslateAction;
KAction* m_pNewScaleAction;
KAction* m_pNewRotateAction;
KAction* m_pNewMatrixAction;
KAction* m_pNewCommentAction;
KAction* m_pNewRawAction;
// POV-Ray 3.5 objects
KAction* m_pNewIsoSurfaceAction;
KAction* m_pNewRadiosityAction;
KAction* m_pNewGlobalPhotonsAction;
KAction* m_pNewPhotonsAction;
KAction* m_pNewLightGroupAction;
KAction* m_pNewInteriorTextureAction;
KAction* m_pNewSphereSweepAction;
KAction* m_pNewMeshAction;
KAction* m_pSearchLibraryObjectAction;
PMComboAction* m_pRenderComboAction;
KAction* m_pRenderSettingsAction;
KAction* m_pViewRenderWindowAction;
KAction* m_pRenderAction;
PMSpinBoxAction* m_pVisibilityLevelAction;
PMLabelAction* m_pVisibilityLabelAction;
KSelectAction* m_pGlobalDetailAction;
PMLabelAction* m_pGlobalDetailLabelAction;
TQPtrList<KAction> m_readWriteActions;
PMPrototypeManager* m_pPrototypeManager;
PMInsertRuleSystem* m_pInsertRuleSystem;
PMIOManager* m_pIOManager;
};
class PMBrowserExtension : public KParts::BrowserExtension
{
Q_OBJECT
friend class PMPart;
public:
PMBrowserExtension( PMPart* parent )
: KParts::BrowserExtension( parent, "PMBrowserExtension" )
{
KGlobal::locale()->insertCatalogue("kpovmodeler");
}
virtual ~PMBrowserExtension( )
{
}
};
#endif
|