libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / preferences / shortcuts / PopUpColumn.h
blob2b3e8fb28eb56a7c8d0651d7f8cbc8d905bdeb36
1 /*
2 * Copyright 2015 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Josef Gajdusek
7 */
8 #ifndef POPUPCOLUMN_H
9 #define POPUPCOLUMN_H
11 #include <ColumnTypes.h>
13 class BPopUpMenu;
15 class PopUpColumn : public BStringColumn {
16 public:
17 PopUpColumn(BPopUpMenu* menu, const char* name,
18 float width, float minWidth, float maxWidth,
19 uint32 truncate, bool editable = false,
20 bool cycle = false, int cycleInit = 0,
21 alignment align = B_ALIGN_LEFT);
22 virtual ~PopUpColumn();
24 void MouseDown(BColumnListView* parent, BRow* row,
25 BField* field, BRect fieldRect, BPoint point,
26 uint32 buttons);
28 private:
29 bool fEditable;
30 bool fCycle;
31 int fCycleInit;
32 BPopUpMenu* fMenu;
35 #endif // POPUPCOLUMN_H