You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
894 B
44 lines
894 B
#ifndef TUI_MENU_H
|
|
#define TUI_MENU_H
|
|
|
|
#include <iostream>
|
|
#include <stdio.h>
|
|
#include <curses.h>
|
|
#include <QCoreApplication>
|
|
#include <QRegularExpression>
|
|
#include <QStringList>
|
|
#include <QHash>
|
|
|
|
#define COLOR_DARK_GRAY 9
|
|
|
|
class Menu : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Menu(WINDOW *window, QObject *parent = 0);
|
|
~Menu();
|
|
|
|
signals:
|
|
void finished();
|
|
|
|
public slots:
|
|
void start();
|
|
|
|
private:
|
|
WINDOW *m_window;
|
|
|
|
void red(WINDOW *window);
|
|
void cyan(WINDOW *window);
|
|
void green(WINDOW *window);
|
|
void magenta(WINDOW *window);
|
|
void quit(WINDOW *window);
|
|
void msgbox(const char *text);
|
|
void arpMenu(WINDOW *window);
|
|
void interfaceMenu(WINDOW *window);
|
|
void interfaceSelect(WINDOW *window, QString interface);
|
|
void wifiInterfaceMenu(WINDOW *window);
|
|
void wifiInterfaceSelect(WINDOW *window, QString interface);
|
|
void mainmenu(WINDOW *window);
|
|
};
|
|
|
|
#endif // TUI_MENU_H
|
|
|