mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Added icon for .sch files..
git-svn-id: svn://ultimatepp.org/upp/trunk@442 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ec8021b022
commit
765db13512
6 changed files with 38 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
topic "U++ SQL Basics";[ $$0,0#00000000000000000000000000000000:Default]
|
||||
topic "U++ SQL Basics";
|
||||
[ $$0,0#00000000000000000000000000000000:Default]
|
||||
[b83;*4 $$1,0#07864147445237544204411237157677:title]
|
||||
[b83;_R+117 $$2,0#50327538467692101372348457405326:heading1]
|
||||
[b50;a25;*R2 $$3,3#10189570498413014020290115411120:heading2]
|
||||
|
|
@ -6,7 +7,7 @@ topic "U++ SQL Basics";[ $$0,0#00000000000000000000000000000000:Default]
|
|||
[{_}%EN-US
|
||||
[s1; U`+`+ SQL&]
|
||||
[s2; U`+`+ SQL Basics&]
|
||||
[s3; Datbase Model&]
|
||||
[s3; Database Model&]
|
||||
[s4; The database model is described by the user in schema (`".sch`")
|
||||
files. The user models the database and U`+`+ SQL packages handle
|
||||
the creation/modification of the database.&]
|
||||
|
|
@ -36,7 +37,7 @@ are generated by the U`+`+ SQL classes, and you can view the
|
|||
generated queries with a simple method call.&]
|
||||
[s3; Schema Update/Upgrade&]
|
||||
[s4; The SQL packages also allow for database updates without losing
|
||||
your stored data. The main purpose is to allow incemental development
|
||||
your stored data. The main purpose is to allow incremental development
|
||||
of the model. This functionality is limited though, as it is
|
||||
implemented using `"ALTER`" sql commands and does not support
|
||||
removing columns or changing datatypes. Those functions have
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ void IdeFileIcon0(bool dir, const String& filename, Image& img, bool fast = fals
|
|||
img = fast ? IdeCommonImg::FastISource() : IdeCommonImg::ISource();
|
||||
if(ext == ".c" || ext == ".cpp" || ext == ".cc" || ext == ".cxx")
|
||||
img = fast ? IdeCommonImg::FastSource() : IdeCommonImg::Source();
|
||||
if(ext == ".sch")
|
||||
img = IdeCommonImg::Sch();
|
||||
}
|
||||
|
||||
Image IdeFileImage(const String& filename, bool fast)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,21 @@
|
|||
IMAGE_BEGIN(Sch)
|
||||
IMAGE_SCAN("ミ")
|
||||
IMAGE_SCAN("トⅨ0\0\0ナ")
|
||||
IMAGE_SCAN("ツ<>0\0\0<>\377\34<33>0\0\0テ")
|
||||
IMAGE_SCAN("チ\1\0\0\0曲\377\34\1\0\0\0ツ")
|
||||
IMAGE_SCAN("チソ0\0\0<>\377\34ソ0\0\0ツ")
|
||||
IMAGE_SCAN("チ\1\0\0\0な\377\34Ⅸ0\0\0な\377\34\1\0\0\0ツ")
|
||||
IMAGE_SCAN("チ\1\0\0\0曲\377\34\1\0\0\0ツ")
|
||||
IMAGE_SCAN("チソ0\0\0<>\377\34ソ0\0\0ツ")
|
||||
IMAGE_SCAN("チ\1\0\0\0な\377\34Ⅸ0\0\0な\377\34\1\0\0\0ツ")
|
||||
IMAGE_SCAN("チ\1\0\0\0曲\377\34\1\0\0\0ツ")
|
||||
IMAGE_SCAN("チソ0\0\0<>\377\34ソ0\0\0ツ")
|
||||
IMAGE_SCAN("チ\1\0\0\0な\377\34Ⅸ0\0\0な\377\34\1\0\0\0ツ")
|
||||
IMAGE_SCAN("チ\1\0\0\0曲\377\34\1\0\0\0ツ")
|
||||
IMAGE_SCAN("ツ<>0\0\0<>\377\34<33>0\0\0テ")
|
||||
IMAGE_SCAN("トⅨ0\0\0ナ")
|
||||
IMAGE_SCAN("ミ")
|
||||
IMAGE_PACKED(Sch, "\2\20\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")
|
||||
IMAGE_BEGIN(Header)
|
||||
IMAGE_SCAN("Ð")
|
||||
IMAGE_SCAN("Ð")
|
||||
|
|
|
|||
|
|
@ -109,11 +109,16 @@ struct DependsDlg : public WithUppOptPushDlg<TopWindow> {
|
|||
DependsDlg();
|
||||
};
|
||||
|
||||
struct UppList : FileList {
|
||||
virtual void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper,
|
||||
dword style) const;
|
||||
};
|
||||
|
||||
struct WorkspaceWork {
|
||||
static Font ListFont();
|
||||
|
||||
FileList package;
|
||||
FileList filelist;
|
||||
UppList filelist;
|
||||
Vector<int> fileindex;
|
||||
|
||||
String main;
|
||||
|
|
|
|||
|
|
@ -754,3 +754,11 @@ void WorkspaceWork::SerializeClosed(Stream& s)
|
|||
s % list;
|
||||
closed = list;
|
||||
}
|
||||
|
||||
void UppList::Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const
|
||||
{
|
||||
FileList::File file = ValueTo<FileList::File>(q);
|
||||
if(GetFileName(file.name) == "$.tpp" && IsFolder(file.name))
|
||||
file.name = GetFileName(GetFileFolder(file.name)) + " templates";
|
||||
FileList::Paint(w, r, RawToValue(file), ink, paper, style);
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Loading…
Add table
Add a link
Reference in a new issue