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

« back to all changes in this revision

Viewing changes to src/interface.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 interface creation (main window, password dialog, options dialog, ...)
7
 
////////////////////////////////////////////////////////////////////////////
8
 
 
9
 
#ifndef _INTERFACE_H__
10
 
#define _INTERFACE_H__
11
 
 
12
 
#include <gtk/gtk.h>
13
 
 
14
 
GtkWidget* create_main_win ();
15
 
GtkWidget* create_toolbar ();
16
 
 
17
 
int  NodeIdxFromPath(GtkTreePath* path1);
18
 
bool PathFromNodeIdx(int nIdx, GtkTreePath *&path1);
19
 
bool IteratorFromNodeIdx(int nIdx, GtkTreeIter &iter);
20
 
 
21
 
#endif
22
 
 
 
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 interface creation (main window, password dialog, options dialog, ...)
 
7
////////////////////////////////////////////////////////////////////////////
 
8
 
 
9
#ifndef _INTERFACE_H__
 
10
#define _INTERFACE_H__
 
11
 
 
12
#include <gtk/gtk.h>
 
13
 
 
14
int  NodeIdxFromPath(GtkTreePath* path1);
 
15
bool PathFromNodeIdx(int nIdx, GtkTreePath *&path1);
 
16
bool IteratorFromNodeIdx(int nIdx, GtkTreeIter &iter);
 
17
void set_title_bar(const char *szText, bool bRed = false);
 
18
void set_status_bar(const char *szText, bool bRed = false);
 
19
 
 
20
int gtkMessageBox(const char *szText, int nButtons = GTK_BUTTONS_OK, int nIcon = GTK_MESSAGE_INFO);
 
21
int gtkMessageBoxYNC(const char *szText);
 
22
const char **InternalIcon_GetFromIdx(int nIdx);
 
23
int InternalIcon_Name2Index(const char *szName);
 
24
const char *GetLoadErrorString(int nErrCode);
 
25
const char *GetSaveErrorString(int nErrCode);
 
26
void ShowBusyCursor();
 
27
void HideBusyCursor();
 
28
 
 
29
 
 
30
// main.cpp
 
31
const char *calculate_autosave_filename();
 
32
const char *calculate_autosave_filename1();
 
33
std::string GetHelpFile();
 
34
const char *GetIniFile();
 
35
 
 
36
#endif
 
37