~ubuntu-branches/ubuntu/karmic/notecase/karmic

« back to all changes in this revision

Viewing changes to src/FileSaveAsDlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Vijay(Vijay)
  • Date: 2007-06-14 00:13:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070614001348-z9e2vbgtenb9nhoo
Tags: 1.5.6-0ubuntu1
* New Upstream release 
*  The libgnomevfs2-dev is also added to Build-Depends 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
////////////////////////////////////////////////////////////////////////////
 
2
// NoteCase notes manager project <http://notecase.sf.net>
 
3
//
 
4
// This code is licensed under BSD license.See "license.txt" for more details.
 
5
//
 
6
// File: Implements window for file "save as" operation
 
7
////////////////////////////////////////////////////////////////////////////
 
8
 
 
9
#ifndef FILESAVEASDLG_H__
 
10
#define FILESAVEASDLG_H__
 
11
 
 
12
#if _MSC_VER > 1000
 
13
#pragma once
 
14
#endif // _MSC_VER > 1000
 
15
 
 
16
#include "gui/Dialog.h"
 
17
#include <string>
 
18
 
 
19
struct _fmt1 {
 
20
        const char *szName;
 
21
        const char *szFilter;   
 
22
};
 
23
 
 
24
class FileSaveAsDlg : public Dialog  
 
25
{
 
26
public:
 
27
        FileSaveAsDlg();
 
28
        virtual ~FileSaveAsDlg();
 
29
 
 
30
        virtual void Create();
 
31
 
 
32
        const char *GetFileName();
 
33
        const char *GetFilePath();
 
34
        const char *GetSelectedFormat();
 
35
 
 
36
        int GetSelectedFormatIdx();
 
37
 
 
38
        void SetFilename(const char *szName){   m_strFileName = szName; };
 
39
        void SetDirectory(const char *szName){  m_strFileDir  = szName; };
 
40
 
 
41
public:
 
42
        struct _fmt1 m_formats[2];      //export formats info
 
43
        void ForceFormatExtension();
 
44
 
 
45
protected:
 
46
        std::string m_strFileName;
 
47
        std::string m_strFileDir;
 
48
        
 
49
protected:
 
50
        GtkWidget* create_file_export_dialog (GtkWidget* parent=NULL);
 
51
};
 
52
 
 
53
#endif // $