~ubuntu-branches/ubuntu/oneiric/valkyrie/oneiric

« back to all changes in this revision

Viewing changes to src/options/vk_options_dialog.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2011-09-02 22:08:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110902220834-kigsixteppj9epp5
Tags: 2.0.0-0ubuntu1
* New upstream release. (LP: #635129, LP: #832886, LP: #721298)
* Standards bumped to 3.9.2, no changes required.
* d/control, d/rules: cdbs removed, dh minimal rule instead.
* d/control: build system is qmake not autotools
* d/control: bump required qt to qt4
* d/valkyrie.install: installing html docs manually as make install
  no longer does so.
* d/patches/valkyrie-2.0.0-fix-doc.dir.patch: Fix doc path to match
  policy. Also corrects LP: #588074 since the documentation link now
  works.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** VkOptionsDialog definition
 
3
**  - A container class for each tool's options / flags 'pane'.
 
4
**  - Not modal, so user can keep it open and change flags as they work.
 
5
** --------------------------------------------------------------------------
 
6
**
 
7
** Copyright (C) 2000-2009, OpenWorks LLP. All rights reserved.
 
8
** <info@open-works.co.uk>
 
9
**
 
10
** This file is part of Valkyrie, a front-end for Valgrind.
 
11
**
 
12
** This file may be used under the terms of the GNU General Public
 
13
** License version 2.0 as published by the Free Software Foundation
 
14
** and appearing in the file COPYING included in the packaging of
 
15
** this file.
 
16
**
 
17
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 
18
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
19
**
 
20
****************************************************************************/
 
21
 
 
22
#ifndef __VK_OPTIONS_DIALOG_H
 
23
#define __VK_OPTIONS_DIALOG_H
 
24
 
 
25
#include <QDialog>
 
26
#include <QDialogButtonBox>
 
27
#include <QListWidget>
 
28
#include <QStackedWidget>
 
29
#include <QWidget>
 
30
 
 
31
 
 
32
// ============================================================
 
33
class VkOptionsDialog : public QDialog
 
34
{
 
35
   Q_OBJECT
 
36
public:
 
37
   VkOptionsDialog( QWidget* );
 
38
   ~VkOptionsDialog();
 
39
   
 
40
private:
 
41
   void setupLayout();
 
42
   void keyPressEvent( QKeyEvent* event ); // overloaded
 
43
 
 
44
private slots:
 
45
   bool apply();
 
46
   void accept();  // overloaded
 
47
   void reject();  // overloaded
 
48
   void showPage();
 
49
   void pageModified();
 
50
   void overwriteDefaultConfig();
 
51
 
 
52
signals:
 
53
   void flagsChanged();
 
54
   
 
55
private:
 
56
   QListWidget*      contentsListWidget;
 
57
   QStackedWidget*   optionPages;
 
58
   QDialogButtonBox* optionsButtonBox;
 
59
   QPushButton*      updateDefaultsButton;
 
60
};
 
61
 
 
62
 
 
63
#endif  // __VK_OPTIONS_DIALOG_H