• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

ktimetracker

  • sources
  • kde-4.12
  • kdepim
  • ktimetracker
csvexportdialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2004 by Mark Bucciarelli <mark@hubcapconsulting.com>
3  * 2007 the ktimetracker developers
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the
17  * Free Software Foundation, Inc.
18  * 51 Franklin Street, Fifth Floor
19  * Boston, MA 02110-1301 USA.
20  *
21  */
22 
23 #ifndef CSVEXPORTDIALOG_H
24 #define CSVEXPORTDIALOG_H
25 
26 #include "ui_csvexportdialog_base.h"
27 #include "reportcriteria.h"
28 
29 class CSVExportDialogBase : public KDialog, public Ui::CSVExportDialogBase
30 {
31 public:
32  explicit CSVExportDialogBase( QWidget *parent ) : KDialog( parent ) {
33  setupUi( this );
34 
35  setMainWidget( page );
36  setButtons( KDialog::User1 | KDialog::Ok | KDialog::Cancel );
37  setButtonText( KDialog::Ok, i18nc("@action:button", "&Export") );
38  setButtonText( KDialog::User1, i18nc("@action:button", "E&xport to Clipboard") );
39  setButtonIcon( KDialog::User1, KIcon( "klipper" ) );
40  enableButton( KDialog::Ok, false );
41  }
42 };
43 
44 
45 
46 class CSVExportDialog : public CSVExportDialogBase
47 {
48  Q_OBJECT
49 
50  public Q_SLOTS:
51  void exPortToClipBoard();
52  void exPortToCSVFile();
53 
54  public:
55  explicit CSVExportDialog( ReportCriteria::REPORTTYPE rt,
56  QWidget *parent = 0
57  );
58 
68  void enableTasksToExportQuestion();
69 
73  ReportCriteria reportCriteria();
74 
75  private Q_SLOTS:
76 
80  void enableExportButton();
81 
82  private:
83  ReportCriteria rc;
84 };
85 
86 #endif
QWidget
KDialog
CSVExportDialog
Definition: csvexportdialog.h:46
reportcriteria.h
CSVExportDialog::reportCriteria
ReportCriteria reportCriteria()
Return an object that encapsulates the choices the user has made.
Definition: csvexportdialog.cpp:86
ReportCriteria
Stores entries from export dialog.
Definition: reportcriteria.h:41
CSVExportDialog::exPortToCSVFile
void exPortToCSVFile()
Definition: csvexportdialog.cpp:80
CSVExportDialog::CSVExportDialog
CSVExportDialog(ReportCriteria::REPORTTYPE rt, QWidget *parent=0)
Definition: csvexportdialog.cpp:32
ReportCriteria::REPORTTYPE
REPORTTYPE
The different report types.
Definition: reportcriteria.h:48
CSVExportDialogBase
Definition: csvexportdialog.h:29
CSVExportDialogBase::CSVExportDialogBase
CSVExportDialogBase(QWidget *parent)
Definition: csvexportdialog.h:32
CSVExportDialog::enableTasksToExportQuestion
void enableTasksToExportQuestion()
Enable the "Tasks to export" question in the dialog.
Definition: csvexportdialog.cpp:68
CSVExportDialog::exPortToClipBoard
void exPortToClipBoard()
Definition: csvexportdialog.cpp:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktimetracker

Skip menu "ktimetracker"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal