Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Regard whitespace Rev 7434 → Rev 7437

/programs/cmm/notes
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/programs/cmm/notes/engine.h
53,12 → 53,13
int i=0, linepos=0;
int item_n=-1;
 
count = LINES_COUNT;
 
strcpy(#txt_path, file_path);
ReadFile(0, 4096, #txt_data, #txt_path);
if (!txt_data) || (strncmp(#txt_data, "notes", 5)!=0)
{
txt_file_exists = false;
notify("'Notes\nData file does not exists or is not valid' -tE");
return 0;
}
else
84,7 → 85,6
//lines[item_n].Delete();
item_n++;
}
count = LINES_COUNT;
return 1;
}
}
/programs/cmm/notes/img/checkbox.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/programs/cmm/notes/img/checkbox.raw
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/programs/cmm/notes/img/edge.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/programs/cmm/notes/img/edge.raw
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/programs/cmm/notes/notes.c
1,15 → 1,10
// Notes v0.9 Beta
// Notes v1.0
 
#define MEMSIZE 0xDAE80
#include "..\lib\kolibri.h"
#include "..\lib\mem.h"
#include "..\lib\strings.h"
#include "..\lib\fs.h"
#include "..\lib\dll.h"
 
#include "..\lib\obj\box_lib.h"
#include "..\lib\gui.h"
#include "..\lib\encoding.h"
#include "..\lib\list_box.h"
 
//===================================================//
68,7 → 63,6
load_dll(boxlib, #box_lib_init,0);
if (param) notes.OpenTxt(#param); else notes.OpenTxt(abspath("notes.txt"));
//notes.cur_y = 0;
 
SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
 
173,7 → 167,7
WriteText(9,TITLE_H/2-6,0x90,0xA9613A,WINDOW_CAPTION);
WriteTextB(7,TITLE_H/2-7,0x90,0xFFFfff,WINDOW_CAPTION);
_PutImage(1, TITLE_H, 292,EDGE_H, #edge);
PutPixel(notes.x+RED_LINE_X, notes.y-1, COL_RED_LINE);
PutPixel(notes.x, notes.y-1, COL_RED_LINE);
ECX-=1; $int 0x40;
DrawCloseButton(WIN_W-23,4,16,16);
DrawRectangle(0,TITLE_H,WIN_W,WIN_H-HEADER_HEIGHT+EDGE_H,0xBBBBBB);
188,6 → 182,7
notebox.offset = notebox.shift = notebox.shift_old = 0;
notebox.cl_curs_x = notebox.cl_curs_y = 0;
notebox.size = strlen(notebox.text);
notebox.flags = ed_always_focus+ed_focus;
if (notebox.pos > notebox.size) notebox.pos = notebox.size;
notebox.top = notes.cur_y*notes.item_h+4+notes.y;
edit_box_draw stdcall(#notebox);