-
Notifications
You must be signed in to change notification settings - Fork 11
/
dialog.h
67 lines (55 loc) · 1.47 KB
/
dialog.h
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
#ifndef DIALOG_H
#define DIALOG_H
#include<QMainWindow>
#include <fstream>
#include <QDialog>
#include "database.h"
#include<iostream>
#include<stdio.h>
#include "available.h"
#include<QTextEdit>
#include<QPushButton>
#include<QVBoxLayout>
#include<map>
#include<vector>
#include<utility>
#include<Queue>
using namespace std;
namespace Ui {
class Dialog;
}
#include "indirect.h"
class Dialog : public QDialog
{
Q_OBJECT
database data[1000];
map<QString,QString> si;
map<QString ,QString > is;
vector<vector<int> >GRAPH;
vector<int>path;
queue<vector<int> >q;
public:
void clear(queue<vector<int> > &q);
explicit Dialog(QWidget *parent = 0);
~Dialog();
indirect *ind;
int flag;
void sort(database data[],int key);
int binary_search(database data[],QString user, QString pass,int key);
void search(QString src,QString dst, QString day);
int readfile(QString day);
available *av;
void open_available_trains();
int findpaths(int source ,int target,int key );
void list_of_trains(QString src, QString dst, database data[], int key,QString day);
bool isadjacency_node_not_present_in_current_path(int node,vector<int> &path);
void print_path(vector<int> &path,int key);
int seq_search(database data[],QString src,QString dst,int key);
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
private:
Ui::Dialog *ui;
};
#endif // DIALOG_H