File: query.h

package info (click to toggle)
mysql-navigator 1.2.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,756 kB
  • ctags: 1,058
  • sloc: cpp: 11,213; makefile: 46; sh: 24; sql: 11
file content (96 lines) | stat: -rw-r--r-- 1,987 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/****************************************************************************
** Form interface generated from reading ui file 'query.ui'
**
** Created: Wed Apr 25 09:51:22 2001
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef QUERY_H
#define QUERY_H

#include <qvariant.h>
#include <qwidget.h>
class QVBoxLayout; 
class QHBoxLayout; 
class QGridLayout; 
class QButtonGroup;
class QComboBox;
class QLabel;
class QListView;
class QListViewItem;
class QMultiLineEdit;
class QPushButton;

#include <qmultilineedit.h>
#include <qcombobox.h>
#include <qpushbutton.h>
#include <mysql.h>
#include "querylistview.h"
#include "mainwindowglobal.h"

#include <qvbox.h>
#include <qsplitter.h>
#include <qtoolbar.h>

//class Query : public QWidget
class Query : public QVBox
{ 
    Q_OBJECT

public:
    Query(MYSQL *, struct __global__ *, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~Query();

    QComboBox* database;
    QMultiLineEdit* sql;
    QueryListView* query;

	QToolBar *toolbar;
	QSplitter *splitter;	
	/*
    QPushButton* close;
    QPushButton* fire;
    QButtonGroup* grp;
    QComboBox* database;
    QLabel* TextLabel2;
    QLabel* TextLabel1;
    QMultiLineEdit* query;
    QueryListView* sql;
	*/

protected:
   	//QGridLayout* ButtonGroup1Layout;

private:
    void signal_connect();

    MYSQL *mysql;
    MYSQL_RES *result;
    MYSQL_ROW row;

public slots:
    void slot_close();
    void slot_fire();
	void slot_undo();
	void slot_redo();
	void slot_cut();
	void slot_copy();
	void slot_paste();
    void slot_clear();
	void slot_select_all();
	void slot_about();
    void slot_database();

private slots:	
	void slot_current_database(const QString &);

signals:
    void signal_query(const QString &, const QString &);
	void signal_schema();

protected:
	void resizeEvent(QResizeEvent *);
};

#endif // QUERY_H