Changeset 25370

Show
Ignore:
Timestamp:
05/08/08 07:07:41 (4 days ago)
Author:
jackburton
Message:
Added a BDragger so that Terminal is replicanteable. Salvatore, hope you 
like it :)
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/apps/terminal/TermView.cpp

    r24663 r25370  
    2424#include <Clipboard.h> 
    2525#include <Debug.h> 
     26#include <Dragger.h> 
    2627#include <Input.h> 
    2728#include <Message.h> 
     
    184185        _InitObject(argc, argv); 
    185186        SetTermSize(fTermRows, fTermColumns, true); 
     187         
     188        BRect rect(0, 0, 16, 16); 
     189        rect.OffsetTo(Bounds().right - rect.Width(), 
     190                                Bounds().bottom - rect.Height()); 
     191         
     192        SetFlags(Flags() | B_DRAW_ON_CHILDREN | B_FOLLOW_ALL); 
     193        AddChild(new BDragger(rect, this, 
     194                B_FOLLOW_RIGHT|B_FOLLOW_BOTTOM, B_WILL_DRAW)); 
    186195} 
    187196 
     
    327336                status = data->AddInt32("rows", (int32)fTermRows); 
    328337         
     338        if (data->ReplaceString("class", "TermView") != B_OK) 
     339                data->AddString("class", "TermView"); 
     340         
    329341        return status; 
    330342}