Client main window.
More...
#include <MainWindow.hpp>
Inherits QMainWindow.
|
virtual void | closeEvent (QCloseEvent *event) |
| Overrides QWidget::closeEvent() . More...
|
|
|
enum | MainWinActions {
ACTION_CONNECT_TO_SERVER,
ACTION_CREATE_SSH_TUNNEL,
ACTION_CREATE_REVERSE_SSH_TUNNEL,
ACTION_DISCONNECT_FROM_SERVER,
ACTION_SHUTDOWN_SERVER,
ACTION_UPDATE_TREE,
ACTION_OPEN_REMOTELY,
ACTION_OPEN_LOCALLY,
ACTION_SAVE_REMOTELY,
ACTION_SAVE_LOCALLY,
ACTION_RUN_SCRIPT,
ACTION_QUIT,
ACTION_TOGGLE_DEBUG_MODE,
ACTION_TOGGLE_ADVANCED_MODE,
ACTION_TOGGLE_INFO_PANE,
ACTION_CLEAR_LOG,
ACTION_HELP,
ACTION_GOTO_WIKI,
ACTION_GOTO_WEBSITE,
ACTION_ABOUT_COOLFLuiD,
ACTION_ABOUT_QT,
ACTION_NEW_PYTHON_EDITOR,
ACTION_NEW_REMOTE_FILE_COPY
} |
|
|
static const int | CLOSE_DISC = 0 |
| Indicates that the user wants to disconnect from the server. More...
|
|
static const int | CLOSE_SHUTDOWN = 1 |
| Indicates that the user wants to shutdown the server. More...
|
|
static const int | CLOSE_CANCEL = 2 |
| Indicates that the user wants cancel his request to close the connection/window. More...
|
|
Client main window.
- Author
- Quentin Gasper.
Definition at line 59 of file MainWindow.hpp.
Enumerator |
---|
ACTION_CONNECT_TO_SERVER |
|
ACTION_CREATE_SSH_TUNNEL |
|
ACTION_CREATE_REVERSE_SSH_TUNNEL |
|
ACTION_DISCONNECT_FROM_SERVER |
|
ACTION_SHUTDOWN_SERVER |
|
ACTION_UPDATE_TREE |
|
ACTION_OPEN_REMOTELY |
|
ACTION_OPEN_LOCALLY |
|
ACTION_SAVE_REMOTELY |
|
ACTION_SAVE_LOCALLY |
|
ACTION_RUN_SCRIPT |
|
ACTION_QUIT |
|
ACTION_TOGGLE_DEBUG_MODE |
|
ACTION_TOGGLE_ADVANCED_MODE |
|
ACTION_TOGGLE_INFO_PANE |
|
ACTION_CLEAR_LOG |
|
ACTION_HELP |
|
ACTION_GOTO_WIKI |
|
ACTION_GOTO_WEBSITE |
|
ACTION_ABOUT_COOLFLuiD |
|
ACTION_ABOUT_QT |
|
ACTION_NEW_PYTHON_EDITOR |
|
ACTION_NEW_REMOTE_FILE_COPY |
|
Definition at line 63 of file MainWindow.hpp.
Constructor.
Builds all components used by the window. After the constructor, the window is visible and in a "@e Not connected" state.
Definition at line 73 of file MainWindow.cpp.
Destructor.
Frees the allocated memory.
Definition at line 185 of file MainWindow.cpp.
void closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protectedvirtual |
Overrides QWidget::closeEvent()
.
This method is called when the user closes the window. If a network communication is active, he is prompt to confirm his action.
- Parameters
-
event | Close event to manage the window closing. |
Definition at line 419 of file MainWindow.cpp.
Asks to the user to confirm his request to close the connection or window.
- Returns
- Returns
CLOSE_DISC
if the user just wants to disconnect from the server, CLOSE_SHUTDOWN
if the user wants to shutdown the server or SHUT_CANCEL
if the user wants to cancel his action.
Definition at line 365 of file MainWindow.cpp.
void connect_to_server |
( |
| ) |
|
|
privateslot |
void create_reverse_ssh_tunnel |
( |
| ) |
|
|
privateslot |
void create_ssh_tunnel |
( |
| ) |
|
|
privateslot |
void current_index_changed |
( |
const QModelIndex & |
newIndex, |
|
|
const QModelIndex & |
oldIndex |
|
) |
| |
|
privateslot |
void disconnect_from_server |
( |
| ) |
|
|
privateslot |
void network_connected |
( |
| ) |
|
|
privateslot |
void new_exception |
( |
const QString & |
msg | ) |
|
|
privateslot |
void new_python_script_editor |
( |
| ) |
|
|
privateslot |
void new_remote_file_copy |
( |
| ) |
|
|
privateslot |
void open_file_locally |
( |
| ) |
|
|
privateslot |
void open_file_remotely |
( |
| ) |
|
|
privateslot |
Slot called when the user wants to quit the application.
The client disconnects form the server and exits immediately.
Definition at line 456 of file MainWindow.cpp.
void save_file_locally |
( |
| ) |
|
|
privateslot |
void save_file_remotely |
( |
| ) |
|
|
privateslot |
void set_connected_state |
( |
bool |
connected | ) |
|
|
private |
void set_file_open |
( |
bool |
fileOpen | ) |
|
|
private |
Sets the client to a file open or a file not open state by enabling or disabling certain options().
- Parameters
-
fileOpen | If true , the client is set to a file open running state, otherwise it is set to a file not open state. |
Definition at line 355 of file MainWindow.cpp.
void set_running_script_state |
( |
bool |
running | ) |
|
|
private |
void show_error |
( |
const QString & |
errorMessage | ) |
|
|
private |
Shows an error message in a message box.
- Parameters
-
errorMessage | Error message to show. |
Definition at line 408 of file MainWindow.cpp.
void tab_clicked |
( |
int |
num | ) |
|
|
privateslot |
Slot called when the user wants to to toggle basic/advanced mode.
Definition at line 469 of file MainWindow.cpp.
void toggle_debug_mode |
( |
| ) |
|
|
privateslot |
const int CLOSE_CANCEL = 2 |
|
staticprivate |
Indicates that the user wants cancel his request to close the connection/window.
Used when the user does "Disconnect", "Quit", or closes the window.
Definition at line 207 of file MainWindow.hpp.
Indicates that the user wants to disconnect from the server.
Used when the user does "Disconnect", "Quit", or closes the window.
Definition at line 196 of file MainWindow.hpp.
const int CLOSE_SHUTDOWN = 1 |
|
staticprivate |
Indicates that the user wants to shutdown the server.
Used when the user does "Disconnect", "Quit", or closes the window.
Definition at line 201 of file MainWindow.hpp.
Hashmap containing all available actions for menu m_items.
The key is a number defined by one of the constant integer attributes of this class. The value is the action corresponding to this number.
Definition at line 222 of file MainWindow.hpp.
Panel used to display and modify options for a selected object.
Definition at line 216 of file MainWindow.hpp.
QSplitter* m_central_splitter |
|
private |
QLabel* m_lab_description |
|
private |
Text area displaying the log messages.
Definition at line 239 of file MainWindow.hpp.
QTableView* m_property_view |
|
private |
Simple console to execute python command on the server.
Definition at line 251 of file MainWindow.hpp.
QSplitter* m_python_tab_splitter |
|
private |
QScrollArea* m_scroll_description |
|
private |
The documentation for this class was generated from the following files: