Use `Control_Type' to handle different segment directions.
[ttfautohint.git] / frontend / ddlineedit.h
blob2bdf5076baa6e8c32e9261ca745230c0640ceedb
1 // ddlineedit.h
3 // Copyright (C) 2012-2014 by Werner Lemberg.
4 //
5 // This file is part of the ttfautohint library, and may only be used,
6 // modified, and distributed under the terms given in `COPYING'. By
7 // continuing to use, modify, or distribute this file you indicate that you
8 // have read `COPYING' and understand and accept it fully.
9 //
10 // The file `COPYING' mentioned in the previous paragraph is distributed
11 // with the ttfautohint library.
14 #ifndef __DDLINEEDIT_H__
15 #define __DDLINEEDIT_H__
17 #include <config.h>
18 #include "ttlineedit.h"
20 #include <QtGui>
22 enum Drag_Drop_File_Type
24 DRAG_DROP_TRUETYPE,
25 DRAG_DROP_ANY
29 class Drag_Drop_Line_Edit
30 : public Tooltip_Line_Edit
32 Q_OBJECT
34 Drag_Drop_File_Type file_type;
36 public:
37 Drag_Drop_Line_Edit(Drag_Drop_File_Type,
38 QWidget* = 0);
40 void dragEnterEvent(QDragEnterEvent*);
41 void dropEvent(QDropEvent*);
45 #endif // __DDLINEEDIT_H__
47 // end of ddlineedit.h