File: command.h

package info (click to toggle)
qps 1.9.3-3.1
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 456 kB
  • ctags: 1,282
  • sloc: cpp: 8,565; makefile: 98; sh: 1
file content (53 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (3)
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
52
53
// command.h				emacs, this is written in -*-c++-*-
//
// This program is free software. See the file COPYING for details.
// Author: Mattias Engdegrd, 1997-1999

#ifndef COMMAND_H
#define COMMAND_H

#include <qwidget.h>
#include <qpushbutton.h>
#include <qlistbox.h>
#include <qlineedit.h>
#include <qdialog.h>

class CommandDialog : public QWidget
{
    Q_OBJECT
public:
    CommandDialog();

signals:
    void command_change();

protected slots:
    void edit_command(int);
    void edit_current();
    void add_new();
    void del_current();
    void set_buttons(int);

private:
    QListBox *lb;
    QPushButton *add, *del, *edit;
};

class CommandEditDialog : public QDialog
{
    Q_OBJECT
public:
    CommandEditDialog(QWidget *parent, bool add,
		      QString initial_name, QString initial_command);

    QLineEdit *name, *cmdline;

protected slots:
    void done(int ret);

protected:
    bool newcmd;
};

#endif // COMMAND_H