File: dload.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 (32 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (2)
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
// This file is part of fityk program. Copyright 2001-2013 Marcin Wojdyr
// Licence: GNU General Public License ver. 2+

#ifndef FITYK_WX_DLOAD_H_
#define FITYK_WX_DLOAD_H_

namespace fityk { class Data; }
class XyFileBrowser;

std::string make_lua_load(int data_idx, const wxString& path, int b,
                          int x, int y, int sig,
                          const std::string& fmt, bool comma);

class DLoadDlg : public wxDialog
{
public:
    DLoadDlg(wxWindow* parent, int data_idx, fityk::Data* data,
             const wxString& dir);

private:
    int data_idx_;
    XyFileBrowser* browser_;
    wxButton *open_here_btn_, *open_new_btn_;

    std::string get_command(std::string const& ds, int d_nr);
    void OnOpenHere(wxCommandEvent&) { exec_command(true); }
    void OnOpenNew(wxCommandEvent&) { exec_command(false); }
    void exec_command(bool replace);
};

#endif