2018-07-17 12:10:35 +01:00
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
|
//
|
2021-01-04 15:34:45 +05:30
|
|
|
// Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
2018-07-17 12:10:35 +01:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
|
//
|
|
|
|
|
// FloatingWindow.h - For GNOME 3.26 and above floating window will be used.
|
|
|
|
|
//
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#ifndef FLOATINGWINDOW_H
|
|
|
|
|
#define FLOATINGWINDOW_H
|
|
|
|
|
|
|
|
|
|
#include "MenuActions.h"
|
|
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class FloatingWindow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class FloatingWindow : public QMainWindow
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2018-12-06 10:40:49 +00:00
|
|
|
explicit FloatingWindow(QWidget *parent = Q_NULLPTR);
|
2018-07-17 12:10:35 +01:00
|
|
|
|
|
|
|
|
bool Init();
|
2020-07-28 16:13:05 +05:30
|
|
|
void enablePostStartOptions();
|
2020-07-29 15:31:38 +05:30
|
|
|
void enableViewLogOption();
|
|
|
|
|
void disableViewLogOption();
|
2020-08-25 18:01:27 +05:30
|
|
|
void enableConfigOption();
|
|
|
|
|
void disableConfigOption();
|
2018-07-17 12:10:35 +01:00
|
|
|
void setMenuActions(MenuActions * menuActions);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::FloatingWindow *ui;
|
|
|
|
|
|
|
|
|
|
void createMenu();
|
|
|
|
|
void createActions();
|
|
|
|
|
void closeEvent(QCloseEvent * event);
|
|
|
|
|
|
2020-06-16 14:53:40 +05:30
|
|
|
QAction *m_newAction = Q_NULLPTR;
|
|
|
|
|
QAction *m_copyUrlAction = Q_NULLPTR;
|
|
|
|
|
QAction *m_configAction = Q_NULLPTR;
|
|
|
|
|
QAction *m_logAction = Q_NULLPTR;
|
|
|
|
|
QAction *m_quitAction = Q_NULLPTR;
|
2018-07-17 12:10:35 +01:00
|
|
|
|
2020-06-23 14:23:28 +05:30
|
|
|
QMenu *m_floatingWindowMenu = Q_NULLPTR;
|
|
|
|
|
MenuActions *m_menuActions = Q_NULLPTR;
|
2018-07-17 12:10:35 +01:00
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void shutdownSignal(QUrl);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // FLOATINGWINDOW_H
|