require 'qtext/flags.rb' module Clevic =begin rdoc This defines a field in the UI, and how it hooks up to a field in the DB. =end class Field include QtFlags attr_accessor :attribute, :path, :label, :delegate, :class_name, :alignment, :format, :tooltip attr_writer :sample # attribute is the symbol for the attribute on the model_class def initialize( attribute, model_class, options ) # sanity checking unless model_class.has_attribute?( attribute ) msg = <