Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Jul 28, 2021
1 parent df834b5 commit 69daff4
Show file tree
Hide file tree
Showing 11 changed files with 11,620 additions and 424 deletions.
193 changes: 89 additions & 104 deletions shell/endsessionwait.cpp

Large diffs are not rendered by default.

109 changes: 57 additions & 52 deletions shell/endsessionwait.h
Expand Up @@ -38,6 +38,8 @@
#undef FocusOut
#undef CursorShape
#undef Unsorted
#undef False
#undef True

#include <QDialog>
#include <QProcess>
Expand Down Expand Up @@ -71,87 +73,90 @@
#include <signal.h>



namespace Ui {
class EndSessionWait;
class EndSessionWait;
}

class EndSessionWait : public QDialog
{
Q_OBJECT
class EndSessionWait : public QDialog {
Q_OBJECT

public:
enum shutdownType {
powerOff,
reboot,
logout,
public:
enum shutdownType {
powerOff,
reboot,
logout,

slideOff, //For tablet mode
slideOff, //For tablet mode

//These should not be shown.
suspend,
hibernate,
ask,
screenOff,
dummy //FOR TESTING
};
//These should not be shown.
suspend,
hibernate,
ask,
screenOff,
dummy //FOR TESTING
};

explicit EndSessionWait(shutdownType type, QWidget *parent = 0);
~EndSessionWait();
explicit EndSessionWait(shutdownType type, QWidget* parent = 0);
~EndSessionWait();

void showFullScreen();
void reject();
void showFullScreen();
void reject();

private slots:
void on_killAllButton_clicked();
private slots:
void on_killAllButton_clicked();

void on_cancelButton_clicked();
void on_cancelButton_clicked();

void EndSessionNow();
void on_CancelAsk_clicked();
void EndSessionNow();
void on_CancelAsk_clicked();

void on_PowerOff_clicked();
void on_PowerOff_clicked();

void on_Reboot_clicked();
void on_Reboot_clicked();

void on_LogOut_clicked();
void on_LogOut_clicked();

void on_Suspend_clicked();
void on_Suspend_clicked();

void on_terminateApp_clicked();
void on_terminateApp_clicked();

void on_exitTerminate_clicked();
void on_exitTerminate_clicked();

void reloadAppList();
void reloadAppList();

void on_pushButton_5_clicked();
void on_pushButton_5_clicked();

void on_pushButton_4_clicked();
void on_pushButton_4_clicked();

void on_listWidget_currentRowChanged(int currentRow);
void on_listWidget_currentRowChanged(int currentRow);

void on_DummyExit_clicked();
void on_DummyExit_clicked();

public slots:
void close();
public slots:
void close();

private:
Ui::EndSessionWait *ui;
private:
Ui::EndSessionWait* ui;

void performEndSession();
shutdownType type;
bool alreadyShowing = false;
void performEndSession();
shutdownType type;
bool alreadyShowing = false;

QVariantAnimation* powerOffTimer;
QVariantAnimation* powerOffTimer;

TaskbarManager* tbManager;
bool performEndSessionWhenAllAppsClosed = false;
QTimer* tbTimer;
TaskbarManager* tbManager;
bool performEndSessionWhenAllAppsClosed = false;
QTimer* tbTimer;

int pressLocation;
int pressLocation;

void paintEvent(QPaintEvent* event);
void mousePressEvent(QMouseEvent* event);
bool eventFilter(QObject *obj, QEvent *eve);
void paintEvent(QPaintEvent* event);
void mousePressEvent(QMouseEvent* event);
bool eventFilter(QObject* obj, QEvent* eve);
};

#define False 0
#define True 1

#endif // ENDSESSIONWAIT_H
4,169 changes: 4,168 additions & 1 deletion shell/infopanedropdown.cpp

Large diffs are not rendered by default.

6,990 changes: 6,989 additions & 1 deletion shell/infopanedropdown.ui

Large diffs are not rendered by default.

0 comments on commit 69daff4

Please sign in to comment.