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

« back to all changes in this revision

Viewing changes to src/ShortcutsListDlg.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: Implements window to list/change keyboard shortcuts for program actions
7
 
////////////////////////////////////////////////////////////////////////////
8
 
 
9
 
#ifndef SHORTCUTSLISTDLG_H__
10
 
#define SHORTCUTSLISTDLG_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
 
#include "ShortcutsList.h"
19
 
 
20
 
class ShortcutsListDlg : public Dialog
21
 
{
22
 
public:
23
 
        ShortcutsListDlg();
24
 
        virtual ~ShortcutsListDlg();
25
 
 
26
 
        virtual void Create();
27
 
        void OnOK();
28
 
        void OnContextChanged();
29
 
        void OnClearAll();
30
 
        void OnResetAll();
31
 
 
32
 
        int  GetSelRow();
33
 
        void SetCurShortcut(ShortcutDef &def);
34
 
        void FillList(int nCtx);
35
 
 
36
 
public:
37
 
        ShortcutsList m_list;
38
 
 
39
 
protected:
40
 
        GtkWidget* create_dialog (GtkWidget* parent=NULL);
41
 
};
42
 
 
43
 
#endif // SHORTCUTSLISTDLG_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: Implements window to list/change keyboard shortcuts for program actions
 
7
////////////////////////////////////////////////////////////////////////////
 
8
 
 
9
#ifndef SHORTCUTSLISTDLG_H__
 
10
#define SHORTCUTSLISTDLG_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
#include "ShortcutsList.h"
 
19
 
 
20
class ShortcutsListDlg : public Dialog
 
21
{
 
22
public:
 
23
        ShortcutsListDlg();
 
24
        virtual ~ShortcutsListDlg();
 
25
 
 
26
        virtual void Create();
 
27
        void OnOK();
 
28
        void OnContextChanged();
 
29
        void OnClearAll();
 
30
        void OnResetAll();
 
31
 
 
32
        int  GetSelRow();
 
33
        void SetCurShortcut(ShortcutDef &def);
 
34
        void FillList(int nCtx);
 
35
 
 
36
public:
 
37
        ShortcutsList m_list;
 
38
 
 
39
protected:
 
40
        GtkWidget* create_dialog (GtkWidget* parent=NULL);
 
41
};
 
42
 
 
43
#endif // SHORTCUTSLISTDLG_H__