summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/kspread_view.h')
-rw-r--r--kspread/kspread_view.h140
1 files changed, 71 insertions, 69 deletions
diff --git a/kspread/kspread_view.h b/kspread/kspread_view.h
index 52794a32..04efd164 100644
--- a/kspread/kspread_view.h
+++ b/kspread/kspread_view.h
@@ -28,10 +28,10 @@
#ifndef KSPREAD_VIEW
#define KSPREAD_VIEW
-#include <qpoint.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <tqpoint.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
#include <kprinter.h>
#include <kdeprint/kprintdialogpage.h>
@@ -40,7 +40,7 @@
#include <KoView.h>
-class QScrollBar;
+class TQScrollBar;
class KoDocumentEntry;
class KoTabBar;
@@ -80,30 +80,31 @@ class EmbeddedObject;
class KPSheetSelectPage : public KPrintDialogPage
{
Q_OBJECT
+ TQ_OBJECT
public:
- KPSheetSelectPage( QWidget *parent = 0 );
+ KPSheetSelectPage( TQWidget *tqparent = 0 );
// ~KPSheetSelectPage();
// //reimplement virtual functions
/**
* @see printOptionPrefix()
*/
- void getOptions( QMap<QString,QString>& opts, bool incldef = false );
+ void getOptions( TQMap<TQString,TQString>& opts, bool incldef = false );
/**
* @see printOptionPrefix()
*/
- void setOptions( const QMap<QString,QString>& opts );
+ void setOptions( const TQMap<TQString,TQString>& opts );
/**
* @return false if no sheet is selected for printing.
*/
- bool isValid( QString& msg );
+ bool isValid( TQString& msg );
/**
* @return list of sheets that will be printed, in correct order.
*/
- QStringList selectedSheets();
+ TQStringList selectedSheets();
/**
* Removes all sheets from the list of selected sheets.
@@ -121,25 +122,25 @@ class KPSheetSelectPage : public KPrintDialogPage
* @param index the index of the print order, starting at 0
* @return the string that is used in the printoption for given index
*/
- static QString printOptionForIndex(unsigned int index);
+ static TQString printOptionForIndex(unsigned int index);
/**
* @param prt the printer from which the options should be read.
* @return list of sheets to print in correct order configured for given printer.
*/
- static QStringList selectedSheets(KPrinter &prt);
+ static TQStringList selectedSheets(KPrinter &prt);
public slots:
/**
* Inserts given sheet to the list of available sheets.
*/
- void prependAvailableSheet(const QString& sheetname);
+ void prependAvailableSheet(const TQString& sheetname);
/**
* Inserts given sheet to the list of sheets for printing at the top.
*/
- void prependSelectedSheet(const QString& sheetname);
+ void prependSelectedSheet(const TQString& sheetname);
protected slots:
@@ -188,10 +189,11 @@ class KSPREAD_EXPORT View : public KoView
friend class Canvas;
Q_OBJECT
+ TQ_OBJECT
public:
/** Creates a new view */
- View( QWidget *_parent, const char *_name,
+ View( TQWidget *_parent, const char *_name,
Doc *doc );
/** Destroys the view */
@@ -209,10 +211,10 @@ public:
VBorder* vBorderWidget() const;
/** Returns the horizontal scrollbar */
- QScrollBar* horzScrollBar() const;
+ TQScrollBar* horzScrollBar() const;
/** Returns the vertical scrollbar */
- QScrollBar* vertScrollBar() const;
+ TQScrollBar* vertScrollBar() const;
/** Returns the editor widget */
KSpread::EditWidget* editWidget() const;
@@ -233,16 +235,16 @@ public:
const Sheet* activeSheet() const;
Sheet* activeSheet();
- void openPopupMenu( const QPoint &_global );
- void popupRowMenu(const QPoint & _point ) ;
- void popupColumnMenu( const QPoint & _point);
+ void openPopupMenu( const TQPoint &_global );
+ void popupRowMenu(const TQPoint & _point ) ;
+ void popupColumnMenu( const TQPoint & _point);
// void showFormulaToolBar( bool show );
/**
* Used by @ref EditWidget. Sets the text of the active cell(s).
*/
- void setText( const QString& _text, bool array = false );
+ void setText( const TQString& _text, bool array = false );
void enableUndo( bool _b );
void enableRedo( bool _b );
@@ -251,22 +253,22 @@ public:
/**
*
- * @param _geometry is the zoomed geometry of the new child.
+ * @param _tqgeometry is the zoomed tqgeometry of the new child.
* @param _entry is the entry to insert.
*
* @todo check validity of @p _entry docs.
*/
- void insertChart( const QRect& _geometry, KoDocumentEntry& _entry );
+ void insertChart( const TQRect& _tqgeometry, KoDocumentEntry& _entry );
/**
*
- * @param _geometry is the geometry of the new child.
+ * @param _tqgeometry is the tqgeometry of the new child.
* @param _entry is the entry to insert.
*
* @todo check validity of @p _entry docs.
*/
- void insertChild( const QRect& _geometry, KoDocumentEntry& _entry );
+ void insertChild( const TQRect& _tqgeometry, KoDocumentEntry& _entry );
- // void insertPicture( const QRect& _geometry, KURL& _file );
+ // void insertPicture( const TQRect& _tqgeometry, KURL& _file );
virtual void print( KPrinter &printer );
virtual void setupPrinter( KPrinter &printer );
@@ -290,14 +292,14 @@ public:
void closeEditor();
virtual DCOPObject* dcopObject();
- virtual QWidget *canvas() const;
+ virtual TQWidget *canvas() const;
virtual int canvasXOffset() const;
virtual int canvasYOffset() const;
/**
* @reimp
*/
- KoDocument *hitTest( const QPoint &pos );
+ KoDocument *hitTest( const TQPoint &pos );
void initConfig();
@@ -311,7 +313,7 @@ public:
void removeSheet( Sheet *_t );
void insertSheet( Sheet* sheet );
- QColor borderColor() const;
+ TQColor borderColor() const;
Selection* selectionInfo() const;
Selection* choice() const;
@@ -319,8 +321,8 @@ public:
void updateShowSheetMenu();
/**
- * Mark all selected cells / regions of cells as 'dirty' (ie. requiring a repaint)
- * They will be repainted on the next call to paintUpdates()
+ * Mark all selected cells / regions of cells as 'dirty' (ie. requiring a tqrepaint)
+ * They will be tqrepainted on the next call to paintUpdates()
*/
void markSelectionAsDirty();
@@ -336,12 +338,12 @@ public:
bool isInsertingObject();
- bool showSheet(const QString& sheetName);
+ bool showSheet(const TQString& sheetName);
/**
* @return marker for @p sheet
*/
- QPoint markerFromSheet( Sheet* sheet ) const;
+ TQPoint markerFromSheet( Sheet* sheet ) const;
/**
* @return scroll offset for @p sheet
@@ -359,7 +361,7 @@ public:
/**
* Returns the default color for highlighting cells and column / row headers
*/
- static QColor highlightColor();
+ static TQColor highlightColor();
public slots:
/**
@@ -404,11 +406,11 @@ public slots:
void togglePageBorders( bool );
void toggleProtectSheet( bool );
void toggleProtectDoc( bool );
- void viewZoom( const QString & );
- void find();
+ void viewZoom( const TQString & );
+ void tqfind();
void findNext();
void findPrevious();
- void replace();
+ void tqreplace();
void conditional();
void validity();
void insertSeries();
@@ -438,10 +440,10 @@ public slots:
void precisionMinus();
void precisionPlus();
void createStyleFromCell();
- void styleSelected( const QString & );
+ void styleSelected( const TQString & );
void setSelectionPrecision(int delta);
void percent(bool b);
- void fontSelected( const QString &_font );
+ void fontSelected( const TQString &_font );
void fontSizeSelected( int size );
void bold( bool b );
void italic( bool b );
@@ -458,12 +460,12 @@ public slots:
void showColumn();
void showSelColumns();
void insertMathExpr();
- void formulaSelection( const QString &_math );
+ void formulaSelection( const TQString &_math );
void changeTextColor();
void changeBackgroundColor();
void sortInc();
void sortDec();
- void layoutDlg();
+ void tqlayoutDlg();
void extraProperties();
void borderBottom();
void borderRight();
@@ -481,16 +483,16 @@ public slots:
void decreaseFontSize();
void setSelectionFontSize(int size);
- void setSelectionTextColor(const QColor &txtColor);
- void setSelectionBackgroundColor(const QColor &bgColor);
- void setSelectionBorderColor(const QColor &bdColor);
+ void setSelectionTextColor(const TQColor &txtColor);
+ void setSelectionBackgroundColor(const TQColor &bgColor);
+ void setSelectionBorderColor(const TQColor &bdColor);
- void setSelectionLeftBorderColor(const QColor &color);
- void setSelectionRightBorderColor(const QColor &color);
- void setSelectionTopBorderColor(const QColor &color);
- void setSelectionBottomBorderColor(const QColor &color);
- void setSelectionAllBorderColor(const QColor &color);
- void setSelectionOutlineBorderColor(const QColor &color);
+ void setSelectionLeftBorderColor(const TQColor &color);
+ void setSelectionRightBorderColor(const TQColor &color);
+ void setSelectionTopBorderColor(const TQColor &color);
+ void setSelectionBottomBorderColor(const TQColor &color);
+ void setSelectionAllBorderColor(const TQColor &color);
+ void setSelectionOutlineBorderColor(const TQColor &color);
void upper();
void lower();
@@ -500,7 +502,7 @@ public slots:
void firstLetterUpper();
void verticalText(bool );
void addModifyComment();
- void setSelectionComment(QString comment);
+ void setSelectionComment(TQString comment);
void removeComment();
void changeAngle();
void setSelectionAngle(int angle);
@@ -539,7 +541,7 @@ public slots:
* Switch the active sheet to the name. This slot is connected to the tab bar
* and activated when the user selects a new sheet in the tab bar.
*/
- void changeSheet( const QString& _name );
+ void changeSheet( const TQString& _name );
/**
* Switch the active sheet to the next visible sheet. Does nothing if the current
@@ -588,14 +590,14 @@ public slots:
/**
* Shows context menu when tabbar is double-clicked.
*/
- void popupTabBarMenu( const QPoint& );
+ void popupTabBarMenu( const TQPoint& );
- void handleDamages( const QValueList<Damage*>& damages );
+ void handleDamages( const TQValueList<Damage*>& damages );
void runInternalTests();
void runInspector();
- void initialiseMarkerFromSheet( Sheet *_sheet, const QPoint &point );
+ void initialiseMarkerFromSheet( Sheet *_sheet, const TQPoint &point );
/**
* write in statusBar result of calc (Min, or Max, average, sum, count)
@@ -615,7 +617,7 @@ protected slots:
/**
* Invoked if the popup menu for an embedded document should be opened.
*/
- void popupChildMenu( KoChild*, const QPoint& global_pos );
+ void popupChildMenu( KoChild*, const TQPoint& global_pos );
/**
* Invoked when the "Delete Embedded Document" option from an embedded document's
@@ -636,15 +638,15 @@ protected slots:
void slotListChoosePopupMenu( );
/**
- * Called by find/replace (findNext) when it found a match
+ * Called by tqfind/tqreplace (findNext) when it found a match
*/
- void slotHighlight( const QString &text, int matchingIndex, int matchedLength );
+ void slotHighlight( const TQString &text, int matchingIndex, int matchedLength );
/**
* Called when replacing text in a cell
*/
- void slotReplace( const QString &newText, int, int, int );
+ void slotReplace( const TQString &newText, int, int, int );
- void slotSpecialChar( QChar c, const QString & _font );
+ void slotSpecialChar( TQChar c, const TQString & _font );
void slotSpecialCharDlgClosed();
void propertiesOk();
@@ -668,7 +670,7 @@ public slots:
void slotScrollChoice(const Region&);
void slotAddSheet( Sheet *_sheet );
void slotUpdateChildGeometry( EmbeddedKOfficeObject *_child );
- void slotSheetRenamed( Sheet* sheet, const QString& old_name );
+ void slotSheetRenamed( Sheet* sheet, const TQString& old_name );
void slotSheetHidden( Sheet*_sheet );
void slotSheetShown( Sheet*_sheet );
void slotSheetRemoved( Sheet*_sheet );
@@ -676,12 +678,12 @@ public slots:
void extraSpelling();
void spellCheckerReady();
- void spellCheckerMisspelling( const QString &, const QStringList &, unsigned int);
- void spellCheckerCorrected( const QString &, const QString &, unsigned int);
- void spellCheckerDone( const QString & );
+ void spellCheckerMisspelling( const TQString &, const TQStringList &, unsigned int);
+ void spellCheckerCorrected( const TQString &, const TQString &, unsigned int);
+ void spellCheckerDone( const TQString & );
void spellCheckerFinished( );
- void spellCheckerIgnoreAll( const QString & word);
- void spellCheckerReplaceAll( const QString &, const QString &);
+ void spellCheckerIgnoreAll( const TQString & word);
+ void spellCheckerReplaceAll( const TQString &, const TQString &);
void startKSpell();
/**
@@ -697,10 +699,10 @@ public slots:
protected:
- virtual void keyPressEvent ( QKeyEvent * _ev );
- virtual void resizeEvent( QResizeEvent *_ev );
+ virtual void keyPressEvent ( TQKeyEvent * _ev );
+ virtual void resizeEvent( TQResizeEvent *_ev );
- virtual QWMatrix matrix() const;
+ virtual TQWMatrix matrix() const;
/**
* Returns the position of the top-left point of the currently selected cell in document coordinates.