6b57f21ee5
* NEW: Store the component version inside the .component files for component projects. * NEW: Package dependencies on component use the previous version stored in the .component file if it is available. Otherwise the current Gambas interpreter version is used. * BUG: Do not increment version release if the packager wizard is cancelled. * NEW: Package dependencies on component use the previous version stored in the .component file if it is available. Otherwise the current Gambas interpreter version is used. * NEW: The package wizard remembers the last directory used for storing packages. * BUG: The default directory where packages are stored is the home directory now. * BUG: Fix the signature display routine that sometimes underlined incorrectly. * BUG: Use version program at each project configuration write. * NEW: A "paste special" function in the code editor, that allows to insert plain text or HTML text from the clipboard, and can comment it, quote it as a Gambas string, or transform it into PRINT instructions. * BUG: Some fix related to the now immediate invalidity of deleted forms. [SCRIPTER] * NEW: Support for gambas server pages! * NEW: Server page are now run by a program named 'gbw2', which is just a symbolic link to 'gbs2'. [GB.GTK] * BUG: Window.Picture property now works correctly when the window is embedded inside a container. * BUG: Embedded windows having a background picture are now correctly updated when they are resized. * BUG: Correctly handle a form close or destroy during an event handler. * BUG: The combo-box behaves now like the qt one. Its first item is always selected at startup. * NEW: Now deleted forms become immediately invalid. [GB.QT] * BUG: Clipboard.Paste() now returns an UTF-8 string. * BUG: Correctly handle a form close or destroy during an event handler. * BUG: Checking if the application must quit is deferred, so that closing a form and opeing another one keeps the application running. * NEW: Now deleted forms become immediately invalid. [GB.QT.EXT] * BUG: Fix the Editor drawing while scrolling. * BUG: Fix conversion from cursor position to text column in Editor. * BUG: Fix the Editor drawing when it has been scrolled to the right. * BUG: Don't paste in Editor if there is nothing to paste. git-svn-id: svn://localhost/gambas/trunk@1605 867c0c6c-44f3-4631-809d-bfa615b0a4ec
62 lines
1.2 KiB
C++
62 lines
1.2 KiB
C++
#ifndef __GCOMBOBOX_H
|
|
#define __GCOMBOBOX_H
|
|
|
|
#include "gtextbox.h"
|
|
#include "gtree.h"
|
|
|
|
class gComboBox : public gTextBox
|
|
{
|
|
public:
|
|
gComboBox(gContainer *parent);
|
|
~gComboBox();
|
|
|
|
int count();
|
|
int index();
|
|
char* itemText(int ind);
|
|
virtual int length();
|
|
//char** list();
|
|
virtual bool isReadOnly();
|
|
bool isSorted();
|
|
virtual char *text();
|
|
|
|
void setIndex(int vl);
|
|
void setItemText(int ind, const char *txt);
|
|
//void setList(char **vl);
|
|
virtual void setReadOnly(bool vl);
|
|
void setSorted(bool vl);
|
|
virtual void setText(const char *vl);
|
|
|
|
//"Methods"
|
|
void popup();
|
|
void add(const char *vl, int pos = -1);
|
|
virtual void clear();
|
|
int find(const char *ptr);
|
|
void remove(int pos);
|
|
|
|
virtual void resize(int w, int h);
|
|
virtual void setRealBackground(gColor vl);
|
|
virtual void setRealForeground(gColor vl);
|
|
virtual void setFont(gFont *f);
|
|
virtual void setFocus();
|
|
|
|
//"Signals"
|
|
void (*onClick)(gComboBox *sender);
|
|
|
|
//"Private"
|
|
bool sort;
|
|
GtkCellRenderer *cell;
|
|
virtual int minimumHeight();
|
|
bool _no_click;
|
|
gTree *tree;
|
|
bool _model_dirty;
|
|
int _last_key;
|
|
|
|
void updateModel();
|
|
void updateSort();
|
|
char *indexToKey(int index);
|
|
char* find(GtkTreePath *path) { return tree->pathToKey(path, false); }
|
|
void checkIndex();
|
|
};
|
|
|
|
#endif
|