summaryrefslogtreecommitdiffstats
path: root/krecipes/src/dialogs/recipeinputdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/dialogs/recipeinputdialog.h')
-rw-r--r--krecipes/src/dialogs/recipeinputdialog.h110
1 files changed, 55 insertions, 55 deletions
diff --git a/krecipes/src/dialogs/recipeinputdialog.h b/krecipes/src/dialogs/recipeinputdialog.h
index 7b09345..085f0d3 100644
--- a/krecipes/src/dialogs/recipeinputdialog.h
+++ b/krecipes/src/dialogs/recipeinputdialog.h
@@ -23,22 +23,22 @@
#include <kiconloader.h>
#include <kled.h>
-#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qmap.h>
-#include <qobject.h>
-#include <qtabwidget.h>
-#include <qtoolbutton.h>
-#include <qvbox.h>
+#include <ntqlabel.h>
+#include <ntqgroupbox.h>
+#include <ntqmap.h>
+#include <ntqobject.h>
+#include <ntqtabwidget.h>
+#include <ntqtoolbutton.h>
+#include <ntqvbox.h>
#include "datablocks/elementlist.h"
-class QTabWidget;
-class QTimeEdit;
-class QDragEvent;
-class QButtonGroup;
-class QWidgetStack;
-class QTextEdit;
+class TQTabWidget;
+class TQTimeEdit;
+class TQDragEvent;
+class TQButtonGroup;
+class TQWidgetStack;
+class TQTextEdit;
class KreTextEdit;
class KWidgetListbox;
@@ -58,13 +58,13 @@ class ClickableLed;
/**
@author Unai Garro
*/
-class RecipeInputDialog: public QVBox
+class RecipeInputDialog: public TQVBox
{
Q_OBJECT
public:
- RecipeInputDialog( QWidget* parent, RecipeDB* db );
+ RecipeInputDialog( TQWidget* parent, RecipeDB* db );
void loadRecipe( int recipeID );
~RecipeInputDialog();
void newRecipe( void );
@@ -81,40 +81,40 @@ private:
bool unsavedChanges;
// Widgets
- QTabWidget* tabWidget;
- QGroupBox* recipeTab;
- QGroupBox* instructionsTab;
+ TQTabWidget* tabWidget;
+ TQGroupBox* recipeTab;
+ TQGroupBox* instructionsTab;
//Recipe Photo
ImageDropLabel *photoLabel;
- QPixmap sourcePhoto;
- QPushButton *changePhotoButton;
+ TQPixmap sourcePhoto;
+ TQPushButton *changePhotoButton;
//Recipe Body
KreTextEdit* instructionsEdit;
- QLabel* titleLabel;
+ TQLabel* titleLabel;
KLineEdit* titleEdit;
//Additional recipe data
- QLabel* yieldLabel;
+ TQLabel* yieldLabel;
FractionInput* yieldNumInput;
KLineEdit* yieldTypeEdit;
- QTimeEdit *prepTimeEdit;
- QLabel* authorLabel;
+ TQTimeEdit *prepTimeEdit;
+ TQLabel* authorLabel;
KLineEdit* authorShow;
- QPushButton* addAuthorButton;
- QLabel* categoryLabel;
+ TQPushButton* addAuthorButton;
+ TQLabel* categoryLabel;
KLineEdit* categoryShow;
- QPushButton* addCategoryButton;
+ TQPushButton* addCategoryButton;
//Ingredient inputs
KListView* ingredientList;
- QGroupBox *ingredientGBox;
+ TQGroupBox *ingredientGBox;
IngredientInputWidget *ingInput;
ClickableLed *propertyStatusLed;
- QLabel *propertyStatusLabel;
- QPushButton *propertyStatusButton;
- QTextEdit *statusTextView;
+ TQLabel *propertyStatusLabel;
+ TQPushButton *propertyStatusButton;
+ TQTextEdit *statusTextView;
KDialogBase *propertyStatusDialog;
// Buttons to move ingredients up & down...
@@ -125,28 +125,28 @@ private:
KPushButton* ingParserButton;
//Function buttons
- QGroupBox* functionsBox;
- QToolButton* saveButton;
- QToolButton* closeButton;
- QToolButton* showButton;
- QToolButton* resizeButton;
+ TQGroupBox* functionsBox;
+ TQToolButton* saveButton;
+ TQToolButton* closeButton;
+ TQToolButton* showButton;
+ TQToolButton* resizeButton;
- QToolButton* spellCheckButton;
+ TQToolButton* spellCheckButton;
KWidgetListbox *ratingListDisplayWidget;
- QMap<int,QString> propertyStatusMapRed;
- QMap<int,QString> propertyStatusMapYellow;
+ TQMap<int,TQString> propertyStatusMapRed;
+ TQMap<int,TQString> propertyStatusMapYellow;
// Internal functions
- int createNewYieldIfNecessary( const QString &yield );
+ int createNewYieldIfNecessary( const TQString &yield );
void saveRecipe( void );
void showCategories( void );
void showAuthors( void );
- int ingItemIndex( QListView *listview, const QListViewItem *item ) const;
+ int ingItemIndex( TQListView *listview, const TQListViewItem *item ) const;
void addRating( const Rating &rating, RatingDisplayWidget *item );
- QString statusMessage() const;
- QString conversionPath( const QString &ingUnit, const QString &toUnit, const QString &fromUnit, const QString &propUnit ) const;
+ TQString statusMessage() const;
+ TQString conversionPath( const TQString &ingUnit, const TQString &toUnit, const TQString &fromUnit, const TQString &propUnit ) const;
// Signals & Slots
@@ -156,16 +156,16 @@ private slots:
void moveIngredientUp( void );
void moveIngredientDown( void );
void removeIngredient( void );
- void syncListView( QListViewItem* it, const QString &new_text, int col );
+ void syncListView( TQListViewItem* it, const TQString &new_text, int col );
void recipeChanged( void );
- void recipeChanged( const QString &t );
+ void recipeChanged( const TQString &t );
void enableChangedSignal( bool en = true );
void addCategory( void );
void addAuthor( void );
void enableSaveButton( bool enabled );
void closeOptions( void );
void showRecipe( void );
- void prepTitleChanged( const QString &title );
+ void prepTitleChanged( const TQString &title );
void recipeRemoved( int id );
void slotIngredientParser();
void slotAddRating();
@@ -185,10 +185,10 @@ public slots:
signals:
void changed( void );
void closeRecipe( void );
- void createButton( QWidget* w, const QString &title );
+ void createButton( TQWidget* w, const TQString &title );
void enableSaveOption( bool en = true );
void showRecipe( int recipeID ); //Indicates krecipesview to show it
- void titleChanged( const QString &title );
+ void titleChanged( const TQString &title );
};
@@ -198,31 +198,31 @@ class ClickableLed : public KLed
Q_OBJECT
public:
- ClickableLed( QWidget *parent );
+ ClickableLed( TQWidget *parent );
protected:
- virtual void mouseReleaseEvent( QMouseEvent* );
+ virtual void mouseReleaseEvent( TQMouseEvent* );
signals:
void clicked();
};
-class ImageDropLabel : public QLabel
+class ImageDropLabel : public TQLabel
{
Q_OBJECT
public:
- ImageDropLabel( QWidget *parent, QPixmap &_sourcePhoto );
+ ImageDropLabel( TQWidget *parent, TQPixmap &_sourcePhoto );
signals:
void changed();
protected:
- void dragEnterEvent( QDragEnterEvent* event );
- void dropEvent( QDropEvent* event );
+ void dragEnterEvent( TQDragEnterEvent* event );
+ void dropEvent( TQDropEvent* event );
private:
- QPixmap &sourcePhoto;
+ TQPixmap &sourcePhoto;
};
#endif