kexi
kexidataawareview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KEXIDATAAWAREVIEW_H
00021 #define KEXIDATAAWAREVIEW_H
00022
00023 #include <kexiviewbase.h>
00024
00025 class KexiDataAwareObjectInterface;
00026 class KexiSharedActionClient;
00027
00038 class KEXIEXTWIDGETS_EXPORT KexiDataAwareView : public KexiViewBase
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 KexiDataAwareView(KexiMainWindow *mainWin, QWidget *parent, const char *name = 0);
00044
00045 QWidget* mainWidget();
00046
00047 virtual QSize minimumSizeHint() const;
00048 virtual QSize sizeHint() const;
00049 KexiDataAwareObjectInterface* dataAwareObject() const { return m_dataAwareObject; }
00050
00051 public slots:
00052 void deleteAllRows();
00053 void deleteCurrentRow();
00054 void deleteAndStartEditCurrentCell();
00055 void startEditOrToggleValue();
00056 bool acceptRowEdit();
00057 void cancelRowEdit();
00058 void sortAscending();
00059 void sortDescending();
00060 void copySelection();
00061 void cutSelection();
00062 void paste();
00063 void slotGoToFirstRow();
00064 void slotGoToPreviusRow();
00065 void slotGoToNextRow();
00066 void slotGoToLastRow();
00067 void slotGoToNewRow();
00068
00069 protected slots:
00070
00071 void slotCellSelected(int col, int row);
00072 void reloadActions();
00073 void slotUpdateRowActions(int row);
00074 void slotClosing(bool& cancel);
00075
00076 protected:
00077 void init( QWidget* viewWidget, KexiSharedActionClient* actionClient,
00078 KexiDataAwareObjectInterface* dataAwareObject,
00079
00080 bool noDataAware = false
00081 );
00082 void initActions();
00083 virtual void updateActions(bool activated);
00084
00085
00086 QWidget* m_internalView;
00087 KexiSharedActionClient* m_actionClient;
00088 KexiDataAwareObjectInterface* m_dataAwareObject;
00089 };
00090
00091 #endif
|