Back to index

scribus-ng  1.3.4.dfsg+svn20071115
annot.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 ANNOT_H
00008 #define ANNOT_H
00009 
00010 #include <qdialog.h>
00011 #include <qcombobox.h>
00012 #include <qgroupbox.h>
00013 #include <qlabel.h>
00014 #include <qpushbutton.h>
00015 #include <qspinbox.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwidgetstack.h>
00019 #include <qframe.h>
00020 #include <qlineedit.h>
00021 #include <qtextedit.h>
00022 #include <qtabwidget.h>
00023 #include <qcheckbox.h>
00024 #include <qlistbox.h>
00025 #include <qradiobutton.h>
00026 #include <qbuttongroup.h>
00027 
00028 
00029 #include "scribusapi.h"
00030 #include "sccolor.h"
00031 
00032 class PageItem;
00033 class Navigator;
00034 class ColorCombo;
00035 class ScribusView;
00036 class PrefsContext;
00037 
00038 class SCRIBUS_API Annot : public QDialog
00039 { 
00040     Q_OBJECT
00041 
00042 public:
00043     Annot(QWidget* parent, PageItem *it, int Seite, int b, int h, ColorList Farben, ScribusView* vie);
00044     ~Annot();
00045        void DecodeNum();
00046        void DecodeVali();
00047        void DecodeCalc();
00048        QWidgetStack* Fram;
00049        QWidgetStack* Fram2;
00050        QWidgetStack* FramOp;
00051        QWidgetStack* FoFram;
00052     QLabel* TextLabel1;
00053     QComboBox* ComboBox1;
00054     QLabel* TextVa;
00055     QFrame* Frame9;
00056     QComboBox* ActionCombo;
00057     QGroupBox* GroupBox2;
00058     QFrame* Frame3;
00059     QFrame* Frame4;
00060     QGroupBox* Frame4a;
00061     QLabel* TextLabel4a;
00062        QLineEdit *Name;
00063     QLabel* TextLabel4b;
00064        QLineEdit *Tip;
00065     QLabel* AcText1;
00066     QLabel* AcText2;
00067        QComboBox* SelAction;
00068     QTextEdit* EditJava;
00069     QGroupBox* GroupBox11;
00070     QLabel* TextLabel31;
00071     QLabel* TextLabel41;
00072     QLabel* TextLabel51;
00073        QCheckBox* LExtern;
00074        QLineEdit* Destfile;
00075        QPushButton* ChFile;
00076     Navigator* Pg1;
00077     QSpinBox* SpinBox11;
00078     QSpinBox* SpinBox21;
00079     QSpinBox* SpinBox31;
00080     QGroupBox* GroupBox10;
00081     QLabel* TextLabel20;
00082     QLabel* TextLabel30;
00083     QTabWidget* TabWidget2;
00084     QWidget* tab;
00085     QGroupBox* GroupBox40;
00086     QComboBox* Schrift;
00087     QLabel* TextLabel60;
00088     QLabel* CheckBox30;
00089     QLabel* CheckBox40;
00090     QLineEdit* DownT;
00091     QLineEdit* TextO;
00092     QGroupBox* GroupBox30;
00093     QCheckBox* ReadOnly;
00094        QCheckBox* Required;
00095        QCheckBox* NoExport;
00096     QLabel* TextLabel8_2;
00097     QComboBox* ComboBox7_2;
00098     QLabel* TextLabel90;
00099     QComboBox* Visib;
00100     QGroupBox* GroupBox20;
00101     ColorCombo* BorderC;
00102     QLabel* TextLabel40a;
00103     QComboBox* BorderW;
00104     QLabel* TextLabel40;
00105     QLabel* TextLabel50;
00106     QComboBox* BorderS;
00107     QWidget* tab_2;
00108     QLabel* TextLabel70;
00109     QWidget* tab_3;
00110     QGroupBox* GroupBox40a;
00111     QGroupBox* GroupBox30a;
00112     QGroupBox* OptTextFeld;
00113     QCheckBox* MultiL;
00114     QCheckBox* Passwd;
00115     QCheckBox* Limit;
00116     QSpinBox* MaxChars;
00117     QCheckBox* NoScroll;
00118     QCheckBox* NoSpell;
00119     QLabel* TextLabel2_2;
00120     QGroupBox* OptCheck;
00121     QLabel* CText1;
00122     QComboBox* ChkStil;
00123     QCheckBox* isChkd;
00124     QGroupBox* OptCombo;
00125     QCheckBox* CanEdit;
00126     QWidget* tab4;
00127     QLabel* TextForm1;
00128     QComboBox* TxFormat;
00129     QGroupBox* GroupCust;
00130     QLabel* TextForm2;
00131     QPushButton* EditFormat;
00132     QTextEdit* FormatScript;
00133     QLabel* TextForm3;
00134     QPushButton* EditKeystr;
00135     QTextEdit* KeyScript;
00136     QFrame* FoFrameNone;
00137     QGroupBox* NumbGroup;
00138     QLabel* TextNu1;
00139     QSpinBox* Decim;
00140     QCheckBox* UseCurr;
00141     QLineEdit* CurSym;
00142     QCheckBox* PreCurr;
00143     QButtonGroup* NumGroup2;
00144     QRadioButton* Format0;
00145     QRadioButton* Format1;
00146     QRadioButton* Format2;
00147     QRadioButton* Format3;
00148     QGroupBox* PercGroup;
00149     QLabel* TextNu1a;
00150     QSpinBox* Decim2;
00151     QButtonGroup* NumGroup2a;
00152     QRadioButton* Format0a;
00153     QRadioButton* Format1a;
00154     QRadioButton* Format2a;
00155     QRadioButton* Format3a;
00156     QButtonGroup* TimeGroup;
00157     QRadioButton* Format0b;
00158     QRadioButton* Format1b;
00159     QRadioButton* Format2b;
00160     QRadioButton* Format3b;
00161     QGroupBox* DateGroup;
00162     QComboBox* Format0c;
00163     QLabel* TextDa1;
00164     QWidget* tab_4;
00165     QButtonGroup* ValidateGroup;
00166     QRadioButton* NoValid;
00167     QRadioButton* SimpleValid;
00168     QLineEdit* MinValid;
00169     QLineEdit* MaxValid;
00170     QRadioButton* CustomValid;
00171     QTextEdit* ValidScript;
00172     QPushButton* EditValScript;
00173     QWidget* tab_5;
00174     QButtonGroup* CalcGroup;
00175     QRadioButton* NoCalc;
00176     QRadioButton* SimpleCalc;
00177     QComboBox* CalcArt;
00178     QLabel* TextLabel1_2;
00179     QLineEdit* CalcFields;
00180     QRadioButton* CustomCalc;
00181     QTextEdit* CalcScript;
00182     QPushButton* EditCalc;
00183     QPushButton* EditJ;
00184     QPushButton* SeField;
00185     QFrame* Frame3b;
00186     QLabel* SubText1;
00187     QLineEdit* SubURL;
00188     QCheckBox* SubAsHtml;
00189     QFrame* Frame3c;
00190     QLabel* SubText1a;
00191     QLineEdit* SubURLa;
00192     QGroupBox* OptIcons;
00193     QCheckBox* UseIcons;
00194     QPushButton* IconN;
00195     QLabel* NiconPrev;
00196     QPushButton* IconP;
00197     QLabel* PiconPrev;
00198     QPushButton* IconR;
00199     QLabel* RiconPrev;
00200     QPushButton* IconNR;
00201     QPushButton* IconPR;
00202     QPushButton* IconRR;
00203     QPushButton* PlaceIcon;
00204     QPushButton* PushButton1;
00205     QPushButton* PushButton2;
00206     PageItem* item;
00207     ScribusView* view;
00208     int Breite;
00209     int Hoehe;
00210     int OriBreite;
00211     int OriHoehe;
00212        int ScrEdited;
00213        int FormNum;
00214        QString JavaScr;
00215        int MaxSeite;
00216        QString OldName;
00217 
00218 public slots:
00219        void NewName();
00220        void IPlace();
00221        void RemoveNIcon();
00222        void RemovePIcon();
00223        void RemoveRIcon();
00224        void IconsEin();
00225        void GetNIcon();
00226        void GetPIcon();
00227        void GetRIcon();
00228        void SelectFelder();
00229        void editKeySc();
00230        void editFormatSc();
00231        void editValidSc();
00232        void editCalcSc();
00233        void editJavaSc();
00234        void SetFormNum();
00235        void SetCurr();
00236        void HandleVali();
00237        void SetVali();
00238        void HandleCalc();
00239        void SetCalc();
00240        void SetFoScript(int it);
00241        void SetCo(double x, double y);
00242        void SetPg(int v);
00243        void SetCross();
00244        void SetVals();
00245        void SetZiel(int i);
00246        void GetFile();
00247        void SetActTyp(int it);
00248        void SetLimit();
00249        void SetActScript(int it);
00250        void setDateSample(const QString& ds);
00251        void SetExternL();
00252 
00253 protected:
00254     QVBoxLayout* AnnotLayout;
00255     QHBoxLayout* Layout1;
00256     QHBoxLayout* Layout1_2;
00257     QGridLayout* GroupBox11Layout;
00258     QGridLayout* GroupBox2Layout;
00259     QVBoxLayout* Frame3Layout;
00260     QVBoxLayout* Frame3bLayout;
00261     QVBoxLayout* Frame3cLayout;
00262     QHBoxLayout* Layout50;
00263     QVBoxLayout* GroupBox10Layout;
00264     QGridLayout* Layout60;
00265     QVBoxLayout* tabLayout;
00266     QHBoxLayout* Layout10;
00267     QGridLayout* GroupBox40Layout;
00268     QGridLayout* GroupBox30Layout;
00269     QGridLayout* GroupBox20Layout;
00270     QVBoxLayout* tabLayout_2;
00271     QHBoxLayout* Layout20;
00272     QVBoxLayout* tabLayout_3;
00273     QGridLayout* GroupBox40aLayout;
00274     QGridLayout* GroupBox30aLayout;
00275     QGridLayout* Frame4aLayout;
00276     QVBoxLayout* OptTextFeldLayout;
00277     QHBoxLayout* Layout7;
00278     QHBoxLayout* Layout71;
00279     QHBoxLayout* Layout8;
00280     QVBoxLayout* OptCheckLayout;
00281     QHBoxLayout* ChkLayout;
00282     QVBoxLayout* OptComboLayout;
00283     QVBoxLayout* Layout;
00284     QHBoxLayout* FLayout;
00285     QVBoxLayout* GroupCustLayout;
00286     QVBoxLayout* FLayout3;
00287     QHBoxLayout* FLayout2;
00288     QVBoxLayout* FLayout5;
00289     QHBoxLayout* FLayout4;
00290     QVBoxLayout* NumbGroupLayout;
00291     QHBoxLayout* LayoutFN1;
00292     QHBoxLayout* LayoutFN2;
00293     QGridLayout* NumGroup2Layout;
00294     QVBoxLayout* PercGroupLayout;
00295     QHBoxLayout* LayoutFN1a;
00296     QGridLayout* NumGroup2aLayout;
00297     QVBoxLayout* TimeGroupLayout;
00298     QVBoxLayout* DateGroupLayout;
00299     QHBoxLayout* LayoutFN1c;
00300     QVBoxLayout* tabLayout_4;
00301     QVBoxLayout* ValidateGroupLayout;
00302     QGridLayout* VLayout1;
00303     QHBoxLayout* VLayout2;
00304     QVBoxLayout* tabLayout_5;
00305     QVBoxLayout* CalcGroupLayout;
00306     QHBoxLayout* CLayout1;
00307     QHBoxLayout* CLayout2;
00308     QHBoxLayout* CLayout3;
00309     QHBoxLayout* Layout18;
00310     QVBoxLayout* OptIconsLayout;
00311     QHBoxLayout* Layout17;
00312     QGridLayout* Layout14;
00313     QGridLayout* Layout15;
00314     QGridLayout* Layout16;
00315        PrefsContext* dirs;
00316 };
00317 
00318 #endif // ANNOT_H