Fix the Editor's bottom toolbar, create a new MyProgressBar class to

make it's width stable, and add 2 pixel space between the main action
widgets (progress bar, preferences, full screen)
This commit is contained in:
Hombre
2016-01-10 01:35:27 +01:00
parent d460f5eae1
commit f344a2cee2
8 changed files with 185 additions and 77 deletions

View File

@@ -276,6 +276,7 @@ public:
*/
class MyComboBox : public Gtk::ComboBox
{
int naturalWidth, minimumWidth;
bool on_scroll_event (GdkEventScroll* event);
void get_preferred_width_vfunc (int &minimum_width, int &natural_width) const;
@@ -283,6 +284,8 @@ class MyComboBox : public Gtk::ComboBox
public:
MyComboBox ();
void setPreferredWidth (int minimum_width, int natural_width);
};
/**
@@ -290,6 +293,7 @@ public:
*/
class MyComboBoxText : public Gtk::ComboBoxText
{
int naturalWidth, minimumWidth;
bool on_scroll_event (GdkEventScroll* event);
void get_preferred_width_vfunc (int &minimum_width, int &natural_width) const;
@@ -297,6 +301,8 @@ class MyComboBoxText : public Gtk::ComboBoxText
public:
MyComboBoxText ();
void setPreferredWidth (int minimum_width, int natural_width);
};
/**
@@ -430,6 +436,22 @@ public:
const Gtk::Label* getLabel () const;
};
class MyProgressBar : public Gtk::ProgressBar
{
private:
int w;
void get_preferred_width_vfunc (int &minimum_width, int &natural_width) const;
void get_preferred_width_for_height_vfunc (int width, int &minimum_width, int &natural_width) const;
public:
MyProgressBar(int width);
MyProgressBar();
void setPreferredWidth(int width);
};
/**
* @brief Define a gradient milestone
*/