Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions Login - Updated/Login.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#-------------------------------------------------
#
# Project created by QtCreator 2019-09-18T14:14:11
#
#-------------------------------------------------

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Login
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

SOURCES += \
main.cpp \
mainwindow.cpp \
secondwindow.cpp

HEADERS += \
mainwindow.h \
secondwindow.h

FORMS += \
mainwindow.ui \
secondwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
598 changes: 598 additions & 0 deletions Login - Updated/Login.pro.user

Large diffs are not rendered by default.

2,947 changes: 2,947 additions & 0 deletions Login - Updated/Login.pro.user.28d7464.4.10-pre1

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions Login - Updated/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "mainwindow.h"
#include <QApplication>
#include <QMessageBox>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();

return a.exec();
}
30 changes: 30 additions & 0 deletions Login - Updated/mainwindow.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}

MainWindow::~MainWindow()
{
delete ui;
}

void MainWindow::on_loginButton_clicked()
{
QString username = ui->usernameEdit->text();
QString password = ui->passwordEdit->text();

if (username == "Admin" && password == "123")
{
secondWindowPtr = new secondWindow(this);
secondWindowPtr->show();
}
else
{
QMessageBox::warning(this, "Login", "Credentials Invalid");
}
}
28 changes: 28 additions & 0 deletions Login - Updated/mainwindow.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "secondwindow.h"
#include <QMessageBox>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
Q_OBJECT

public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();

private slots:
void on_loginButton_clicked();

private:
Ui::MainWindow *ui;
secondWindow * secondWindowPtr;
};

#endif // MAINWINDOW_H
116 changes: 116 additions & 0 deletions Login - Updated/mainwindow.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>633</width>
<height>358</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget">
<widget class="QGroupBox" name="loginGroupBox">
<property name="geometry">
<rect>
<x>210</x>
<y>69</y>
<width>221</width>
<height>171</height>
</rect>
</property>
<property name="title">
<string>Administrator Login</string>
</property>
<widget class="QLabel" name="passwordLabel">
<property name="geometry">
<rect>
<x>24</x>
<y>70</y>
<width>47</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Password</string>
</property>
</widget>
<widget class="QLineEdit" name="passwordEdit">
<property name="geometry">
<rect>
<x>74</x>
<y>70</y>
<width>113</width>
<height>20</height>
</rect>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
<widget class="QPushButton" name="loginButton">
<property name="geometry">
<rect>
<x>80</x>
<y>110</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>Login</string>
</property>
</widget>
<widget class="QLineEdit" name="usernameEdit">
<property name="geometry">
<rect>
<x>74</x>
<y>30</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="usernameLabel">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>51</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Username</string>
</property>
</widget>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>633</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
14 changes: 14 additions & 0 deletions Login - Updated/secondwindow.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "secondwindow.h"
#include "ui_secondwindow.h"

secondWindow::secondWindow(QWidget *parent) :
QDialog(parent),
ui(new Ui::secondWindow)
{
ui->setupUi(this);
}

secondWindow::~secondWindow()
{
delete ui;
}
22 changes: 22 additions & 0 deletions Login - Updated/secondwindow.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef SECONDWINDOW_H
#define SECONDWINDOW_H

#include <QDialog>

namespace Ui {
class secondWindow;
}

class secondWindow : public QDialog
{
Q_OBJECT

public:
explicit secondWindow(QWidget *parent = nullptr);
~secondWindow();

private:
Ui::secondWindow *ui;
};

#endif // SECONDWINDOW_H
32 changes: 32 additions & 0 deletions Login - Updated/secondwindow.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>secondWindow</class>
<widget class="QDialog" name="secondWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>150</x>
<y>100</y>
<width>91</width>
<height>111</height>
</rect>
</property>
<property name="text">
<string>Login successful</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>
6 changes: 3 additions & 3 deletions Login/Login.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.9.0, 2019-09-18T14:28:01. -->
<!-- Written by QtCreator 4.9.0, 2019-09-23T16:29:34. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -306,8 +306,8 @@
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Login</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/jloague0/Documents/Login/Login.pro</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Login2</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/jloague0/Desktop/Login/Login.pro</value>
<value type="QString" key="RunConfiguration.Arguments"></value>
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
Expand Down
10 changes: 10 additions & 0 deletions Ops
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
What is iCyberSecurity?

iCyberSecurity Incorporated is a network protection company, devoted to stopping and containing any cyber
secruity threats or attacks. A far overlooked and vital factor to protecting the network of a company is its
employees. Our highly professional and constantly refined training against firms of cyber security will give your
business body expertise when it comes to detecting and handling these threats. Risk assessments, involving the
evaluation of security of a company's network along with the latest ways cyber hackers can infiltrate the privacy
of a business are key to the interests of us, and any company wishing to protect their right of privacy. Our
methodologies have proven very successful for organizations we have worked and provided for, and we hope that
our guidance can assure that your comapny is secure with us.
37 changes: 37 additions & 0 deletions Testimonials/Testimonials.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
main.cpp \
mainwindow.cpp \
secondtestimony.cpp \
testimonywindow.cpp

HEADERS += \
mainwindow.h \
secondtestimony.h \
testimonywindow.h

FORMS += \
mainwindow.ui \
secondtestimony.ui \
testimonywindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
Loading