#include <gtk--/paned.h>
#include <gtk--/box.h>
#include <gtk--/checkbutton.h>
+#include "pixbutton.h"
/** This class provides an Gnome implementation of the FormCitation Dialog.
*/
void createInset( string const & );
/// Slot launching dialog to an existing inset
void showInset( InsetCommand * const );
-
- /// Update dialog before showing it
- virtual void update();
- /// Apply from dialog (modify or create inset)
- virtual void apply();
- /// Apply from dialog (modify or create inset)
- virtual void applySelect();
+
+ /// The following three methods do nothing in this implementation
+ virtual void update() { }
+ virtual void apply() { }
+ void show() { }
+
/// Explicitly free the dialog.
void free();
/// Hide the dialog.
void hide();
- /// Create the dialog if necessary, update it and display it. Not used in this dialog
- void show() { }
+
+ /// Apply from dialog (modify or create inset)
+ void applySelect();
+ /// Apply from dialog (modify or create inset)
+ void applyEdit();
+
+ /// Ask user for requested action: add new citation or edit the existing ones
+ void showStageAction();
/// Ask user for regexp or keyword(s)
void showStageSearch();
/// Ask user to select the citation in the list
void showStageSelect();
+ /// Ask user to edit the citation in the list
+ void showStageEdit();
+
/// moves from Search to Select "stage"
void moveFromSearchToSelect();
+ /// moves from Action to Search "stage"
+ void moveFromActionToSearch();
+ /// moves from Action to Edit "stage"
+ void moveFromActionToEdit();
/// sort biblist
void sortBibList(gint);
/// update state of the buttons
void updateButtons();
/// clist selection/unselection callback
- void selection_toggled(gint row,
- gint column,
- GdkEvent *event,
- bool selected,
- bool citeselected);
- /// adds new citation key
- void newCitation();
+ void selectionToggled(gint row,
+ gint column,
+ GdkEvent *event,
+ bool selected,
+ bool citeselected);
+
/// removes selected citation key
void removeCitation();
/// moves citation up
void moveCitationUp();
/// moves citation up
void moveCitationDown();
- /// searches for entries
+
+ /// searches for entries (calls searchReg or searchSimple)
void search();
+ /// searches for entries using regexp
void searchReg();
+ /// searches for entries containing keyword(s)
void searchSimple();
- /// add item to the list
+ /// adds item to clist_bib_
void addItemToBibList(int i);
+ /// sets all widget pointers to NULL
+ void cleanupWidgets();
+ /// initializes all non-NULL member widgets
+ void initWidgets();
+ /// stores configuration of all non-NULL member widgets
+ void storeWidgets();
+
/** Which LyXFunc do we use?
We could modify Dialogs to have a visible LyXFunc* instead and
save a couple of bytes per dialog.
Gnome::Less * info_;
Gnome::Entry * text_after_;
- Gtk::Button * button_select_;
- Gtk::Button * button_unselect_;
- Gtk::Button * button_up_;
- Gtk::Button * button_down_;
+ Gnome::PixButton * button_unselect_;
+ Gnome::PixButton * button_up_;
+ Gnome::PixButton * button_down_;
Gtk::CheckButton * button_regexp_;
Gtk::CList * clist_selected_;
Gtk::CList * clist_bib_;
Gtk::Paned * paned_info_;
- Gtk::Paned * paned_key_;
- Gtk::Box * box_keys_;
std::vector<string> bibkeys;
///