Source Code (Use browser search to find items of interest.)

Class Index

kdelibs'AdaHighlight (./kdelibs/kwrite/highlight.h:482)

class AdaHighlight : public GenHighlight {
  public:
    AdaHighlight(const QString &name);
    virtual ~AdaHighlight();
  protected:
    virtual void createItemData(ItemDataList &);
    virtual void makeContextList();
};


kdelibs'AdaHighlight::AdaHighlight() (./kdelibs/kwrite/highlight.cpp:1391)

AdaHighlight::AdaHighlight(const QString &name) : GenHighlight(name) {
  iWildcards = "*.a";
  iMimetypes = "text/x-ada-src";
}


kdelibs'AdaHighlight::~AdaHighlight() (./kdelibs/kwrite/highlight.cpp:1396)

AdaHighlight::~AdaHighlight() {
}


kdelibs'AdaHighlight::createItemData() (./kdelibs/kwrite/highlight.cpp:1399)

void AdaHighlight::createItemData(ItemDataList &list) {

  list.append(new ItemData(I18N_NOOP("Normal Text"),dsNormal));
  list.append(new ItemData(I18N_NOOP("Keyword"    ),dsKeyword));
  list.append(new ItemData(I18N_NOOP("Decimal"    ),dsDecVal));
  list.append(new ItemData(I18N_NOOP("Base-N"     ),dsBaseN));
  list.append(new ItemData(I18N_NOOP("Float"      ),dsFloat));
  list.append(new ItemData(I18N_NOOP("Char"       ),dsChar));
  list.append(new ItemData(I18N_NOOP("String"     ),dsString));
  list.append(new ItemData(I18N_NOOP("Comment"    ),dsComment));
}


kdelibs'AdaHighlight::makeContextList() (./kdelibs/kwrite/highlight.cpp:1411)

void AdaHighlight::makeContextList() {
  HlContext *c;
  HlKeyword *keyword;

  contextList[0] = c = new HlContext(0,0);
    c->items.append(keyword = new HlKeyword(1,0));
    c->items.append(new HlAdaBaseN(3,0));
    c->items.append(new HlAdaFloat(4,0));
    c->items.append(new HlAdaDec(2,0));
    c->items.append(new HlAdaChar(5,0));
    c->items.append(new HlCharDetect(6,1,'"'));
    c->items.append(new Hl2CharDetect(7,2, '-', '-'));
  contextList[1] = c = new HlContext(6,0);
    c->items.append(new HlCharDetect(6,0,'"'));
  contextList[2] = c = new HlContext(7,0);

  keyword->addList(adaKeywords);
}