File: exportd.h

package info (click to toggle)
fityk 1.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,772 kB
  • sloc: cpp: 34,595; ansic: 4,676; python: 963; makefile: 384; sh: 119; xml: 91; java: 31; ruby: 27; perl: 25
file content (40 lines) | stat: -rw-r--r-- 1,192 bytes parent folder | download | duplicates (5)
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
// This file is part of fityk program. Copyright 2001-2013 Marcin Wojdyr
// Licence: GNU General Public License ver. 2+

#ifndef FITYK_WX_EXPORTD_H_
#define FITYK_WX_EXPORTD_H_

#include <string>
#include <vector>

void export_data_dlg(const std::vector<int>& sel, wxWindow *parent,
                     wxString *export_dir);
void export_peak_parameters(const std::vector<int>& sel, wxWindow *parent,
                            wxString *export_dir);

// helper used also in frame.cpp
void exec_redirected_command(const std::vector<int>& sel,
                             const std::string& cmd, const wxString& path);

class ExtraCheckBox: public wxPanel
{
public:
    ExtraCheckBox(wxWindow* parent, const wxString& label, bool value);
    bool is_checked() const { return cb->GetValue(); }
private:
    wxCheckBox *cb;
};

class Extra2CheckBoxes: public wxPanel
{
public:
    Extra2CheckBoxes(wxWindow* parent, const wxString& label1, bool value1,
                                       const wxString& label2, bool value2);
    bool is_checked1() const { return cb1->GetValue(); }
    bool is_checked2() const { return cb2->GetValue(); }
private:
    wxCheckBox *cb1, *cb2;
};


#endif