File: preferenceswidget.h

package info (click to toggle)
psi-plugins 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,368 kB
  • sloc: cpp: 42,063; xml: 714; ansic: 84; makefile: 61; sh: 12
file content (50 lines) | stat: -rw-r--r-- 1,367 bytes parent folder | download | duplicates (7)
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
#ifndef PREFERENCESWIDGET_H
#define PREFERENCESWIDGET_H

#include <QWidget>
#include <QColorDialog>
#include "ui_preferences.h"
#include "optionaccessor.h"

class PreferencesWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PreferencesWidget(const QColor & username_color,
                               const QColor & post_id_color,
                               const QColor & tag_color,
                               const QColor & quote_color,
                               const QColor & message_color,
                               QWidget *parent = 0);
private:
    Ui::PreferencesWidget preferences_ui;
    QAbstractButton * now_changing_button;
    QColorDialog color_dialog;
    QColor curr_username_color;
    QColor curr_post_id_color;
    QColor curr_tag_color;
    QColor curr_quote_color;
    QColor curr_message_color;

private:
    void showChangeButtonColorDialog(QAbstractButton *);

signals:
    void usernameColorChanged(QColor);
    void postColorChanged(QColor);
    void tagColorChanged(QColor);
    void quoteColorChanged(QColor);
    void messageColorChanged(QColor);

private slots:
    void usernameColorClicked();
    void postColorClicked();
    void tagColorClicked();
    void quoteColorClicked();
    void messageColorClicked();
    void colorDialogOk();
    void colorDialogCancel();
};

#endif // PREFERENCESWIDGET_H