-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.cpp
61 lines (49 loc) · 1.21 KB
/
widget.cpp
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
#include "widget.h"
#include "./ui_widget.h"
#include "screenbst.h"
#include "screenavl.h"
#include "screenrbt.h"
#include "QComboBox"
#include "QApplication"
#include "QComboBox"
#include "QDebug"
#include "QGraphicsView"
#include "QGraphicsScene"
#include "QGraphicsEllipseItem"
#include "QGraphicsRectItem"
#include "QPushButton"
#include <QMessageBox>
#include "QPalette"
Widget::Widget(QWidget *parent)
: QWidget(parent), ui(new Ui::Widget){
ui->setupUi(this);
//setStyleSheet("QComboBox{background-color: #aa4b6b ; color: White;}");
}
Widget::~Widget(){
delete ui;
}
void Widget::on_Next_clicked()
{
QString s = ui->choose->currentText();
if(s=="BST"){
screenBST bbb;
bbb.setModal(free);
bbb.setWindowTitle("Tree visualization BST");
bbb.exec();
qDebug () << " BST Screen ";
}
if(s=="AVL"){
screenAVL aaa;
aaa.setModal(free);
aaa.setWindowTitle("Tree visualization AVL");
aaa.exec();
qDebug () << " AVL Screen ";
}
if(s=="RBT"){
screenrbt rrr;
rrr.setModal(free);
rrr.setWindowTitle("Tree visualization RBT");
rrr.exec();
qDebug () << " RBT Screen ";
}
}