1
//------------------------------------------------------------------------------
3
// This file is part of Toolkit for Conceptual Modeling (TCM).
4
// (c) copyright 1995, Vrije Universiteit Amsterdam.
5
// Author: Frank Dehne (frank@cs.vu.nl).
7
// TCM is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation; either version 2 of the License, or
10
// (at your option) any later version.
12
// TCM is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
17
// You should have received a copy of the GNU General Public License
18
// along with TCM; if not, write to the Free Software
19
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21
//-----------------------------------------------------------------------------
22
#ifndef _PRINTERQUEUEDIALOG_H
23
#define _PRINTERQUEUEDIALOG_H
27
#include "selectiondialog.h"
30
class SelectionDialog;
33
/// class for showing printer queue.
34
class PrinterQueueDialog: public SelectionDialog {
35
/*@Doc: {\large {\bf scope:} GUI} */
38
PrinterQueueDialog(Widget parent, MainWindow *);
40
const char *GetClassName() { return "PrinterQueueDialog";}
45
void Remove(const char *str);
48
void SetPrinterName(const string *s);
50
/// show popup dialog to set Unix printer queue command.
51
void PrinterQueueCommand();
52
/// ... printer remove command.
53
void PrinterRemoveCommand();
56
void SetPrinterQueueCommand(const string *c);
58
void SetPrinterRemoveCommand(const string *c);
60
void SetDefaultPrinterQueueCommand(const string *c) {
61
defaultQueueCommand = *c;
64
void SetDefaultPrinterRemoveCommand(const string *c) {
65
defaultRemoveCommand = *c;
68
PromptDialog *GetPromptDialog() {return promptDialog;}
75
static void RemoveCB(Widget, XtPointer, XtPointer);
77
static void UpdateCB(Widget, XtPointer, XtPointer);
79
static void SetPrinterQueueCommandCB(Widget, XtPointer, XtPointer);
81
static void SetPrinterRemoveCommandCB(Widget, XtPointer, XtPointer);
88
string defaultQueueCommand;
90
string defaultRemoveCommand;
93
MainWindow *mainwindow;
95
PrinterOptions *printerOptions;
97
PromptDialog *promptDialog;