Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Timetable/mainwindow.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52 lines (39 sloc)
1.1 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MAINWINDOW_H | |
#define MAINWINDOW_H | |
#include <QMainWindow> | |
//Add | |
#include <qdebug.h> | |
#include <QSqlDatabase> | |
#include <QSqlError> | |
#include <QSqlQuery> | |
#include <QMessageBox> | |
#include"adddialog.h" | |
#include"deldialog.h" | |
#include"seldialog.h" | |
#include"changedialog.h" | |
#include"courseinfo.h" | |
namespace Ui { | |
class MainWindow; | |
} | |
class MainWindow : public QMainWindow | |
{ | |
Q_OBJECT | |
public: | |
explicit MainWindow(QWidget *parent = nullptr); | |
~MainWindow(); | |
private slots: | |
void on_pushButton_clicked(); | |
void on_pushButton_2_clicked(); | |
void on_pushButton_3_clicked(); | |
void on_pushButton_4_clicked(); | |
private: | |
Ui::MainWindow *ui; | |
}; | |
void addCourse(QString name,QString lec,int day,int lesson,QString classroom); | |
void delCourse(QString name); | |
void selCourse(selDialog newsel); | |
void changCourse(QString oldname,int oldday,int oldlesson,QString name,QString lec,int day,int lesson,QString classroom); | |
bool outPutTableInfo(QString tabNmae); | |
bool outputDatabaseInfo(QSqlDatabase database); | |
//extern QSqlDatabase dbtimetable; | |
#endif // MAINWINDOW_H |