File: exec.h

package info (click to toggle)
xexec 0.0.3-24
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 64 kB
  • ctags: 29
  • sloc: cpp: 80; makefile: 62
file content (57 lines) | stat: -rw-r--r-- 1,614 bytes parent folder | download | duplicates (4)
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
54
55
56
57
//----------------------------------////// Constants //////
/* This is basic information I like to put in all my
projects so changing the version, or web page in all
dialogs is simply and easy */
const char VERSI0N[]="0.0.3";
const char AUTHOR[]="Kenneth R. Kinder";
const char URL[]="http://www.KenAndTed.com/software/exec";
const char CONTACT[]="mailto:Ken@KenAndTed.com";

const char SHELL[]="/bin/sh";
   /* Shell to run commands with. */

//------------------------------------////// Headers //////
#include <qapp.h>
#include <qfiledlg.h>
#include <qmsgbox.h>
#include <qpushbt.h>
#include <qlined.h>
#include <qfont.h>
#include <qstring.h>
#include <unistd.h>
#include <fstream.h>
#include <iostream.h>


//-----------------------////// Enumorated Datatypes //////


//---------------------------------////// Structures //////


//------------------------////// Function Prototypes //////


//---------------------------////// Class Prototypes //////
class Exec : public QWidget
   /* This is our dialog widget */
   {
   Q_OBJECT;
   public:
      Exec(QWidget *parent=0, const char *name=0);
   private slots:
      void runline();
         /* This is the function that will take care of
         most of the program. It's called when the user
         hits the OK button. */
      
      void browser();
         /* Event for Browse button. It'll let the user
         look around for a file, and then insert the
         path into the text box cline. */
         
   private:
      QLineEdit *cline;
         /* Our good cedit box for the user to enter his
         or her little commands into. */
   };