Back to index

scribus-ng  1.3.4.dfsg+svn20071115
frameedit.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef NODEPALETTE_H
00008 #define NODEPALETTE_H
00009 
00010 #include <qpushbutton.h>
00011 #include <qtoolbutton.h>
00012 #include <qlabel.h>
00013 #include <qlayout.h>
00014 #include <qtooltip.h>
00015 #include <qcheckbox.h>
00016 #include <qspinbox.h>
00017 
00018 #include "scribusapi.h"
00019 #include "scrpalettebase.h"
00020 #include "mspinbox.h"
00021 
00022 class ScribusDoc;
00023 class ScribusView;
00024 
00025 class SCRIBUS_API NodePalette : public ScrPaletteBase
00026 {
00027        Q_OBJECT
00028 
00029 public:
00030        NodePalette( QWidget* parent);
00031        ~NodePalette() {};
00032 
00033        QToolButton* MoveNode;
00034        QToolButton* MoveControl;
00035        QToolButton* AddNode;
00036        QToolButton* DeleteNode;
00037        QToolButton* AsymMove;
00038        QToolButton* SymMove;
00039        QToolButton* ResNode;
00040        QToolButton* Res1Node;
00041        QToolButton* PolySplit;
00042        QToolButton* BezierClose;
00043        QToolButton* PolyMirrorH;
00044        QToolButton* PolyMirrorV;
00045        QToolButton* PolyShearL;
00046        QToolButton* PolyShearR;
00047        QToolButton* PolyShearU;
00048        QToolButton* PolyShearD;
00049        QToolButton* RotateCCW;
00050        QToolButton* RotateCW;
00051        QToolButton* Expand;
00052        QToolButton* Shrink;
00053        QToolButton* Enlarge;
00054        QToolButton* Reduce;
00055        QCheckBox* AbsMode;
00056        QCheckBox* EditCont;
00057        QLabel* TextLabel1;
00058        MSpinBox* YSpin;
00059        QLabel* TextLabel2;
00060        MSpinBox* XSpin;
00061        QSpinBox *RotVal;
00062        QSpinBox *scalePercentage;
00063        MSpinBox *scaleDistance;
00064        QPushButton* ResetCont;
00065        QPushButton* ResetContClip;
00066        QPushButton* editEditButton;
00067        void setDoc(ScribusDoc *dc, ScribusView *vi);
00068        ScribusDoc* currentDocument() const;
00069        ScribusDoc *doc;
00070        ScribusView *view;
00071 
00072 private slots:
00073        void closeEvent(QCloseEvent *);
00074        void MoveK();
00075        void AddN();
00076        void DelN();
00077        void MovePoint();
00078        void SetSym();
00079        void SetAsym();
00080        void ResetControl();
00081        void Reset1Control();
00082        void ResetContour();
00083        void ResetContourToImageClip();
00084        void CloseBezier();
00085        void SplitPoly();
00086        void MirrorH();
00087        void MirrorV();
00088        void doRotCCW();
00089        void doRotCW();
00090        void doShrink();
00091        void doExpand();
00092        void doReduce();
00093        void doEnlarge();
00094        void ShearR();
00095        void ShearL();
00096        void ShearU();
00097        void ShearD();
00098        void ToggleAbsMode();
00099        void ToggleConMode();
00100 
00101 public slots:
00102        void MoveN();
00103        void SetXY(double x, double y);
00104        void HaveNode(bool have, bool mov);
00105        void IsOpen();
00106        void PolyStatus(int typ, uint size);
00107        void languageChange();
00108        void unitChange();
00109        void EndEdit(); // allow remote close
00110 
00111 protected:
00112        void connectSignals();
00113        void disconnectSignals();
00114        QVBoxLayout* NodePaletteLayout;
00115        QGridLayout *gridLayout;
00116        QGridLayout *gridLayout1;
00117        QGridLayout *gridLayout2;
00118        
00119        double unitRatio;
00120        
00121 signals:
00122        void Schliessen();
00123        void DocChanged();
00124 };
00125 
00126 #endif // NODEPALETTE_H