~ubuntu-branches/ubuntu/utopic/knutclient/utopic

« back to all changes in this revision

Viewing changes to knutclient/knutnewupsdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2008-06-19 11:09:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619110950-izi2q2vd0dhwlpym
Tags: 0.9.4-1
* New upstream release
* Merge back Ubuntu changes
* debian/knutclient.menu: update section to fix lintian warnings
* debian/watch: update the pattern for matching new releases (Closes: #471247)
* debian/control:
  - move Homepage to the field and update the URL
  - update Standards-Version to 3.8.0
  - update debhelper Build-Depends to 5.0.51
  - add automake and autoconf to Build-Depends
  - update NUT URL
* debian/rules:
  - fix lintian warning debian-rules-ignores-make-clean-error
  - add a commented call to dh_icons

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          knutnewupsdlg.h  -  description
3
 
                             -------------------
4
 
    begin                : Tue Aug 21 2001
5
 
    copyright            : (C) 2001 by Daniel Prynych
6
 
    email                : Daniel.Prynych@alo.cz
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
#ifndef KNUTNEWUPSDLG_H
19
 
#define KNUTNEWUPSDLG_H
20
 
 
21
 
#include "knutupsdata.h"
22
 
#include "knutvardata.h"
23
 
 
24
 
#include <kdialogbase.h>
25
 
#include <kcombobox.h>
26
 
#include <klineedit.h>
27
 
#include <kpushbutton.h>
28
 
 
29
 
//#include <qlabel.h>
30
 
//#include <qgroupbox.h>
31
 
//#include <qradiobutton.h>
32
 
//#include <qbuttongroup.h>
33
 
//#include <qcheckbox.h>
34
 
 
35
 
class QLabel;
36
 
class QGroupBox;
37
 
class QRadioButton;
38
 
class QButtonGroup;
39
 
class QCheckBox;
40
 
 
41
 
 
42
 
/**
43
 
 * Tato trida je dialog pro vytvoreni nebo opravu informaci a UPS.
44
 
 * Umoznuje nastavit adresu, port, typ protokolu a vybrat promennou jejiz hodnota se bude zjistovat.
45
 
 * @author Daniel Prynych
46
 
 * @short Panel pro nastaveni parametru UPS
47
 
 *
48
 
 * @version 0.3
49
 
 */
50
 
class KNutNewUpsDlg : public KDialogBase
51
 
{
52
 
    Q_OBJECT
53
 
public:
54
 
/**
55
 
 * Konstruktor vytvori konfiguracni dialog.
56
 
 *
57
 
 * @param add Urcuje zda budeme data opravovat nebo pridavat.
58
 
 * @param settingData Je odkaz na strukturu ktera obsahuje hodnoty nastavovane v dialogu.
59
 
 * @param upsdata Je odkaz na na instanci tridy KNutUpsData.
60
 
 * @param upsdata Je odkaz na na instanci tridy KNutVarData.
61
 
 *
62
 
 * @since  0.5
63
 
 **/
64
 
        KNutNewUpsDlg (KNutUpsData* const upsData, KNutVarData* const analogData, const bool add = TRUE, QWidget* parent = 0, const char* name = 0, const bool modal = TRUE);
65
 
 
66
 
/**
67
 
 * @since  0.3
68
 
 **/
69
 
        ~KNutNewUpsDlg();
70
 
 
71
 
/**
72
 
 * Precte data z polozek formulare.
73
 
 *
74
 
 * @param upsInfo Struktura tipu UpsInfo - obsahuje vsechny polozky ktere jsou ve formulari.
75
 
 *
76
 
 * @since  0.1
77
 
 **/
78
 
        void getData (upsRecord& upsInfo );
79
 
 
80
 
/**
81
 
 * Vlozi data do polozek formulare.
82
 
 *
83
 
 * @param upsInfo Struktura tipu UpsInfo - obsahuje vsechny polozky ktere jsou ve formulari.
84
 
 *
85
 
 * @since  0.2
86
 
 **/
87
 
  void putData (const upsRecord upsInfo );
88
 
 
89
 
/********************* PRIVATE **************************/
90
 
private:
91
 
  KLineEdit* LineEdit1;
92
 
  KLineEdit* LineEdit2;
93
 
  KLineEdit* LineEdit3;
94
 
  KLineEdit* LineEdit4;
95
 
  KLineEdit* LineEdit5;
96
 
  KLineEdit* LineEdit6;
97
 
  KLineEdit* LineEdit7;
98
 
 
99
 
  KComboBox* ComboBox1;
100
 
  KComboBox* ComboBox2;
101
 
  KComboBox* ComboBox3;
102
 
  KComboBox* ComboBox4;
103
 
  KComboBox* ComboBox5;
104
 
  KComboBox* ComboBox6;
105
 
  KComboBox* ComboBox7;
106
 
  KComboBox* ComboBox8;
107
 
  KComboBox* ComboBox9;
108
 
  KComboBox* ComboBox10;
109
 
 
110
 
  QRadioButton* RadioButton1;
111
 
  QRadioButton* RadioButton2;
112
 
 
113
 
  QCheckBox* savePassword;
114
 
  
115
 
  KNutUpsData* myUpsData; // Ups data object
116
 
 
117
 
  bool addMember;   // true pokud se pridava polozka, false edit
118
 
 
119
 
  private slots:
120
 
 
121
 
/**
122
 
 * Provede se pri stisknuti tlacitka ok.
123
 
 *
124
 
 * @since  0.1
125
 
 **/
126
 
  virtual void slotOk();
127
 
 
128
 
/**
129
 
 * Aktivuje/Deaktivuje polozky User name, password atd.
130
 
 *
131
 
 * @since  0.1
132
 
 **/
133
 
  void slotProtocol(bool tcp);
134
 
 
135
 
 
136
 
};
137
 
 
138
 
#endif