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.
60 lines
1.4 KiB
60 lines
1.4 KiB
10 years ago
|
/* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
|
||
|
* (c)DWTFYW
|
||
|
*
|
||
|
* This program is free software. It comes without any warranty, to
|
||
|
* the extent permitted by applicable law. You can redistribute it
|
||
|
* and/or modify it under the terms of the Do What The Fuck You Want
|
||
|
* To Public License, Version 2, as published by Sam Hocevar. See
|
||
|
* http://sam.zoy.org/wtfpl/COPYING for more details.
|
||
|
*/
|
||
|
|
||
|
// 2014-04-10 modified by Hong Jen Yee (PCMan) for integration with lxqt-config-input
|
||
|
|
||
|
#ifndef SELECTWND_H
|
||
|
#define SELECTWND_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QWidget>
|
||
|
|
||
|
namespace LxQt {
|
||
|
class Settings;
|
||
|
}
|
||
|
|
||
|
class XCursorThemeModel;
|
||
|
|
||
|
#include "ui_selectwnd.h"
|
||
|
class SelectWnd : public QWidget, private Ui_SelectWnd
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
SelectWnd (LxQt::Settings* settings, QWidget *parent=0);
|
||
|
~SelectWnd ();
|
||
|
|
||
|
public slots:
|
||
|
void setCurrent ();
|
||
|
|
||
|
protected:
|
||
|
// void keyPressEvent (QKeyEvent *e);
|
||
|
|
||
|
private:
|
||
|
bool iconsIsWritable () const;
|
||
|
void selectRow (int) const;
|
||
|
void selectRow (const QModelIndex &index) const { selectRow(index.row()); }
|
||
|
void applyCurrent ();
|
||
|
|
||
|
private slots:
|
||
|
void currentChanged (const QModelIndex ¤t, const QModelIndex &previous);
|
||
|
void on_btInstall_clicked ();
|
||
|
void on_btRemove_clicked ();
|
||
|
void handleWarning();
|
||
|
void showDirInfo();
|
||
|
|
||
|
private:
|
||
|
XCursorThemeModel *mModel;
|
||
|
QPersistentModelIndex mAppliedIndex;
|
||
|
LxQt::Settings* mSettings;
|
||
|
};
|
||
|
|
||
|
#endif
|