aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/pages/page_defaultapps.h
blob: d8e2bcde739cb643e74d2d973e9c661e1e61407a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//===========================================
//  Lumina Desktop Source Code
//  Copyright (c) 2016, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details 
//===========================================
#ifndef _LUMINA_CONFIG_PAGE_DEFAULTAPPS_H
#define _LUMINA_CONFIG_PAGE_DEFAULTAPPS_H
#include "../globals.h"
#include "PageWidget.h"

namespace Ui{
	class page_defaultapps;
};

class page_defaultapps : public PageWidget{
	Q_OBJECT
public:
	page_defaultapps(QWidget *parent);
	~page_defaultapps();

public slots:
	void SaveSettings();
	void LoadSettings(int screennum);
	void updateIcons();

private:
	Ui::page_defaultapps *ui;
  QString defaultBrowser;
  QString defaultEmail;
  QString defaultFileManager;
  QString defaultTerminal;

	QString getSysApp(bool allowreset, QString defaultPath = "");

	void updateDefaultButton(QToolButton *button, QString app);

private slots:
	//Simple defaults tab
	void changeDefaultBrowser();
	void changeDefaultEmail();
	void changeDefaultFileManager();
	void changeDefaultTerminal();
	//Advanced defaults tab
	void cleardefaultitem();
	void setdefaultitem();
	void setdefaultbinary();
	void checkdefaulticons();

};
#endif
bgstack15