~ubuntu-branches/ubuntu/raring/notecase/raring

« back to all changes in this revision

Viewing changes to src/DateTimeDlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Handler
  • Date: 2008-12-21 13:09:58 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081221130958-0ri77h0x7j1dclkq
Tags: 1.9.8-0ubuntu1
New upstream release (LP: #307752)

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: Window class for Date/Time insert dialog
7
 
////////////////////////////////////////////////////////////////////////////
8
 
 
9
 
#ifndef DateTimeDlg_H_
10
 
#define DateTimeDlg_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
 
class DateTimeDlg : public Dialog
20
 
{
21
 
public:
22
 
        DateTimeDlg();
23
 
        virtual ~DateTimeDlg();
24
 
        virtual void Create();
25
 
 
26
 
        void OnFormatChanged();
27
 
        std::string GetValue(){ return m_strValue; }
28
 
        static std::string GetValueForFormat(int nDateTimeFmt);
29
 
 
30
 
protected:
31
 
        GtkWidget* create_date_insert_popup (GtkWidget* parent = NULL);
32
 
 
33
 
protected:
34
 
        std::string m_strValue;
35
 
};
36
 
 
37
 
#endif // ExportDialog_H_
 
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: Window class for Date/Time insert dialog
 
7
////////////////////////////////////////////////////////////////////////////
 
8
 
 
9
#ifndef DateTimeDlg_H_
 
10
#define DateTimeDlg_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
class DateTimeDlg : public Dialog
 
20
{
 
21
public:
 
22
        DateTimeDlg();
 
23
        virtual ~DateTimeDlg();
 
24
        virtual void Create();
 
25
 
 
26
        void OnFormatChanged();
 
27
        std::string GetValue(){ return m_strValue; }
 
28
        static std::string GetValueForFormat(int nDateTimeFmt);
 
29
 
 
30
protected:
 
31
        GtkWidget* create_date_insert_popup (GtkWidget* parent = NULL);
 
32
 
 
33
protected:
 
34
        std::string m_strValue;
 
35
};
 
36
 
 
37
#endif // ExportDialog_H_