summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-04-26 11:51:54 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-04-26 11:51:54 +0000
commitda9edc35a5c095613a85a35ea0622e4ca244fc6b (patch)
treea61e3137cb8938001f27c397c447e760ba89a7de /fluid/Fl_Type.cxx
parentee5fdc99cec4d9bf9a91e42fbda9acc757fffebd (diff)
Add lock icon next to static/private elements in FLUID.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.cxx')
-rw-r--r--fluid/Fl_Type.cxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx
index 4d5bde93f..8df2f0a3f 100644
--- a/fluid/Fl_Type.cxx
+++ b/fluid/Fl_Type.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Type.cxx,v 1.6.2.6.2.3 2002/01/01 15:11:29 easysw Exp $"
+// "$Id: Fl_Type.cxx,v 1.6.2.6.2.4 2002/04/26 11:51:52 easysw Exp $"
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
@@ -45,6 +45,11 @@
#include "Fl_Type.h"
+#include <FL/Fl_Pixmap.H>
+#include "lock.xpm"
+
+static Fl_Pixmap lock_pixmap(lock_xpm);
+
////////////////////////////////////////////////////////////////
class Widget_Browser : public Fl_Browser_ {
@@ -129,9 +134,12 @@ extern const char* subclassname(Fl_Type*);
void Widget_Browser::item_draw(void *v, int x, int y, int, int) const {
Fl_Type *l = (Fl_Type *)v;
- x += 3 + l->level * 10;
+ x += 3 + 16 + l->level * 10;
if (l->new_selected) fl_color(fl_contrast(FL_BLACK,FL_SELECTION_COLOR));
else fl_color(FL_BLACK);
+ if (!l->is_public()) {
+ lock_pixmap.draw(x - 16, y);
+ }
if (l->is_parent()) {
if (!l->next || l->next->level <= l->level) {
if (l->open_!=(l==pushedtitle)) {
@@ -189,7 +197,7 @@ int Widget_Browser::item_width(void *v) const {
if (!l->visible) return 0;
- int w = 3 + l->level*10;
+ int w = 3 + 16 + l->level*10;
if (l->is_parent()) w += 10;
if (l->is_widget() || l->is_class()) {
@@ -505,6 +513,7 @@ int Fl_Type::is_window() const {return 0;}
int Fl_Type::is_code_block() const {return 0;}
int Fl_Type::is_decl_block() const {return 0;}
int Fl_Type::is_class() const {return 0;}
+int Fl_Type::is_public() const {return 1;}
////////////////////////////////////////////////////////////////
@@ -668,5 +677,5 @@ void Fl_Type::read_property(const char *c) {
int Fl_Type::read_fdesign(const char*, const char*) {return 0;}
//
-// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.3 2002/01/01 15:11:29 easysw Exp $".
+// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.4 2002/04/26 11:51:52 easysw Exp $".
//